Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
5ad719f
Merge pull request #1 from lee101/chronos
lee101 Jun 21, 2024
547ac51
looping canceling in new process
lee101 Jun 23, 2024
6dd928f
fixup dates
lee101 Jun 24, 2024
f623d22
fix limiting orders kept clsoing at market
lee101 Jul 3, 2024
0beb518
fix import
lee101 Jul 3, 2024
b34c39c
f rounding
lee101 Jul 3, 2024
9654b3a
more aggressive sell ramp to exit positions - todo market order as a …
lee101 Jul 4, 2024
a0f5f08
fix async
lee101 Jul 5, 2024
171e204
fixlog
lee101 Jul 7, 2024
7b52228
fix debouncing
lee101 Jul 8, 2024
cea9514
fix debouncing
lee101 Jul 9, 2024
0130076
clean context
lee101 Aug 12, 2024
3f18e22
another layer of cooldown
lee101 Aug 16, 2024
7243de3
fix not backing out when its not trading time for normal assets - cou…
lee101 Aug 16, 2024
1f4b08d
filetypeonlychangenewforecasts
lee101 Sep 20, 2024
e27563e
wip
lee101 Sep 21, 2024
07990e7
wip
lee101 Sep 24, 2024
f9a2721
wip
lee101 Sep 25, 2024
61cf6ae
fix
lee101 Sep 25, 2024
1a02247
fix final day
lee101 Sep 25, 2024
a51260a
diff handling
lee101 Sep 25, 2024
f0badc1
fix/todo
lee101 Sep 25, 2024
1b1ad53
wip
lee101 Sep 25, 2024
da94105
ramp from bid to ask
lee101 Sep 25, 2024
d5beb68
print more details of when we should trade
lee101 Sep 25, 2024
a84a9a7
test other strat
lee101 Sep 26, 2024
3cdbb9c
dont change cache in test
lee101 Sep 26, 2024
5fdff88
wip todo fix math
lee101 Sep 26, 2024
60f345f
fix tests
lee101 Sep 26, 2024
bcef95f
fix fees calc
lee101 Sep 26, 2024
b682906
fix cache
lee101 Sep 26, 2024
de3d27c
wip
lee101 Oct 28, 2024
de07d4a
fix
lee101 Oct 28, 2024
e386033
fix fees calc
lee101 Oct 28, 2024
be8b6cf
fmt
lee101 Oct 28, 2024
ddc6a00
auto trading bot
lee101 Oct 29, 2024
87030fc
fix
lee101 Oct 29, 2024
e229fdd
only close orders we know are bad
lee101 Oct 29, 2024
552064d
fix tests, dont close orders that are aiite
lee101 Oct 29, 2024
e0e734a
fix
lee101 Oct 29, 2024
c7be579
r bonferoni stuff
lee101 Oct 29, 2024
ab041aa
fix
lee101 Oct 29, 2024
958aa19
fix
lee101 Oct 29, 2024
a299404
fix
lee101 Oct 29, 2024
6a584e5
fix
lee101 Oct 29, 2024
e97b466
whatever
lee101 Oct 30, 2024
cee176c
fix
lee101 Oct 30, 2024
f147701
Merge branch 'backtesting' of github.com:lee101/stock-prediction into…
lee101 Oct 30, 2024
54787bb
tweak fees
lee101 Oct 30, 2024
5f8685c
fix trading less aggressive with crypto as its high fee
lee101 Oct 30, 2024
f318e38
fix to be careful with crypto not trying to short
lee101 Oct 30, 2024
0973ec2
fix async
lee101 Oct 30, 2024
1159250
fix erroring too quick
lee101 Oct 30, 2024
b2dfe01
fix
lee101 Nov 1, 2024
ebe9140
r loguru
lee101 Nov 1, 2024
a361dbd
r
lee101 Nov 2, 2024
5cb7564
fix result ref before assign
lee101 Nov 2, 2024
614707a
fix order canceling
lee101 Nov 4, 2024
018e26b
fix
lee101 Nov 8, 2024
eb42438
fix show position
lee101 Nov 29, 2024
72c1075
fix not asking for all if bal goes out of date
lee101 Nov 29, 2024
34bfe59
fix comparing pairs
lee101 Dec 8, 2024
5ec1de8
fix
lee101 Dec 11, 2024
610b5d6
update chronos
lee101 Dec 11, 2024
1f66b2a
wip
lee101 Dec 18, 2024
69479f5
fix
lee101 Dec 19, 2024
430b164
fix tests
lee101 Dec 19, 2024
cc6c607
fix
lee101 Dec 19, 2024
d655be5
wip
lee101 Dec 19, 2024
fee2276
fix
lee101 Dec 20, 2024
6e2edda
Merge branch 'backtesting' of github.com:lee101/stock-prediction into…
lee101 Dec 20, 2024
74d0809
fixes
lee101 Dec 28, 2024
a5ca906
fix
lee101 Dec 28, 2024
ab2e3f6
fix trading plan
lee101 Dec 28, 2024
0a20e86
fix computation around crypto
lee101 Dec 28, 2024
5e5cfe2
fix openpred
lee101 Dec 28, 2024
ea33856
fixup calculations
lee101 Dec 28, 2024
ec6616a
refactor
lee101 Dec 28, 2024
0b7922c
test
lee101 Dec 28, 2024
1db4d83
realism
lee101 Dec 28, 2024
9447664
Merge branch 'backtesting' of github.com:lee101/stock-prediction into…
lee101 Dec 28, 2024
43d6483
fmt
lee101 Dec 28, 2024
58b4023
fx
lee101 Dec 28, 2024
38b2bdf
val losses logging
lee101 Jan 2, 2025
5db1a13
experiments with claude for forecasting
lee101 Jan 16, 2025
980b59d
wip
lee101 Jan 24, 2025
e24a8b9
Merge branch 'backtesting' of github.com:lee101/stock-prediction into…
lee101 Jan 24, 2025
7caeb4e
rm file around what strat is being executed
lee101 Jan 24, 2025
3906225
fix crippling bug
lee101 Jan 24, 2025
d5faabe
fix weird zero issue
lee101 Jan 24, 2025
50a4bc4
fix final pred
lee101 Jan 30, 2025
adaffc1
oss
lee101 Feb 8, 2025
385d531
oss
lee101 Feb 8, 2025
556e63c
docs
lee101 Feb 8, 2025
c432882
fix docs
lee101 Feb 8, 2025
e90c5c7
doc
lee101 Feb 19, 2025
f78b5d6
add vid
lee101 Feb 19, 2025
71857bc
fix
lee101 Feb 28, 2025
f0ba51c
fix model caching
lee101 Mar 5, 2025
91a0a07
fix
lee101 May 10, 2025
8d70b87
large logging refactor
lee101 May 10, 2025
83b8e8a
comment
lee101 May 10, 2025
081aab9
util enable crypto
lee101 May 11, 2025
c42b0f4
fix early exiting stopping trading
lee101 May 11, 2025
d586889
r script
lee101 May 11, 2025
c471178
bolt
lee101 May 23, 2025
1f1d526
fix float stuff
lee101 May 23, 2025
6d403ee
Handle insufficient funds gracefully
lee101 May 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .cursorignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
data
lightning*
logs
optuna*
.idea

.env
.cache
data
results
env.py
env_real.py
logs
lightning_logs
lightning_logs*
lightning_logsminute


optuna_test
.pytest_cache

__pycache__
__pycache__*
logfile.log
9 changes: 9 additions & 0 deletions .cursorrules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
you can use tools like bash:

git --no-pager diff --cached -p
git --no-pager diff -p

to look over the diff
testing/uv installing in the .venv
pytest .
uv pip compile requirements.in -o requirements.txt && uv pip install -r requirements.txt --python .venv/bin/python
5 changes: 5 additions & 0 deletions .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.env
.env2
.cache
data
results
env.py
Expand All @@ -14,3 +16,6 @@ optuna_test

__pycache__
__pycache__*
logfile.log
*.log
positions_shelf.json
Empty file modified .gitmodules
100644 → 100755
Empty file.
21 changes: 20 additions & 1 deletion .vscode/launch.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,31 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Run trade_stock_e2e",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/trade_stock_e2e.py",
"console": "integratedTerminal",
"python": "${workspaceFolder}/.venv/bin/python",
"env": {
"PYTHONPATH": "${workspaceFolder}/.venv/lib/python3.12/site-packages:${env:PYTHONPATH}"
},
"envFile": "${workspaceFolder}/.env",
"cwd": "${workspaceFolder}"
},
{
"name": "Python Debugger: Current File",
"type": "debugpy",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
"console": "integratedTerminal",
"python": "${workspaceFolder}/.env/bin/python",
"env": {
"PYTHONPATH": "${workspaceFolder}/.env/lib/python3.11/site-packages:${env:PYTHONPATH}"
},
"envFile": "${workspaceFolder}/.env",
"cwd": "${workspaceFolder}"
}
]
}
55 changes: 55 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"python.testing.pytestArgs": [
"."
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/**": true,
"**/dist/**": true,
"**/build/**": true,
"**/.cache/**": true,
"coverage/**": true,
"**/logs/**": true,
"**/lightning_logs/**": true,
"**/lightning_logs2/**": true,
"**/lightning_logsminute/**": true,
"**/lightning_logs_nforecast/**": true,
"**/data/**": true,
"**/optuna_test/**": true
},
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/node_modules": true,
"**/dist": true,
"**/build": true,
"**/logs": true,
"**/lightning_logs": true,
"**/lightning_logs2": true,
"**/lightning_logsminute": true,
"**/lightning_logs_nforecast": true,
"**/data": true,
"**/optuna_test": true
},
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/dist": true,
"**/build": true,
"**/.cache": true,
"coverage/**": true,
"**/logs/**": true,
"**/lightning_logs/**": true,
"**/lightning_logs2/**": true,
"**/lightning_logsminute/**": true,
"**/lightning_logs_nforecast/**": true,
"**/data/**": true,
"**/optuna_test/**": true
}
}
1 change: 0 additions & 1 deletion SCINet
Submodule SCINet deleted from 03ab7f
Empty file modified WIKI-AAPL.csv
100644 → 100755
Empty file.
1 change: 0 additions & 1 deletion algo-trading-bot
Submodule algo-trading-bot deleted from 2591ed
Loading