Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {"type": "FORCE_DEX", "txIndex": "0", "name": "HC/DAI", "baseAsset": "0x762d3d096b9a74f4d3adf2b0824456ef8fce5daa", "baseAssetDecimals": "18", "quoteAssetDecimals": "18", "chainId": "matic", "createdAt": "0001-01-01T00:00:00.000Z", "deployedBlock": "59522571", "updatedAt": "2024-11-21T07:45:26.151Z", "txHash": "0x306571d8352b418b85a88243349ea726074e68360603982196c46eeff8dbc9e0", "address": "0x6b965968fbc6ff0d2ed7cb1cb38c1c1bbe0327b4", "lastSyncedBlock": "64546736", "id": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "quoteAsset": "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063", "symbol": "HCDAI"}
- {"userId": "1245312", "error": "ok"}
- user_id: 1245312
- authentification was completed
- API 0x562f2b158f80
- run forever balance 0x562f2b158f80
- get_open_orders_wrapper::request_filler
- auth token: eyJhbG
- {"type": "DEX", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "MATIC", "free": 490.887, "locked": 0, "wallet": 0, "update_time": 1732175135581}, {"asset": "HC", "free": 725.465, "locked": 0, "wallet": 0, "update_time": 1732175135581}, {"asset": "DAI", "free": 740.353, "locked": 0, "wallet": 0, "update_time": 1732175135581}]}
- get balance indicator 0x562f2b159120
- trader {"symbol": "HCDAI", "account": "MFS_1", "market": "MFS_DEX", "logger": {"severity_level": "DEBUG"}, "execution": {"print_ws_events": "1", "cancel_on_start": "0", "timeout": "30000"}, "data": {"print_ws_events": "0", "use_part_depth": "true", "events": ["ORDER_BOOK", "TICK"]}}
- >:)
- auth token: eyJhbG
- get_open_orders_wrapper::request_filler
- auth token: eyJhbG
- Execution was constructed
- Trader was created
- subscription stream: ACCOUNT_BALANCE
- no account balance subscription
- subscription stream: PART_DEPTH
- subscription stream: TICK
- mfs api run ws: tick
- subscription stream: ACCOUNT_ORDER
- subscription stream: ACCOUNT_TRADE
- get_open_orders_wrapper::request_filler
- auth token: eyJhbG
- {"payload": {"extensions": {}, "variables": {}}, "type": "subscribe", "id": "1732175136408002"}
- {"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": "1732175136408001"}
- {"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": "1732175136408003"}
- {"asset": "MATIC", "free": 490.887, "locked": 0, "wallet": 0, "update_time": 1732175136648}
- {"asset": "HC", "free": 725.465, "locked": 0, "wallet": 0, "update_time": 1732175136648}
- {"asset": "DAI", "free": 740.353, "locked": 0, "wallet": 0, "update_time": 1732175136648}
- feed.at("type").s() != ping{"type": "connection_ack"}
- 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": "1732175136408002"}
- feed.at("type").s() != ping{"type": "connection_ack"}
- [ 2024-11-21-07-45-37 ] MESSAGE: Tiiick
- [ 2024-11-21-07-45-37 ] DEBUG : {"ask_price": 7.1, "ask_quantity": 614.013, "bid_price": 7.09, "bid_quantity": 167.128}
- [ 2024-11-21-07-45-37 ] DEBUG : OrderEvent: delta=1.73204e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(3.12, 3); ], bids: []
- [ 2024-11-21-07-45-37 ] INFO portfolio: OrderEvent: delta=1.73204e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(3.12, 3); ], bids: []
- [ 2024-11-21-07-45-37 ] INFO execution order event process: OrderEvent: delta=1.73204e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(3.12, 3); ], bids: []
- [ 2024-11-21-07-45-37 ] MESSAGE: LIMIT GRID
- [ 2024-11-21-07-45-37 ] DEBUG in _process_limit_grid: 3.12
- [ 2024-11-21-07-45-37 ] DEBUG in _process_limit_grid: 3
- [ 2024-11-21-07-45-37 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 3.120000, "quantity": 3.000000, "type": "LIMIT", "side": "SELL"}
- [ 2024-11-21-07-45-37 ] MESSAGE: csize: 0
- index_order_id 3120000000000000000/3000000000000000000/SELL 11470819470383771039
- [ 2024-11-21-07-45-37 ] DEBUG ! new: {"symbol": "HCDAI", "price": 3.120000, "quantity": 3.000000, "client_order_id": 11470819470383771039, "type": "LIMIT", "side": "SELL"}
- ! new api API 0x562f2b158f80
- order_request_t {"symbol": "HCDAI", "price": 3.120000, "quantity": 3.000000, "client_order_id": 11470819470383771039, "type": "LIMIT", "side": "SELL"}
- quantity 30000
- new_order_wrapper::execute
- {"ext_params": {"timeout": "30000", "priority": "0"}, "params": {"quantity": "3000000000000000000", "price": "3120000000000000000", "orderType": "0", "isBid": "false"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
- 2024/11/21 07:45:37 extends args: {"timeout": "30000", "priority": "0"}
- 2024/11/21 07:45:37 args: {"quantity": "3000000000000000000", "price": "3120000000000000000", "orderType": "0", "isBid": "false"}
- 2024/11/21 07:45:37 waiting time: 0 ; net timeout after waiting = 30000 ms
- 2024/11/21 07:45:37 nonce: 357
- 2024/11/21 07:45:37 gas price = 46572697102
- 2024/11/21 07:45:38 TX Hash: 0x57b4be035ee460199405b0dc14dece8f6eb3a2426d0092b4d107954603941d56 ; Nonce: 357
- 2024/11/21 07:45:42 timeout_metric -> complete: tx: 0x57b4be035ee460199405b0dc14dece8f6eb3a2426d0092b4d107954603941d56 ; exec_time: 4.160316s ; attempt = 0 ; first tx 0x57b4be035ee460199405b0dc14dece8f6eb3a2426d0092b4d107954603941d56
- 2024/11/21 07:45:42 golang tx log: {
- tx = 0x57b4be035ee460199405b0dc14dece8f6eb3a2426d0092b4d107954603941d56 ok;
- nonce = 357
- status = 1
- block = 64546759
- usedGas = 444679
- exec_time = 4.160359s
- }
- C++ new_order_wrapper response: {"tx_hash": "0x57b4be035ee460199405b0dc14dece8f6eb3a2426d0092b4d107954603941d56", "used_gas": "444679", "block": "64546759", "error": "ok"}
- [ 2024-11-21-07-45-42 ] MESSAGE: new order delta: 4798
- 1732175146082 stream = onForceDexOrdersBookUpdated
- 1732175151782 we get ping message: {"type":"ping"}
- 1732175151786 we get ping message: {"type":"ping"}
- 1732175151791 we get ping message: {"type":"ping"}
- 1732175156783 we get ping message: {"type":"ping"}
- 1732175156786 we get ping message: {"type":"ping"}
- 1732175156791 we get ping message: {"type":"ping"}
- get_open_orders_wrapper::request_filler
- auth token: eyJhbG
- {"asset": "MATIC", "free": 490.866, "locked": 0, "wallet": 0, "update_time": 1732175157689}
- {"asset": "HC", "free": 722.465, "locked": 0, "wallet": 0, "update_time": 1732175157689}
- {"asset": "DAI", "free": 761.58, "locked": 0, "wallet": 0, "update_time": 1732175157689}
- 1732175161782 we get ping message: {"type":"ping"}
- 1732175161785 we get ping message: {"type":"ping"}
- 1732175161786 we get ping message: {"type":"ping"}
- 1732175166784 we get ping message: {"type":"ping"}
- 1732175166787 we get ping message: {"type":"ping"}
- 1732175166791 we get ping message: {"type":"ping"}
- 1732175168578 stream = onMyForceDexOrdersUpdated
- _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245312", "status": "OPEN", "quantity": "3000000000000000000", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "3120000000000000000", "id": "f734da28-d6cb-473d-bc70-3d69ff5c7a64", "type": "LIMIT", "orderNumber": "1072483", "direction": "ASK", "initialQuantity": "3000000000000000000", "createdAt": "2024-11-21T07:45:41.000Z"}}
- start _update_balances
- get_open_orders_wrapper::request_filler
- auth token: eyJhbG
- end _update_balances
- stream == e_stream::ACCOUNT_ORDER
- _fill_order 3120000000000000000/3000000000000000000/SELL 11470819470383771039
- WebSocketEvent: delta=1.73218e+11, event_time=1732175141000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 137878556085584, "order": {"symbol": "HCDAI", "coid": 11470819470383771039, {"dex_order_id": "1072483", "order_id": "1732175136408003", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 3.120000, "quantity": 3.000000, "filled_quantity": 0.000000, "update_time": 1732175141000}}
- [ 2024-11-21-07-46-09 ] INFO Execution::_process: WebSocketEvent: delta=1.73218e+11, event_time=1732175141000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 137878556085584, "order": {"symbol": "HCDAI", "coid": 11470819470383771039, {"dex_order_id": "1072483", "order_id": "1732175136408003", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 3.120000, "quantity": 3.000000, "filled_quantity": 0.000000, "update_time": 1732175141000}}
- [ 2024-11-21-07-46-09 ] MESSAGE: limit
- [ 2024-11-21-07-46-09 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 11470819470383771039, {"dex_order_id": "1072483", "order_id": "1732175136408003", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 3.120000, "quantity": 3.000000, "filled_quantity": 0.000000, "update_time": 1732175141000}
- old_it != cur_storage.end()
- [ 2024-11-21-07-46-09 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 11470819470383771039, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": 3.120000, "quantity": 3.000000, "update_time": 0}
- [ 2024-11-21-07-46-09 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-11-21-07-46-09 ] MESSAGE: ! HCDAI
- 1732175169894 stream = onForceDexOrdersBookUpdated
- 1732175169902 stream = onMyForceDexOrdersUpdated
- _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245312", "status": "CLOSED", "quantity": "0", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "3120000000000000000", "id": "f734da28-d6cb-473d-bc70-3d69ff5c7a64", "type": "LIMIT", "orderNumber": "1072483", "direction": "ASK", "initialQuantity": "3000000000000000000", "createdAt": "2024-11-21T07:45:41.000Z"}}
- start _update_balances
- get_open_orders_wrapper::request_filler
- auth token: eyJhbG
- end _update_balances
- stream == e_stream::ACCOUNT_ORDER
- _fill_order 3120000000000000000/3000000000000000000/SELL 11470819470383771039
- WebSocketEvent: delta=1.73218e+11, event_time=1732175141000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 137878556085584, "order": {"symbol": "HCDAI", "coid": 11470819470383771039, {"dex_order_id": "1072483", "order_id": "1732175136408003", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 3.120000, "quantity": 3.000000, "filled_quantity": 3.000000, "update_time": 1732175141000}}
- [ 2024-11-21-07-46-10 ] INFO Execution::_process: WebSocketEvent: delta=1.73218e+11, event_time=1732175141000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 137878556085584, "order": {"symbol": "HCDAI", "coid": 11470819470383771039, {"dex_order_id": "1072483", "order_id": "1732175136408003", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 3.120000, "quantity": 3.000000, "filled_quantity": 3.000000, "update_time": 1732175141000}}
- [ 2024-11-21-07-46-10 ] MESSAGE: limit
- [ 2024-11-21-07-46-10 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 11470819470383771039, {"dex_order_id": "1072483", "order_id": "1732175136408003", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 3.120000, "quantity": 3.000000, "filled_quantity": 3.000000, "update_time": 1732175141000}
- old_it != cur_storage.end()
- [ 2024-11-21-07-46-10 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 11470819470383771039, {"dex_order_id": "1072483", "order_id": "1732175136408003", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 3.120000, "quantity": 3.000000, "filled_quantity": 0.000000, "update_time": 1732175141000}
- $$$ {"symbol": "HCDAI", "price": 3.120000, "quantity": 3.000000, "trade_side": SELL, "trade_time": 1732175141000}
- open_position for order
- [ 2024-11-21-07-46-10 ] INFO Open position: : {"symbol": "HCDAI", "price": 3.120000, "quantity": 3.000000, "trade_side": SELL, "trade_time": 1732175141000}
- [ 2024-11-21-07-46-10 ] INFO new position: {"symbol": "HCDAI", "entry_price": 3.12, "quantity": -3, "position_quote": -9.36}
- [ 2024-11-21-07-46-10 ] MESSAGE: erase
- [ 2024-11-21-07-46-10 ] MESSAGE: ! HCDAI
- 1732175171786 we get ping message: {"type":"ping"}
- 1732175171788 we get ping message: {"type":"ping"}
- 1732175171791 we get ping message: {"type":"ping"}
- 1732175176789 we get ping message: {"type":"ping"}
- 1732175176790 we get ping message: {"type":"ping"}
- 1732175176793 we get ping message: {"type":"ping"}
- get_open_orders_wrapper::request_filler
- auth token: eyJhbG
- {"asset": "MATIC", "free": 490.866, "locked": 0, "wallet": 0, "update_time": 1732175178770}
- {"asset": "HC", "free": 722.465, "locked": 0, "wallet": 0, "update_time": 1732175178770}
- {"asset": "DAI", "free": 761.58, "locked": 0, "wallet": 0, "update_time": 1732175178770}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement