System Logs

Total: 349 Errors Live
Clear
Time Level Category Symbol Source Message
06-12 13:30:16 ERROR order AVGO trailing_stop_scheduler WS-triggered TS check failed for AVGO: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (psycopg2.errors.DeadlockDetected) deadlock detected DETAIL: Process 1414496 waits for ShareLock on transaction 36797497; blocked by process 1413355. Process 1413355 waits for ShareLock on transaction 36797494; blocked by process 1413680. Process 1413680 waits for ExclusiveLock on tuple (591,55) of relation 138513 of database 138157; blocked by process 1414496. HINT: See server log for query details. CONTEXT: while updating tuple (591,55) in relation "order_tracker" [SQL: UPDATE order_tracker SET status=%(status)s, updated_at=%(updated_at)s WHERE order_tracker.id = %(order_tracker_id)s] [parameters: {'status': 'CANCELLED', 'updated_at': datetime.datetime(2026, 6, 12, 13, 30, 15, 611054), 'order_tracker_id': 37959}] (Background on this error at: https://sqlalche.me/e/20/e3q8) (Background on this error at: https://sqlalche.me/e/20/7s2a)
06-12 11:39:15 ERROR order tiger_client Error placing order: code=1200 msg=standard account response error(bad_request:当主订单为平仓或部分平仓时,不允许附加子订单。)
06-12 10:30:27 ERROR order order_tracker_service Error registering order 43563224487971840: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "ix_order_tracker_tiger_order_id" DETAIL: Key (tiger_order_id)=(43563224487971840) already exists. [SQL: INSERT INTO order_tracker (tiger_order_id, parent_order_id, symbol, account_type, role, side, quantity, order_type, limit_price, stop_price, status, filled_quantity, avg_fill_price, realized_pnl, commission, fill_time, oca_group_id, leg_role, signal_content, custom_trailing_config, signal_group_id, indicator, trade_id, trailing_stop_id, closed_position_id, position_id, signal_log_id, fill_source, created_at, updated_at) VALUES (%(tiger_order_id)s, %(parent_order_id)s, %(symbol)s, %(account_type)s, %(role)s, %(side)s, %(quantity)s, %(order_type)s, %(limit_price)s, %(stop_price)s, %(status)s, %(filled_quantity)s, %(avg_fill_price)s, %(realized_pnl)s, %(commission)s, %(fill_time)s, %(oca_group_id)s, %(leg_role)s, %(signal_content)s, %(custom_trailing_config)s, %(signal_group_id)s, %(indicator)s, %(trade_id)s, %(trailing_stop_id)s, %(closed_position_id)s, %(position_id)s, %(signal_log_id)s, %(fill_source)s, %(created_at)s, %(updated_at)s) RETURNING order_tracker.id] [parameters: {'tiger_order_id': '43563224487971840', 'parent_order_id': None, 'symbol': 'GDXU', 'account_type': 'paper', 'role': 'EXIT_SIGNAL', 'side': 'SELL', 'quantity': 95, 'order_type': None, 'limit_price': None, 'stop_price': None, 'status': 'PENDING', 'filled_quantity': None, 'avg_fill_price': None, 'realized_pnl': None, 'commission': None, 'fill_time': None, 'oca_group_id': None, 'leg_role': None, 'signal_content': None, 'custom_trailing_config': None, 'signal_group_id': None, 'indicator': None, 'trade_id': None, 'trailing_stop_id': None, 'closed_position_id': None, 'position_id': 4351, 'signal_log_id': None, 'fill_source': None, 'created_at': datetime.datetime(2026, 6, 12, 10, 30, 27, 29527), 'updated_at': datetime.datetime(2026, 6, 12, 10, 30, 27, 29539)}] (Background on t
06-12 08:16:05 ERROR position push_event_handlers ❌ Failed to add exit leg to Position via fallback: unsupported format string passed to NoneType.__format__
06-12 08:00:32 ERROR order order_tracker_service Error registering order 43562045617226752: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "ix_order_tracker_tiger_order_id" DETAIL: Key (tiger_order_id)=(43562045617226752) already exists. [SQL: INSERT INTO order_tracker (tiger_order_id, parent_order_id, symbol, account_type, role, side, quantity, order_type, limit_price, stop_price, status, filled_quantity, avg_fill_price, realized_pnl, commission, fill_time, oca_group_id, leg_role, signal_content, custom_trailing_config, signal_group_id, indicator, trade_id, trailing_stop_id, closed_position_id, position_id, signal_log_id, fill_source, created_at, updated_at) VALUES (%(tiger_order_id)s, %(parent_order_id)s, %(symbol)s, %(account_type)s, %(role)s, %(side)s, %(quantity)s, %(order_type)s, %(limit_price)s, %(stop_price)s, %(status)s, %(filled_quantity)s, %(avg_fill_price)s, %(realized_pnl)s, %(commission)s, %(fill_time)s, %(oca_group_id)s, %(leg_role)s, %(signal_content)s, %(custom_trailing_config)s, %(signal_group_id)s, %(indicator)s, %(trade_id)s, %(trailing_stop_id)s, %(closed_position_id)s, %(position_id)s, %(signal_log_id)s, %(fill_source)s, %(created_at)s, %(updated_at)s) RETURNING order_tracker.id] [parameters: {'tiger_order_id': '43562045617226752', 'parent_order_id': None, 'symbol': 'ALAB', 'account_type': 'paper', 'role': 'EXIT_TRAILING', 'side': 'SELL', 'quantity': 39.0, 'order_type': 'LIMIT', 'limit_price': None, 'stop_price': None, 'status': 'PENDING', 'filled_quantity': None, 'avg_fill_price': None, 'realized_pnl': None, 'commission': None, 'fill_time': None, 'oca_group_id': None, 'leg_role': None, 'signal_content': None, 'custom_trailing_config': None, 'signal_group_id': None, 'indicator': None, 'trade_id': 18627, 'trailing_stop_id': 7220, 'closed_position_id': None, 'position_id': 4319, 'signal_log_id': None, 'fill_source': None, 'created_at': datetime.datetime(2026, 6, 12, 8, 0, 32, 938371), 'updated_at': datetime.datetime(2026, 6, 12, 8, 0, 32, 938387)}] (Backgroun
06-12 00:59:29 ERROR order tiger_client Error placing order: code=1200 msg=standard account response error(bad_request:系统错误,请稍后重试)
06-11 19:51:40 ERROR order order_tracker_service ❌ Error in handle_fill_event for 43556313464456192: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely) (psycopg2.errors.DeadlockDetected) deadlock detected DETAIL: Process 1158676 waits for ShareLock on transaction 36304103; blocked by process 1158888. Process 1158888 waits for ShareLock on transaction 36304102; blocked by process 1158676. HINT: See server log for query details. CONTEXT: while updating tuple (310,20) in relation "trailing_stop_position" [SQL: UPDATE trailing_stop_position SET is_active=%(is_active)s, is_triggered=%(is_triggered)s, triggered_at=%(triggered_at)s, trigger_reason=%(trigger_reason)s, updated_at=%(updated_at)s WHERE trailing_stop_position.id = %(trailing_stop_position_id)s] [parameters: {'is_active': False, 'is_triggered': True, 'triggered_at': datetime.datetime(2026, 6, 11, 19, 51, 39, 981722), 'trigger_reason': 'exit_trailing_filled', 'updated_at': datetime.datetime(2026, 6, 11, 19, 51, 39, 986405), 'trailing_stop_position_id': 7201}] (Background on this error at: https://sqlalche.me/e/20/e3q8) (Background on this error at: https://sqlalche.me/e/20/7s2a)
06-11 19:51:40 ERROR order order_tracker_service Error deactivating trailing stop: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely) (psycopg2.errors.DeadlockDetected) deadlock detected DETAIL: Process 1158676 waits for ShareLock on transaction 36304103; blocked by process 1158888. Process 1158888 waits for ShareLock on transaction 36304102; blocked by process 1158676. HINT: See server log for query details. CONTEXT: while updating tuple (310,20) in relation "trailing_stop_position" [SQL: UPDATE trailing_stop_position SET is_active=%(is_active)s, is_triggered=%(is_triggered)s, triggered_at=%(triggered_at)s, trigger_reason=%(trigger_reason)s, updated_at=%(updated_at)s WHERE trailing_stop_position.id = %(trailing_stop_position_id)s] [parameters: {'is_active': False, 'is_triggered': True, 'triggered_at': datetime.datetime(2026, 6, 11, 19, 51, 39, 981722), 'trigger_reason': 'exit_trailing_filled', 'updated_at': datetime.datetime(2026, 6, 11, 19, 51, 39, 986405), 'trailing_stop_position_id': 7201}] (Background on this error at: https://sqlalche.me/e/20/e3q8) (Background on this error at: https://sqlalche.me/e/20/7s2a)
06-11 12:06:15 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:06:10 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:06:05 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:06:00 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:05:55 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:05:50 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:05:45 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:05:40 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:05:35 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:05:30 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:05:25 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:05:20 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:05:15 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:05:10 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:05:05 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:05:00 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:04:56 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:04:50 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:04:45 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:04:40 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:04:35 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:04:30 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:04:25 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:04:21 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:04:15 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:04:10 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:04:05 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:04:00 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:03:55 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:03:50 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:03:45 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:03:40 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:03:35 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:03:30 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:03:25 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:03:20 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:03:16 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:03:10 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:03:05 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:03:00 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:02:55 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:02:50 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:02:45 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:02:40 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:02:35 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:02:30 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:02:25 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:02:20 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:02:15 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:02:10 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:02:05 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:02:00 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:01:55 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:01:50 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:01:45 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:01:40 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:01:36 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:01:30 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:01:25 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:01:20 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-11 12:01:07 ERROR order order_tracker_service Error registering order 43552612910646272: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "ix_order_tracker_tiger_order_id" DETAIL: Key (tiger_order_id)=(43552612910646272) already exists. [SQL: INSERT INTO order_tracker (tiger_order_id, parent_order_id, symbol, account_type, role, side, quantity, order_type, limit_price, stop_price, status, filled_quantity, avg_fill_price, realized_pnl, commission, fill_time, oca_group_id, leg_role, signal_content, custom_trailing_config, signal_group_id, indicator, trade_id, trailing_stop_id, closed_position_id, position_id, signal_log_id, fill_source, created_at, updated_at) VALUES (%(tiger_order_id)s, %(parent_order_id)s, %(symbol)s, %(account_type)s, %(role)s, %(side)s, %(quantity)s, %(order_type)s, %(limit_price)s, %(stop_price)s, %(status)s, %(filled_quantity)s, %(avg_fill_price)s, %(realized_pnl)s, %(commission)s, %(fill_time)s, %(oca_group_id)s, %(leg_role)s, %(signal_content)s, %(custom_trailing_config)s, %(signal_group_id)s, %(indicator)s, %(trade_id)s, %(trailing_stop_id)s, %(closed_position_id)s, %(position_id)s, %(signal_log_id)s, %(fill_source)s, %(created_at)s, %(updated_at)s) RETURNING order_tracker.id] [parameters: {'tiger_order_id': '43552612910646272', 'parent_order_id': None, 'symbol': 'OKLO', 'account_type': 'paper', 'role': 'EXIT_SIGNAL', 'side': 'SELL', 'quantity': 48, 'order_type': None, 'limit_price': None, 'stop_price': None, 'status': 'PENDING', 'filled_quantity': None, 'avg_fill_price': None, 'realized_pnl': None, 'commission': None, 'fill_time': None, 'oca_group_id': None, 'leg_role': None, 'signal_content': None, 'custom_trailing_config': None, 'signal_group_id': None, 'indicator': None, 'trade_id': None, 'trailing_stop_id': None, 'closed_position_id': None, 'position_id': 4300, 'signal_log_id': None, 'fill_source': None, 'created_at': datetime.datetime(2026, 6, 11, 12, 1, 7, 40294), 'updated_at': datetime.datetime(2026, 6, 11, 12, 1, 7, 40304)}] (Background on this
06-11 00:01:06 ERROR order tiger_client Error placing order: code=1200 msg=standard account response error(bad_request:系统错误,请稍后重试)
06-10 23:16:35 ERROR order tiger_client Error placing order: code=1200 msg=standard account response error(bad_request:当主订单为平仓或部分平仓时,不允许附加子订单。)
06-10 19:02:10 ERROR order order_tracker_service ❌ Error in handle_fill_event for 43544599165157376: (psycopg2.errors.DeadlockDetected) deadlock detected DETAIL: Process 724675 waits for ShareLock on transaction 35532079; blocked by process 724323. Process 724323 waits for ShareLock on transaction 35532089; blocked by process 724675. HINT: See server log for query details. CONTEXT: while updating tuple (587,32) in relation "order_tracker" [SQL: UPDATE order_tracker SET status=%(status)s, filled_quantity=%(filled_quantity)s, avg_fill_price=%(avg_fill_price)s, realized_pnl=%(realized_pnl)s, commission=%(commission)s, fill_time=%(fill_time)s, fill_source=%(fill_source)s, updated_at=%(updated_at)s WHERE order_tracker.id = %(order_tracker_id)s] [parameters: {'status': 'FILLED', 'filled_quantity': 29, 'avg_fill_price': 154.51, 'realized_pnl': 0, 'commission': 3.02, 'fill_time': datetime.datetime(2026, 6, 10, 19, 2, 9, 394244), 'fill_source': 'polling_paper_entry', 'updated_at': datetime.datetime(2026, 6, 10, 19, 2, 9, 431670), 'order_tracker_id': 37544}] (Background on this error at: https://sqlalche.me/e/20/e3q8)
06-10 14:45:33 ERROR order tiger_client Error placing order: code=1200 msg=standard account response error(bad_request:当主订单为平仓或部分平仓时,不允许附加子订单。)
06-10 14:37:55 ERROR order order_tracker_service ❌ Error in handle_fill_event for 43542521370265600: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely) (psycopg2.errors.DeadlockDetected) deadlock detected DETAIL: Process 630416 waits for ShareLock on transaction 35383773; blocked by process 629866. Process 629866 waits for ShareLock on transaction 35383774; blocked by process 630416. HINT: See server log for query details. CONTEXT: while updating tuple (295,23) in relation "trailing_stop_position" [SQL: UPDATE trailing_stop_position SET is_active=%(is_active)s, is_triggered=%(is_triggered)s, triggered_at=%(triggered_at)s, trigger_reason=%(trigger_reason)s, updated_at=%(updated_at)s WHERE trailing_stop_position.id = %(trailing_stop_position_id)s] [parameters: {'is_active': False, 'is_triggered': True, 'triggered_at': datetime.datetime(2026, 6, 10, 14, 37, 54, 631769), 'trigger_reason': 'exit_trailing_filled', 'updated_at': datetime.datetime(2026, 6, 10, 14, 37, 54, 632800), 'trailing_stop_position_id': 7141}] (Background on this error at: https://sqlalche.me/e/20/e3q8) (Background on this error at: https://sqlalche.me/e/20/7s2a)
06-10 14:37:55 ERROR order order_tracker_service Error deactivating trailing stop: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely) (psycopg2.errors.DeadlockDetected) deadlock detected DETAIL: Process 630416 waits for ShareLock on transaction 35383773; blocked by process 629866. Process 629866 waits for ShareLock on transaction 35383774; blocked by process 630416. HINT: See server log for query details. CONTEXT: while updating tuple (295,23) in relation "trailing_stop_position" [SQL: UPDATE trailing_stop_position SET is_active=%(is_active)s, is_triggered=%(is_triggered)s, triggered_at=%(triggered_at)s, trigger_reason=%(trigger_reason)s, updated_at=%(updated_at)s WHERE trailing_stop_position.id = %(trailing_stop_position_id)s] [parameters: {'is_active': False, 'is_triggered': True, 'triggered_at': datetime.datetime(2026, 6, 10, 14, 37, 54, 631769), 'trigger_reason': 'exit_trailing_filled', 'updated_at': datetime.datetime(2026, 6, 10, 14, 37, 54, 632800), 'trailing_stop_position_id': 7141}] (Background on this error at: https://sqlalche.me/e/20/e3q8) (Background on this error at: https://sqlalche.me/e/20/7s2a)
06-10 14:37:55 ERROR position push_event_handlers ❌ Failed to add exit leg to Position via fallback: unsupported format string passed to NoneType.__format__
06-10 14:15:48 ERROR order trailing_stop_scheduler WS-triggered TS check failed for ALAB: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (psycopg2.errors.DeadlockDetected) deadlock detected DETAIL: Process 620404 waits for ShareLock on transaction 35365008; blocked by process 620501. Process 620501 waits for ShareLock on transaction 35365006; blocked by process 620404. HINT: See server log for query details. CONTEXT: while updating tuple (798,1) in relation "order_tracker" [SQL: UPDATE order_tracker SET status=%(status)s, updated_at=%(updated_at)s WHERE order_tracker.id = %(order_tracker_id)s] [parameters: {'status': 'CANCELLED', 'updated_at': datetime.datetime(2026, 6, 10, 14, 15, 47, 404053), 'order_tracker_id': 37491}] (Background on this error at: https://sqlalche.me/e/20/e3q8) (Background on this error at: https://sqlalche.me/e/20/7s2a)
06-10 14:15:48 ERROR order trailing_stop_engine Error logging trailing stop event: (psycopg2.errors.DeadlockDetected) deadlock detected DETAIL: Process 620404 waits for ShareLock on transaction 35365008; blocked by process 620501. Process 620501 waits for ShareLock on transaction 35365006; blocked by process 620404. HINT: See server log for query details. CONTEXT: while updating tuple (798,1) in relation "order_tracker" [SQL: UPDATE order_tracker SET status=%(status)s, updated_at=%(updated_at)s WHERE order_tracker.id = %(order_tracker_id)s] [parameters: {'status': 'CANCELLED', 'updated_at': datetime.datetime(2026, 6, 10, 14, 15, 47, 404053), 'order_tracker_id': 37491}] (Background on this error at: https://sqlalche.me/e/20/e3q8)
06-10 14:15:45 ERROR order order_tracker_service ❌ Error in handle_fill_event for 43542346843047936: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely) (psycopg2.errors.DeadlockDetected) deadlock detected DETAIL: Process 619913 waits for ShareLock on transaction 35364961; blocked by process 620172. Process 620172 waits for ShareLock on transaction 35364972; blocked by process 619913. HINT: See server log for query details. CONTEXT: while updating tuple (357,7) in relation "trailing_stop_position" [SQL: UPDATE trailing_stop_position SET is_active=%(is_active)s, is_triggered=%(is_triggered)s, triggered_at=%(triggered_at)s, trigger_reason=%(trigger_reason)s, updated_at=%(updated_at)s WHERE trailing_stop_position.id = %(trailing_stop_position_id)s] [parameters: {'is_active': False, 'is_triggered': True, 'triggered_at': datetime.datetime(2026, 6, 10, 14, 15, 44, 316504), 'trigger_reason': 'exit_trailing_filled', 'updated_at': datetime.datetime(2026, 6, 10, 14, 15, 44, 318690), 'trailing_stop_position_id': 7134}] (Background on this error at: https://sqlalche.me/e/20/e3q8) (Background on this error at: https://sqlalche.me/e/20/7s2a)
06-10 14:15:45 ERROR order order_tracker_service Error deactivating trailing stop: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely) (psycopg2.errors.DeadlockDetected) deadlock detected DETAIL: Process 619913 waits for ShareLock on transaction 35364961; blocked by process 620172. Process 620172 waits for ShareLock on transaction 35364972; blocked by process 619913. HINT: See server log for query details. CONTEXT: while updating tuple (357,7) in relation "trailing_stop_position" [SQL: UPDATE trailing_stop_position SET is_active=%(is_active)s, is_triggered=%(is_triggered)s, triggered_at=%(triggered_at)s, trigger_reason=%(trigger_reason)s, updated_at=%(updated_at)s WHERE trailing_stop_position.id = %(trailing_stop_position_id)s] [parameters: {'is_active': False, 'is_triggered': True, 'triggered_at': datetime.datetime(2026, 6, 10, 14, 15, 44, 316504), 'trigger_reason': 'exit_trailing_filled', 'updated_at': datetime.datetime(2026, 6, 10, 14, 15, 44, 318690), 'trailing_stop_position_id': 7134}] (Background on this error at: https://sqlalche.me/e/20/e3q8) (Background on this error at: https://sqlalche.me/e/20/7s2a)
06-10 12:34:26 ERROR order order_tracker_service ❌ Error in handle_fill_event for 43541550220199936: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely) (psycopg2.errors.DeadlockDetected) deadlock detected DETAIL: Process 587167 waits for ShareLock on transaction 35307547; blocked by process 585337. Process 585337 waits for ShareLock on transaction 35307548; blocked by process 587167. HINT: See server log for query details. CONTEXT: while updating tuple (363,13) in relation "trailing_stop_position" [SQL: UPDATE trailing_stop_position SET is_active=%(is_active)s, is_triggered=%(is_triggered)s, triggered_at=%(triggered_at)s, trigger_reason=%(trigger_reason)s, updated_at=%(updated_at)s WHERE trailing_stop_position.id = %(trailing_stop_position_id)s] [parameters: {'is_active': False, 'is_triggered': True, 'triggered_at': datetime.datetime(2026, 6, 10, 12, 34, 25, 480323), 'trigger_reason': 'exit_trailing_filled', 'updated_at': datetime.datetime(2026, 6, 10, 12, 34, 25, 481887), 'trailing_stop_position_id': 7110}] (Background on this error at: https://sqlalche.me/e/20/e3q8) (Background on this error at: https://sqlalche.me/e/20/7s2a)
06-10 12:34:26 ERROR order order_tracker_service Error deactivating trailing stop: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely) (psycopg2.errors.DeadlockDetected) deadlock detected DETAIL: Process 587167 waits for ShareLock on transaction 35307547; blocked by process 585337. Process 585337 waits for ShareLock on transaction 35307548; blocked by process 587167. HINT: See server log for query details. CONTEXT: while updating tuple (363,13) in relation "trailing_stop_position" [SQL: UPDATE trailing_stop_position SET is_active=%(is_active)s, is_triggered=%(is_triggered)s, triggered_at=%(triggered_at)s, trigger_reason=%(trigger_reason)s, updated_at=%(updated_at)s WHERE trailing_stop_position.id = %(trailing_stop_position_id)s] [parameters: {'is_active': False, 'is_triggered': True, 'triggered_at': datetime.datetime(2026, 6, 10, 12, 34, 25, 480323), 'trigger_reason': 'exit_trailing_filled', 'updated_at': datetime.datetime(2026, 6, 10, 12, 34, 25, 481887), 'trailing_stop_position_id': 7110}] (Background on this error at: https://sqlalche.me/e/20/e3q8) (Background on this error at: https://sqlalche.me/e/20/7s2a)
06-10 09:02:55 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-10 09:02:50 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-10 09:02:45 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-10 09:02:40 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-10 09:02:35 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-10 09:02:30 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-10 09:02:25 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-10 09:02:20 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-10 09:02:15 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-10 09:02:10 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-10 09:02:05 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-10 09:02:00 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-10 09:01:55 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-10 09:01:50 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-10 09:01:45 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-10 09:01:40 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-10 09:01:35 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__
06-10 09:01:30 ERROR position push_event_handlers ❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__