diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-01 16:04:45 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-01 16:04:45 +0900 |
| commit | c1d53dbc173f87fe23e179f21c9a713df6484dae (patch) | |
| tree | 64ba8065e1e30b84b36b782d16c5998ffc9f9322 /cli/src/trading_cli/commands/backtest.py | |
| parent | 2b1db156c7ea7e0be543ab91813922b95eb043cb (diff) | |
feat: rewrite database layer from asyncpg to SQLAlchemy 2.0 async ORM
Replace raw asyncpg SQL with SQLAlchemy async engine, async_sessionmaker,
and ORM operations. Uses session.merge for candle upserts, session.add
for signal/order inserts, update() for status changes, select() for
queries. Auto-converts postgresql:// URLs to postgresql+asyncpg://.
Keeps init_tables() as backward-compatible alias for connect().
Diffstat (limited to 'cli/src/trading_cli/commands/backtest.py')
0 files changed, 0 insertions, 0 deletions
