|
47 | 47 | " end_date=datetime(2025, 12, 30, tzinfo=timezone.utc)\n", |
48 | 48 | ")\n", |
49 | 49 | "MARKET = \"BITVAVO\"\n", |
50 | | - "\n", |
51 | 50 | "in_sample_assets = [\"BTC\", \"ETH\", \"ADA\", \"SOL\", \"DOT\"]\n", |
52 | 51 | "out_sample_assets = [\"XRP\", \"LTC\", \"BCH\"]\n", |
53 | 52 | "time_frames = [\"2h\", \"4h\", \"1d\"]" |
|
128 | 127 | "id": "8", |
129 | 128 | "metadata": {}, |
130 | 129 | "outputs": [], |
131 | | - "source": [ |
132 | | - "# Example: download with a custom filename\n", |
133 | | - "# result = download_v2(\n", |
134 | | - "# symbol=\"BTC/EUR\",\n", |
135 | | - "# market=MARKET,\n", |
136 | | - "# time_frame=\"1d\",\n", |
137 | | - "# data_type=\"ohlcv\",\n", |
138 | | - "# start_date=backtest_window_date_range.start_date,\n", |
139 | | - "# end_date=backtest_window_date_range.end_date,\n", |
140 | | - "# save=True,\n", |
141 | | - "# storage_path=str(data_storage_path),\n", |
142 | | - "# filename=\"btc_daily_data\", # saves as btc_daily_data.csv\n", |
143 | | - "# )\n", |
144 | | - "# print(f\"Saved to: {result.path}\")" |
145 | | - ] |
146 | | - }, |
147 | | - { |
148 | | - "cell_type": "code", |
149 | | - "execution_count": null, |
150 | | - "id": "9", |
151 | | - "metadata": {}, |
152 | | - "outputs": [], |
153 | 130 | "source": [ |
154 | 131 | "from investing_algorithm_framework import download_v2, TimeFrame, tqdm\n", |
155 | 132 | "in_sample_data = {}\n", |
|
215 | 192 | }, |
216 | 193 | { |
217 | 194 | "cell_type": "markdown", |
218 | | - "id": "10", |
| 195 | + "id": "9", |
219 | 196 | "metadata": {}, |
220 | 197 | "source": [ |
221 | 198 | "## Check data completeness and fill missing timestamps" |
|
224 | 201 | { |
225 | 202 | "cell_type": "code", |
226 | 203 | "execution_count": null, |
227 | | - "id": "11", |
| 204 | + "id": "10", |
228 | 205 | "metadata": {}, |
229 | 206 | "outputs": [], |
230 | 207 | "source": [ |
|
263 | 240 | }, |
264 | 241 | { |
265 | 242 | "cell_type": "markdown", |
266 | | - "id": "12", |
| 243 | + "id": "11", |
267 | 244 | "metadata": {}, |
268 | 245 | "source": [ |
269 | 246 | "## Analysis on the Backtest Windows" |
|
272 | 249 | { |
273 | 250 | "cell_type": "code", |
274 | 251 | "execution_count": null, |
275 | | - "id": "13", |
| 252 | + "id": "12", |
276 | 253 | "metadata": {}, |
277 | 254 | "outputs": [], |
278 | 255 | "source": [ |
|
400 | 377 | ], |
401 | 378 | "metadata": { |
402 | 379 | "kernelspec": { |
403 | | - "display_name": "Python 3", |
| 380 | + "display_name": "investing-algorithm-framework-ygOLr3-a-py3.12", |
404 | 381 | "language": "python", |
405 | 382 | "name": "python3" |
406 | 383 | }, |
407 | 384 | "language_info": { |
408 | 385 | "codemirror_mode": { |
409 | 386 | "name": "ipython", |
410 | | - "version": 2 |
| 387 | + "version": 3 |
411 | 388 | }, |
412 | 389 | "file_extension": ".py", |
413 | 390 | "mimetype": "text/x-python", |
414 | 391 | "name": "python", |
415 | 392 | "nbconvert_exporter": "python", |
416 | | - "pygments_lexer": "ipython2", |
417 | | - "version": "2.7.6" |
| 393 | + "pygments_lexer": "ipython3", |
| 394 | + "version": "3.12.13" |
418 | 395 | } |
419 | 396 | }, |
420 | 397 | "nbformat": 4, |
|
0 commit comments