Advertisement
den4ik2003

Untitled

Nov 21st, 2024
7
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.92 KB | None | 0 0
  1. {"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"}
  2. {"userId": "1245312", "error": "ok"}
  3. user_id: 1245312
  4. authentification was completed
  5. API 0x562f2b158f80
  6. run forever balance 0x562f2b158f80
  7. get_open_orders_wrapper::request_filler
  8. auth token: eyJhbG
  9. {"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}]}
  10. get balance indicator 0x562f2b159120
  11. 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"]}}
  12. >:)
  13. auth token: eyJhbG
  14. get_open_orders_wrapper::request_filler
  15. auth token: eyJhbG
  16. Execution was constructed
  17. Trader was created
  18. subscription stream: ACCOUNT_BALANCE
  19. no account balance subscription
  20. subscription stream: PART_DEPTH
  21. subscription stream: TICK
  22. mfs api run ws: tick
  23. subscription stream: ACCOUNT_ORDER
  24. subscription stream: ACCOUNT_TRADE
  25. get_open_orders_wrapper::request_filler
  26. auth token: eyJhbG
  27. {"payload": {"extensions": {}, "variables": {}}, "type": "subscribe", "id": "1732175136408002"}
  28. {"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"}
  29. {"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"}
  30. {"asset": "MATIC", "free": 490.887, "locked": 0, "wallet": 0, "update_time": 1732175136648}
  31. {"asset": "HC", "free": 725.465, "locked": 0, "wallet": 0, "update_time": 1732175136648}
  32. {"asset": "DAI", "free": 740.353, "locked": 0, "wallet": 0, "update_time": 1732175136648}
  33.  
  34. feed.at("type").s() != ping{"type": "connection_ack"}
  35. feed.at("type").s() != ping{"type": "connection_ack"}
  36. 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"}
  37. feed.at("type").s() != ping{"type": "connection_ack"}
  38. [ 2024-11-21-07-45-37 ] MESSAGE: Tiiick
  39. [ 2024-11-21-07-45-37 ] DEBUG : {"ask_price": 7.1, "ask_quantity": 614.013, "bid_price": 7.09, "bid_quantity": 167.128}
  40. [ 2024-11-21-07-45-37 ] DEBUG : OrderEvent: delta=1.73204e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(3.12, 3); ], bids: []
  41. [ 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: []
  42. [ 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: []
  43. [ 2024-11-21-07-45-37 ] MESSAGE: LIMIT GRID
  44. [ 2024-11-21-07-45-37 ] DEBUG in _process_limit_grid: 3.12
  45. [ 2024-11-21-07-45-37 ] DEBUG in _process_limit_grid: 3
  46. [ 2024-11-21-07-45-37 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 3.120000, "quantity": 3.000000, "type": "LIMIT", "side": "SELL"}
  47. [ 2024-11-21-07-45-37 ] MESSAGE: csize: 0
  48. index_order_id 3120000000000000000/3000000000000000000/SELL 11470819470383771039
  49. [ 2024-11-21-07-45-37 ] DEBUG ! new: {"symbol": "HCDAI", "price": 3.120000, "quantity": 3.000000, "client_order_id": 11470819470383771039, "type": "LIMIT", "side": "SELL"}
  50. ! new api API 0x562f2b158f80
  51. order_request_t {"symbol": "HCDAI", "price": 3.120000, "quantity": 3.000000, "client_order_id": 11470819470383771039, "type": "LIMIT", "side": "SELL"}
  52. quantity 30000
  53. new_order_wrapper::execute
  54. {"ext_params": {"timeout": "30000", "priority": "0"}, "params": {"quantity": "3000000000000000000", "price": "3120000000000000000", "orderType": "0", "isBid": "false"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
  55. 2024/11/21 07:45:37 extends args: {"timeout": "30000", "priority": "0"}
  56. 2024/11/21 07:45:37 args: {"quantity": "3000000000000000000", "price": "3120000000000000000", "orderType": "0", "isBid": "false"}
  57. 2024/11/21 07:45:37 waiting time: 0 ; net timeout after waiting = 30000 ms
  58. 2024/11/21 07:45:37 nonce: 357
  59. 2024/11/21 07:45:37 gas price = 46572697102
  60. 2024/11/21 07:45:38 TX Hash: 0x57b4be035ee460199405b0dc14dece8f6eb3a2426d0092b4d107954603941d56 ; Nonce: 357
  61. 2024/11/21 07:45:42 timeout_metric -> complete: tx: 0x57b4be035ee460199405b0dc14dece8f6eb3a2426d0092b4d107954603941d56 ; exec_time: 4.160316s ; attempt = 0 ; first tx 0x57b4be035ee460199405b0dc14dece8f6eb3a2426d0092b4d107954603941d56
  62. 2024/11/21 07:45:42 golang tx log: {
  63. tx = 0x57b4be035ee460199405b0dc14dece8f6eb3a2426d0092b4d107954603941d56 ok;
  64. nonce = 357
  65. status = 1
  66. block = 64546759
  67. usedGas = 444679
  68. exec_time = 4.160359s
  69. }
  70. C++ new_order_wrapper response: {"tx_hash": "0x57b4be035ee460199405b0dc14dece8f6eb3a2426d0092b4d107954603941d56", "used_gas": "444679", "block": "64546759", "error": "ok"}
  71. [ 2024-11-21-07-45-42 ] MESSAGE: new order delta: 4798
  72.  
  73. 1732175146082 stream = onForceDexOrdersBookUpdated
  74.  
  75. 1732175151782 we get ping message: {"type":"ping"}
  76. 1732175151786 we get ping message: {"type":"ping"}
  77. 1732175151791 we get ping message: {"type":"ping"}
  78. 1732175156783 we get ping message: {"type":"ping"}
  79. 1732175156786 we get ping message: {"type":"ping"}
  80. 1732175156791 we get ping message: {"type":"ping"}
  81. get_open_orders_wrapper::request_filler
  82. auth token: eyJhbG
  83. {"asset": "MATIC", "free": 490.866, "locked": 0, "wallet": 0, "update_time": 1732175157689}
  84. {"asset": "HC", "free": 722.465, "locked": 0, "wallet": 0, "update_time": 1732175157689}
  85. {"asset": "DAI", "free": 761.58, "locked": 0, "wallet": 0, "update_time": 1732175157689}
  86.  
  87. 1732175161782 we get ping message: {"type":"ping"}
  88. 1732175161785 we get ping message: {"type":"ping"}
  89. 1732175161786 we get ping message: {"type":"ping"}
  90. 1732175166784 we get ping message: {"type":"ping"}
  91. 1732175166787 we get ping message: {"type":"ping"}
  92. 1732175166791 we get ping message: {"type":"ping"}
  93.  
  94. 1732175168578 stream = onMyForceDexOrdersUpdated
  95.  
  96. _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"}}
  97. start _update_balances
  98. get_open_orders_wrapper::request_filler
  99. auth token: eyJhbG
  100. end _update_balances
  101. stream == e_stream::ACCOUNT_ORDER
  102. _fill_order 3120000000000000000/3000000000000000000/SELL 11470819470383771039
  103. 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}}
  104. [ 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}}
  105. [ 2024-11-21-07-46-09 ] MESSAGE: limit
  106. [ 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}
  107. old_it != cur_storage.end()
  108. [ 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}
  109. [ 2024-11-21-07-46-09 ] MESSAGE: (execution) filled quantity is not initialized
  110. [ 2024-11-21-07-46-09 ] MESSAGE: ! HCDAI
  111.  
  112. 1732175169894 stream = onForceDexOrdersBookUpdated
  113.  
  114.  
  115. 1732175169902 stream = onMyForceDexOrdersUpdated
  116.  
  117. _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"}}
  118. start _update_balances
  119. get_open_orders_wrapper::request_filler
  120. auth token: eyJhbG
  121. end _update_balances
  122. stream == e_stream::ACCOUNT_ORDER
  123. _fill_order 3120000000000000000/3000000000000000000/SELL 11470819470383771039
  124. 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}}
  125. [ 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}}
  126. [ 2024-11-21-07-46-10 ] MESSAGE: limit
  127. [ 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}
  128. old_it != cur_storage.end()
  129. [ 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}
  130. $$$ {"symbol": "HCDAI", "price": 3.120000, "quantity": 3.000000, "trade_side": SELL, "trade_time": 1732175141000}
  131. open_position for order
  132. [ 2024-11-21-07-46-10 ] INFO Open position: : {"symbol": "HCDAI", "price": 3.120000, "quantity": 3.000000, "trade_side": SELL, "trade_time": 1732175141000}
  133. [ 2024-11-21-07-46-10 ] INFO new position: {"symbol": "HCDAI", "entry_price": 3.12, "quantity": -3, "position_quote": -9.36}
  134. [ 2024-11-21-07-46-10 ] MESSAGE: erase
  135. [ 2024-11-21-07-46-10 ] MESSAGE: ! HCDAI
  136. 1732175171786 we get ping message: {"type":"ping"}
  137. 1732175171788 we get ping message: {"type":"ping"}
  138. 1732175171791 we get ping message: {"type":"ping"}
  139. 1732175176789 we get ping message: {"type":"ping"}
  140. 1732175176790 we get ping message: {"type":"ping"}
  141. 1732175176793 we get ping message: {"type":"ping"}
  142. get_open_orders_wrapper::request_filler
  143. auth token: eyJhbG
  144. {"asset": "MATIC", "free": 490.866, "locked": 0, "wallet": 0, "update_time": 1732175178770}
  145. {"asset": "HC", "free": 722.465, "locked": 0, "wallet": 0, "update_time": 1732175178770}
  146. {"asset": "DAI", "free": 761.58, "locked": 0, "wallet": 0, "update_time": 1732175178770}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement