diff --git a/mt5_pnl_tracker.py b/mt5_pnl_tracker.py index c2a9747..f9698ea 100644 --- a/mt5_pnl_tracker.py +++ b/mt5_pnl_tracker.py @@ -53,7 +53,7 @@ class MT5PnLTracker: CREATE TABLE IF NOT EXISTS mt5_deals ( deal_id INTEGER PRIMARY KEY, ticket INTEGER, - order INTEGER, + order_ticket INTEGER, time TEXT, time_msc INTEGER, type INTEGER, @@ -171,7 +171,7 @@ class MT5PnLTracker: try: cursor.execute(""" INSERT OR IGNORE INTO mt5_deals ( - deal_id, ticket, order, time, time_msc, type, entry, + deal_id, ticket, order_ticket, time, time_msc, type, entry, magic, position_id, reason, volume, price, commission, swap, profit, fee, symbol, comment, external_id, imported_at ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)