Skip to content

Commit 7b5f684

Browse files
committed
chore: update tutorial notebooks and strategy example
1 parent aef8fb4 commit 7b5f684

6 files changed

Lines changed: 1079 additions & 13156 deletions

File tree

examples/tutorial/notebooks/01_data_exploration.ipynb

Lines changed: 8 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
" end_date=datetime(2025, 12, 30, tzinfo=timezone.utc)\n",
4848
")\n",
4949
"MARKET = \"BITVAVO\"\n",
50-
"\n",
5150
"in_sample_assets = [\"BTC\", \"ETH\", \"ADA\", \"SOL\", \"DOT\"]\n",
5251
"out_sample_assets = [\"XRP\", \"LTC\", \"BCH\"]\n",
5352
"time_frames = [\"2h\", \"4h\", \"1d\"]"
@@ -128,28 +127,6 @@
128127
"id": "8",
129128
"metadata": {},
130129
"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": [],
153130
"source": [
154131
"from investing_algorithm_framework import download_v2, TimeFrame, tqdm\n",
155132
"in_sample_data = {}\n",
@@ -215,7 +192,7 @@
215192
},
216193
{
217194
"cell_type": "markdown",
218-
"id": "10",
195+
"id": "9",
219196
"metadata": {},
220197
"source": [
221198
"## Check data completeness and fill missing timestamps"
@@ -224,7 +201,7 @@
224201
{
225202
"cell_type": "code",
226203
"execution_count": null,
227-
"id": "11",
204+
"id": "10",
228205
"metadata": {},
229206
"outputs": [],
230207
"source": [
@@ -263,7 +240,7 @@
263240
},
264241
{
265242
"cell_type": "markdown",
266-
"id": "12",
243+
"id": "11",
267244
"metadata": {},
268245
"source": [
269246
"## Analysis on the Backtest Windows"
@@ -272,7 +249,7 @@
272249
{
273250
"cell_type": "code",
274251
"execution_count": null,
275-
"id": "13",
252+
"id": "12",
276253
"metadata": {},
277254
"outputs": [],
278255
"source": [
@@ -400,21 +377,21 @@
400377
],
401378
"metadata": {
402379
"kernelspec": {
403-
"display_name": "Python 3",
380+
"display_name": "investing-algorithm-framework-ygOLr3-a-py3.12",
404381
"language": "python",
405382
"name": "python3"
406383
},
407384
"language_info": {
408385
"codemirror_mode": {
409386
"name": "ipython",
410-
"version": 2
387+
"version": 3
411388
},
412389
"file_extension": ".py",
413390
"mimetype": "text/x-python",
414391
"name": "python",
415392
"nbconvert_exporter": "python",
416-
"pygments_lexer": "ipython2",
417-
"version": "2.7.6"
393+
"pygments_lexer": "ipython3",
394+
"version": "3.12.13"
418395
}
419396
},
420397
"nbformat": 4,

0 commit comments

Comments
 (0)