| 06-16 17:42:30 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 17:42:25 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 17:42:20 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 17:42:15 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 17:42:10 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 17:42:05 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 17:42:00 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 17:41:55 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 17:41:50 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 17:41:45 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 17:41:40 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 17:41:35 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 17:41:30 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 17:41:25 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 17:41:21 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 17:41:15 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 17:41:10 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 17:41:05 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 17:41:00 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 17:40:55 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 17:04:32 |
ERROR
|
order |
|
routes |
Exit analysis error: (psycopg2.errors.InvalidTextRepresentation) invalid input value for enum positionstatus: "closed"
LINE 12: AND p.status = 'closed'
^
[SQL:
SELECT
COALESCE(esr.exit_method, 'unknown') AS exit_method,
COUNT(*) AS cnt,
AVG(esr.contribution_pct) AS avg_pnl_pct,
SUM(esr.contribution_pnl) AS total_pnl,
COUNT(*) FILTER (WHERE esr.contribution_pnl > 0) AS wins,
AVG(esr.hold_duration_seconds) / 60.0 AS avg_hold_mins
FROM entry_signal_record esr
JOIN position p ON p.id = esr.position_id
WHERE p.account_type = %(account_type)s
AND p.status = 'closed'
AND p.closed_at >= %(cutoff)s
AND esr.contribution_pnl IS NOT NULL
GROUP BY esr.exit_method
ORDER BY cnt DESC
]
[parameters: {'account_type': 'real', 'cutoff': datetime.datetime(2026, 3, 18, 17, 4, 32, 809002)}]
(Background on this error at: https://sqlalche.me/e/20/9h9h) |
| 06-16 14:55:15 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to add exit leg to Position via fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 14:31:51 |
ERROR
|
order |
|
order_tracker_service |
❌ Error in handle_fill_event for 43610421226507264: 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 2839894 waits for ExclusiveLock on tuple (128,16) of relation 138633 of database 138157; blocked by process 2840029.
Process 2840029 waits for ShareLock on transaction 39384355; blocked by process 2840416.
Process 2840416 waits for ShareLock on transaction 39384359; blocked by process 2839894.
HINT: See server log for query details.
[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, 16, 14, 31, 50, 436008), 'trigger_reason': 'exit_trailing_filled', 'updated_at': datetime.datetime(2026, 6, 16, 14, 31, 50, 461501), 'trailing_stop_position_id': 7393}]
(Background on this error at: https://sqlalche.me/e/20/e3q8) (Background on this error at: https://sqlalche.me/e/20/7s2a) |
| 06-16 14:31:51 |
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 2839894 waits for ExclusiveLock on tuple (128,16) of relation 138633 of database 138157; blocked by process 2840029.
Process 2840029 waits for ShareLock on transaction 39384355; blocked by process 2840416.
Process 2840416 waits for ShareLock on transaction 39384359; blocked by process 2839894.
HINT: See server log for query details.
[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, 16, 14, 31, 50, 436008), 'trigger_reason': 'exit_trailing_filled', 'updated_at': datetime.datetime(2026, 6, 16, 14, 31, 50, 461501), 'trailing_stop_position_id': 7393}]
(Background on this error at: https://sqlalche.me/e/20/e3q8) (Background on this error at: https://sqlalche.me/e/20/7s2a) |
| 06-16 11:20:15 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:20:10 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:20:05 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:20:00 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:19:55 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:19:50 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:19:45 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:19:40 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:19:35 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:19:30 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:19:25 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:19:20 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:19:15 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:19:10 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:19:05 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:19:00 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:18:55 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:18:50 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:18:45 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:18:40 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:18:35 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:18:30 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:18:25 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:18:20 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:18:15 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:18:10 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:18:05 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:18:00 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:17:55 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:17:50 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:17:45 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:17:41 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:17:35 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:17:30 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:17:25 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:17:20 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:17:15 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:17:10 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:17:05 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:17:00 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:16:55 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:16:50 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:16:45 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:16:40 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:16:36 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:16:30 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:16:25 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:16:20 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:16:15 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:16:10 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:16:05 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:16:01 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:15:55 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:15:50 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:15:45 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:15:40 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:15:35 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:15:30 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:15:25 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |
| 06-16 11:15:20 |
ERROR
|
position |
|
push_event_handlers |
❌ Failed to close Position via no-TS fallback: unsupported format string passed to NoneType.__format__ |