Files
crypto_news/data/trading.db

46 lines
36 KiB
Plaintext
Raw Normal View History

2026-03-20 07:49:42 +09:00
SQLite format 3@  .<2E>) <0F>
 <0A><0F> ; <0A>
<EFBFBD> <0B>

<EFBFBD><00><01>{tablebot_statebot_stateCREATE TABLE bot_state (
key TEXT PRIMARY KEY,
value TEXT,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
)1Eindexsqlite_autoindex_bot_state_1bot_state <09>//<01>atabledaily_performancedaily_performanceCREATE TABLE daily_performance (
date TEXT PRIMARY KEY,
total_trades INTEGER DEFAULT 0,
winning_trades INTEGER DEFAULT 0,
losing_trades INTEGER DEFAULT 0,
total_pnl REAL DEFAULT 0,
max_drawdown REAL DEFAULT 0
)AU/indexsqlite_autoindex_daily_performance_1daily_performance<07>Z''<01>stabletrade_recordstrade_recordsCREATE TABLE trade_records (
id TEXT PRIMARY KEY,
position_id TEXT REFERENCES positions(id),
symbol TEXT NOT NULL,
side TEXT NOT NULL,
order_type TEXT NOT NULL,
price REAL NOT NULL,
amount REAL NOT NULL,
fee REAL DEFAULT 0,
timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP
)9M'indexsqlite_autoindex_trade_records_1trade_records<05>o<01>-tablepositionspositionsCREATE TABLE positions (
id TEXT PRIMARY KEY,
symbol TEXT NOT NULL,
direction TEXT NOT NULL,
entry_price REAL NOT NULL,
amount REAL NOT NULL,
stop_loss REAL NOT NULL,
take_profit REAL NOT NULL,
trailing_stop REAL,
realized_pnl REAL DEFAULT 0,
status TEXT DEFAULT 'OPEN',
opened_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
closed_at TIMESTAMP,
close_reason TEXT,
confluence_score INTEGER,
entry_reasons TEXT
)1Eindexsqlite_autoindex_positions_1positions