Advertisement
den4ik2003

Untitled

Nov 8th, 2024
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 56.02 KB | None | 0 0
  1. ubuntu@ip-172-31-31-23:~/dmm_strat/solutions/test$ gdb ./test
  2. GNU gdb (Ubuntu 12.1-0ubuntu1~22.04.2) 12.1
  3. Copyright (C) 2022 Free Software Foundation, Inc.
  4. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  5. This is free software: you are free to change and redistribute it.
  6. There is NO WARRANTY, to the extent permitted by law.
  7. Type "show copying" and "show warranty" for details.
  8. This GDB was configured as "x86_64-linux-gnu".
  9. Type "show configuration" for configuration details.
  10. For bug reporting instructions, please see:
  11. <https://www.gnu.org/software/gdb/bugs/>.
  12. Find the GDB manual and other documentation resources online at:
  13. <http://www.gnu.org/software/gdb/documentation/>.
  14.  
  15. For help, type "help".
  16. Type "apropos word" to search for commands related to "word"...
  17. Reading symbols from ./test...
  18. (gdb) run mm/launch.config
  19. Starting program: /home/ubuntu/dmm_strat/solutions/test/test mm/launch.config
  20. [Thread debugging using libthread_db enabled]
  21. Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
  22. {"cooldown": "120000", "spread_size": "0.2", "n_lvl": "1", "n_base": "1", "price_step": "1", "available_quote_balance_to_total": "0.05", "available_base_balance_to_total": "0.05"}
  23. [New Thread 0x7ffff6800640 (LWP 720360)]
  24. C++ 1ffd161f95a641469ef6fb6b7b5cbac3
  25. warning: File "/usr/local/go/src/runtime/runtime-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
  26. To enable execution of this file add
  27. add-auto-load-safe-path /usr/local/go/src/runtime/runtime-gdb.py
  28. line to your configuration file "/home/ubuntu/.config/gdb/gdbinit".
  29. To completely disable this security protection add
  30. set auto-load safe-path /
  31. line to your configuration file "/home/ubuntu/.config/gdb/gdbinit".
  32. For more information about this security protection see the
  33. "Auto-loading safe path" section in the GDB manual. E.g., run from the shell:
  34. info "(gdb)Auto-loading safe path"
  35. [New Thread 0x7ffff5a00640 (LWP 720361)]
  36. [New Thread 0x7fffede00640 (LWP 720362)]
  37. [New Thread 0x7fffed400640 (LWP 720363)]
  38. [New Thread 0x7fffeca00640 (LWP 720364)]
  39. [New Thread 0x7fff9fe00640 (LWP 720365)]
  40. [New Thread 0x7fff9f400640 (LWP 720366)]
  41. [New Thread 0x7fff9ea00640 (LWP 720367)]
  42. 2024/11/08 14:17:31 init Nonce: 33
  43. 2024/11/08 14:17:31 bind contract 0x6b965968fbc6ff0d2ed7cb1cb38c1c1bbe0327b4
  44. 2024/11/08 14:17:31 bind contract 0x1a9f5fd1b36f8d1e03f0ff6eabbbb268f053033e
  45. 2024/11/08 14:17:31 bind contract 0x6fcb55c09671bd0d28b5a0e9d303793ac005f19c
  46. 2024/11/08 14:17:31 bind contract 0x762d3d096b9a74f4d3adf2b0824456ef8fce5daa
  47. 2024/11/08 14:17:31 bind contract 0x8f3cf7ad23cd3cadbd9735aff958023239c6a063
  48. 2024/11/08 14:17:31 bind contract 0x0000000000000000000000000000000000001010
  49. [New Thread 0x7ffff4800640 (LWP 720368)]
  50. {"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-08T14:17:27.858Z", "txHash": "0x306571d8352b418b85a88243349ea726074e68360603982196c46eeff8dbc9e0", "address": "0x6b965968fbc6ff0d2ed7cb1cb38c1c1bbe0327b4", "lastSyncedBlock": "64037459", "id": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "quoteAsset": "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063", "symbol": "HCDAI"}
  51. {"userId": "1245312", "error": "ok"}
  52. user_id: 1245312
  53. authentification was completed
  54. API 0x55555596efd0
  55. run forever balance 0x55555596efd0
  56. {"type": "DEX", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "MATIC", "free": 2.231, "locked": 0, "wallet": 0, "update_time": 1731075453335}, {"asset": "HC", "free": 376.416, "locked": 0, "wallet": 0, "update_time": 1731075453335}, {"asset": "DAI", "free": 3065.59, "locked": 0, "wallet": 0, "update_time": 1731075453335}]}
  57. [New Thread 0x7fff9e000640 (LWP 720377)]
  58. get balance indicator 0x55555596f170
  59. trader {"symbol": "HCDAI", "account": "MFS_1", "market": "MFS_DEX", "logger": {"severity_level": "DEBUG"}, "execution": {"print_ws_events": "1", "cancel_on_start": "0", "timeout": "16000"}, "data": {"print_ws_events": "0", "use_part_depth": "true", "events": ["ORDER_BOOK"]}}
  60. >:)
  61. auth token: eyJhbG
  62. get_open_orders_wrapper::request_filler
  63. auth token: eyJhbG
  64. {"asset": "MATIC", "free": 2.231, "locked": 0, "wallet": 0, "update_time": 1731075454120}
  65. {"asset": "HC", "free": 376.416, "locked": 0, "wallet": 0, "update_time": 1731075454120}
  66. {"asset": "DAI", "free": 3065.59, "locked": 0, "wallet": 0, "update_time": 1731075454120}
  67.  
  68. [New Thread 0x7fff9d600640 (LWP 720378)]
  69. Execution was constructed
  70. Trader was created
  71. [New Thread 0x7fff9cc00640 (LWP 720379)]
  72. [New Thread 0x7fff8fe00640 (LWP 720380)]
  73. subscription stream: ACCOUNT_BALANCE
  74. no account balance subscription
  75. subscription stream: PART_DEPTH
  76. subscription stream: ACCOUNT_ORDER
  77. subscription stream: ACCOUNT_TRADE
  78. [New Thread 0x7fff8f400640 (LWP 720381)]
  79. [New Thread 0x7fff8ea00640 (LWP 720382)]
  80. {"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": "1731075454282002"}
  81. {"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": "1731075454282001"}
  82. feed.at("type").s() != ping{"type": "connection_ack"}
  83. feed.at("type").s() != ping{"type": "connection_ack"}
  84. [Thread 0x7ffff4800640 (LWP 720368) exited]
  85. {"asset": "MATIC", "free": 2.231, "locked": 0, "wallet": 0, "update_time": 1731075465098}
  86. {"asset": "HC", "free": 376.416, "locked": 0, "wallet": 0, "update_time": 1731075465098}
  87. {"asset": "DAI", "free": 3065.59, "locked": 0, "wallet": 0, "update_time": 1731075465098}
  88.  
  89. {"asset": "MATIC", "free": 2.231, "locked": 0, "wallet": 0, "update_time": 1731075475883}
  90. {"asset": "HC", "free": 376.416, "locked": 0, "wallet": 0, "update_time": 1731075475883}
  91. {"asset": "DAI", "free": 3065.59, "locked": 0, "wallet": 0, "update_time": 1731075475883}
  92.  
  93.  
  94. stream = onForceDexOrdersBookUpdated
  95.  
  96. [ 2024-11-08-14-18-00 ] MESSAGE: calculate orders mid price = 6.990000
  97. [ 2024-11-08-14-18-00 ] INFO base balance: {"asset": "HC", "free": 376.416, "locked": 0, "wallet": 0, "update_time": 1731075475883}
  98. [ 2024-11-08-14-18-00 ] INFO quote balance: {"asset": "DAI", "free": 3065.59, "locked": 0, "wallet": 0, "update_time": 1731075475883}
  99. [ 2024-11-08-14-18-00 ] MESSAGE: calculate and ticks 139
  100. [ 2024-11-08-14-18-00 ] MESSAGE: sell 7.690000 18.820785
  101. [ 2024-11-08-14-18-00 ] MESSAGE: buy 6.300000 24.330118
  102. [ 2024-11-08-14-18-00 ] INFO portfolio: OrderEvent: delta=1.73098e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.69, 18.8208); ], bids: [(6.3, 24.3301); ]
  103. [ 2024-11-08-14-18-00 ] MESSAGE: position quote: 0.000000max pos: 20.000000
  104. [ 2024-11-08-14-18-00 ] MESSAGE: max pos is not exceeded
  105. [ 2024-11-08-14-18-00 ] DEBUG overall risk checker res: OrderEvent: delta=1.73098e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.69, 18.8208); ], bids: [(6.3, 24.3301); ]
  106. [ 2024-11-08-14-18-00 ] INFO execution order event process: OrderEvent: delta=1.73098e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.69, 18.8208); ], bids: [(6.3, 24.3301); ]
  107. [ 2024-11-08-14-18-00 ] MESSAGE: LIMIT GRID
  108. [ 2024-11-08-14-18-00 ] DEBUG in _process_limit_grid: 7.69
  109. [ 2024-11-08-14-18-00 ] DEBUG in _process_limit_grid: 18.8208
  110. [ 2024-11-08-14-18-00 ] DEBUG in _process_limit_grid: 6.3
  111. [ 2024-11-08-14-18-00 ] DEBUG in _process_limit_grid: 24.3301
  112. [ 2024-11-08-14-18-00 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 6.300000, "quantity": 24.330100, "type": "LIMIT", "side": "BUY"}
  113. [ 2024-11-08-14-18-00 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 7.690000, "quantity": 18.820800, "type": "LIMIT", "side": "SELL"}
  114. [ 2024-11-08-14-18-00 ] MESSAGE: csize: 0
  115. index_order_id 6300000000000000000/24330100000000000000/BUY 12617784569031971306
  116. [New Thread 0x7fff8e000640 (LWP 720498)]
  117. index_order_id 7690000000000000000/18820800000000000000/SELL [ 2024-11-08-14-18-00 ] 10786444338172960604DEBUG ! new:
  118. {"symbol": "HCDAI", "price": 6.300000, "quantity": 24.330100, "client_order_id": 12617784569031971306, "type": "LIMIT", "side": "BUY"}
  119. ! new api API 0x55555596efd0
  120. order_request_t {"symbol": "HCDAI", "price": 6.300000, "quantity": 24.330100, "client_order_id": 12617784569031971306, "type": "LIMIT", "side": "BUY"}
  121. quantity 243301
  122. new_order_wrapper::execute
  123. [New Thread 0x7fff8d600640 (LWP 720499)]
  124. {"ext_params": {"timeout": "16000", "priority": "0"}, "params": {"quantity": "24330100000000000000", "price": "6300000000000000000", "orderType": "0", "isBid": "true"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
  125. [ 2024-11-08-14-18-00 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.690000, "quantity": 18.820800, "client_order_id": 10786444338172960604, "type": "LIMIT", "side": "SELL"}
  126. ! new api API 0x55555596efd0
  127. order_request_t {"symbol": "HCDAI", "price": 7.690000, "quantity": 18.820800, "client_order_id": 10786444338172960604, "type": "LIMIT", "side": "SELL"}
  128. quantity 188208
  129. new_order_wrapper::execute
  130. 2024/11/08 14:18:00 extends args: {"timeout": "16000", "priority": "0"}
  131. 2024/11/08 14:18:00 args: {"quantity": "24330100000000000000", "price": "6300000000000000000", "orderType": "0", "isBid": "true"}
  132. {"ext_params": {"timeout": "16000", "priority": "0"}, "params": {"quantity": "18820800000000000000", "price": "7690000000000000000", "orderType": "0", "isBid": "false"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
  133. 2024/11/08 14:18:00 waiting time: 0 ; net timeout after waiting = 16000 ms
  134. 2024/11/08 14:18:01 nonce: 33
  135. 2024/11/08 14:18:01 gas price = 64454881447
  136. 2024/11/08 14:18:01 TX Hash: 0x129788214ab328127a3f660e80e5fef77736d9eb5355634822247c76d4ca5c6f ; Nonce: 33
  137. 2024/11/08 14:18:06 timeout_metric -> complete: tx: 0x129788214ab328127a3f660e80e5fef77736d9eb5355634822247c76d4ca5c6f ; exec_time: 5.160420s ; attempt = 0 ; first tx 0x129788214ab328127a3f660e80e5fef77736d9eb5355634822247c76d4ca5c6f
  138. 2024/11/08 14:18:06 golang tx log: {
  139. tx = 0x129788214ab328127a3f660e80e5fef77736d9eb5355634822247c76d4ca5c6f ok;
  140. nonce = 33
  141. status = 1
  142. block = 64037489
  143. usedGas = 368115
  144. exec_time = 5.160455s
  145. }
  146. 2024/11/08 14:18:06 extends args: {"timeout": "16000", "priority": "0"}
  147. 2024/11/08 14:18:06 args: {"quantity": "18820800000000000000", "price": "7690000000000000000", "orderType": "0", "isBid": "false"}
  148. 2024/11/08 14:18:06 waiting time: 5799 ; net timeout after waiting = 10201 ms
  149. C++ new_order_wrapper response: {"tx_hash": "0x129788214ab328127a3f660e80e5fef77736d9eb5355634822247c76d4ca5c6f", "used_gas": "368115", "block": "64037489", "error": "ok"}
  150. [ 2024-11-08-14-18-06 ] MESSAGE: new order delta: 5800
  151. [Thread 0x7fff8e000640 (LWP 720498) exited]
  152. {"asset": "MATIC", "free": 2.20727, "locked": 0, "wallet": 0, "update_time": 1731075486664}
  153. {"asset": "HC", "free": 376.416, "locked": 0, "wallet": 0, "update_time": 1731075486664}
  154. {"asset": "DAI", "free": 2912.32, "locked": 0, "wallet": 0, "update_time": 1731075486664}
  155.  
  156. 2024/11/08 14:18:06 nonce: 34
  157. 2024/11/08 14:18:06 gas price = 64454881447
  158. 2024/11/08 14:18:07 TX Hash: 0x284ba22dff655a36fee70a202623f041948447b0eed8581e1ea4272b3a1455e9 ; Nonce: 34
  159. 2024/11/08 14:18:12 timeout_metric -> complete: tx: 0x284ba22dff655a36fee70a202623f041948447b0eed8581e1ea4272b3a1455e9 ; exec_time: 5.157715s ; attempt = 0 ; first tx 0x284ba22dff655a36fee70a202623f041948447b0eed8581e1ea4272b3a1455e9
  160. 2024/11/08 14:18:12 golang tx log: {
  161. tx = 0x284ba22dff655a36fee70a202623f041948447b0eed8581e1ea4272b3a1455e9 ok;
  162. nonce = 34
  163. status = 1
  164. block = 64037492
  165. usedGas = 378062
  166. exec_time = 5.158111s
  167. }
  168. C++ new_order_wrapper response: {"tx_hash": "0x284ba22dff655a36fee70a202623f041948447b0eed8581e1ea4272b3a1455e9", "used_gas": "378062", "block": "64037492", "error": "ok"}
  169. [ 2024-11-08-14-18-12 ] MESSAGE: new order delta: 11586
  170. [Thread 0x7fff8d600640 (LWP 720499) exited]
  171.  
  172. stream = onForceDexOrdersBookUpdated
  173.  
  174. {"asset": "MATIC", "free": 2.18291, "locked": 0, "wallet": 0, "update_time": 1731075497448}
  175. {"asset": "HC", "free": 357.595, "locked": 0, "wallet": 0, "update_time": 1731075497448}
  176. {"asset": "DAI", "free": 2912.32, "locked": 0, "wallet": 0, "update_time": 1731075497448}
  177.  
  178.  
  179. stream = onForceDexOrdersBookUpdated
  180.  
  181.  
  182. stream = onForceDexOrdersBookUpdated
  183.  
  184. {"asset": "MATIC", "free": 2.18291, "locked": 0, "wallet": 0, "update_time": 1731075508232}
  185. {"asset": "HC", "free": 357.595, "locked": 0, "wallet": 0, "update_time": 1731075508232}
  186. {"asset": "DAI", "free": 2912.32, "locked": 0, "wallet": 0, "update_time": 1731075508232}
  187.  
  188.  
  189. stream = onMyForceDexOrdersUpdated
  190.  
  191. _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245312", "status": "OPEN", "quantity": "24330100000000000000", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "6300000000000000000", "id": "b2dc8ff7-bd83-4479-af32-cea1aabe8393", "type": "LIMIT", "orderNumber": "927529", "direction": "BID", "initialQuantity": "24330100000000000000", "createdAt": "2024-11-08T14:18:05.000Z"}}
  192. stream == e_stream::ACCOUNT_ORDER
  193. _fill_order 6300000000000000000/24330100000000000000/BUY 12617784569031971306
  194. WebSocketEvent: delta=1.73108e+11, event_time=1731075485000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337059104, "order": {"symbol": "HCDAI", "coid": 12617784569031971306, {"dex_order_id": "927529", "order_id": "1731075454282002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 6.300000, "quantity": 24.330100, "filled_quantity": 0.000000, "update_time": 1731075485000}}
  195. [ 2024-11-08-14-18-37 ] INFO Execution::_process: WebSocketEvent: delta=1.73108e+11, event_time=1731075485000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337059104, "order": {"symbol": "HCDAI", "coid": 12617784569031971306, {"dex_order_id": "927529", "order_id": "1731075454282002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 6.300000, "quantity": 24.330100, "filled_quantity": 0.000000, "update_time": 1731075485000}}
  196. [ 2024-11-08-14-18-37 ] MESSAGE: limit
  197. [ 2024-11-08-14-18-37 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 12617784569031971306, {"dex_order_id": "927529", "order_id": "1731075454282002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 6.300000, "quantity": 24.330100, "filled_quantity": 0.000000, "update_time": 1731075485000}
  198. old_it != cur_storage.end()
  199. [ 2024-11-08-14-18-37 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 12617784569031971306, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 6.300000, "quantity": 24.330100, "update_time": 0}
  200. [ 2024-11-08-14-18-37 ] MESSAGE: (execution) filled quantity is not initialized
  201. [ 2024-11-08-14-18-37 ] MESSAGE: ! HCDAI
  202.  
  203. stream = onForceDexOrdersBookUpdated
  204.  
  205. {"asset": "MATIC", "free": 2.18291, "locked": 0, "wallet": 0, "update_time": 1731075519011}
  206. {"asset": "HC", "free": 357.595, "locked": 0, "wallet": 0, "update_time": 1731075519011}
  207. {"asset": "DAI", "free": 2912.32, "locked": 0, "wallet": 0, "update_time": 1731075519011}
  208.  
  209.  
  210. stream = onMyForceDexOrdersUpdated
  211.  
  212. _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245312", "status": "OPEN", "quantity": "18820800000000000000", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "7690000000000000000", "id": "0b8e49b6-4d30-474f-b06a-cd5d50c1e760", "type": "LIMIT", "orderNumber": "927531", "direction": "ASK", "initialQuantity": "18820800000000000000", "createdAt": "2024-11-08T14:18:11.000Z"}}
  213. stream == e_stream::ACCOUNT_ORDER
  214. _fill_order 7690000000000000000/18820800000000000000/SELL 10786444338172960604
  215. WebSocketEvent: delta=1.73108e+11, event_time=1731075491000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337059104, "order": {"symbol": "HCDAI", "coid": 10786444338172960604, {"dex_order_id": "927531", "order_id": "1731075454282002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.690000, "quantity": 18.820800, "filled_quantity": 0.000000, "update_time": 1731075491000}}
  216. [ 2024-11-08-14-18-43 ] INFO Execution::_process: WebSocketEvent: delta=1.73108e+11, event_time=1731075491000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337059104, "order": {"symbol": "HCDAI", "coid": 10786444338172960604, {"dex_order_id": "927531", "order_id": "1731075454282002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.690000, "quantity": 18.820800, "filled_quantity": 0.000000, "update_time": 1731075491000}}
  217. [ 2024-11-08-14-18-43 ] MESSAGE: limit
  218. [ 2024-11-08-14-18-43 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 10786444338172960604, {"dex_order_id": "927531", "order_id": "1731075454282002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.690000, "quantity": 18.820800, "filled_quantity": 0.000000, "update_time": 1731075491000}
  219. old_it != cur_storage.end()
  220. [ 2024-11-08-14-18-43 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 10786444338172960604, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": 7.690000, "quantity": 18.820800, "update_time": 0}
  221. [ 2024-11-08-14-18-43 ] MESSAGE: (execution) filled quantity is not initialized
  222. [ 2024-11-08-14-18-43 ] MESSAGE: ! HCDAI
  223.  
  224. stream = onForceDexOrdersBookUpdated
  225.  
  226. {"asset": "MATIC", "free": 2.18291, "locked": 0, "wallet": 0, "update_time": 1731075529803}
  227. {"asset": "HC", "free": 357.595, "locked": 0, "wallet": 0, "update_time": 1731075529803}
  228. {"asset": "DAI", "free": 2912.32, "locked": 0, "wallet": 0, "update_time": 1731075529803}
  229.  
  230.  
  231. stream = onForceDexOrdersBookUpdated
  232.  
  233. {"asset": "MATIC", "free": 2.18291, "locked": 0, "wallet": 0, "update_time": 1731075540582}
  234. {"asset": "HC", "free": 357.595, "locked": 0, "wallet": 0, "update_time": 1731075540582}
  235. {"asset": "DAI", "free": 2912.32, "locked": 0, "wallet": 0, "update_time": 1731075540582}
  236.  
  237.  
  238. stream = onForceDexOrdersBookUpdated
  239.  
  240. {"asset": "MATIC", "free": 2.18291, "locked": 0, "wallet": 0, "update_time": 1731075551364}
  241. {"asset": "HC", "free": 357.595, "locked": 0, "wallet": 0, "update_time": 1731075551364}
  242. {"asset": "DAI", "free": 2912.32, "locked": 0, "wallet": 0, "update_time": 1731075551364}
  243.  
  244. {"asset": "MATIC", "free": 2.18291, "locked": 0, "wallet": 0, "update_time": 1731075562153}
  245. {"asset": "HC", "free": 357.595, "locked": 0, "wallet": 0, "update_time": 1731075562153}
  246. {"asset": "DAI", "free": 2912.32, "locked": 0, "wallet": 0, "update_time": 1731075562153}
  247.  
  248. {"asset": "MATIC", "free": 2.18291, "locked": 0, "wallet": 0, "update_time": 1731075572944}
  249. {"asset": "HC", "free": 357.595, "locked": 0, "wallet": 0, "update_time": 1731075572944}
  250. {"asset": "DAI", "free": 2912.32, "locked": 0, "wallet": 0, "update_time": 1731075572944}
  251.  
  252.  
  253. stream = onForceDexOrdersBookUpdated
  254.  
  255. {"asset": "MATIC", "free": 2.18291, "locked": 0, "wallet": 0, "update_time": 1731075583719}
  256. {"asset": "HC", "free": 357.595, "locked": 0, "wallet": 0, "update_time": 1731075583719}
  257. {"asset": "DAI", "free": 2912.32, "locked": 0, "wallet": 0, "update_time": 1731075583719}
  258.  
  259.  
  260. stream = onForceDexOrdersBookUpdated
  261.  
  262. {"asset": "MATIC", "free": 2.18291, "locked": 0, "wallet": 0, "update_time": 1731075594500}
  263. {"asset": "HC", "free": 357.595, "locked": 0, "wallet": 0, "update_time": 1731075594500}
  264. {"asset": "DAI", "free": 2912.32, "locked": 0, "wallet": 0, "update_time": 1731075594500}
  265.  
  266.  
  267. stream = onForceDexOrdersBookUpdated
  268.  
  269.  
  270. stream = onForceDexOrdersBookUpdated
  271.  
  272. [ 2024-11-08-14-20-01 ] MESSAGE: calculate orders mid price = 7.010000
  273. [ 2024-11-08-14-20-01 ] INFO base balance: {"asset": "HC", "free": 357.595, "locked": 0, "wallet": 0, "update_time": 1731075594500}
  274. [ 2024-11-08-14-20-01 ] INFO quote balance: {"asset": "DAI", "free": 2912.32, "locked": 0, "wallet": 0, "update_time": 1731075594500}
  275. [ 2024-11-08-14-20-01 ] MESSAGE: calculate and ticks 140
  276. [ 2024-11-08-14-20-01 ] MESSAGE: sell 7.710000 17.879745
  277. [ 2024-11-08-14-20-01 ] MESSAGE: buy 6.300000 23.113613
  278. [ 2024-11-08-14-20-01 ] INFO portfolio: OrderEvent: delta=1.73098e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.71, 17.8797); ], bids: [(6.3, 23.1136); ]
  279. [ 2024-11-08-14-20-01 ] MESSAGE: position quote: 0.000000max pos: 20.000000
  280. [ 2024-11-08-14-20-01 ] MESSAGE: max pos is not exceeded
  281. [ 2024-11-08-14-20-01 ] DEBUG overall risk checker res: OrderEvent: delta=1.73098e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.71, 17.8797); ], bids: [(6.3, 23.1136); ]
  282. [ 2024-11-08-14-20-01 ] INFO execution order event process: OrderEvent: delta=1.73098e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.71, 17.8797); ], bids: [(6.3, 23.1136); ]
  283. [ 2024-11-08-14-20-01 ] MESSAGE: LIMIT GRID
  284. [ 2024-11-08-14-20-01 ] DEBUG in _process_limit_grid: 7.71
  285. [ 2024-11-08-14-20-01 ] DEBUG in _process_limit_grid: 17.8797
  286. [ 2024-11-08-14-20-01 ] DEBUG in _process_limit_grid: 6.3
  287. [ 2024-11-08-14-20-01 ] DEBUG in _process_limit_grid: 23.1136
  288. [ 2024-11-08-14-20-01 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 6.300000, "quantity": 23.113600, "type": "LIMIT", "side": "BUY"}
  289. [ 2024-11-08-14-20-01 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 7.710000, "quantity": 17.879700, "type": "LIMIT", "side": "SELL"}
  290. [ 2024-11-08-14-20-01 ] MESSAGE: csize: 2
  291. [New Thread 0x7fff8d600640 (LWP 720877)]
  292. [ 2024-11-08-14-20-01 ] DEBUG ! cancel: {"symbol": "HCDAI", "coid": 10786444338172960604, {"dex_order_id": "927531", "order_id": "1731075454282002", "type": "LIMIT", "side": "SELL", [New Thread 0x7fff8e000640 (LWP 720878)]
  293. "status": "NEW", "price": 7.690000, "quantity": 18.820800, "filled_quantity": 0.000000, "update_time": 1731075491000}index_order_id 6300000000000000000/23113600000000000000/BUY 16929521601897482212
  294.  
  295. cancel_order_wrapper::execute
  296. [ 2024-11-08-14-20-01 ] DEBUG ! cancel: {"symbol": "HCDAI", "coid": 12617784569031971306, {"dex_order_id": "927529", "order_id": 2024/11/08 14:20:01 extends args: {}
  297. "[New Thread 0x7fff8cc00640 (LWP 720879)]
  298. 2024/11/08 14:20:01 args: {"orderId": "927531"}
  299. 1731075454282002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 6.300000, "quantity": 24.330100, "filled_quantity": 0.000000, "update_time": 1731075485000}
  300. cancel_order_wrapper::execute
  301. 2024/11/08 14:20:01 waiting time: 0 ; net timeout after waiting = 120000 ms
  302. index_order_id 7710000000000000000/17879700000000000000/SELL 4020346251792488833
  303. [ 2024-11-08-14-20-01 ] DEBUG ! new: {"symbol": "HCDAI", "price": 6.300000, "quantity": 23.113600, "client_order_id": 16929521601897482212, "type": "LIMIT", "side": "BUY"}
  304. ! new api API 0x55555596efd0
  305. order_request_t {"symbol": "HCDAI", "price": 6.300000, "quantity": 23.113600, "client_order_id": 16929521601897482212, "type": "LIMIT", "side": "BUY"}
  306. quantity 231136
  307. [New Thread 0x7fff83e00640 (LWP 720880)]
  308. new_order_wrapper::execute
  309. {"ext_params": {"timeout": "16000", "priority": "0"}, "params": {"quantity": "23113600000000000000", "price": "6300000000000000000", "orderType": "0", "isBid": "true"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
  310. [ 2024-11-08-14-20-01 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.710000, "quantity": 17.879700, "client_order_id": 4020346251792488833, "type": "LIMIT", "side": "SELL"}
  311. ! new api API 0x55555596efd0
  312. order_request_t {"symbol": "HCDAI", "price": 7.710000, "quantity": 17.879700, "client_order_id": 4020346251792488833, "type": "LIMIT", "side": "SELL"}
  313. quantity 178797
  314. new_order_wrapper::execute
  315. {"ext_params": {"timeout": "16000", "priority": "0"}, "params": {"quantity": "17879700000000000000", "price": "7710000000000000000", "orderType": "0", "isBid": "false"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
  316. 2024/11/08 14:20:01 nonce: 35
  317. 2024/11/08 14:20:01 gas price = 64756244010
  318. 2024/11/08 14:20:01 TX Hash: 0xba502057467bdac4dfc32d4f004b8f12c47b23b41ce3fd8c8c166d0968060c38 ; Nonce: 35
  319. {"asset": "MATIC", "free": 2.18291, "locked": 0, "wallet": 0, "update_time": 1731075605271}
  320. {"asset": "HC", "free": 357.595, "locked": 0, "wallet": 0, "update_time": 1731075605271}
  321. {"asset": "DAI", "free": 2912.32, "locked": 0, "wallet": 0, "update_time": 1731075605271}
  322.  
  323. 2024/11/08 14:20:06 timeout_metric -> complete: tx: 0xba502057467bdac4dfc32d4f004b8f12c47b23b41ce3fd8c8c166d0968060c38 ; exec_time: 4.161379s ; attempt = 0 ; first tx 0xba502057467bdac4dfc32d4f004b8f12c47b23b41ce3fd8c8c166d0968060c38
  324. 2024/11/08 14:20:06 golang tx log: {
  325. tx = 0xba502057467bdac4dfc32d4f004b8f12c47b23b41ce3fd8c8c166d0968060c38 ok;
  326. nonce = 35
  327. status = 1
  328. block = 64037546
  329. usedGas = 164179
  330. exec_time = 4.161419s
  331. }
  332. 2024/11/08 14:20:06 extends args: {}
  333. 2024/11/08 14:20:06 args: {"orderId": "927529"}
  334. 2024/11/08 14:20:06 waiting time: 4789 ; net timeout after waiting = 115211 ms
  335. cancel_order_wrapper::response_filler{"tx_hash": "0xba502057467bdac4dfc32d4f004b8f12c47b23b41ce3fd8c8c166d0968060c38", "used_gas": "164179", "block": "64037546", "error": "ok"}
  336. [ 2024-11-08-14-20-06 ] MESSAGE: cancel order delta: 4790
  337. [Thread 0x7fff8d600640 (LWP 720877) exited]
  338. 2024/11/08 14:20:06 nonce: 36
  339. 2024/11/08 14:20:06 gas price = 64756244010
  340. 2024/11/08 14:20:06 TX Hash: 0x649d0c06aeab794acac04a14c4bbd4bdc5a2d96a0c909c3d2dd25600cea79792 ; Nonce: 36
  341. 2024/11/08 14:20:11 timeout_metric -> complete: tx: 0x649d0c06aeab794acac04a14c4bbd4bdc5a2d96a0c909c3d2dd25600cea79792 ; exec_time: 5.181035s ; attempt = 0 ; first tx 0x649d0c06aeab794acac04a14c4bbd4bdc5a2d96a0c909c3d2dd25600cea79792
  342. 2024/11/08 14:20:11 golang tx log: {
  343. tx = 0x649d0c06aeab794acac04a14c4bbd4bdc5a2d96a0c909c3d2dd25600cea79792 ok;
  344. nonce = 36
  345. status = 1
  346. block = 64037549
  347. usedGas = 156301
  348. exec_time = 5.181115s
  349. }
  350. 2024/11/08 14:20:11 extends args: {"timeout": "16000", "priority": "0"}
  351. 2024/11/08 14:20:11 args: {"quantity": "23113600000000000000", "price": "6300000000000000000", "orderType": "0", "isBid": "true"}
  352. 2024/11/08 14:20:11 waiting time: 10597 ; net timeout after waiting = 5403 ms
  353. cancel_order_wrapper::response_filler{"tx_hash": "0x649d0c06aeab794acac04a14c4bbd4bdc5a2d96a0c909c3d2dd25600cea79792", "used_gas": "156301", "block": "64037549", "error": "ok"}
  354. [ 2024-11-08-14-20-11 ] MESSAGE: cancel order delta: 10599
  355. [Thread 0x7fff8e000640 (LWP 720878) exited]
  356. 2024/11/08 14:20:12 nonce: 37
  357. 2024/11/08 14:20:12 gas price = 64980226572
  358. 2024/11/08 14:20:12 TX Hash: 0xb48d412701ba682b29aff2fd8f0367d2b0f6ba35654e3467afc8d17c98cfbdad ; Nonce: 37
  359. 2024/11/08 14:20:15 timeout_metric -> complete: tx: 0xb48d412701ba682b29aff2fd8f0367d2b0f6ba35654e3467afc8d17c98cfbdad ; exec_time: 3.288237s ; attempt = 0 ; first tx 0xb48d412701ba682b29aff2fd8f0367d2b0f6ba35654e3467afc8d17c98cfbdad
  360. 2024/11/08 14:20:15 golang tx log: {
  361. tx = 0xb48d412701ba682b29aff2fd8f0367d2b0f6ba35654e3467afc8d17c98cfbdad ok;
  362. nonce = 37
  363. status = 1
  364. block = 64037551
  365. usedGas = 368091
  366. exec_time = 3.288273s
  367. }
  368. 2024/11/08 14:20:15 extends args: {"timeout": "16000", "priority": "0"}
  369. 2024/11/08 14:20:15 args: {"quantity": "17879700000000000000", "price": "7710000000000000000", "orderType": "0", "isBid": "false"}
  370. 2024/11/08 14:20:15 waiting time: 14514 ; net timeout after waiting = 1486 ms
  371. C++ new_order_wrapper response: {"tx_hash": "0xb48d412701ba682b29aff2fd8f0367d2b0f6ba35654e3467afc8d17c98cfbdad", "used_gas": "368091", "block": "64037551", "error": "ok"}
  372. [ 2024-11-08-14-20-15 ] MESSAGE: new order delta: 14515
  373. [Thread 0x7fff8cc00640 (LWP 720879) exited]
  374. {"asset": "MATIC", "free": 2.13823, "locked": 0, "wallet": 0, "update_time": 1731075616053}
  375. {"asset": "HC", "free": 376.416, "locked": 0, "wallet": 0, "update_time": 1731075616053}
  376. {"asset": "DAI", "free": 2919.98, "locked": 0, "wallet": 0, "update_time": 1731075616053}
  377.  
  378. 2024/11/08 14:20:16 nonce: 38
  379. 2024/11/08 14:20:16 gas price = 65357928324
  380. 2024/11/08 14:20:16 TX Hash: 0x9e942698e4e2e77cdca960fb3b228a89d87c06b098dc430b15493960856beb81 ; Nonce: 38
  381. 2024/11/08 14:20:17 timeout_metric -> exceeded: tx: 0x9e942698e4e2e77cdca960fb3b228a89d87c06b098dc430b15493960856beb81 ; timeout 12000 ms ; first tx: 0x9e942698e4e2e77cdca960fb3b228a89d87c06b098dc430b15493960856beb81
  382. 2024/11/08 14:20:18 cancel tx 0x9e942698e4e2e77cdca960fb3b228a89d87c06b098dc430b15493960856beb81 with increased gas price = 130715856648 while suggested = 65357928324
  383. 2024/11/08 14:20:18 cancel tx 0x9e942698e4e2e77cdca960fb3b228a89d87c06b098dc430b15493960856beb81 with tx 0x7cf55a3dfcb88469a9ffb46dd5c62ff1c61ac8a4fae1ec59f5d3a38fc8259827; Nonce 38
  384.  
  385. stream = onForceDexOrdersBookUpdated
  386.  
  387. 2024/11/08 14:20:22 timeout_metric -> complete: tx: 0x7cf55a3dfcb88469a9ffb46dd5c62ff1c61ac8a4fae1ec59f5d3a38fc8259827 ; exec_time: 4.155644s ; attempt = 1 ; first tx 0x9e942698e4e2e77cdca960fb3b228a89d87c06b098dc430b15493960856beb81
  388. [ 2024-11-08-14-20-22 ] MESSAGE: new order delta: 21245
  389. [ 2024-11-08-14-20-22 ] ERROR : new order error: request={"symbol": "HCDAI", "price": 7.710000, "quantity": 17.879700, "client_order_id": 4020346251792488833, "type": "LIMIT", "side": "SELL"} id = 4020346251792488833
  390. [Thread 0x7fff83e00640 (LWP 720880) exited]
  391.  
  392. stream = onForceDexOrdersBookUpdated
  393.  
  394. {"asset": "MATIC", "free": 2.13549, "locked": 0, "wallet": 0, "update_time": 1731075626908}
  395. {"asset": "HC", "free": 376.416, "locked": 0, "wallet": 0, "update_time": 1731075626908}
  396. {"asset": "DAI", "free": 2919.98, "locked": 0, "wallet": 0, "update_time": 1731075626908}
  397.  
  398.  
  399. stream = onMyForceDexOrdersUpdated
  400.  
  401. _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245312", "status": "CANCELLED", "quantity": "18820800000000000000", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "7690000000000000000", "id": "0b8e49b6-4d30-474f-b06a-cd5d50c1e760", "type": "LIMIT", "orderNumber": "927531", "direction": "ASK", "initialQuantity": "18820800000000000000", "createdAt": "2024-11-08T14:18:11.000Z"}}
  402. stream == e_stream::ACCOUNT_ORDER
  403. _fill_order 7690000000000000000/18820800000000000000/SELL 10786444338172960604
  404. WebSocketEvent: delta=1.73108e+11, event_time=1731075491000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337059104, "order": {"symbol": "HCDAI", "coid": 10786444338172960604, {"dex_order_id": "927531", "order_id": "1731075454282002", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 7.690000, "quantity": 18.820800, "filled_quantity": 0.000000, "update_time": 1731075491000}}
  405. [ 2024-11-08-14-20-36 ] INFO Execution::_process: WebSocketEvent: delta=1.73108e+11, event_time=1731075491000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337059104, "order": {"symbol": "HCDAI", "coid": 10786444338172960604, {"dex_order_id": "927531", "order_id": "1731075454282002", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 7.690000, "quantity": 18.820800, "filled_quantity": 0.000000, "update_time": 1731075491000}}
  406. [ 2024-11-08-14-20-36 ] MESSAGE: limit
  407. [ 2024-11-08-14-20-36 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 10786444338172960604, {"dex_order_id": "927531", "order_id": "1731075454282002", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 7.690000, "quantity": 18.820800, "filled_quantity": 0.000000, "update_time": 1731075491000}
  408. old_it != cur_storage.end()
  409. [ 2024-11-08-14-20-36 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 10786444338172960604, {"dex_order_id": "927531", "order_id": "1731075454282002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.690000, "quantity": 18.820800, "filled_quantity": 0.000000, "update_time": 1731075491000}
  410. [ 2024-11-08-14-20-36 ] MESSAGE: erase
  411. [ 2024-11-08-14-20-36 ] MESSAGE: ! HCDAI
  412.  
  413. stream = onForceDexOrdersBookUpdated
  414.  
  415. {"asset": "MATIC", "free": 2.13549, "locked": 0, "wallet": 0, "update_time": 1731075637705}
  416. {"asset": "HC", "free": 376.416, "locked": 0, "wallet": 0, "update_time": 1731075637705}
  417. {"asset": "DAI", "free": 2919.98, "locked": 0, "wallet": 0, "update_time": 1731075637705}
  418.  
  419.  
  420. stream = onMyForceDexOrdersUpdated
  421.  
  422. _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245312", "status": "OPEN", "quantity": "23113600000000000000", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "6300000000000000000", "id": "b127e71a-b611-49d0-903f-7eae665ba783", "type": "LIMIT", "orderNumber": "927547", "direction": "BID", "initialQuantity": "23113600000000000000", "createdAt": "2024-11-08T14:20:15.000Z"}}
  423. stream == e_stream::ACCOUNT_ORDER
  424. _fill_order 6300000000000000000/23113600000000000000/BUY 16929521601897482212
  425. WebSocketEvent: delta=1.73108e+11, event_time=1731075615000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337059104, "order": {"symbol": "HCDAI", "coid": 16929521601897482212, {"dex_order_id": "927547", "order_id": "1731075454282002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 6.300000, "quantity": 23.113600, "filled_quantity": 0.000000, "update_time": 1731075615000}}
  426. [ 2024-11-08-14-20-43 ] INFO Execution::_process: WebSocketEvent: delta=1.73108e+11, event_time=1731075615000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337059104, "order": {"symbol": "HCDAI", "coid": 16929521601897482212, {"dex_order_id": "927547", "order_id": "1731075454282002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 6.300000, "quantity": 23.113600, "filled_quantity": 0.000000, "update_time": 1731075615000}}
  427. [ 2024-11-08-14-20-43 ] MESSAGE: limit
  428. [ 2024-11-08-14-20-43 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 16929521601897482212, {"dex_order_id": "927547", "order_id": "1731075454282002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 6.300000, "quantity": 23.113600, "filled_quantity": 0.000000, "update_time": 1731075615000}
  429. old_it != cur_storage.end()
  430. [ 2024-11-08-14-20-43 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 16929521601897482212, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 6.300000, "quantity": 23.113600, "update_time": 0}
  431. [ 2024-11-08-14-20-43 ] MESSAGE: (execution) filled quantity is not initialized
  432. [ 2024-11-08-14-20-43 ] MESSAGE: ! HCDAI
  433.  
  434. stream = onMyForceDexOrdersUpdated
  435.  
  436. _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245312", "status": "CANCELLED", "quantity": "24330100000000000000", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "6300000000000000000", "id": "b2dc8ff7-bd83-4479-af32-cea1aabe8393", "type": "LIMIT", "orderNumber": "927529", "direction": "BID", "initialQuantity": "24330100000000000000", "createdAt": "2024-11-08T14:18:05.000Z"}}
  437. stream == e_stream::ACCOUNT_ORDER
  438. _fill_order 6300000000000000000/24330100000000000000/BUY 12617784569031971306
  439. WebSocketEvent: delta=1.73108e+11, event_time=1731075485000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337059104, "order": {"symbol": "HCDAI", "coid": 12617784569031971306, {"dex_order_id": "927529", "order_id": "1731075454282002", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 6.300000, "quantity": 24.330100, "filled_quantity": 0.000000, "update_time": 1731075485000}}
  440. [ 2024-11-08-14-20-43 ] INFO Execution::_process: WebSocketEvent: delta=1.73108e+11, event_time=1731075485000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337059104, "order": {"symbol": "HCDAI", "coid": 12617784569031971306, {"dex_order_id": "927529", "order_id": "1731075454282002", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 6.300000, "quantity": 24.330100, "filled_quantity": 0.000000, "update_time": 1731075485000}}
  441. [ 2024-11-08-14-20-43 ] MESSAGE: limit
  442. [ 2024-11-08-14-20-43 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 12617784569031971306, {"dex_order_id": "927529", "order_id": "1731075454282002", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 6.300000, "quantity": 24.330100, "filled_quantity": 0.000000, "update_time": 1731075485000}
  443. old_it != cur_storage.end()
  444. [ 2024-11-08-14-20-43 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 12617784569031971306, {"dex_order_id": "927529", "order_id": "1731075454282002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 6.300000, "quantity": 24.330100, "filled_quantity": 0.000000, "update_time": 1731075485000}
  445. [ 2024-11-08-14-20-43 ] MESSAGE: erase
  446. [ 2024-11-08-14-20-43 ] MESSAGE: ! HCDAI
  447.  
  448. stream = onForceDexOrdersBookUpdated
  449.  
  450. {"asset": "MATIC", "free": 2.13549, "locked": 0, "wallet": 0, "update_time": 1731075648502}
  451. {"asset": "HC", "free": 376.416, "locked": 0, "wallet": 0, "update_time": 1731075648502}
  452. {"asset": "DAI", "free": 2919.98, "locked": 0, "wallet": 0, "update_time": 1731075648502}
  453.  
  454.  
  455. stream = onForceDexOrdersBookUpdated
  456.  
  457. {"asset": "MATIC", "free": 2.13549, "locked": 0, "wallet": 0, "update_time": 1731075659286}
  458. {"asset": "HC", "free": 376.416, "locked": 0, "wallet": 0, "update_time": 1731075659286}
  459. {"asset": "DAI", "free": 2919.98, "locked": 0, "wallet": 0, "update_time": 1731075659286}
  460.  
  461.  
  462. stream = onForceDexOrdersBookUpdated
  463.  
  464.  
  465. stream = onForceDexOrdersBookUpdated
  466.  
  467. {"asset": "MATIC", "free": 2.13549, "locked": 0, "wallet": 0, "update_time": 1731075670077}
  468. {"asset": "HC", "free": 376.416, "locked": 0, "wallet": 0, "update_time": 1731075670077}
  469. {"asset": "DAI", "free": 2919.98, "locked": 0, "wallet": 0, "update_time": 1731075670077}
  470.  
  471. {"asset": "MATIC", "free": 2.13549, "locked": 0, "wallet": 0, "update_time": 1731075680866}
  472. {"asset": "HC", "free": 376.416, "locked": 0, "wallet": 0, "update_time": 1731075680866}
  473. {"asset": "DAI", "free": 2919.98, "locked": 0, "wallet": 0, "update_time": 1731075680866}
  474.  
  475.  
  476. stream = onForceDexOrdersBookUpdated
  477.  
  478. {"asset": "MATIC", "free": 2.13549, "locked": 0, "wallet": 0, "update_time": 1731075691655}
  479. {"asset": "HC", "free": 376.416, "locked": 0, "wallet": 0, "update_time": 1731075691655}
  480. {"asset": "DAI", "free": 2919.98, "locked": 0, "wallet": 0, "update_time": 1731075691655}
  481.  
  482.  
  483. stream = onForceDexOrdersBookUpdated
  484.  
  485. {"asset": "MATIC", "free": 2.13549, "locked": 0, "wallet": 0, "update_time": 1731075702470}
  486. {"asset": "HC", "free": 376.416, "locked": 0, "wallet": 0, "update_time": 1731075702470}
  487. {"asset": "DAI", "free": 2919.98, "locked": 0, "wallet": 0, "update_time": 1731075702470}
  488.  
  489.  
  490. stream = onForceDexOrdersBookUpdated
  491.  
  492. {"asset": "MATIC", "free": 2.13549, "locked": 0, "wallet": 0, "update_time": 1731075713249}
  493. {"asset": "HC", "free": 376.416, "locked": 0, "wallet": 0, "update_time": 1731075713249}
  494. {"asset": "DAI", "free": 2919.98, "locked": 0, "wallet": 0, "update_time": 1731075713249}
  495.  
  496.  
  497. stream = onForceDexOrdersBookUpdated
  498.  
  499. [ 2024-11-08-14-22-01 ] MESSAGE: calculate orders mid price = 7.010000
  500. [ 2024-11-08-14-22-01 ] INFO base balance: {"asset": "HC", "free": 376.416, "locked": 0, "wallet": 0, "update_time": 1731075713249}
  501. [ 2024-11-08-14-22-01 ] INFO quote balance: {"asset": "DAI", "free": 2919.98, "locked": 0, "wallet": 0, "update_time": 1731075713249}
  502. [ 2024-11-08-14-22-01 ] MESSAGE: calculate and ticks 140
  503. [ 2024-11-08-14-22-01 ] MESSAGE: sell 7.710000 18.820785
  504. [ 2024-11-08-14-22-01 ] MESSAGE: buy 6.300000 23.174438
  505. [ 2024-11-08-14-22-01 ] INFO portfolio: OrderEvent: delta=1.73098e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.71, 18.8208); ], bids: [(6.3, 23.1744); ]
  506. [ 2024-11-08-14-22-01 ] MESSAGE: position quote: 0.000000max pos: 20.000000
  507. [ 2024-11-08-14-22-01 ] MESSAGE: max pos is not exceeded
  508. [ 2024-11-08-14-22-01 ] DEBUG overall risk checker res: OrderEvent: delta=1.73098e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.71, 18.8208); ], bids: [(6.3, 23.1744); ]
  509. [ 2024-11-08-14-22-01 ] INFO execution order event process: OrderEvent: delta=1.73098e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.71, 18.8208); ], bids: [(6.3, 23.1744); ]
  510. [ 2024-11-08-14-22-01 ] MESSAGE: LIMIT GRID
  511. [ 2024-11-08-14-22-01 ] DEBUG in _process_limit_grid: 7.71
  512. [ 2024-11-08-14-22-01 ] DEBUG in _process_limit_grid: 18.8208
  513. [ 2024-11-08-14-22-01 ] DEBUG in _process_limit_grid: 6.3
  514. [ 2024-11-08-14-22-01 ] DEBUG in _process_limit_grid: 23.1744
  515. [ 2024-11-08-14-22-01 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 6.300000, "quantity": 23.174400, "type": "LIMIT", "side": "BUY"}
  516. [ 2024-11-08-14-22-01 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 7.710000, "quantity": 18.820800, "type": "LIMIT", "side": "SELL"}
  517. [ 2024-11-08-14-22-01 ] MESSAGE: csize: 1
  518. [New Thread 0x7fff83e00640 (LWP 721720)]
  519. [ 2024-11-08-14-22-01 ] DEBUG ! cancel: {"symbol": "HCDAI", "coid": 16929521601897482212index_order_id , {"dex_order_id": "927547", "order_id": "1731075454282002", "type": "LIMIT", 6300000000000000000/23174400000000000000/BUY "side": "BUY", "status": "NEW", "price": 1888992849193807463
  520. 6.300000, "quantity": 23.113600, "filled_quantity": 0.000000, "update_time": 1731075615000}
  521. [New Thread 0x7fff8cc00640 (LWP 721721)]
  522. cancel_order_wrapper::execute
  523. [ 2024-11-08-14-22-01index_order_id 7710000000000000000/18820800000000000000/SELL 3002639511260523602024/11/08 14:22:01 extends args: {}
  524. ] 2024/11/08 14:22:01 args: {"orderId": "927547"}
  525. DEBUG 2024/11/08 14:22:01 waiting time: 0 ; net timeout after waiting = 120000 ms
  526. ! new:
  527. {"symbol": "HCDAI", "price": 6.300000, "quantity": 23.174400, "client_order_id": 1888992849193807463, "type": "LIMIT", "side": "BUY"}
  528. ! new api API 0x55555596efd0
  529. order_request_t {"symbol": "HCDAI", "price": 6.300000, "quantity": 23.174400, "client_order_id": 1888992849193807463, "type": "LIMIT", "side": "BUY"}
  530. quantity 231744
  531. new_order_wrapper::execute
  532. {"ext_params": {"timeout": "16000", "priority": "0"}, "params": {"quantity": "23174400000000000000", "price": "6300000000000000000", "orderType": "0", "isBid": "true"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
  533. [New Thread 0x7fff8e000640 (LWP 721722)]
  534. [ 2024-11-08-14-22-01 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.710000, "quantity": 18.820800, "client_order_id": 300263951126052360, "type": "LIMIT", "side": "SELL"}
  535. ! new api API 0x55555596efd0
  536. order_request_t {"symbol": "HCDAI", "price": 7.710000, "quantity": 18.820800, "client_order_id": 300263951126052360, "type": "LIMIT", "side": "SELL"}
  537. quantity 188208
  538. new_order_wrapper::execute
  539. {"ext_params": {"timeout": "16000", "priority": "0"}, "params": {"quantity": "18820800000000000000", "price": "7710000000000000000", "orderType": "0", "isBid": "false"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
  540. 2024/11/08 14:22:02 nonce: 39
  541. 2024/11/08 14:22:02 gas price = 66154400000
  542. 2024/11/08 14:22:02 TX Hash: 0xac93997fa3c3aacd35399479093f7df53bc2d53060b60d8c242397682f78fbc5 ; Nonce: 39
  543. {"asset": "MATIC", "free": 2.13549, "locked": 0, "wallet": 0, "update_time": 1731075724034}
  544. {"asset": "HC", "free": 376.416, "locked": 0, "wallet": 0, "update_time": 1731075724034}
  545. {"asset": "DAI", "free": 2919.98, "locked": 0, "wallet": 0, "update_time": 1731075724034}
  546.  
  547. 2024/11/08 14:22:05 timeout_metric -> complete: tx: 0xac93997fa3c3aacd35399479093f7df53bc2d53060b60d8c242397682f78fbc5 ; exec_time: 3.301669s ; attempt = 0 ; first tx 0xac93997fa3c3aacd35399479093f7df53bc2d53060b60d8c242397682f78fbc5
  548. 2024/11/08 14:22:05 golang tx log: {
  549. tx = 0xac93997fa3c3aacd35399479093f7df53bc2d53060b60d8c242397682f78fbc5 ok;
  550. nonce = 39
  551. status = 1
  552. block = 64037602
  553. usedGas = 156301
  554. exec_time = 3.301708s
  555. }
  556. 2024/11/08 14:22:05 extends args: {"timeout": "16000", "priority": "0"}
  557. 2024/11/08 14:22:05 args: {"quantity": "23174400000000000000", "price": "6300000000000000000", "orderType": "0", "isBid": "true"}
  558. 2024/11/08 14:22:05 waiting time: 3931 ; net timeout after waiting = 12069 ms
  559. cancel_order_wrapper::response_filler{"tx_hash": "0xac93997fa3c3aacd35399479093f7df53bc2d53060b60d8c242397682f78fbc5", "used_gas": "156301", "block": "64037602", "error": "ok"}
  560. [ 2024-11-08-14-22-05 ] MESSAGE: cancel order delta: 3933
  561. [Thread 0x7fff83e00640 (LWP 721720) exited]
  562. 2024/11/08 14:22:06 nonce: 40
  563. 2024/11/08 14:22:06 gas price = 66893610628
  564. 2024/11/08 14:22:06 TX Hash: 0x10aa63d3f9dd79787007ce1ead6e8ad6082bbaf7044a9769a84041015ba1fb20 ; Nonce: 40
  565.  
  566. stream = onForceDexOrdersBookUpdated
  567.  
  568. 2024/11/08 14:22:11 timeout_metric -> complete: tx: 0x10aa63d3f9dd79787007ce1ead6e8ad6082bbaf7044a9769a84041015ba1fb20 ; exec_time: 5.270638s ; attempt = 0 ; first tx 0x10aa63d3f9dd79787007ce1ead6e8ad6082bbaf7044a9769a84041015ba1fb20
  569. 2024/11/08 14:22:11 golang tx log: {
  570. tx = 0x10aa63d3f9dd79787007ce1ead6e8ad6082bbaf7044a9769a84041015ba1fb20 ok;
  571. nonce = 40
  572. status = 1
  573. block = 64037605
  574. usedGas = 368103
  575. exec_time = 5.270675s
  576. }
  577. 2024/11/08 14:22:11 extends args: {"timeout": "16000", "priority": "0"}
  578. 2024/11/08 14:22:11 args: {"quantity": "18820800000000000000", "price": "7710000000000000000", "orderType": "0", "isBid": "false"}
  579. 2024/11/08 14:22:11 waiting time: 9833 ; net timeout after waiting = 6167 ms
  580. C++ new_order_wrapper response: {"tx_hash": "0x10aa63d3f9dd79787007ce1ead6e8ad6082bbaf7044a9769a84041015ba1fb20", "used_gas": "368103", "block": "64037605", "error": "ok"}
  581. [ 2024-11-08-14-22-11 ] MESSAGE: new order delta: 9834
  582. [Thread 0x7fff8cc00640 (LWP 721721) exited]
  583. 2024/11/08 14:22:12 nonce: 41
  584. 2024/11/08 14:22:12 gas price = 68982855769
  585. 2024/11/08 14:22:12 TX Hash: 0x52392f0501b884e3297b14d604bdbd49618b87957cde3533f2edddae8721d916 ; Nonce: 41
  586.  
  587. stream = onForceDexOrdersBookUpdated
  588.  
  589. {"asset": "MATIC", "free": 2.10053, "locked": 0, "wallet": 0, "update_time": 1731075734810}
  590. {"asset": "HC", "free": 376.416, "locked": 0, "wallet": 0, "update_time": 1731075734810}
  591. {"asset": "DAI", "free": 2919.6, "locked": 0, "wallet": 0, "update_time": 1731075734810}
  592.  
  593. 2024/11/08 14:22:15 timeout_metric -> complete: tx: 0x52392f0501b884e3297b14d604bdbd49618b87957cde3533f2edddae8721d916 ; exec_time: 3.266209s ; attempt = 0 ; first tx 0x52392f0501b884e3297b14d604bdbd49618b87957cde3533f2edddae8721d916
  594. 2024/11/08 14:22:15 golang tx log: {
  595. tx = 0x52392f0501b884e3297b14d604bdbd49618b87957cde3533f2edddae8721d916 ok;
  596. nonce = 41
  597. status = 1
  598. block = 64037607
  599. usedGas = 378062
  600. exec_time = 3.266247s
  601. }
  602. C++ new_order_wrapper response: {"tx_hash": "0x52392f0501b884e3297b14d604bdbd49618b87957cde3533f2edddae8721d916", "used_gas": "378062", "block": "64037607", "error": "ok"}
  603. [ 2024-11-08-14-22-15 ] MESSAGE: new order delta: 13730
  604. [Thread 0x7fff8e000640 (LWP 721722) exited]
  605.  
  606. stream = onForceDexOrdersBookUpdated
  607.  
  608. {"asset": "MATIC", "free": 2.07445, "locked": 0, "wallet": 0, "update_time": 1731075745630}
  609. {"asset": "HC", "free": 357.595, "locked": 0, "wallet": 0, "update_time": 1731075745630}
  610. {"asset": "DAI", "free": 2919.6, "locked": 0, "wallet": 0, "update_time": 1731075745630}
  611.  
  612.  
  613. stream = onForceDexOrdersBookUpdated
  614.  
  615.  
  616. stream = onMyForceDexOrdersUpdated
  617.  
  618. _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245312", "status": "CANCELLED", "quantity": "23113600000000000000", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "6300000000000000000", "id": "b127e71a-b611-49d0-903f-7eae665ba783", "type": "LIMIT", "orderNumber": "927547", "direction": "BID", "initialQuantity": "23113600000000000000", "createdAt": "2024-11-08T14:20:15.000Z"}}
  619. stream == e_stream::ACCOUNT_ORDER
  620. _fill_order 6300000000000000000/23113600000000000000/BUY 16929521601897482212
  621. WebSocketEvent: delta=1.73108e+11, event_time=1731075615000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337059104, "order": {"symbol": "HCDAI", "coid": 16929521601897482212, {"dex_order_id": "927547", "order_id": "1731075454282002", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 6.300000, "quantity": 23.113600, "filled_quantity": 0.000000, "update_time": 1731075615000}}
  622. [ 2024-11-08-14-22-32 ] INFO Execution::_process: WebSocketEvent: delta=1.73108e+11, event_time=1731075615000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337059104, "order": {"symbol": "HCDAI", "coid": 16929521601897482212, {"dex_order_id": "927547", "order_id": "1731075454282002", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 6.300000, "quantity": 23.113600, "filled_quantity": 0.000000, "update_time": 1731075615000}}
  623. [ 2024-11-08-14-22-32 ] MESSAGE: limit
  624. [ 2024-11-08-14-22-32 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 16929521601897482212, {"dex_order_id": "927547", "order_id": "1731075454282002", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 6.300000, "quantity": 23.113600, "filled_quantity": 0.000000, "update_time": 1731075615000}
  625. old_it != cur_storage.end()
  626. [ 2024-11-08-14-22-32 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 16929521601897482212, {"dex_order_id": "927547", "order_id": "1731075454282002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 6.300000, "quantity": 23.113600, "filled_quantity": 0.000000, "update_time": 1731075615000}
  627. [ 2024-11-08-14-22-32 ] MESSAGE: erase
  628. [ 2024-11-08-14-22-32 ] MESSAGE: ! HCDAI
  629.  
  630. stream = onForceDexOrdersBookUpdated
  631.  
  632. {"asset": "MATIC", "free": 2.07445, "locked": 0, "wallet": 0, "update_time": 1731075756411}
  633. {"asset": "HC", "free": 357.595, "locked": 0, "wallet": 0, "update_time": 1731075756411}
  634. {"asset": "DAI", "free": 2919.6, "locked": 0, "wallet": 0, "update_time": 1731075756411}
  635.  
  636.  
  637. stream = onMyForceDexOrdersUpdated
  638.  
  639. _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245312", "status": "OPEN", "quantity": "23174400000000000000", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "6300000000000000000", "id": "0393c487-ca3f-4834-87dd-cdd728300f27", "type": "LIMIT", "orderNumber": "927568", "direction": "BID", "initialQuantity": "23174400000000000000", "createdAt": "2024-11-08T14:22:11.000Z"}}
  640. stream == e_stream::ACCOUNT_ORDER
  641. _fill_order 6300000000000000000/23174400000000000000/BUY 1888992849193807463
  642. WebSocketEvent: delta=1.73108e+11, event_time=1731075731000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337059104, "order": {"symbol": "HCDAI", "coid": 1888992849193807463, {"dex_order_id": "927568", "order_id": "1731075454282002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 6.300000, "quantity": 23.174400, "filled_quantity": 0.000000, "update_time": 1731075731000}}
  643. [ 2024-11-08-14-22-41 ] INFO Execution::_process: WebSocketEvent: delta=1.73108e+11, event_time=1731075731000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337059104, "order": {"symbol": "HCDAI", "coid": 1888992849193807463, {"dex_order_id": "927568", "order_id": "1731075454282002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 6.300000, "quantity": 23.174400, "filled_quantity": 0.000000, "update_time": 1731075731000}}
  644. [ 2024-11-08-14-22-41 ] MESSAGE: limit
  645. [ 2024-11-08-14-22-41 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 1888992849193807463, {"dex_order_id": "927568", "order_id": "1731075454282002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 6.300000, "quantity": 23.174400, "filled_quantity": 0.000000, "update_time": 1731075731000}
  646. old_it != cur_storage.end()
  647. [ 2024-11-08-14-22-41 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 1888992849193807463, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 6.300000, "quantity": 23.174400, "update_time": 0}
  648. [ 2024-11-08-14-22-41 ] MESSAGE: (execution) filled quantity is not initialized
  649. [ 2024-11-08-14-22-41 ] MESSAGE: ! HCDAI
  650.  
  651. stream = onForceDexOrdersBookUpdated
  652.  
  653. {"asset": "MATIC", "free": 2.07445, "locked": 0, "wallet": 0, "update_time": 1731075767193}
  654. {"asset": "HC", "free": 357.595, "locked": 0, "wallet": 0, "update_time": 1731075767193}
  655. {"asset": "DAI", "free": 2919.6, "locked": 0, "wallet": 0, "update_time": 1731075767193}
  656.  
  657.  
  658. stream = onMyForceDexOrdersUpdated
  659.  
  660. _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245312", "status": "OPEN", "quantity": "18820800000000000000", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "7710000000000000000", "id": "b67d4758-5b31-4cdb-a89b-4d43f33a2263", "type": "LIMIT", "orderNumber": "927569", "direction": "ASK", "initialQuantity": "18820800000000000000", "createdAt": "2024-11-08T14:22:15.000Z"}}
  661. stream == e_stream::ACCOUNT_ORDER
  662. _fill_order 7710000000000000000/18820800000000000000/SELL 300263951126052360
  663. WebSocketEvent: delta=1.73108e+11, event_time=1731075735000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337059104, "order": {"symbol": "HCDAI", "coid": 300263951126052360, {"dex_order_id": "927569", "order_id": "1731075454282002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.710000, "quantity": 18.820800, "filled_quantity": 0.000000, "update_time": 1731075735000}}
  664. [ 2024-11-08-14-22-47 ] INFO Execution::_process: WebSocketEvent: delta=1.73108e+11, event_time=1731075735000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337059104, "order": {"symbol": "HCDAI", "coid": 300263951126052360, {"dex_order_id": "927569", "order_id": "1731075454282002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.710000, "quantity": 18.820800, "filled_quantity": 0.000000, "update_time": 1731075735000}}
  665. [ 2024-11-08-14-22-47 ] MESSAGE: limit
  666. [ 2024-11-08-14-22-47 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 300263951126052360, {"dex_order_id": "927569", "order_id": "1731075454282002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.710000, "quantity": 18.820800, "filled_quantity": 0.000000, "update_time": 1731075735000}
  667. old_it != cur_storage.end()
  668. [ 2024-11-08-14-22-47 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 300263951126052360, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": 7.710000, "quantity": 18.820800, "update_time": 0}
  669. [ 2024-11-08-14-22-47 ] MESSAGE: (execution) filled quantity is not initialized
  670. [ 2024-11-08-14-22-47 ] MESSAGE: ! HCDAI
  671.  
  672. stream = onForceDexOrdersBookUpdated
  673.  
  674.  
  675. stream = onForceDexOrdersBookUpdated
  676.  
  677. {"asset": "MATIC", "free": 2.07445, "locked": 0, "wallet": 0, "update_time": 1731075777978}
  678. {"asset": "HC", "free": 357.595, "locked": 0, "wallet": 0, "update_time": 1731075777978}
  679. {"asset": "DAI", "free": 2919.6, "locked": 0, "wallet": 0, "update_time": 1731075777978}
  680.  
  681.  
  682. stream = onForceDexOrdersBookUpdated
  683.  
  684. {"asset": "MATIC", "free": 2.07445, "locked": 0, "wallet": 0, "update_time": 1731075788756}
  685. {"asset": "HC", "free": 357.595, "locked": 0, "wallet": 0, "update_time": 1731075788756}
  686. {"asset": "DAI", "free": 2919.6, "locked": 0, "wallet": 0, "update_time": 1731075788756}
  687.  
  688.  
  689. stream = onForceDexOrdersBookUpdated
  690.  
  691. {"asset": "MATIC", "free": 2.07445, "locked": 0, "wallet": 0, "update_time": 1731075799547}
  692. {"asset": "HC", "free": 357.595, "locked": 0, "wallet": 0, "update_time": 1731075799547}
  693. {"asset": "DAI", "free": 2919.6, "locked": 0, "wallet": 0, "update_time": 1731075799547}
  694.  
  695.  
  696. stream = onForceDexOrdersBookUpdated
  697.  
  698. {"asset": "MATIC", "free": 2.07445, "locked": 0, "wallet": 0, "update_time": 1731075810330}
  699. {"asset": "HC", "free": 357.595, "locked": 0, "wallet": 0, "update_time": 1731075810330}
  700. {"asset": "DAI", "free": 2919.6, "locked": 0, "wallet": 0, "update_time": 1731075810330}
  701.  
  702.  
  703. stream = onForceDexOrdersBookUpdated
  704.  
  705. {"asset": "MATIC", "free": 2.07445, "locked": 0, "wallet": 0, "update_time": 1731075821588}
  706. {"asset": "HC", "free": 357.595, "locked": 0, "wallet": 0, "update_time": 1731075821588}
  707. {"asset": "DAI", "free": 2919.6, "locked": 0, "wallet": 0, "update_time": 1731075821588}
  708.  
  709.  
  710. stream = onForceDexOrdersBookUpdated
  711.  
  712.  
  713. stream = onForceDexOrdersBookUpdated
  714.  
  715. {"asset": "MATIC", "free": 2.07445, "locked": 0, "wallet": 0, "update_time": 1731075832586}
  716. {"asset": "HC", "free": 357.595, "locked": 0, "wallet": 0, "update_time": 1731075832586}
  717. {"asset": "DAI", "free": 2919.6, "locked": 0, "wallet": 0, "update_time": 1731075832586}
  718.  
  719. ^C
  720. Thread 1 "test" received signal SIGINT, Interrupt.
  721. __futex_abstimed_wait_common64 (private=128, cancel=true, abstime=0x0, op=265, expected=720379, futex_word=0x7fff9cc00910) at ./nptl/futex-internal.c:57
  722. 57 ./nptl/futex-internal.c: No such file or directory.
  723. (gdb)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement