Advertisement
den4ik2003

Untitled

Nov 6th, 2024
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 51.89 KB | None | 0 0
  1. ubuntu@ip-172-31-31-23:~/dmm_strat/solutions/test$ ./test volume/volume_launch.config
  2. {"narrow_spread_trading": "1", "volume_sigma": "0.16", "sigma": "0.0025", "volume": "135", "time_frequency": "120000"}
  3. C++ 1ffd161f95a641469ef6fb6b7b5cbac3
  4. 2024/11/06 15:08:39 init Nonce: 82
  5. 2024/11/06 15:08:39 bind contract 0x6b965968fbc6ff0d2ed7cb1cb38c1c1bbe0327b4
  6. 2024/11/06 15:08:39 bind contract 0x1a9f5fd1b36f8d1e03f0ff6eabbbb268f053033e
  7. 2024/11/06 15:08:39 bind contract 0x6fcb55c09671bd0d28b5a0e9d303793ac005f19c
  8. 2024/11/06 15:08:39 bind contract 0x762d3d096b9a74f4d3adf2b0824456ef8fce5daa
  9. 2024/11/06 15:08:39 bind contract 0x8f3cf7ad23cd3cadbd9735aff958023239c6a063
  10. {"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-06T15:08:34.864Z", "txHash": "0x306571d8352b418b85a88243349ea726074e68360603982196c46eeff8dbc9e0", "address": "0x6b965968fbc6ff0d2ed7cb1cb38c1c1bbe0327b4", "lastSyncedBlock": "63959002", "id": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "quoteAsset": "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063", "symbol": "HCDAI"}
  11. {"userId": "1245318", "error": "ok"}
  12. user_id: 1245318
  13. authentification was completed
  14. API 0x57df79e72fe0
  15. run forever balance 0x57df79e72fe0
  16. {"type": "DEX", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "HC", "free": 61.0527, "locked": 0, "wallet": 0, "update_time": 1730905721482}, {"asset": "DAI", "free": 517.823, "locked": 0, "wallet": 0, "update_time": 1730905721482}]}
  17. get balance indicator 0x57df79e73180
  18. trader {"symbol": "HCDAI", "account": "MFS_2", "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"]}}
  19. >:)
  20. auth token: eyJhbG
  21. {"asset": "HC", "free": 61.0527, "locked": 0, "wallet": 0, "update_time": 1730905722103}
  22. {"asset": "DAI", "free": 517.823, "locked": 0, "wallet": 0, "update_time": 1730905722103}
  23.  
  24. get_open_orders_wrapper::request_filler
  25. auth token: eyJhbG
  26. Execution was constructed
  27. Trader was created
  28. order book {"ask_price": 7.64, "ask_quantity": 82.2022, "bid_price": 7.62, "bid_quantity": 69.8386}
  29. [ 2024-11-06-15-08-43 ] MESSAGE: no volume price file
  30. subscription stream: ACCOUNT_BALANCE
  31. no account balance subscription
  32. subscription stream: PART_DEPTH
  33. subscription stream: ACCOUNT_ORDER
  34. subscription stream: ACCOUNT_TRADE
  35. {"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": "1245318", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e"}}, "type": "subscribe", "id": "1730905723360002"}
  36. {"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": "1730905723360001"}
  37. feed.at("type").s() != ping{"type": "connection_ack"}
  38. feed.at("type").s() != ping{"type": "connection_ack"}
  39.  
  40. stream = onForceDexOrdersBookUpdated
  41.  
  42. [ 2024-11-06-15-08-47 ] MESSAGE: sleep time = 130593
  43. [ 2024-11-06-15-08-47 ] MESSAGE: ask price 7.640000 bid price: 7.620000
  44. [ 2024-11-06-15-08-47 ] MESSAGE: current_volume: 127.182237 previous price = 7.630000
  45. [ 2024-11-06-15-08-47 ] MESSAGE: start calculating new normal distributed price
  46. [ 2024-11-06-15-08-47 ] MESSAGE: calculate deviated price (new) = 7.645576 current price = 7.630000
  47. [ 2024-11-06-15-08-47 ] MESSAGE: delta = 0.015576
  48. [ 2024-11-06-15-08-47 ] MESSAGE: new_price > upper_bound
  49. [ 2024-11-06-15-08-47 ] MESSAGE: new price after = 7.630000
  50. [ 2024-11-06-15-08-47 ] MESSAGE: price: 7.630000
  51. quantity: 16.668707
  52. [ 2024-11-06-15-08-47 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
  53. [ 2024-11-06-15-08-47 ] DEBUG base balance: {"asset": "HC", "free": 61.0527, "locked": 0, "wallet": 0, "update_time": 1730905722103}
  54. [ 2024-11-06-15-08-47 ] DEBUG quote balance: {"asset": "DAI", "free": 517.823, "locked": 0, "wallet": 0, "update_time": 1730905722103}
  55. [ 2024-11-06-15-08-47 ] MESSAGE: balances_ratio: 0.899597
  56. [ 2024-11-06-15-08-47 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
  57. index_order_id 7630000000000000000/16668700000000000000/BUY 3298440460166503198
  58. index_order_id 7630000000000000000/16668700000000000000/SELL 6556506279770838044
  59. [ 2024-11-06-15-08-47 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.630000, "quantity": 16.668700, "client_order_id": 3298440460166503198, "type": "LIMIT", "side": "BUY"}
  60. ! new api API 0x57df79e72fe0
  61. order_request_t {"symbol": "HCDAI", "price": 7.630000, "quantity": 16.668700, "client_order_id": 3298440460166503198, "type": "LIMIT", "side": "BUY"}
  62. [ 2024-11-06-15-08-47quantity ] 166687
  63. DEBUGnew_order_wrapper::execute
  64. ! new: {"ext_params": {"timeout": "30000", "priority": "0"}, "params": {"quantity": "16668700000000000000", "price": "7630000000000000000", "orderType": "0", "isBid": "true"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
  65. {"symbol": "HCDAI", "price": 7.630000, "quantity": 16.668700, "client_order_id": 6556506279770838044, "type": "LIMIT", "side": "SELL"}
  66. ! new api API 0x57df79e72fe0
  67. order_request_t {"symbol": "HCDAI", "price": 7.630000, "quantity": 16.668700, "client_order_id": 6556506279770838044, "type": "LIMIT", "side": "SELL"}
  68. 2024/11/06 15:08:47 extends args: {"timeout": "30000", "priority": "0"}
  69. 2024/11/06 15:08:47 args: {"quantity": "16668700000000000000", "price": "7630000000000000000", "orderType": "0", "isBid": "true"}
  70. 2024/11/06 15:08:47 start cancelation
  71. 2024/11/06 15:08:47 finish cancelation
  72. quantity 166687
  73. new_order_wrapper::execute
  74. {"ext_params": {"timeout": "30000", "priority": "0"}, "params": {"quantity": "16668700000000000000", "price": "7630000000000000000", "orderType": "0", "isBid": "false"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
  75. 2024/11/06 15:08:47 extends args: {"timeout": "30000", "priority": "0"}
  76. 2024/11/06 15:08:47 args: {"quantity": "16668700000000000000", "price": "7630000000000000000", "orderType": "0", "isBid": "false"}
  77. 2024/11/06 15:08:47 start cancelation
  78. 2024/11/06 15:08:47 finish cancelation
  79. 2024/11/06 15:08:47 gas price = 82854903841
  80. 2024/11/06 15:08:47 gas price = 82854903841
  81. 2024/11/06 15:08:47 TX Hash: 0x0c6b722322357c4d764668f0cdb10c935c35229c1f76c7b83871f0e8d9fdd0d9 ; Nonce: 83
  82. 2024/11/06 15:08:47 TX Hash: 0x895a42d851e2e15f5c4ae8bc632bbc88a2e393430c8333930afe95e0c5bd5411 ; Nonce: 82
  83. {"asset": "HC", "free": 61.0527, "locked": 0, "wallet": 0, "update_time": 1730905732736}
  84. {"asset": "DAI", "free": 517.823, "locked": 0, "wallet": 0, "update_time": 1730905732736}
  85.  
  86.  
  87. stream = onForceDexOrdersBookUpdated
  88.  
  89. 2024/11/06 15:08:55 golang tx log: {
  90. tx = 0x895a42d851e2e15f5c4ae8bc632bbc88a2e393430c8333930afe95e0c5bd5411 ok;
  91. status = 1
  92. block = 63959024
  93. usedGas = 368103
  94. exec_time = 7.629068s
  95. }
  96. C++ new_order_wrapper response: {"tx_hash": "0x895a42d851e2e15f5c4ae8bc632bbc88a2e393430c8333930afe95e0c5bd5411", "used_gas": "368103", "block": "63959024", "error": "ok"}
  97. [ 2024-11-06-15-08-55 ] MESSAGE: new order delta: 7630
  98. [ 2024-11-06-15-08-55 ] DEBUG ? new: empty order
  99.  
  100. stream = onForceDexOrdersBookUpdated
  101.  
  102. {"asset": "HC", "free": 61.0527, "locked": 0, "wallet": 0, "update_time": 1730905743368}
  103. {"asset": "DAI", "free": 390.64, "locked": 0, "wallet": 0, "update_time": 1730905743368}
  104.  
  105.  
  106. stream = onForceDexOrdersBookUpdated
  107.  
  108. {"asset": "HC", "free": 61.0527, "locked": 0, "wallet": 0, "update_time": 1730905753996}
  109. {"asset": "DAI", "free": 390.64, "locked": 0, "wallet": 0, "update_time": 1730905753996}
  110.  
  111.  
  112. stream = onMyForceDexOrdersUpdated
  113.  
  114. _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245318", "status": "OPEN", "quantity": "16668700000000000000", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "7630000000000000000", "id": "12480cb8-6d0d-4192-9621-a3c4b46fd065", "type": "LIMIT", "orderNumber": "907646", "direction": "BID", "initialQuantity": "16668700000000000000", "createdAt": "2024-11-06T15:08:54.000Z"}}
  115. stream == e_stream::ACCOUNT_ORDER
  116. _fill_order 7630000000000000000/16668700000000000000/BUY 3298440460166503198
  117. WebSocketEvent: delta=1.73091e+11, event_time=1730905734000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131587567740704, "order": {"symbol": "HCDAI", "coid": 3298440460166503198, {"dex_order_id": "907646", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 0.000000, "update_time": 1730905734000}}
  118. [ 2024-11-06-15-09-23 ] INFO Execution::_process: WebSocketEvent: delta=1.73091e+11, event_time=1730905734000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131587567740704, "order": {"symbol": "HCDAI", "coid": 3298440460166503198, {"dex_order_id": "907646", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 0.000000, "update_time": 1730905734000}}
  119. [ 2024-11-06-15-09-23 ] MESSAGE: limit
  120. [ 2024-11-06-15-09-23 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 3298440460166503198, {"dex_order_id": "907646", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 0.000000, "update_time": 1730905734000}
  121. old_it != cur_storage.end()
  122. [ 2024-11-06-15-09-23 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 3298440460166503198, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 7.630000, "quantity": 16.668700, "update_time": 0}
  123. [ 2024-11-06-15-09-23 ] MESSAGE: (execution) filled quantity is not initialized
  124. [ 2024-11-06-15-09-23 ] MESSAGE: ! HCDAI
  125.  
  126. stream = onForceDexOrdersBookUpdated
  127.  
  128. {"asset": "HC", "free": 61.0527, "locked": 0, "wallet": 0, "update_time": 1730905764657}
  129. {"asset": "DAI", "free": 390.64, "locked": 0, "wallet": 0, "update_time": 1730905764657}
  130.  
  131. {"asset": "HC", "free": 61.0527, "locked": 0, "wallet": 0, "update_time": 1730905775278}
  132. {"asset": "DAI", "free": 390.64, "locked": 0, "wallet": 0, "update_time": 1730905775278}
  133.  
  134.  
  135. stream = onForceDexOrdersBookUpdated
  136.  
  137. {"asset": "HC", "free": 61.0527, "locked": 0, "wallet": 0, "update_time": 1730905785910}
  138. {"asset": "DAI", "free": 390.64, "locked": 0, "wallet": 0, "update_time": 1730905785910}
  139.  
  140.  
  141. stream = onForceDexOrdersBookUpdated
  142.  
  143. {"asset": "HC", "free": 61.0527, "locked": 0, "wallet": 0, "update_time": 1730905796542}
  144. {"asset": "DAI", "free": 390.64, "locked": 0, "wallet": 0, "update_time": 1730905796542}
  145.  
  146.  
  147. stream = onForceDexOrdersBookUpdated
  148.  
  149. {"asset": "HC", "free": 61.0527, "locked": 0, "wallet": 0, "update_time": 1730905807173}
  150. {"asset": "DAI", "free": 390.64, "locked": 0, "wallet": 0, "update_time": 1730905807173}
  151.  
  152. {"asset": "HC", "free": 61.0527, "locked": 0, "wallet": 0, "update_time": 1730905817800}
  153. {"asset": "DAI", "free": 390.64, "locked": 0, "wallet": 0, "update_time": 1730905817800}
  154.  
  155.  
  156. stream = onForceDexOrdersBookUpdated
  157.  
  158. {"asset": "HC", "free": 61.0527, "locked": 0, "wallet": 0, "update_time": 1730905828427}
  159. {"asset": "DAI", "free": 390.64, "locked": 0, "wallet": 0, "update_time": 1730905828427}
  160.  
  161. 2024/11/06 15:10:29 golang tx log: {
  162. tx = 0x0c6b722322357c4d764668f0cdb10c935c35229c1f76c7b83871f0e8d9fdd0d9 ok;
  163. status = 1
  164. block = 63959069
  165. usedGas = 488960
  166. exec_time = 101.658497s
  167. }
  168. C++ new_order_wrapper response: {"tx_hash": "0x0c6b722322357c4d764668f0cdb10c935c35229c1f76c7b83871f0e8d9fdd0d9", "used_gas": "488960", "block": "63959069", "error": "ok"}
  169. [ 2024-11-06-15-10-29 ] MESSAGE: new order delta: 101659
  170. [ 2024-11-06-15-10-29 ] DEBUG ? new: empty order
  171. {"asset": "HC", "free": 57.1196, "locked": 0, "wallet": 0, "update_time": 1730905839064}
  172. {"asset": "DAI", "free": 517.568, "locked": 0, "wallet": 0, "update_time": 1730905839064}
  173.  
  174. {"asset": "HC", "free": 61.0193, "locked": 0, "wallet": 0, "update_time": 1730905849699}
  175. {"asset": "DAI", "free": 517.568, "locked": 0, "wallet": 0, "update_time": 1730905849699}
  176.  
  177.  
  178. stream = onMyForceDexOrdersUpdated
  179.  
  180. _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245318", "status": "OPEN", "quantity": "16668700000000000000", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "7630000000000000000", "id": "074bf58b-d87e-40be-a7f5-0f4d16b20383", "type": "LIMIT", "orderNumber": "907655", "direction": "ASK", "initialQuantity": "16668700000000000000", "createdAt": "2024-11-06T15:10:28.000Z"}}
  181. stream == e_stream::ACCOUNT_ORDER
  182. _fill_order 7630000000000000000/16668700000000000000/SELL 6556506279770838044
  183. WebSocketEvent: delta=1.73091e+11, event_time=1730905828000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131587567740704, "order": {"symbol": "HCDAI", "coid": 6556506279770838044, {"dex_order_id": "907655", "order_id": "1730905723360002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 0.000000, "update_time": 1730905828000}}
  184. [ 2024-11-06-15-10-57 ] INFO Execution::_process: WebSocketEvent: delta=1.73091e+11, event_time=1730905828000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131587567740704, "order": {"symbol": "HCDAI", "coid": 6556506279770838044, {"dex_order_id": "907655", "order_id": "1730905723360002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 0.000000, "update_time": 1730905828000}}
  185. [ 2024-11-06-15-10-57 ] MESSAGE: limit
  186. [ 2024-11-06-15-10-57 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 6556506279770838044, {"dex_order_id": "907655", "order_id": "1730905723360002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 0.000000, "update_time": 1730905828000}
  187. old_it != cur_storage.end()
  188. [ 2024-11-06-15-10-57 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 6556506279770838044, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": 7.630000, "quantity": 16.668700, "update_time": 0}
  189. [ 2024-11-06-15-10-57 ] MESSAGE: (execution) filled quantity is not initialized
  190. [ 2024-11-06-15-10-57 ] MESSAGE: ! HCDAI
  191.  
  192. stream = onMyForceDexOrdersUpdated
  193.  
  194. _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245318", "status": "OPEN", "quantity": "3907563660427093460", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "7630000000000000000", "id": "12480cb8-6d0d-4192-9621-a3c4b46fd065", "type": "LIMIT", "orderNumber": "907646", "direction": "BID", "initialQuantity": "16668700000000000000", "createdAt": "2024-11-06T15:08:54.000Z"}}
  195. stream == e_stream::ACCOUNT_ORDER
  196. _fill_order 7630000000000000000/16668700000000000000/BUY 3298440460166503198
  197. WebSocketEvent: delta=1.73091e+11, event_time=1730905734000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131587567740704, "order": {"symbol": "HCDAI", "coid": 3298440460166503198, {"dex_order_id": "907646", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 12.761200, "update_time": 1730905734000}}
  198. [ 2024-11-06-15-10-57 ] INFO Execution::_process: WebSocketEvent: delta=1.73091e+11, event_time=1730905734000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131587567740704, "order": {"symbol": "HCDAI", "coid": 3298440460166503198, {"dex_order_id": "907646", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 12.761200, "update_time": 1730905734000}}
  199. [ 2024-11-06-15-10-57 ] MESSAGE: limit
  200. [ 2024-11-06-15-10-57 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 3298440460166503198, {"dex_order_id": "907646", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 12.761200, "update_time": 1730905734000}
  201. old_it != cur_storage.end()
  202. [ 2024-11-06-15-10-57 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 3298440460166503198, {"dex_order_id": "907646", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 0.000000, "update_time": 1730905734000}
  203. $$$ {"symbol": "HCDAI", "price": 7.630000, "quantity": 12.761200, "trade_side": BUY, "trade_time": 1730905734000}
  204. open_position for order
  205. [ 2024-11-06-15-10-57 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.630000, "quantity": 12.761200, "trade_side": BUY, "trade_time": 1730905734000}
  206. [ 2024-11-06-15-10-57 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.63, "quantity": 12.7612, "position_quote": 97.368}
  207. [ 2024-11-06-15-10-57 ] MESSAGE: ! HCDAI
  208.  
  209. stream = onMyForceDexOrdersUpdated
  210.  
  211. _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245318", "status": "CLOSED", "quantity": "0", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "7630000000000000000", "id": "074bf58b-d87e-40be-a7f5-0f4d16b20383", "type": "LIMIT", "orderNumber": "907655", "direction": "ASK", "initialQuantity": "16668700000000000000", "createdAt": "2024-11-06T15:10:28.000Z"}}
  212. stream == e_stream::ACCOUNT_ORDER
  213. _fill_order 7630000000000000000/16668700000000000000/SELL 6556506279770838044
  214. WebSocketEvent: delta=1.73091e+11, event_time=1730905828000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131587567740704, "order": {"symbol": "HCDAI", "coid": 6556506279770838044, {"dex_order_id": "907655", "order_id": "1730905723360002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 16.668700, "update_time": 1730905828000}}
  215. [ 2024-11-06-15-10-57 ] INFO Execution::_process: WebSocketEvent: delta=1.73091e+11, event_time=1730905828000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131587567740704, "order": {"symbol": "HCDAI", "coid": 6556506279770838044, {"dex_order_id": "907655", "order_id": "1730905723360002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 16.668700, "update_time": 1730905828000}}
  216. [ 2024-11-06-15-10-57 ] MESSAGE: limit
  217. [ 2024-11-06-15-10-57 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 6556506279770838044, {"dex_order_id": "907655", "order_id": "1730905723360002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 16.668700, "update_time": 1730905828000}
  218. old_it != cur_storage.end()
  219. [ 2024-11-06-15-10-57 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 6556506279770838044, {"dex_order_id": "907655", "order_id": "1730905723360002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 0.000000, "update_time": 1730905828000}
  220. $$$ {"symbol": "HCDAI", "price": 7.630000, "quantity": 16.668700, "trade_side": SELL, "trade_time": 1730905828000}
  221. open_position for order
  222. [ 2024-11-06-15-10-57 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.630000, "quantity": 16.668700, "trade_side": SELL, "trade_time": 1730905828000}
  223. [ 2024-11-06-15-10-57 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.63, "quantity": -3.9075, "position_quote": -29.8142}
  224. [ 2024-11-06-15-10-57 ] MESSAGE: erase
  225. [ 2024-11-06-15-10-57 ] MESSAGE: ! HCDAI
  226.  
  227. stream = onForceDexOrdersBookUpdated
  228.  
  229. [ 2024-11-06-15-10-58 ] MESSAGE: sleep time = 125417
  230. [ 2024-11-06-15-10-58 ] MESSAGE: ask price 7.640000 bid price: 7.630000
  231. [ 2024-11-06-15-10-58 ] MESSAGE: Narrow spread
  232. [ 2024-11-06-15-10-58 ] MESSAGE: dealing with narrow spread
  233. [ 2024-11-06-15-10-58 ] INFO dealing with narrow spread result: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.63, 9.64596); ], bids: [(7.64, 2.9785); ]
  234. [ 2024-11-06-15-10-58 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.63, 9.64596); ], bids: [(7.64, 2.9785); ]
  235. [ 2024-11-06-15-10-58 ] DEBUG base balance: {"asset": "HC", "free": 61.0193, "locked": 0, "wallet": 0, "update_time": 1730905849699}
  236. [ 2024-11-06-15-10-58 ] DEBUG quote balance: {"asset": "DAI", "free": 517.568, "locked": 0, "wallet": 0, "update_time": 1730905849699}
  237. [ 2024-11-06-15-10-58 ] MESSAGE: balances_ratio: 0.900138
  238. [ 2024-11-06-15-10-58 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.63, 9.64596); ], bids: [(7.64, 2.9785); ]
  239. [ 2024-11-06-15-10-58 ] MESSAGE: LIMIT GRID
  240. [ 2024-11-06-15-10-58 ] DEBUG in _process_limit_grid: 7.63
  241. [ 2024-11-06-15-10-58 ] DEBUG in _process_limit_grid: 9.64596
  242. [ 2024-11-06-15-10-58 ] DEBUG in _process_limit_grid: 7.64
  243. [ 2024-11-06-15-10-58 ] DEBUG in _process_limit_grid: 2.9785
  244. [ 2024-11-06-15-10-58 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 7.640000, "quantity": 2.978500, "type": "LIMIT", "side": "BUY"}
  245. [ 2024-11-06-15-10-58 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 7.630000, "quantity": 9.646000, "type": "LIMIT", "side": "SELL"}
  246. [ 2024-11-06-15-10-58 ] MESSAGE: csize: 1
  247. index_order_id 7640000000000000000/2978500000000000000/BUY 12021196675207588524
  248. [ 2024-11-06-15-10-58 ] DEBUG ! cancel: index_order_id 7630000000000000000/9646000000000000000/SELL {"symbol": "15182699657445204092
  249. HCDAI", "coid": 3298440460166503198, {"dex_order_id": "907646", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 12.761200, "update_time": 1730905734000}
  250. [ cancel_order_wrapper::execute
  251. 2024-11-06-15-10-58 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.640000, "quantity": 2.978500, "client_order_id": 12021196675207588524, "type": "LIMIT", "side": "BUY"}
  252. ! new api API 0x57df79e72fe0
  253. 2024/11/06 15:10:58 extends args: {}
  254. order_request_t {"symbol": "HCDAI", "price": 7.640000, "quantity": 2.978500, "client_order_id": 12021196675207588524, "type": "LIMIT", "side": "BUY"}
  255. 2024/11/06 15:10:58 args: {"orderId": "907646"}
  256. 2024/11/06 15:10:58 start cancelation
  257. 2024/11/06 15:10:58 finish cancelation
  258. quantity 29785
  259. new_order_wrapper::execute
  260. {"ext_params": {"timeout": "30000", "priority": "0"}, "params": {"quantity": "2978500000000000000", "price": "7640000000000000000", "orderType": "0", "isBid": "true"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
  261. 2024/11/06 15:10:58 extends args: {"timeout": "30000", "priority": "0"}
  262. 2024/11/06 15:10:58 args: {"quantity": "2978500000000000000", "price": "7640000000000000000", "orderType": "0", "isBid": "true"}
  263. 2024/11/06 15:10:58 start cancelation
  264. 2024/11/06 15:10:58 finish cancelation
  265. [ 2024-11-06-15-10-58 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.630000, "quantity": 9.646000, "client_order_id": 15182699657445204092, "type": "LIMIT", "side": "SELL"}
  266. ! new api API 0x57df79e72fe0
  267. order_request_t {"symbol": "HCDAI", "price": 7.630000, "quantity": 9.646000, "client_order_id": 15182699657445204092, "type": "LIMIT", "side": "SELL"}
  268. quantity 96460
  269. new_order_wrapper::execute
  270. {"ext_params": {"timeout": "30000", "priority": "0"}, "params": {"quantity": "9646000000000000000", "price": "7630000000000000000", "orderType": "0", "isBid": "false"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
  271. 2024/11/06 15:10:58 extends args: {"timeout": "30000", "priority": "0"}
  272. 2024/11/06 15:10:58 args: {"quantity": "9646000000000000000", "price": "7630000000000000000", "orderType": "0", "isBid": "false"}
  273. 2024/11/06 15:10:58 start cancelation
  274. 2024/11/06 15:10:58 finish cancelation
  275. 2024/11/06 15:10:58 gas price = 82134595660
  276. 2024/11/06 15:10:58 gas price = 82134595660
  277. 2024/11/06 15:10:58 gas price = 82134595660
  278. 2024/11/06 15:10:58 TX Hash: 0xc5ff4e7a089fa58ce8019fc4b0c084ed1f521ab7c4c6ad04395921e6145503ee ; Nonce: 86
  279. 2024/11/06 15:10:58 TX Hash: 0x69d7f3f4a375ad5d4a6a6d3ee39b24e21d332273162adb559d7c9f72e1d1aaa0 ; Nonce: 85
  280. 2024/11/06 15:10:58 TX Hash: 0x9eda2eb451979b91e12d7518b897ee2afd166782aa1d2cf5f6c15f24f49a436c ; Nonce: 84
  281. {"asset": "HC", "free": 61.0193, "locked": 0, "wallet": 0, "update_time": 1730905860335}
  282. {"asset": "DAI", "free": 517.568, "locked": 0, "wallet": 0, "update_time": 1730905860335}
  283.  
  284. 2024/11/06 15:11:03 {
  285. tx = 0x9eda2eb451979b91e12d7518b897ee2afd166782aa1d2cf5f6c15f24f49a436c failed
  286. exec_time = 5.152626s
  287. }
  288. cancel_order_wrapper::response_filler{"tx_hash": "0x9eda2eb451979b91e12d7518b897ee2afd166782aa1d2cf5f6c15f24f49a436c", "error": "unknown tx error"}
  289. [ 2024-11-06-15-11-03 ] MESSAGE: cancel order delta: 5307
  290. [ 2024-11-06-15-11-03 ] DEBUG ? cancel: empty order
  291. 2024/11/06 15:11:07 golang tx log: {
  292. tx = 0x69d7f3f4a375ad5d4a6a6d3ee39b24e21d332273162adb559d7c9f72e1d1aaa0 ok;
  293. status = 1
  294. block = 63959087
  295. usedGas = 451148
  296. exec_time = 9.742036s
  297. }
  298. C++ new_order_wrapper response: {"tx_hash": "0x69d7f3f4a375ad5d4a6a6d3ee39b24e21d332273162adb559d7c9f72e1d1aaa0", "used_gas": "451148", "block": "63959087", "error": "ok"}
  299. [ 2024-11-06-15-11-07 ] MESSAGE: new order delta: 9743
  300. [ 2024-11-06-15-11-07 ] DEBUG ? new: empty order
  301. {"asset": "HC", "free": 63.9919, "locked": 0, "wallet": 0, "update_time": 1730905870966}
  302. {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730905870966}
  303.  
  304. 2024/11/06 15:11:13 golang tx log: {
  305. tx = 0xc5ff4e7a089fa58ce8019fc4b0c084ed1f521ab7c4c6ad04395921e6145503ee ok;
  306. status = 1
  307. block = 63959089
  308. usedGas = 378050
  309. exec_time = 14.928171s
  310. }
  311. C++ new_order_wrapper response: {"tx_hash": "0xc5ff4e7a089fa58ce8019fc4b0c084ed1f521ab7c4c6ad04395921e6145503ee", "used_gas": "378050", "block": "63959089", "error": "ok"}
  312. [ 2024-11-06-15-11-13 ] MESSAGE: new order delta: 14928
  313. [ 2024-11-06-15-11-13 ] DEBUG ? new: empty order
  314.  
  315. stream = onMyForceDexOrdersUpdated
  316.  
  317. _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245318", "status": "CLOSED", "quantity": "0", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "7630000000000000000", "id": "12480cb8-6d0d-4192-9621-a3c4b46fd065", "type": "LIMIT", "orderNumber": "907646", "direction": "BID", "initialQuantity": "16668700000000000000", "createdAt": "2024-11-06T15:08:54.000Z"}}
  318. stream == e_stream::ACCOUNT_ORDER
  319. _fill_order 7630000000000000000/16668700000000000000/BUY 3298440460166503198
  320. WebSocketEvent: delta=1.73091e+11, event_time=1730905734000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131587567740704, "order": {"symbol": "HCDAI", "coid": 3298440460166503198, {"dex_order_id": "907646", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 16.668700, "update_time": 1730905734000}}
  321. [ 2024-11-06-15-11-15 ] INFO Execution::_process: WebSocketEvent: delta=1.73091e+11, event_time=1730905734000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131587567740704, "order": {"symbol": "HCDAI", "coid": 3298440460166503198, {"dex_order_id": "907646", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 16.668700, "update_time": 1730905734000}}
  322. [ 2024-11-06-15-11-15 ] MESSAGE: limit
  323. [ 2024-11-06-15-11-15 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 3298440460166503198, {"dex_order_id": "907646", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 16.668700, "update_time": 1730905734000}
  324. old_it != cur_storage.end()
  325. [ 2024-11-06-15-11-15 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 3298440460166503198, {"dex_order_id": "907646", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 12.761200, "update_time": 1730905734000}
  326. $$$ {"symbol": "HCDAI", "price": 7.630000, "quantity": 3.907500, "trade_side": BUY, "trade_time": 1730905734000}
  327. open_position for order
  328. [ 2024-11-06-15-11-15 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.630000, "quantity": 3.907500, "trade_side": BUY, "trade_time": 1730905734000}
  329. [ 2024-11-06-15-11-15 ] INFO new position: {"symbol": "HCDAI", "entry_price": 16, "quantity": -4.44089e-16, "position_quote": -7.10543e-15}
  330. [ 2024-11-06-15-11-15 ] MESSAGE: erase
  331. [ 2024-11-06-15-11-15 ] MESSAGE: ! HCDAI
  332.  
  333. stream = onForceDexOrdersBookUpdated
  334.  
  335. {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730905881596}
  336. {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730905881596}
  337.  
  338.  
  339. stream = onForceDexOrdersBookUpdated
  340.  
  341. {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730905892224}
  342. {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730905892224}
  343.  
  344.  
  345. stream = onMyForceDexOrdersUpdated
  346.  
  347. _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245318", "status": "OPEN", "quantity": "2978500000000000000", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "7640000000000000000", "id": "f99fb84a-7b45-4e90-a3f7-c9c06cd0040c", "type": "LIMIT", "orderNumber": "907661", "direction": "BID", "initialQuantity": "2978500000000000000", "createdAt": "2024-11-06T15:11:06.000Z"}}
  348. stream == e_stream::ACCOUNT_ORDER
  349. _fill_order 7640000000000000000/2978500000000000000/BUY 12021196675207588524
  350. WebSocketEvent: delta=1.73091e+11, event_time=1730905866000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131587567740704, "order": {"symbol": "HCDAI", "coid": 12021196675207588524, {"dex_order_id": "907661", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.640000, "quantity": 2.978500, "filled_quantity": 0.000000, "update_time": 1730905866000}}
  351. [ 2024-11-06-15-11-33 ] INFO Execution::_process: WebSocketEvent: delta=1.73091e+11, event_time=1730905866000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131587567740704, "order": {"symbol": "HCDAI", "coid": 12021196675207588524, {"dex_order_id": "907661", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.640000, "quantity": 2.978500, "filled_quantity": 0.000000, "update_time": 1730905866000}}
  352. [ 2024-11-06-15-11-33 ] MESSAGE: limit
  353. [ 2024-11-06-15-11-33 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 12021196675207588524, {"dex_order_id": "907661", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.640000, "quantity": 2.978500, "filled_quantity": 0.000000, "update_time": 1730905866000}
  354. old_it != cur_storage.end()
  355. [ 2024-11-06-15-11-33 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 12021196675207588524, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 7.640000, "quantity": 2.978500, "update_time": 0}
  356. [ 2024-11-06-15-11-33 ] MESSAGE: (execution) filled quantity is not initialized
  357. [ 2024-11-06-15-11-33 ] MESSAGE: ! HCDAI
  358.  
  359. stream = onMyForceDexOrdersUpdated
  360.  
  361. _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245318", "status": "CLOSED", "quantity": "0", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "7640000000000000000", "id": "f99fb84a-7b45-4e90-a3f7-c9c06cd0040c", "type": "LIMIT", "orderNumber": "907661", "direction": "BID", "initialQuantity": "2978500000000000000", "createdAt": "2024-11-06T15:11:06.000Z"}}
  362. stream == e_stream::ACCOUNT_ORDER
  363. _fill_order 7640000000000000000/2978500000000000000/BUY 12021196675207588524
  364. WebSocketEvent: delta=1.73091e+11, event_time=1730905866000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131587567740704, "order": {"symbol": "HCDAI", "coid": 12021196675207588524, {"dex_order_id": "907661", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.640000, "quantity": 2.978500, "filled_quantity": 2.978500, "update_time": 1730905866000}}
  365. [ 2024-11-06-15-11-33 ] INFO Execution::_process: WebSocketEvent: delta=1.73091e+11, event_time=1730905866000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131587567740704, "order": {"symbol": "HCDAI", "coid": 12021196675207588524, {"dex_order_id": "907661", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.640000, "quantity": 2.978500, "filled_quantity": 2.978500, "update_time": 1730905866000}}
  366. [ 2024-11-06-15-11-33 ] MESSAGE: limit
  367. [ 2024-11-06-15-11-33 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 12021196675207588524, {"dex_order_id": "907661", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.640000, "quantity": 2.978500, "filled_quantity": 2.978500, "update_time": 1730905866000}
  368. old_it != cur_storage.end()
  369. [ 2024-11-06-15-11-33 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 12021196675207588524, {"dex_order_id": "907661", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.640000, "quantity": 2.978500, "filled_quantity": 0.000000, "update_time": 1730905866000}
  370. $$$ {"symbol": "HCDAI", "price": 7.640000, "quantity": 2.978500, "trade_side": BUY, "trade_time": 1730905866000}
  371. open_position for order
  372. [ 2024-11-06-15-11-33 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.640000, "quantity": 2.978500, "trade_side": BUY, "trade_time": 1730905866000}
  373. [ 2024-11-06-15-11-33 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.64, "quantity": 2.9785, "position_quote": 22.7557}
  374. [ 2024-11-06-15-11-33 ] MESSAGE: erase
  375. [ 2024-11-06-15-11-33 ] MESSAGE: ! HCDAI
  376.  
  377. stream = onForceDexOrdersBookUpdated
  378.  
  379.  
  380. stream = onMyForceDexOrdersUpdated
  381.  
  382. _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245318", "status": "OPEN", "quantity": "9646000000000000000", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "7630000000000000000", "id": "3e6a6785-f80e-4140-aaf4-46c3d5701321", "type": "LIMIT", "orderNumber": "907662", "direction": "ASK", "initialQuantity": "9646000000000000000", "createdAt": "2024-11-06T15:11:12.000Z"}}
  383. stream == e_stream::ACCOUNT_ORDER
  384. _fill_order 7630000000000000000/9646000000000000000/SELL 15182699657445204092
  385. WebSocketEvent: delta=1.73091e+11, event_time=1730905872000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131587567740704, "order": {"symbol": "HCDAI", "coid": 15182699657445204092, {"dex_order_id": "907662", "order_id": "1730905723360002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.630000, "quantity": 9.646000, "filled_quantity": 0.000000, "update_time": 1730905872000}}
  386. [ 2024-11-06-15-11-39 ] INFO Execution::_process: WebSocketEvent: delta=1.73091e+11, event_time=1730905872000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131587567740704, "order": {"symbol": "HCDAI", "coid": 15182699657445204092, {"dex_order_id": "907662", "order_id": "1730905723360002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.630000, "quantity": 9.646000, "filled_quantity": 0.000000, "update_time": 1730905872000}}
  387. [ 2024-11-06-15-11-39 ] MESSAGE: limit
  388. [ 2024-11-06-15-11-39 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 15182699657445204092, {"dex_order_id": "907662", "order_id": "1730905723360002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.630000, "quantity": 9.646000, "filled_quantity": 0.000000, "update_time": 1730905872000}
  389. old_it != cur_storage.end()
  390. [ 2024-11-06-15-11-39 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 15182699657445204092, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": 7.630000, "quantity": 9.646000, "update_time": 0}
  391. [ 2024-11-06-15-11-39 ] MESSAGE: (execution) filled quantity is not initialized
  392. [ 2024-11-06-15-11-39 ] MESSAGE: ! HCDAI
  393.  
  394. stream = onForceDexOrdersBookUpdated
  395.  
  396. {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730905902857}
  397. {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730905902857}
  398.  
  399. {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730905913495}
  400. {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730905913495}
  401.  
  402.  
  403. stream = onForceDexOrdersBookUpdated
  404.  
  405. {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730905924136}
  406. {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730905924136}
  407.  
  408.  
  409. stream = onForceDexOrdersBookUpdated
  410.  
  411. {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730905934765}
  412. {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730905934765}
  413.  
  414.  
  415. stream = onForceDexOrdersBookUpdated
  416.  
  417. {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730905945503}
  418. {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730905945503}
  419.  
  420.  
  421. stream = onForceDexOrdersBookUpdated
  422.  
  423. {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730905956132}
  424. {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730905956132}
  425.  
  426.  
  427. stream = onForceDexOrdersBookUpdated
  428.  
  429. {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730905966789}
  430. {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730905966789}
  431.  
  432.  
  433. stream = onForceDexOrdersBookUpdated
  434.  
  435.  
  436. stream = onForceDexOrdersBookUpdated
  437.  
  438. {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730905977423}
  439. {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730905977423}
  440.  
  441. {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730905988055}
  442. {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730905988055}
  443.  
  444. {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730905998682}
  445. {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730905998682}
  446.  
  447.  
  448. stream = onForceDexOrdersBookUpdated
  449.  
  450. [ 2024-11-06-15-13-23 ] MESSAGE: sleep time = 113481
  451. [ 2024-11-06-15-13-23 ] MESSAGE: ask price 7.630000 bid price: 7.620000
  452. [ 2024-11-06-15-13-23 ] MESSAGE: Narrow spread
  453. [ 2024-11-06-15-13-23 ] MESSAGE: dealing with narrow spread
  454. [ 2024-11-06-15-13-23 ] INFO dealing with narrow spread result: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.62, 8.4754); ], bids: [(7.63, 8.46429); ]
  455. [ 2024-11-06-15-13-23 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.62, 8.4754); ], bids: [(7.63, 8.46429); ]
  456. [ 2024-11-06-15-13-23 ] DEBUG base balance: {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730905998682}
  457. [ 2024-11-06-15-13-23 ] DEBUG quote balance: {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730905998682}
  458. [ 2024-11-06-15-13-23 ] MESSAGE: balances_ratio: 0.837413
  459. [ 2024-11-06-15-13-23 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.62, 8.4754); ], bids: [(7.63, 8.46429); ]
  460. [ 2024-11-06-15-13-23 ] MESSAGE: LIMIT GRID
  461. [ 2024-11-06-15-13-23 ] DEBUG in _process_limit_grid: 7.62
  462. [ 2024-11-06-15-13-23 ] DEBUG in _process_limit_grid: 8.4754
  463. [ 2024-11-06-15-13-23 ] DEBUG in _process_limit_grid: 7.63
  464. [ 2024-11-06-15-13-23 ] DEBUG in _process_limit_grid: 8.46429
  465. [ 2024-11-06-15-13-23 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 7.630000, "quantity": 8.464300, "type": "LIMIT", "side": "BUY"}
  466. [ 2024-11-06-15-13-23 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 7.620000, "quantity": 8.475400, "type": "LIMIT", "side": "SELL"}
  467. [ 2024-11-06-15-13-23 ] MESSAGE: csize: 1
  468. index_order_id 7630000000000000000/8464300000000000000/BUY 724052859710634234
  469. [ 2024-11-06-15-13-23 ] DEBUG index_order_id 7620000000000000000/8475400000000000000/SELL 16238776736966203298
  470. ! cancel: {"symbol": "HCDAI", "coid": 15182699657445204092, {"dex_order_id": "907662", "order_id": "1730905723360002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.630000, "quantity": 9.646000, "filled_quantity": 0.000000, "update_time": 1730905872000}
  471. cancel_order_wrapper::execute
  472. [ 2024-11-06-15-13-23 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.630000, "quantity": 8.464300, "client_order_id": 724052859710634234, "type": "LIMIT", "side": "BUY"}
  473. ! new api API 0x57df79e72fe0
  474. order_request_t {"symbol": "HCDAI", "price": 7.630000, "quantity": 8.464300, "client_order_id": 724052859710634234, "type": "LIMIT", "side": "BUY"}
  475. [ 2024-11-06-15-13-23 ] DEBUGquantity 84643
  476. new_order_wrapper::execute
  477. {"ext_params": {"timeout": "30000", "priority": "0"}, "params": {"quantity": "8464300000000000000", "price": "7630000000000000000", "orderType": "0", "isBid": "true"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
  478. ! new: {"symbol": "HCDAI", "price": 7.620000, "quantity": 8.475400, "client_order_id": 16238776736966203298, "type": "LIMIT", "side": "SELL"}
  479. ! new api API 0x57df79e72fe0
  480. 2024/11/06 15:13:23 extends args: {"timeout": "30000", "priority": "0"}
  481. 2024/11/06 15:13:23 args: {"quantity": "8464300000000000000", "price": "7630000000000000000", "orderType": "0", "isBid": "true"}
  482. 2024/11/06 15:13:23 start cancelation
  483. order_request_t {"symbol": "HCDAI", "price": 7.620000, "quantity": 8.475400, "client_order_id": 16238776736966203298, "type": "LIMIT", "side": "SELL"}
  484. 2024/11/06 15:13:23 finish cancelation
  485. quantity 84754
  486. new_order_wrapper::execute
  487. {"ext_params": {"timeout": "30000", "priority": "0"}, "params": {"quantity": "8475400000000000000", "price": "7620000000000000000", "orderType": "0", "isBid": "false"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
  488. 2024/11/06 15:13:23 extends args: {}
  489. 2024/11/06 15:13:23 args: {"orderId": "907662"}
  490. 2024/11/06 15:13:23 start cancelation
  491. 2024/11/06 15:13:23 finish cancelation
  492. 2024/11/06 15:13:23 extends args: {"timeout": "30000", "priority": "0"}
  493. 2024/11/06 15:13:23 args: {"quantity": "8475400000000000000", "price": "7620000000000000000", "orderType": "0", "isBid": "false"}
  494. 2024/11/06 15:13:23 start cancelation
  495. 2024/11/06 15:13:23 finish cancelation
  496. 2024/11/06 15:13:23 gas price = 85055155600
  497. 2024/11/06 15:13:23 gas price = 85055155600
  498. 2024/11/06 15:13:23 gas price = 85055155600
  499. 2024/11/06 15:13:23 TX Hash: 0x5c72cf0d60c3de25ae9615e1c66b1f157eb1a7708888c3638af7e98f2f43ebcf ; Nonce: 87
  500. 2024/11/06 15:13:23 TX Hash: 0x4d18c2069f2fdca7a4744a502cb986b773b439a50d2bc7d7af2fcd39e302e246 ; Nonce: 89
  501. 2024/11/06 15:13:23 TX Hash: 0x5f8a9969109967a726c0d1757244913f70cb51614d118e186b49a2140d5b0964 ; Nonce: 88
  502. {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730906009307}
  503. {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730906009307}
  504.  
  505.  
  506. stream = onForceDexOrdersBookUpdated
  507.  
  508. {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730906019936}
  509. {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730906019936}
  510.  
  511.  
  512. stream = onForceDexOrdersBookUpdated
  513.  
  514. {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730906030559}
  515. {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730906030559}
  516.  
  517.  
  518. stream = onForceDexOrdersBookUpdated
  519.  
  520. {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730906041188}
  521. {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730906041188}
  522.  
  523. {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730906051821}
  524. {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730906051821}
  525.  
  526.  
  527. stream = onForceDexOrdersBookUpdated
  528.  
  529. {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730906062446}
  530. {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730906062446}
  531.  
  532.  
  533. stream = onForceDexOrdersBookUpdated
  534.  
  535. {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730906073076}
  536. {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730906073076}
  537.  
  538.  
  539. stream = onForceDexOrdersBookUpdated
  540.  
  541. {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730906083711}
  542. {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730906083711}
  543.  
  544. {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730906094334}
  545. {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730906094334}
  546.  
  547.  
  548. stream = onForceDexOrdersBookUpdated
  549.  
  550. {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730906104964}
  551. {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730906104964}
  552.  
  553. {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730906115586}
  554. {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730906115586}
  555.  
  556.  
  557. stream = onForceDexOrdersBookUpdated
  558.  
  559. [ 2024-11-06-15-15-26 ] MESSAGE: sleep time = 112904
  560. [ 2024-11-06-15-15-26 ] MESSAGE: ask price 7.620000 bid price: 7.610000
  561. [ 2024-11-06-15-15-26 ] MESSAGE: Narrow spread
  562. [ 2024-11-06-15-15-26 ] MESSAGE: dealing with narrow spread
  563. [ 2024-11-06-15-15-26 ] INFO dealing with narrow spread result: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.61, 9.91854); ], bids: [(7.62, 9.90553); ]
  564. [ 2024-11-06-15-15-26 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.61, 9.91854); ], bids: [(7.62, 9.90553); ]
  565. [ 2024-11-06-15-15-26 ] DEBUG base balance: {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730906115586}
  566. [ 2024-11-06-15-15-26 ] DEBUG quote balance: {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730906115586}
  567. [ 2024-11-06-15-15-26 ] MESSAGE: balances_ratio: 0.836315
  568. [ 2024-11-06-15-15-26 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.61, 9.91854); ], bids: [(7.62, 9.90553); ]
  569. [ 2024-11-06-15-15-26 ] MESSAGE: LIMIT GRID
  570. [ 2024-11-06-15-15-26 ] DEBUG in _process_limit_grid: 7.61
  571. [ 2024-11-06-15-15-26 ] DEBUG in _process_limit_grid: 9.91854
  572. [ 2024-11-06-15-15-26 ] DEBUG in _process_limit_grid: 7.62
  573. [ 2024-11-06-15-15-26 ] DEBUG in _process_limit_grid: 9.90553
  574. [ 2024-11-06-15-15-26 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 7.620000, "quantity": 9.905500, "type": "LIMIT", "side": "BUY"}
  575. [ 2024-11-06-15-15-26 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 7.610000, "quantity": 9.918500, "type": "LIMIT", "side": "SELL"}
  576. [ 2024-11-06-15-15-26 ] MESSAGE: csize: 3
  577. [ 2024-11-06-15-15-26 ] DEBUG ! cancel: {"symbol": "HCDAI", "coid": 16238776736966203298, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "index_order_id 7620000000000000000/9905500000000000000/BUYSELL", "status": " PENDING15802481313642806534
  578. ", "price": 7.620000, "quantity": 8.475400, "update_time": 0}
  579. index_order_id 7610000000000000000/9918500000000000000/SELL 504508060277098085
  580. cancel_order_wrapper::execute
  581. [ 2024-11-06-15-15-26 ] DEBUG ! cancel: {"symbol": "HCDAI", "coid": 724052859710634234, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 2024/11/06 15:15:26 extends args: {}
  582. 2024/11/06 15:15:26 args: {"orderId": "0"}
  583. 7.630000, "quantity": 2024/11/06 15:15:26 start cancelation
  584. 8.464300, "update_time": 0}
  585. 2024/11/06 15:15:26 finish cancelation
  586. cancel_order_wrapper::execute
  587. 2024/11/06 15:15:26 extends args: {}
  588. 2024/11/06 15:15:26 args: {"orderId": "0"}
  589. 2024/11/06 15:15:26 start cancelation
  590. 2024/11/06 15:15:26 finish cancelation
  591. [ 2024-11-06-15-15-26 ] DEBUG ! cancel: {"symbol": "HCDAI", "coid": 15182699657445204092, {"dex_order_id": "907662", "order_id": "1730905723360002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.630000, "quantity": 9.646000, "filled_quantity": 0.000000, "update_time": 1730905872000}
  592. cancel_order_wrapper::execute
  593. [ 2024-11-06-15-15-26 ] DEBUG ! new: 2024/11/06 15:15:26 extends args: {}
  594. {"symbol": "HCDAI", "price": 7.620000, "quantity": 9.905500, "client_order_id": 15802481313642806534, "type": "LIMIT", "side": "BUY"}
  595. 2024/11/06 15:15:26 args: {"orderId": "907662"}
  596. ! new api API 2024/11/06 15:15:26 start cancelation
  597. 0x57df79e72fe0
  598. 2024/11/06 15:15:26 finish cancelation
  599. order_request_t {"symbol": "HCDAI", "price": 7.620000, "quantity": 9.905500, "client_order_id": 15802481313642806534, "type": "LIMIT", "side": "BUY"}
  600. quantity 99055
  601. new_order_wrapper::execute
  602. {"ext_params": {"timeout": "30000", "priority": "0"}, "params": {"quantity": "9905500000000000000", "price": "7620000000000000000", "orderType": "0", "isBid": "true"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
  603. 2024/11/06 15:15:26 extends args: {"timeout": "30000", "priority": "0"}
  604. 2024/11/06 15:15:26 args: {"quantity": "9905500000000000000", "price": "7620000000000000000", "orderType": "0", "isBid": "true"}
  605. 2024/11/06 15:15:26 start cancelation
  606. 2024/11/06 15:15:26 finish cancelation
  607. [ 2024-11-06-15-15-26 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.610000, "quantity": 9.918500, "client_order_id": 504508060277098085, "type": "LIMIT", "side": "SELL"}
  608. ! new api API 0x57df79e72fe0
  609. order_request_t {"symbol": "HCDAI", "price": 7.610000, "quantity": 9.918500, "client_order_id": 504508060277098085, "type": "LIMIT", "side": "SELL"}
  610. quantity 99185
  611. new_order_wrapper::execute
  612. {"ext_params": {"timeout": "30000", "priority": "0"}, "params": {"quantity": "9918500000000000000", "price": "7610000000000000000", "orderType": "0", "isBid": "false"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
  613. 2024/11/06 15:15:26 extends args: {"timeout": "30000", "priority": "0"}
  614. 2024/11/06 15:15:26 args: {"quantity": "9918500000000000000", "price": "7610000000000000000", "orderType": "0", "isBid": "false"}
  615. 2024/11/06 15:15:26 start cancelation
  616. 2024/11/06 15:15:26 finish cancelation
  617. {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730906126397}
  618. {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730906126397}
  619.  
  620. 2024/11/06 15:15:26 cancel tx 0x4d18c2069f2fdca7a4744a502cb986b773b439a50d2bc7d7af2fcd39e302e246 with tx 0x41f4eb62dac3c4f6fc72972d0926efad3487e9aaea011dfc20d1de5a371d324b; Nonce 89
  621. 2024/11/06 15:15:26 cancel tx 0x5c72cf0d60c3de25ae9615e1c66b1f157eb1a7708888c3638af7e98f2f43ebcf with tx 0x521c428421e8b2483bb54834db5381d65646835824ec29f05727b2a46367e707; Nonce 87
  622. 2024/11/06 15:15:26 cancel tx 0x4d18c2069f2fdca7a4744a502cb986b773b439a50d2bc7d7af2fcd39e302e246 with tx 0x41f4eb62dac3c4f6fc72972d0926efad3487e9aaea011dfc20d1de5a371d324b; Nonce 89
  623. 2024/11/06 15:15:26 gas price = 96459262863
  624. 2024/11/06 15:15:26 cancel tx 0x4d18c2069f2fdca7a4744a502cb986b773b439a50d2bc7d7af2fcd39e302e246 with tx 0x41f4eb62dac3c4f6fc72972d0926efad3487e9aaea011dfc20d1de5a371d324b; Nonce 89
  625. 2024/11/06 15:15:26 cancel tx 0x5c72cf0d60c3de25ae9615e1c66b1f157eb1a7708888c3638af7e98f2f43ebcf with tx 0x521c428421e8b2483bb54834db5381d65646835824ec29f05727b2a46367e707; Nonce 87
  626. 2024/11/06 15:15:26 gas price = 96459262863
  627. 2024/11/06 15:15:26 gas price = 96459262863
  628. 2024/11/06 15:15:26 cancel tx 0x5c72cf0d60c3de25ae9615e1c66b1f157eb1a7708888c3638af7e98f2f43ebcf with tx 0x521c428421e8b2483bb54834db5381d65646835824ec29f05727b2a46367e707; Nonce 87
  629. 2024/11/06 15:15:26 cant get SuggestGasPrice(): 429 Too Many Requests: {"jsonrpc":"2.0","id":790,"error":{"code":-32005,"message":"project ID request rate exceeded","data":{"see":"https://infura.io/dashboard"}}}
  630. ubuntu@ip-172-31-31-23:~/dmm_strat/solutions/test$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement