| 02-18 22:41:52 |
ERROR
|
error |
|
tiger_client |
Error getting bars for OKLO: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
|
tiger_client |
Error getting bars for MSTR: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
|
tiger_client |
Error getting bars for MP: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
|
tiger_client |
Error getting bars for HOOD: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
CRCL |
tiger_client |
Error getting bars for CRCL: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
COIN |
tiger_client |
Error getting bars for COIN: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
|
tiger_client |
Error getting bars for STM: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
|
tiger_client |
Error getting bars for MCHP: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
STX |
tiger_client |
Error getting bars for STX: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
|
tiger_client |
Error getting bars for WDC: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
|
tiger_client |
Error getting bars for MRVL: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
INFO
|
order |
|
trailing_stop_scheduler |
[KlineScheduler] Startup backfill complete |
| 02-18 22:41:52 |
ERROR
|
error |
|
tiger_client |
Error getting bars for NFLX: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
|
tiger_client |
Error getting bars for CRWV: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
|
tiger_client |
Error getting bars for SMH: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
|
tiger_client |
Error getting bars for SNDK: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
|
tiger_client |
Error getting bars for SOXX: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
|
tiger_client |
Error getting bars for ON: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
|
tiger_client |
Error getting bars for ENTG: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
|
tiger_client |
Error getting bars for SYNA: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
|
tiger_client |
Error getting bars for CRDO: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
|
tiger_client |
Error getting bars for TEM: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
TSM |
tiger_client |
Error getting bars for TSM: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
|
tiger_client |
Error getting bars for GFS: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
|
tiger_client |
Error getting bars for LRCX: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
LSCC |
tiger_client |
Error getting bars for LSCC: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
|
tiger_client |
Error getting bars for AMAT: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
|
tiger_client |
Error getting bars for NXPI: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
|
tiger_client |
Error getting bars for ATOM: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
|
tiger_client |
Error getting bars for ORCL: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
|
tiger_client |
Error getting bars for OKLO: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
|
tiger_client |
Error getting bars for REMX: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
|
tiger_client |
Error getting bars for MSTR: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
|
tiger_client |
Error getting bars for EQIX: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
|
tiger_client |
Error getting bars for MP: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
|
tiger_client |
Error getting bars for CIEN: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
|
tiger_client |
Error getting bars for HOOD: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
CRCL |
tiger_client |
Error getting bars for CRCL: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
COIN |
tiger_client |
Error getting bars for COIN: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:52 |
ERROR
|
error |
|
tiger_client |
Error getting bars for STM: code=4 msg=5:rate limit error(current limiting interface:kline, up to 60 times per minute) |
| 02-18 22:41:49 |
INFO
|
order |
|
trailing_stop_scheduler |
[KlineScheduler] Startup backfill complete |
| 02-18 22:41:35 |
INFO
|
websocket |
|
tiger_push_client |
📊 Subscribe callback: command: MESSAGE
id: 6
code: 112
msg: "{\"code\":4000, \"message\":\"permission denied(Current user and device do not have permissions in the US market)\"}"
body {
dataType: Quote
}
|
| 02-18 22:41:35 |
INFO
|
websocket |
|
root |
📊 Tiger WebSocket push client initialized |
| 02-18 22:41:35 |
INFO
|
position |
AMD |
tiger_push_client |
📊 Subscribed to quotes for 57 symbols (positions + watchlist): ['SMH', 'META', 'CRDO', 'TEM', 'MRVL', 'ALAB', 'CRWV', 'SNDK', 'MP', 'TXN', 'VST', 'TSLA', 'RKLB', 'AMD', 'LRCX', 'COIN', 'HOOD', 'AAPL', 'TSLL', 'SLAB', 'AMAT', 'AMZN', 'ENTG', 'SOXL', 'TSM', 'WDC', 'MCHP', 'SOXX', 'LSCC', 'INTC', 'STX', 'CIEN', 'MTSI', 'STM', 'CRCL', 'NVDA', 'EQIX', 'SYNA', 'NXPI', 'MSFT', 'QCOM', 'GFS', 'ORCL', 'ON', 'USAR', 'REMX', 'AVGO', 'GOOG', 'SLB', 'ASTS', 'ANET', 'MU', 'OKLO', 'ARM', 'MSTR', 'NFLX', 'ATOM'] |
| 02-18 22:41:35 |
INFO
|
websocket |
AMD |
tiger_push_client |
📊 Subscribed to quotes: ['SMH', 'META', 'CRDO', 'TEM', 'MRVL', 'ALAB', 'CRWV', 'SNDK', 'MP', 'TXN', 'VST', 'TSLA', 'RKLB', 'AMD', 'LRCX', 'COIN', 'HOOD', 'AAPL', 'TSLL', 'SLAB', 'AMAT', 'AMZN', 'ENTG', 'SOXL', 'TSM', 'WDC', 'MCHP', 'SOXX', 'LSCC', 'INTC', 'STX', 'CIEN', 'MTSI', 'STM', 'CRCL', 'NVDA', 'EQIX', 'SYNA', 'NXPI', 'MSFT', 'QCOM', 'GFS', 'ORCL', 'ON', 'USAR', 'REMX', 'AVGO', 'GOOG', 'SLB', 'ASTS', 'ANET', 'MU', 'OKLO', 'ARM', 'MSTR', 'NFLX', 'ATOM'] |
| 02-18 22:41:35 |
INFO
|
general |
|
tiger_push_client |
📊 Watchlist has 57 active symbols |
| 02-18 22:41:35 |
INFO
|
position |
|
tiger_push_client |
📊 Found 1 paper account positions, cached for fallback |
| 02-18 22:41:35 |
INFO
|
position |
|
tiger_client |
Position: NFLX, Qty: 10, Cost: 78.227 |
| 02-18 22:41:34 |
INFO
|
position |
|
tiger_client |
Getting positions for symbol: all |
| 02-18 22:41:34 |
INFO
|
position |
|
tiger_push_client |
📊 Subscribe callback: command: MESSAGE
id: 5
code: 112
body {
dataType: Position
}
|
| 02-18 22:41:34 |
INFO
|
order |
|
tiger_push_client |
📊 Subscribe callback: command: MESSAGE
id: 4
code: 112
body {
dataType: OrderStatus
}
|
| 02-18 22:41:34 |
INFO
|
position |
|
tiger_push_client |
📊 Subscribe callback: command: MESSAGE
id: 3
code: 112
msg: "{\"code\":0,\"message\":\"success\"}"
body {
dataType: Position
}
|
| 02-18 22:41:34 |
INFO
|
position |
|
tiger_push_client |
📊 Found 1 real account positions, cached for fallback |
| 02-18 22:41:34 |
INFO
|
position |
|
tiger_client |
Position: NFLX, Qty: 4, Cost: 77.9465 |
| 02-18 22:41:34 |
INFO
|
position |
|
tiger_client |
Getting positions for symbol: all |
| 02-18 22:41:34 |
INFO
|
order |
|
tiger_push_client |
📊 Subscribe callback: command: MESSAGE
id: 2
code: 112
msg: "{\"code\":0,\"message\":\"success\"}"
body {
dataType: OrderStatus
}
|
| 02-18 22:41:34 |
ERROR
|
error |
|
tiger_push_client |
❌ Tiger Push Client error: command: ERROR
id: 0
code: 4001
msg: "kick out by a new connection"
|
| 02-18 22:41:34 |
INFO
|
position |
|
tiger_push_client |
📊 Subscribed to position changes for account 21994480083284213 (request_id=5) |
| 02-18 22:41:34 |
INFO
|
order |
|
tiger_push_client |
📊 Subscribed to order changes for account 21994480083284213 (request_id=4) |
| 02-18 22:41:34 |
INFO
|
position |
|
tiger_push_client |
📊 Subscribed to position changes for ALL accounts (request_id=3) |
| 02-18 22:41:34 |
INFO
|
order |
|
tiger_push_client |
📊 Subscribed to order changes for ALL accounts (request_id=2) |
| 02-18 22:41:34 |
INFO
|
websocket |
|
tiger_push_client |
📊 Registered WebSocket event handlers |
| 02-18 22:41:34 |
INFO
|
websocket |
|
tiger_push_client |
✅ Tiger Push Client connected successfully |
| 02-18 22:41:27 |
WARN
|
general |
|
root |
could not connect to host openapi.tradeup.com, port 9983 |
| 02-18 22:41:09 |
WARN
|
general |
|
root |
could not connect to host openapi.tradeup.com, port 9983 |
| 02-18 22:41:05 |
INFO
|
websocket |
|
tiger_push_client |
📊 Subscribe callback: command: MESSAGE
id: 6
code: 112
msg: "{\"code\":4000, \"message\":\"permission denied(Current user and device do not have permissions in the US market)\"}"
body {
dataType: Quote
}
|
| 02-18 22:41:05 |
INFO
|
websocket |
|
root |
📊 Tiger WebSocket push client initialized |
| 02-18 22:41:05 |
INFO
|
position |
AMD |
tiger_push_client |
📊 Subscribed to quotes for 57 symbols (positions + watchlist): ['MCHP', 'VST', 'GFS', 'AMD', 'ANET', 'SLB', 'TEM', 'AVGO', 'MRVL', 'RKLB', 'AMZN', 'EQIX', 'ATOM', 'REMX', 'SOXX', 'ASTS', 'NVDA', 'OKLO', 'HOOD', 'SNDK', 'ON', 'META', 'TXN', 'NXPI', 'CIEN', 'ALAB', 'STX', 'AMAT', 'COIN', 'TSLL', 'AAPL', 'ENTG', 'INTC', 'ARM', 'LRCX', 'GOOG', 'CRWV', 'MSTR', 'SOXL', 'QCOM', 'CRDO', 'CRCL', 'SMH', 'LSCC', 'MSFT', 'SYNA', 'SLAB', 'TSM', 'MP', 'WDC', 'STM', 'NFLX', 'ORCL', 'MTSI', 'USAR', 'TSLA', 'MU'] |
| 02-18 22:41:05 |
INFO
|
websocket |
AMD |
tiger_push_client |
📊 Subscribed to quotes: ['MCHP', 'VST', 'GFS', 'AMD', 'ANET', 'SLB', 'TEM', 'AVGO', 'MRVL', 'RKLB', 'AMZN', 'EQIX', 'ATOM', 'REMX', 'SOXX', 'ASTS', 'NVDA', 'OKLO', 'HOOD', 'SNDK', 'ON', 'META', 'TXN', 'NXPI', 'CIEN', 'ALAB', 'STX', 'AMAT', 'COIN', 'TSLL', 'AAPL', 'ENTG', 'INTC', 'ARM', 'LRCX', 'GOOG', 'CRWV', 'MSTR', 'SOXL', 'QCOM', 'CRDO', 'CRCL', 'SMH', 'LSCC', 'MSFT', 'SYNA', 'SLAB', 'TSM', 'MP', 'WDC', 'STM', 'NFLX', 'ORCL', 'MTSI', 'USAR', 'TSLA', 'MU'] |
| 02-18 22:41:05 |
INFO
|
general |
|
tiger_push_client |
📊 Watchlist has 57 active symbols |
| 02-18 22:41:05 |
INFO
|
position |
|
tiger_push_client |
📊 Found 1 paper account positions, cached for fallback |
| 02-18 22:41:05 |
INFO
|
position |
|
tiger_client |
Position: NFLX, Qty: 10, Cost: 78.227 |
| 02-18 22:41:05 |
INFO
|
position |
|
tiger_client |
Getting positions for symbol: all |
| 02-18 22:41:05 |
INFO
|
position |
|
tiger_push_client |
📊 Subscribe callback: command: MESSAGE
id: 5
code: 112
body {
dataType: Position
}
|
| 02-18 22:41:05 |
INFO
|
order |
|
tiger_push_client |
📊 Subscribe callback: command: MESSAGE
id: 4
code: 112
body {
dataType: OrderStatus
}
|
| 02-18 22:41:05 |
INFO
|
position |
|
tiger_push_client |
📊 Subscribe callback: command: MESSAGE
id: 3
code: 112
msg: "{\"code\":0,\"message\":\"success\"}"
body {
dataType: Position
}
|
| 02-18 22:41:04 |
INFO
|
order |
|
tiger_push_client |
📊 Subscribe callback: command: MESSAGE
id: 2
code: 112
msg: "{\"code\":0,\"message\":\"success\"}"
body {
dataType: OrderStatus
}
|
| 02-18 22:41:04 |
INFO
|
position |
|
tiger_push_client |
📊 Found 1 real account positions, cached for fallback |
| 02-18 22:41:04 |
INFO
|
position |
|
tiger_client |
Position: NFLX, Qty: 4, Cost: 77.9465 |
| 02-18 22:41:04 |
INFO
|
position |
|
tiger_client |
Getting positions for symbol: all |
| 02-18 22:41:04 |
INFO
|
position |
|
tiger_push_client |
📊 Subscribed to position changes for account 21994480083284213 (request_id=5) |
| 02-18 22:41:04 |
INFO
|
order |
|
tiger_push_client |
📊 Subscribed to order changes for account 21994480083284213 (request_id=4) |
| 02-18 22:41:04 |
INFO
|
position |
|
tiger_push_client |
📊 Subscribed to position changes for ALL accounts (request_id=3) |
| 02-18 22:41:04 |
INFO
|
order |
|
tiger_push_client |
📊 Subscribed to order changes for ALL accounts (request_id=2) |
| 02-18 22:41:04 |
INFO
|
websocket |
|
tiger_push_client |
📊 Registered WebSocket event handlers |
| 02-18 22:41:04 |
INFO
|
websocket |
|
tiger_push_client |
✅ Tiger Push Client connected successfully |
| 02-18 22:41:00 |
WARN
|
general |
|
root |
could not connect to host openapi.tradeup.com, port 9983 |
| 02-18 22:40:56 |
ERROR
|
order |
|
order_tracker_service |
❌ Error in handle_fill_event for 42277739866882048: Failed to create Position for NFLX paper 2026-02-18 after 5 attempts |
| 02-18 22:40:56 |
WARN
|
trailing_stop |
|
position_service |
🔁 Position key collision for NFLX_2026-02-18_1 (paper), retrying with next sequence: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "ix_position_position_key"
DETAIL: Key (position_key)=(NFLX_2026-02-18_1) already exists.
[SQL: INSERT INTO position (position_key, symbol, account_type, trade_date, sequence_number, side, status, total_entry_quantity, total_exit_quantity, avg_entry_price, avg_exit_price, realized_pnl, commission, trailing_stop_id, opened_at, closed_at, created_at, updated_at) VALUES (%(position_key)s, %(symbol)s, %(account_type)s, %(trade_date)s, %(sequence_number)s, %(side)s, %(status)s, %(total_entry_quantity)s, %(total_exit_quantity)s, %(avg_entry_price)s, %(avg_exit_price)s, %(realized_pnl)s, %(commission)s, %(trailing_stop_id)s, %(opened_at)s, %(closed_at)s, %(created_at)s, %(updated_at)s) RETURNING position.id]
[parameters: {'position_key': 'NFLX_2026-02-18_1', 'symbol': 'NFLX', 'account_type': 'paper', 'trade_date': datetime.date(2026, 2, 18), 'sequence_number': 1, 'side': 'long', 'status': 'OPEN', 'total_entry_quantity': 0, 'total_exit_quantity': 0, 'avg_entry_price': None, 'avg_exit_price': None, 'realized_pnl': None, 'commission': None, 'trailing_stop_id': None, 'opened_at': datetime.datetime(2026, 2, 18, 22, 40, 56, 114023), 'closed_at': None, 'created_at': datetime.datetime(2026, 2, 18, 22, 40, 56, 150316), 'updated_at': datetime.datetime(2026, 2, 18, 22, 40, 56, 150323)}]
(Background on this error at: https://sqlalche.me/e/20/gkpj) |
| 02-18 22:40:56 |
WARN
|
trailing_stop |
|
position_service |
🔁 Position key collision for NFLX_2026-02-18_1 (paper), retrying with next sequence: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "ix_position_position_key"
DETAIL: Key (position_key)=(NFLX_2026-02-18_1) already exists.
[SQL: INSERT INTO position (position_key, symbol, account_type, trade_date, sequence_number, side, status, total_entry_quantity, total_exit_quantity, avg_entry_price, avg_exit_price, realized_pnl, commission, trailing_stop_id, opened_at, closed_at, created_at, updated_at) VALUES (%(position_key)s, %(symbol)s, %(account_type)s, %(trade_date)s, %(sequence_number)s, %(side)s, %(status)s, %(total_entry_quantity)s, %(total_exit_quantity)s, %(avg_entry_price)s, %(avg_exit_price)s, %(realized_pnl)s, %(commission)s, %(trailing_stop_id)s, %(opened_at)s, %(closed_at)s, %(created_at)s, %(updated_at)s) RETURNING position.id]
[parameters: {'position_key': 'NFLX_2026-02-18_1', 'symbol': 'NFLX', 'account_type': 'paper', 'trade_date': datetime.date(2026, 2, 18), 'sequence_number': 1, 'side': 'long', 'status': 'OPEN', 'total_entry_quantity': 0, 'total_exit_quantity': 0, 'avg_entry_price': None, 'avg_exit_price': None, 'realized_pnl': None, 'commission': None, 'trailing_stop_id': None, 'opened_at': datetime.datetime(2026, 2, 18, 22, 40, 56, 114023), 'closed_at': None, 'created_at': datetime.datetime(2026, 2, 18, 22, 40, 56, 143126), 'updated_at': datetime.datetime(2026, 2, 18, 22, 40, 56, 143133)}]
(Background on this error at: https://sqlalche.me/e/20/gkpj) |
| 02-18 22:40:56 |
WARN
|
trailing_stop |
|
position_service |
🔁 Position key collision for NFLX_2026-02-18_1 (paper), retrying with next sequence: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "ix_position_position_key"
DETAIL: Key (position_key)=(NFLX_2026-02-18_1) already exists.
[SQL: INSERT INTO position (position_key, symbol, account_type, trade_date, sequence_number, side, status, total_entry_quantity, total_exit_quantity, avg_entry_price, avg_exit_price, realized_pnl, commission, trailing_stop_id, opened_at, closed_at, created_at, updated_at) VALUES (%(position_key)s, %(symbol)s, %(account_type)s, %(trade_date)s, %(sequence_number)s, %(side)s, %(status)s, %(total_entry_quantity)s, %(total_exit_quantity)s, %(avg_entry_price)s, %(avg_exit_price)s, %(realized_pnl)s, %(commission)s, %(trailing_stop_id)s, %(opened_at)s, %(closed_at)s, %(created_at)s, %(updated_at)s) RETURNING position.id]
[parameters: {'position_key': 'NFLX_2026-02-18_1', 'symbol': 'NFLX', 'account_type': 'paper', 'trade_date': datetime.date(2026, 2, 18), 'sequence_number': 1, 'side': 'long', 'status': 'OPEN', 'total_entry_quantity': 0, 'total_exit_quantity': 0, 'avg_entry_price': None, 'avg_exit_price': None, 'realized_pnl': None, 'commission': None, 'trailing_stop_id': None, 'opened_at': datetime.datetime(2026, 2, 18, 22, 40, 56, 114023), 'closed_at': None, 'created_at': datetime.datetime(2026, 2, 18, 22, 40, 56, 136622), 'updated_at': datetime.datetime(2026, 2, 18, 22, 40, 56, 136629)}]
(Background on this error at: https://sqlalche.me/e/20/gkpj) |
| 02-18 22:40:56 |
WARN
|
trailing_stop |
|
position_service |
🔁 Position key collision for NFLX_2026-02-18_1 (paper), retrying with next sequence: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "ix_position_position_key"
DETAIL: Key (position_key)=(NFLX_2026-02-18_1) already exists.
[SQL: INSERT INTO position (position_key, symbol, account_type, trade_date, sequence_number, side, status, total_entry_quantity, total_exit_quantity, avg_entry_price, avg_exit_price, realized_pnl, commission, trailing_stop_id, opened_at, closed_at, created_at, updated_at) VALUES (%(position_key)s, %(symbol)s, %(account_type)s, %(trade_date)s, %(sequence_number)s, %(side)s, %(status)s, %(total_entry_quantity)s, %(total_exit_quantity)s, %(avg_entry_price)s, %(avg_exit_price)s, %(realized_pnl)s, %(commission)s, %(trailing_stop_id)s, %(opened_at)s, %(closed_at)s, %(created_at)s, %(updated_at)s) RETURNING position.id]
[parameters: {'position_key': 'NFLX_2026-02-18_1', 'symbol': 'NFLX', 'account_type': 'paper', 'trade_date': datetime.date(2026, 2, 18), 'sequence_number': 1, 'side': 'long', 'status': 'OPEN', 'total_entry_quantity': 0, 'total_exit_quantity': 0, 'avg_entry_price': None, 'avg_exit_price': None, 'realized_pnl': None, 'commission': None, 'trailing_stop_id': None, 'opened_at': datetime.datetime(2026, 2, 18, 22, 40, 56, 114023), 'closed_at': None, 'created_at': datetime.datetime(2026, 2, 18, 22, 40, 56, 130256), 'updated_at': datetime.datetime(2026, 2, 18, 22, 40, 56, 130263)}]
(Background on this error at: https://sqlalche.me/e/20/gkpj) |
| 02-18 22:40:56 |
WARN
|
trailing_stop |
|
position_service |
🔁 Position key collision for NFLX_2026-02-18_1 (paper), retrying with next sequence: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "ix_position_position_key"
DETAIL: Key (position_key)=(NFLX_2026-02-18_1) already exists.
[SQL: INSERT INTO position (position_key, symbol, account_type, trade_date, sequence_number, side, status, total_entry_quantity, total_exit_quantity, avg_entry_price, avg_exit_price, realized_pnl, commission, trailing_stop_id, opened_at, closed_at, created_at, updated_at) VALUES (%(position_key)s, %(symbol)s, %(account_type)s, %(trade_date)s, %(sequence_number)s, %(side)s, %(status)s, %(total_entry_quantity)s, %(total_exit_quantity)s, %(avg_entry_price)s, %(avg_exit_price)s, %(realized_pnl)s, %(commission)s, %(trailing_stop_id)s, %(opened_at)s, %(closed_at)s, %(created_at)s, %(updated_at)s) RETURNING position.id]
[parameters: {'position_key': 'NFLX_2026-02-18_1', 'symbol': 'NFLX', 'account_type': 'paper', 'trade_date': datetime.date(2026, 2, 18), 'sequence_number': 1, 'side': 'long', 'status': 'OPEN', 'total_entry_quantity': 0, 'total_exit_quantity': 0, 'avg_entry_price': None, 'avg_exit_price': None, 'realized_pnl': None, 'commission': None, 'trailing_stop_id': None, 'opened_at': datetime.datetime(2026, 2, 18, 22, 40, 56, 114023), 'closed_at': None, 'created_at': datetime.datetime(2026, 2, 18, 22, 40, 56, 123557), 'updated_at': datetime.datetime(2026, 2, 18, 22, 40, 56, 123567)}]
(Background on this error at: https://sqlalche.me/e/20/gkpj) |
| 02-18 22:40:56 |
INFO
|
order |
|
order_tracker_service |
📋 Order 42277739866882048 FILLED (source=polling): NFLX entry qty=10 price=$77.93 pnl=$0.00 |
| 02-18 22:40:56 |
INFO
|
order |
|
tiger_client |
Order 42277739866882048 Tiger data: avgFillPrice=77.929, filledQuantity=10, totalQuantity=10, realizedPnl=0, commission=2.98, reason=, order_type=LMT, outside_rth=True |
| 02-18 22:40:56 |
INFO
|
order |
|
tiger_client |
Order 42277739866882048 available attributes: ['account', 'action', 'active', 'adjust_limit', 'algo_params', 'algo_strategy', 'attr_desc', 'attr_list', 'aux_price', 'avg_fill_price', 'can_modify', 'charges', 'combo_type', 'combo_type_desc', 'commission', 'contract', 'contract_legs', 'discount', 'expire_time', 'external_id', 'filled', 'filled_cash_amount', 'filled_scale', 'gst', 'id', 'is_open', 'is_partially_filled', 'latest_price', 'limit_price', 'liquidation', 'order_id', 'order_legs', 'order_time', 'order_type', 'orders', 'outside_rth', 'parent_id', 'percent_offset', 'quantity', 'quantity_scale', 'realized_pnl', 'reason', 'refund_cash_amount', 'remaining', 'secret_key', 'source', 'status', 'sub_ids', 'time_in_force', 'to_dict', 'total_cash_amount', 'trade_time', 'trading_session_type', 'trail_stop_price', 'trailing_percent', 'update_time', 'user_mark'] |
| 02-18 22:40:55 |
INFO
|
order |
|
tiger_client |
Retrieved 0 filled orders |
| 02-18 22:40:55 |
INFO
|
order |
|
tiger_client |
Getting filled orders from 2026-02-17 to 2026-02-18 |
| 02-18 22:40:55 |
INFO
|
order |
|
tiger_client |
Retrieved 2 filled orders |
| 02-18 22:40:54 |
INFO
|
order |
|
tiger_client |
Getting filled orders from 2026-02-17 to 2026-02-18 |