Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {"payload": {"extensions": {}, "variables": {}}, "type": "subscribe", "id": "1731403723002002"}
- {"payload": {"query": "subscription onMyForceDexOrdersUpdated($userId: BigInt!, $pairId: UUID!) { onMyForceDexOrdersUpdated(userId: $userId, pairId: $pairId) { createdAt direction orderNumber id initialQuantity pairId price quantity status type userId }}", "operationName": "onMyForceDexOrdersUpdated", "extensions": {}, "variables": {"userId": "1245312", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e"}}, "type": "subscribe", "id": "1731403723002003"}
- {"payload": {"query": "subscription onForceDexOrdersBookUpdated($pairId: UUID!) { onForceDexOrdersBookUpdated(pairId: $pairId) { lines { direction quantity price __typename } __typename }}", "operationName": "onForceDexOrdersBookUpdated", "extensions": {}, "variables": {"pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e"}}, "type": "subscribe", "id": "1731403723002001"}
- {"asset": "MATIC", "free": 1.15138, "locked": 0, "wallet": 0, "update_time": 1731403723170}
- {"asset": "HC", "free": 698.16, "locked": 0, "wallet": 0, "update_time": 1731403723170}
- {"asset": "DAI", "free": 954.81, "locked": 0, "wallet": 0, "update_time": 1731403723170}
- feed.at("type").s() != ping{"type": "connection_ack"}
- feed.at("type").s() != ping{"payload": [{"locations": [{"column": "35", "line": "1"}], "message": "The request is missing the \u0060query\u0060 property and the \u0060id\u0060 property."}], "type": "error", "id": "1731403723002002"}
- feed.at("type").s() != ping{"type": "connection_ack"}
- feed.at("type").s() != ping{"type": "connection_ack"}
- [ 2024-11-12-09-28-44 ] MESSAGE: Process tick
- [ 2024-11-12-09-28-44 ] DEBUG best book: {"ask_price": 6.53, "ask_quantity": 67.3776, "bid_price": 6.52, "bid_quantity": 39.2211}
- [ 2024-11-12-09-28-44 ] DEBUG second book: {"ask_price": 6.55, "ask_quantity": 241.704, "bid_price": 6.5, "bid_quantity": 473.877}
- [ 2024-11-12-09-28-44 ] DEBUG : OrderEvent: delta=1.73126e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [], bids: [(6.5, 14.6894); ]
- [ 2024-11-12-09-28-44 ] INFO portfolio: OrderEvent: delta=1.73126e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [], bids: [(6.5, 14.6894); ]
- [ 2024-11-12-09-28-44 ] INFO execution order event process: OrderEvent: delta=1.73126e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [], bids: [(6.5, 14.6894); ]
- [ 2024-11-12-09-28-44 ] MESSAGE: LIMIT GRID
- [ 2024-11-12-09-28-44 ] DEBUG in _process_limit_grid: 6.5
- [ 2024-11-12-09-28-44 ] DEBUG in _process_limit_grid: 14.6894
- [ 2024-11-12-09-28-44 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 6.500000, "quantity": 14.689400, "type": "LIMIT", "side": "BUY"}
- [ 2024-11-12-09-28-44 ] MESSAGE: csize: 0
- index_order_id 6500000000000000000/14689400000000000000/BUY 11006989577484577131
- [New Thread 0x7fff90c00640 (LWP 804522)]
- [ 2024-11-12-09-28-44 ] DEBUG ! new: {"symbol": "HCDAI", "price": 6.500000, "quantity": 14.689400, "client_order_id": 11006989577484577131, "type": "LIMIT", "side": "BUY"}
- ! new api API 0x555555979f30
- order_request_t {"symbol": "HCDAI", "price": 6.500000, "quantity": 14.689400, "client_order_id": 11006989577484577131, "type": "LIMIT", "side": "BUY"}
- quantity 146894
- new_order_wrapper::execute
- {"ext_params": {"timeout": "16000", "priority": "0"}, "params": {"quantity": "14689400000000000000", "price": "6500000000000000000", "orderType": "0", "isBid": "true"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
- 2024/11/12 09:28:44 extends args: {"timeout": "16000", "priority": "0"}
- 2024/11/12 09:28:44 args: {"quantity": "14689400000000000000", "price": "6500000000000000000", "orderType": "0", "isBid": "true"}
- 2024/11/12 09:28:44 waiting time: 0 ; net timeout after waiting = 16000 ms
- 2024/11/12 09:28:44 nonce: 83
- 2024/11/12 09:28:44 gas price = 111822410290
- 2024/11/12 09:28:44 TX Hash: 0x2c54fe90b4c226d2fba36ef7418165bd9f70925583a09cd58827bde0c2ab9c16 ; Nonce: 83
- stream = onForceDexOrdersBookUpdated
- 2024/11/12 09:28:48 timeout_metric -> complete: tx: 0x2c54fe90b4c226d2fba36ef7418165bd9f70925583a09cd58827bde0c2ab9c16 ; exec_time: 4.224442s ; attempt = 0 ; first tx 0x2c54fe90b4c226d2fba36ef7418165bd9f70925583a09cd58827bde0c2ab9c16
- 2024/11/12 09:28:48 golang tx log: {
- tx = 0x2c54fe90b4c226d2fba36ef7418165bd9f70925583a09cd58827bde0c2ab9c16 ok;
- nonce = 83
- status = 1
- block = 64189585
- usedGas = 368103
- exec_time = 4.224484s
- }
- C++ new_order_wrapper response: {"tx_hash": "0x2c54fe90b4c226d2fba36ef7418165bd9f70925583a09cd58827bde0c2ab9c16", "used_gas": "368103", "block": "64189585", "error": "ok"}
- [ 2024-11-12-09-28-48 ] MESSAGE: new order delta: 4924
- [Thread 0x7fff90c00640 (LWP 804522) exited]
- [Thread 0x7ffff4800640 (LWP 804483) exited]
- stream = onForceDexOrdersBookUpdated
- stream = onForceDexOrdersBookUpdated
- get_open_orders_wrapper::request_filler
- auth token: eyJhbG
- {"asset": "MATIC", "free": 1.11022, "locked": 0, "wallet": 0, "update_time": 1731403744315}
- {"asset": "HC", "free": 698.16, "locked": 0, "wallet": 0, "update_time": 1731403744315}
- {"asset": "DAI", "free": 859.329, "locked": 0, "wallet": 0, "update_time": 1731403744315}
- stream = onForceDexOrdersBookUpdated
- stream = onForceDexOrdersBookUpdated
- stream = onMyForceDexOrdersUpdated
- _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245312", "status": "OPEN", "quantity": "14689400000000000000", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "6500000000000000000", "id": "8aa44712-9f25-41d9-80af-ced02ebabf3d", "type": "LIMIT", "orderNumber": "954900", "direction": "BID", "initialQuantity": "14689400000000000000", "createdAt": "2024-11-12T09:28:48.000Z"}}
- start _update_balances
- get_open_orders_wrapper::request_filler
- auth token: eyJhbG
- _fill_order 6500000000000000000/14689400000000000000/BUY 11006989577484577131
- end _update_balances
- stream == e_stream::ACCOUNT_ORDER
- _fill_order 6500000000000000000/14689400000000000000/BUY 11006989577484577131
- WebSocketEvent: delta=1.7314e+11, event_time=1731403728000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337059104, "order": {"symbol": "HCDAI", "coid": 11006989577484577131, {"dex_order_id": "954900", "order_id": "1731403723002003", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 6.500000, "quantity": 14.689400, "filled_quantity": 0.000000, "update_time": 1731403728000}}
- [ 2024-11-12-09-29-19 ] INFO Execution::_process: WebSocketEvent: delta=1.7314e+11, event_time=1731403728000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337059104, "order": {"symbol": "HCDAI", "coid": 11006989577484577131, {"dex_order_id": "954900", "order_id": "1731403723002003", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 6.500000, "quantity": 14.689400, "filled_quantity": 0.000000, "update_time": 1731403728000}}
- [ 2024-11-12-09-29-19 ] MESSAGE: limit
- [ 2024-11-12-09-29-19 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 11006989577484577131, {"dex_order_id": "954900", "order_id": "1731403723002003", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 6.500000, "quantity": 14.689400, "filled_quantity": 0.000000, "update_time": 1731403728000}
- old_it != cur_storage.end()
- [ 2024-11-12-09-29-19 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 11006989577484577131, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 6.500000, "quantity": 14.689400, "update_time": 0}
- [ 2024-11-12-09-29-19 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-11-12-09-29-19 ] MESSAGE: ! HCDAI
- stream = onForceDexOrdersBookUpdated
- get_open_orders_wrapper::request_filler
- auth token: eyJhbG
- _fill_order 6500000000000000000/14689400000000000000/BUY 11006989577484577131
- {"asset": "MATIC", "free": 1.11022, "locked": 0, "wallet": 0, "update_time": 1731403765488}
- {"asset": "HC", "free": 698.16, "locked": 0, "wallet": 0, "update_time": 1731403765488}
- {"asset": "DAI", "free": 859.329, "locked": 14.6894, "wallet": 0, "update_time": 1731403765488}
- stream = onForceDexOrdersBookUpdated
- stream = onForceDexOrdersBookUpdated
- get_open_orders_wrapper::request_filler
- auth token: eyJhbG
- _fill_order 6500000000000000000/14689400000000000000/BUY 11006989577484577131
- {"asset": "MATIC", "free": 1.11022, "locked": 0, "wallet": 0, "update_time": 1731403786638}
- {"asset": "HC", "free": 698.16, "locked": 0, "wallet": 0, "update_time": 1731403786638}
- {"asset": "DAI", "free": 859.329, "locked": 14.6894, "wallet": 0, "update_time": 1731403786638}
- stream = onForceDexOrdersBookUpdated
- stream = onForceDexOrdersBookUpdated
- stream = onForceDexOrdersBookUpdated
- get_open_orders_wrapper::request_filler
- auth token: eyJhbG
- _fill_order 6500000000000000000/14689400000000000000/BUY 11006989577484577131
- {"asset": "MATIC", "free": 1.11022, "locked": 0, "wallet": 0, "update_time": 1731403808197}
- {"asset": "HC", "free": 698.16, "locked": 0, "wallet": 0, "update_time": 1731403808197}
- {"asset": "DAI", "free": 859.329, "locked": 14.6894, "wallet": 0, "update_time": 1731403808197}
- stream = onForceDexOrdersBookUpdated
- [ 2024-11-12-09-30-14 ] MESSAGE: Process order book
- [ 2024-11-12-09-30-14 ] DEBUG best book: {"ask_price": 6.55, "ask_quantity": 241.704, "bid_price": 6.53, "bid_quantity": 189.046}
- [ 2024-11-12-09-30-14 ] DEBUG second book: {"ask_price": 6.57, "ask_quantity": 417.385, "bid_price": 6.51, "bid_quantity": 0}
- [ 2024-11-12-09-30-14 ] DEBUG : OrderEvent: delta=1.73126e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [], bids: [(6.51, 13.4258); ]
- [ 2024-11-12-09-30-14 ] INFO portfolio: OrderEvent: delta=1.73126e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [], bids: [(6.51, 13.4258); ]
- [ 2024-11-12-09-30-14 ] INFO execution order event process: OrderEvent: delta=1.73126e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [], bids: [(6.51, 13.4258); ]
- [ 2024-11-12-09-30-14 ] MESSAGE: LIMIT GRID
- [ 2024-11-12-09-30-14 ] DEBUG in _process_limit_grid: 6.51
- [ 2024-11-12-09-30-14 ] DEBUG in _process_limit_grid: 13.4258
- execution to cancel: id: 11006989577484577131 dex id = 954900 p = 6.500000 q = 14.689400
- [ 2024-11-12-09-30-14 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 6.510000, "quantity": 13.425800, "type": "LIMIT", "side": "BUY"}
- [ 2024-11-12-09-30-14 ] MESSAGE: csize: 1
- [New Thread 0x7fff90c00640 (LWP 804821)]
- [ index_order_id 6510000000000000000/13425800000000000000/BUY 16761958000999727297
- 2024-11-12-09-30-14 ] DEBUG ! cancel: {"symbol": "HCDAI", "coid": 11006989577484577131, {"dex_order_id": "954900", "order_id": "1731403723002003", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 6.500000, "quantity": 14.689400, "filled_quantity": 0.000000, "update_time": 1731403728000}
- cancel_order_wrapper::execute
- [New Thread 0x7fff87e00640 (LWP 804822)]
- [ 2024-11-12-09-30-14 ] DEBUG ! new: {"symbol": "HCDAI", "price": 6.510000, "quantity": 13.425800, "client_order_id": 16761958000999727297, "type": "LIMIT", "side": "BUY"}
- ! new api API 0x555555979f30
- order_request_t {"symbol": "HCDAI", "price": 6.510000, "quantity": 13.425800, "client_order_id": 16761958000999727297, "type": "LIMIT", "side": "BUY"}
- quantity 134258
- 2024/11/12 09:30:14 extends args: {"timeout": "16000"}
- 2024/11/12 09:30:14 args: {"orderId": "954900"}
- 2024/11/12 09:30:14 waiting time: 0 ; net timeout after waiting = 16000 ms
- new_order_wrapper::execute
- {"ext_params": {"timeout": "16000", "priority": "0"}, "params": {"quantity": "13425800000000000000", "price": "6510000000000000000", "orderType": "0", "isBid": "true"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
- 2024/11/12 09:30:14 nonce: 84
- 2024/11/12 09:30:14 gas price = 103803888210
- 2024/11/12 09:30:14 TX Hash: 0x4bf25d62a1f73021f390c19dd961d76068f0cb6d2cd46047ed6944c4a6955432 ; Nonce: 84
- 2024/11/12 09:30:19 timeout_metric -> complete: tx: 0x4bf25d62a1f73021f390c19dd961d76068f0cb6d2cd46047ed6944c4a6955432 ; exec_time: 4.179297s ; attempt = 0 ; first tx 0x4bf25d62a1f73021f390c19dd961d76068f0cb6d2cd46047ed6944c4a6955432
- 2024/11/12 09:30:19 golang tx log: {
- tx = 0x4bf25d62a1f73021f390c19dd961d76068f0cb6d2cd46047ed6944c4a6955432 ok;
- nonce = 84
- status = 1
- block = 64189628
- usedGas = 161269
- exec_time = 4.179335s
- }
- 2024/11/12 09:30:19 extends args: {"timeout": "16000", "priority": "0"}
- 2024/11/12 09:30:19 args: {"quantity": "13425800000000000000", "price": "6510000000000000000", "orderType": "0", "isBid": "true"}
- 2024/11/12 09:30:19 waiting time: 4887 ; net timeout after waiting = 11113 ms
- cancel_order_wrapper::response_filler{"tx_hash": "0x4bf25d62a1f73021f390c19dd961d76068f0cb6d2cd46047ed6944c4a6955432", "used_gas": "161269", "block": "64189628", "error": "ok"}
- [ 2024-11-12-09-30-19 ] MESSAGE: cancel order delta: 4888
- [Thread 0x7fff90c00640 (LWP 804821) exited]
- 2024/11/12 09:30:19 nonce: 85
- 2024/11/12 09:30:19 gas price = 101914784799
- 2024/11/12 09:30:19 TX Hash: 0x82acdf591e1a3f962e09720d99bb2e0813f7016fb4a138d66b32b942e2e8dcd6 ; Nonce: 85
- stream = onForceDexOrdersBookUpdated
- 2024/11/12 09:30:24 timeout_metric -> complete: tx: 0x82acdf591e1a3f962e09720d99bb2e0813f7016fb4a138d66b32b942e2e8dcd6 ; exec_time: 5.178750s ; attempt = 0 ; first tx 0x82acdf591e1a3f962e09720d99bb2e0813f7016fb4a138d66b32b942e2e8dcd6
- 2024/11/12 09:30:24 {
- tx = 0x82acdf591e1a3f962e09720d99bb2e0813f7016fb4a138d66b32b942e2e8dcd6 failed
- exec_time = 5.178797s
- }
- error: unknown tx error
- [ 2024-11-12-09-30-25 ] MESSAGE: new order delta: 10950
- [ 2024-11-12-09-30-25 ] ERROR : new order error: request={"symbol": "HCDAI", "price": 6.510000, "quantity": 13.425800, "client_order_id": 16761958000999727297, "type": "LIMIT", "side": "BUY"} id = 16761958000999727297
- [Thread 0x7fff87e00640 (LWP 804822) exited]
- get_open_orders_wrapper::request_filler
- auth token: eyJhbG
- _fill_order 6500000000000000000/14689400000000000000/BUY 11006989577484577131
- {"asset": "MATIC", "free": 1.04327, "locked": 0, "wallet": 0, "update_time": 1731403829333}
- {"asset": "HC", "free": 698.16, "locked": 0, "wallet": 0, "update_time": 1731403829333}
- {"asset": "DAI", "free": 954.81, "locked": 14.6894, "wallet": 0, "update_time": 1731403829333}
- stream = onForceDexOrdersBookUpdated
- stream = onForceDexOrdersBookUpdated
- stream = onMyForceDexOrdersUpdated
- _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245312", "status": "CANCELLED", "quantity": "14689400000000000000", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "6500000000000000000", "id": "8aa44712-9f25-41d9-80af-ced02ebabf3d", "type": "LIMIT", "orderNumber": "954900", "direction": "BID", "initialQuantity": "14689400000000000000", "createdAt": "2024-11-12T09:28:48.000Z"}}
- start _update_balances
- get_open_orders_wrapper::request_filler
- auth token: eyJhbG
- end _update_balances
- stream == e_stream::ACCOUNT_ORDER
- _fill_order 6500000000000000000/14689400000000000000/BUY 11006989577484577131
- WebSocketEvent: delta=1.7314e+11, event_time=1731403728000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337059104, "order": {"symbol": "HCDAI", "coid": 11006989577484577131, {"dex_order_id": "954900", "order_id": "1731403723002003", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 6.500000, "quantity": 14.689400, "filled_quantity": 0.000000, "update_time": 1731403728000}}
- [ 2024-11-12-09-30-47 ] INFO Execution::_process: WebSocketEvent: delta=1.7314e+11, event_time=1731403728000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337059104, "order": {"symbol": "HCDAI", "coid": 11006989577484577131, {"dex_order_id": "954900", "order_id": "1731403723002003", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 6.500000, "quantity": 14.689400, "filled_quantity": 0.000000, "update_time": 1731403728000}}
- [ 2024-11-12-09-30-47 ] MESSAGE: limit
- [ 2024-11-12-09-30-47 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 11006989577484577131, {"dex_order_id": "954900", "order_id": "1731403723002003", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 6.500000, "quantity": 14.689400, "filled_quantity": 0.000000, "update_time": 1731403728000}
- old_it != cur_storage.end()
- [ 2024-11-12-09-30-47 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 11006989577484577131, {"dex_order_id": "954900", "order_id": "1731403723002003", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 6.500000, "quantity": 14.689400, "filled_quantity": 0.000000, "update_time": 1731403728000}
- [ 2024-11-12-09-30-47 ] MESSAGE: erase
- [ 2024-11-12-09-30-47 ] MESSAGE: ! HCDAI
- stream = onForceDexOrdersBookUpdated
- get_open_orders_wrapper::request_filler
- auth token: eyJhbG
- {"asset": "MATIC", "free": 1.04327, "locked": 0, "wallet": 0, "update_time": 1731403850471}
- {"asset": "HC", "free": 698.16, "locked": 0, "wallet": 0, "update_time": 1731403850471}
- {"asset": "DAI", "free": 954.81, "locked": 0, "wallet": 0, "update_time": 1731403850471}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement