Advertisement
den4ik2003

Untitled

Nov 6th, 2024
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.83 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:23:14 init Nonce: 90
  5. 2024/11/06 15:23:14 bind contract 0x6b965968fbc6ff0d2ed7cb1cb38c1c1bbe0327b4
  6. 2024/11/06 15:23:14 bind contract 0x1a9f5fd1b36f8d1e03f0ff6eabbbb268f053033e
  7. 2024/11/06 15:23:14 bind contract 0x6fcb55c09671bd0d28b5a0e9d303793ac005f19c
  8. 2024/11/06 15:23:14 bind contract 0x762d3d096b9a74f4d3adf2b0824456ef8fce5daa
  9. 2024/11/06 15:23:14 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:23:12.253Z", "txHash": "0x306571d8352b418b85a88243349ea726074e68360603982196c46eeff8dbc9e0", "address": "0x6b965968fbc6ff0d2ed7cb1cb38c1c1bbe0327b4", "lastSyncedBlock": "63959413", "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 0x577833bc8fe0
  15. run forever balance 0x577833bc8fe0
  16. {"type": "DEX", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "HC", "free": 55.5165, "locked": 0, "wallet": 0, "update_time": 1730906595874}, {"asset": "DAI", "free": 559.296, "locked": 0, "wallet": 0, "update_time": 1730906595874}]}
  17. get balance indicator 0x577833bc9180
  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. get_open_orders_wrapper::request_filler
  22. auth token: eyJhbG
  23. {"asset": "HC", "free": 55.5165, "locked": 0, "wallet": 0, "update_time": 1730906596482}
  24. {"asset": "DAI", "free": 559.296, "locked": 0, "wallet": 0, "update_time": 1730906596482}
  25.  
  26. _fill_order 7620000000000000000/8475400000000000000/SELL 16238776736966203298
  27. already opened {"symbol": "HCDAI", "coid": 16238776736966203298, {"dex_order_id": "907693", "order_id": "71a07f44-7e7d-49e3-aa05-6c2ff99e0922", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.620000, "quantity": 8.475400, "filled_quantity": 0.000000, "update_time": 1730906209000}
  28. Execution was constructed
  29. Trader was created
  30. order book {"ask_price": 7.62, "ask_quantity": 598.103, "bid_price": 7.61, "bid_quantity": 0.9751}
  31. [ 2024-11-06-15-23-16 ] MESSAGE: no volume price file
  32. subscription stream: ACCOUNT_BALANCE
  33. no account balance subscription
  34. subscription stream: PART_DEPTH
  35. subscription stream: ACCOUNT_ORDER
  36. subscription stream: ACCOUNT_TRADE
  37. {"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": "1730906596623002"}
  38. {"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": "1730906596623001"}
  39. feed.at("type").s() != ping{"type": "connection_ack"}
  40. feed.at("type").s() != ping{"type": "connection_ack"}
  41.  
  42. stream = onMyForceDexOrdersUpdated
  43.  
  44. _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245318", "status": "OPEN", "quantity": "102804724869889029", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "7620000000000000000", "id": "71a07f44-7e7d-49e3-aa05-6c2ff99e0922", "type": "LIMIT", "orderNumber": "907693", "direction": "ASK", "initialQuantity": "8475400000000000000", "createdAt": "2024-11-06T15:16:49.000Z"}}
  45. stream == e_stream::ACCOUNT_ORDER
  46. _fill_order 7620000000000000000/8475400000000000000/SELL 16238776736966203298
  47. WebSocketEvent: delta=1.73091e+11, event_time=1730906209000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 132126242203424, "order": {"symbol": "HCDAI", "coid": 16238776736966203298, {"dex_order_id": "907693", "order_id": "1730906596623002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.620000, "quantity": 8.475400, "filled_quantity": 8.372600, "update_time": 1730906209000}}
  48. [ 2024-11-06-15-23-18 ] INFO Execution::_process: WebSocketEvent: delta=1.73091e+11, event_time=1730906209000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 132126242203424, "order": {"symbol": "HCDAI", "coid": 16238776736966203298, {"dex_order_id": "907693", "order_id": "1730906596623002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.620000, "quantity": 8.475400, "filled_quantity": 8.372600, "update_time": 1730906209000}}
  49. [ 2024-11-06-15-23-18 ] MESSAGE: limit
  50. [ 2024-11-06-15-23-18 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 16238776736966203298, {"dex_order_id": "907693", "order_id": "1730906596623002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.620000, "quantity": 8.475400, "filled_quantity": 8.372600, "update_time": 1730906209000}
  51. old_it != cur_storage.end()
  52. [ 2024-11-06-15-23-18 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 16238776736966203298, {"dex_order_id": "907693", "order_id": "71a07f44-7e7d-49e3-aa05-6c2ff99e0922", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.620000, "quantity": 8.475400, "filled_quantity": 0.000000, "update_time": 1730906209000}
  53. $$$ {"symbol": "HCDAI", "price": 7.620000, "quantity": 8.372600, "trade_side": SELL, "trade_time": 1730906209000}
  54. open_position for order
  55. [ 2024-11-06-15-23-18 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.620000, "quantity": 8.372600, "trade_side": SELL, "trade_time": 1730906209000}
  56. [ 2024-11-06-15-23-18 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.62, "quantity": -8.3726, "position_quote": -63.7992}
  57. [ 2024-11-06-15-23-18 ] MESSAGE: ! HCDAI
  58.  
  59. stream = onForceDexOrdersBookUpdated
  60.  
  61. [ 2024-11-06-15-23-19 ] MESSAGE: sleep time = 115229
  62. [ 2024-11-06-15-23-19 ] MESSAGE: ask price 7.620000 bid price: 7.600000
  63. [ 2024-11-06-15-23-19 ] MESSAGE: current_volume: 141.022122 previous price = 7.615000
  64. [ 2024-11-06-15-23-19 ] MESSAGE: start calculating new normal distributed price
  65. [ 2024-11-06-15-23-19 ] MESSAGE: calculate deviated price (new) = 7.605850 current price = 7.615000
  66. [ 2024-11-06-15-23-19 ] MESSAGE: delta = -0.009150
  67. [ 2024-11-06-15-23-19 ] MESSAGE: new_price < lower_bound
  68. [ 2024-11-06-15-23-19 ] MESSAGE: new price after = 7.610000
  69. [ 2024-11-06-15-23-19 ] MESSAGE: price: 7.610000
  70. quantity: 18.531159
  71. [ 2024-11-06-15-23-19 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
  72. [ 2024-11-06-15-23-19 ] DEBUG base balance: {"asset": "HC", "free": 55.5165, "locked": 0, "wallet": 0, "update_time": 1730906596482}
  73. [ 2024-11-06-15-23-19 ] DEBUG quote balance: {"asset": "DAI", "free": 559.296, "locked": 0, "wallet": 0, "update_time": 1730906596482}
  74. [ 2024-11-06-15-23-19 ] MESSAGE: balances_ratio: 0.755379
  75. [ 2024-11-06-15-23-19 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
  76. index_order_id 7610000000000000000/18531200000000000000/BUY 8115860895943530197
  77. index_order_id 7610000000000000000/18531200000000000000/SELL 13883235749156551484
  78. [ 2024-11-06-15-23-19 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.610000, "quantity": 18.531200, "client_order_id": 8115860895943530197, "type": "LIMIT", "side": "BUY"}
  79. ! new api API 0x577833bc8fe0
  80. order_request_t {"symbol": "HCDAI", "price": 7.610000, "quantity": 18.531200, "client_order_id": 8115860895943530197, "type": "LIMIT", "side": "BUY"}
  81. [ 2024-11-06-15-23-19 ] DEBUG ! new: quantity 185312
  82. {"symbol": "HCDAI", "price": 7.610000, "quantity": 18.531200, "client_order_id": 13883235749156551484, "type": "LIMIT", "side": "SELL"}
  83. new_order_wrapper::execute
  84. ! new api API {"ext_params": {"timeout": "30000", "priority": "0"}, "params": {"quantity": "18531200000000000000", "price": "7610000000000000000", "orderType": "0", "isBid": "true"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
  85. 0x577833bc8fe0
  86. order_request_t {"symbol": "HCDAI", "price": 7.610000, "quantity": 18.531200, "client_order_id": 13883235749156551484, "type": "LIMIT", "side": "SELL"}
  87. quantity 185312
  88. new_order_wrapper::execute
  89. 2024/11/06 15:23:19 extends args: {"timeout": "30000", "priority": "0"}
  90. 2024/11/06 15:23:19 args: {"quantity": "18531200000000000000", "price": "7610000000000000000", "orderType": "0", "isBid": "true"}
  91. 2024/11/06 15:23:19 start cancelation
  92. 2024/11/06 15:23:19 finish cancelation
  93. {"ext_params": {"timeout": "30000", "priority": "0"}, "params": {"quantity": "18531200000000000000", "price": "7610000000000000000", "orderType": "0", "isBid": "false"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
  94. 2024/11/06 15:23:19 extends args: {"timeout": "30000", "priority": "0"}
  95. 2024/11/06 15:23:19 args: {"quantity": "18531200000000000000", "price": "7610000000000000000", "orderType": "0", "isBid": "false"}
  96. 2024/11/06 15:23:19 start cancelation
  97. 2024/11/06 15:23:19 finish cancelation
  98. 2024/11/06 15:23:19 gas price = 91139303103
  99. 2024/11/06 15:23:19 gas price = 91139303103
  100. 2024/11/06 15:23:19 TX Hash: 0x498d7b3b9b928ffe5d303d66c72126a9b25dcbbff07ebd7eda4c230e868a1be4 ; Nonce: 91
  101. 2024/11/06 15:23:19 TX Hash: 0xf663ea754d8fa334d3b53f35ec381c887f1c38f3ea714503a19b0863b272b89e ; Nonce: 90
  102. 2024/11/06 15:23:24 golang tx log: {
  103. tx = 0xf663ea754d8fa334d3b53f35ec381c887f1c38f3ea714503a19b0863b272b89e ok;
  104. status = 1
  105. block = 63959431
  106. usedGas = 470267
  107. exec_time = 4.674344s
  108. }
  109. C++ new_order_wrapper response: {"tx_hash": "0xf663ea754d8fa334d3b53f35ec381c887f1c38f3ea714503a19b0863b272b89e", "used_gas": "470267", "block": "63959431", "error": "ok"}
  110. [ 2024-11-06-15-23-24 ] MESSAGE: new order delta: 4675
  111. [ 2024-11-06-15-23-24 ] DEBUG ? new: empty order
  112.  
  113. stream = onMyForceDexOrdersUpdated
  114.  
  115. _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245318", "status": "CLOSED", "quantity": "0", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "7620000000000000000", "id": "71a07f44-7e7d-49e3-aa05-6c2ff99e0922", "type": "LIMIT", "orderNumber": "907693", "direction": "ASK", "initialQuantity": "8475400000000000000", "createdAt": "2024-11-06T15:16:49.000Z"}}
  116. stream == e_stream::ACCOUNT_ORDER
  117. _fill_order 7620000000000000000/8475400000000000000/SELL 16238776736966203298
  118. WebSocketEvent: delta=1.73091e+11, event_time=1730906209000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 132126242203424, "order": {"symbol": "HCDAI", "coid": 16238776736966203298, {"dex_order_id": "907693", "order_id": "1730906596623002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.620000, "quantity": 8.475400, "filled_quantity": 8.475400, "update_time": 1730906209000}}
  119. [ 2024-11-06-15-23-24 ] INFO Execution::_process: WebSocketEvent: delta=1.73091e+11, event_time=1730906209000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 132126242203424, "order": {"symbol": "HCDAI", "coid": 16238776736966203298, {"dex_order_id": "907693", "order_id": "1730906596623002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.620000, "quantity": 8.475400, "filled_quantity": 8.475400, "update_time": 1730906209000}}
  120. [ 2024-11-06-15-23-24 ] MESSAGE: limit
  121. [ 2024-11-06-15-23-24 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 16238776736966203298, {"dex_order_id": "907693", "order_id": "1730906596623002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.620000, "quantity": 8.475400, "filled_quantity": 8.475400, "update_time": 1730906209000}
  122. old_it != cur_storage.end()
  123. [ 2024-11-06-15-23-24 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 16238776736966203298, {"dex_order_id": "907693", "order_id": "1730906596623002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.620000, "quantity": 8.475400, "filled_quantity": 8.372600, "update_time": 1730906209000}
  124. $$$ {"symbol": "HCDAI", "price": 7.620000, "quantity": 0.102800, "trade_side": SELL, "trade_time": 1730906209000}
  125. open_position for order
  126. [ 2024-11-06-15-23-24 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.620000, "quantity": 0.102800, "trade_side": SELL, "trade_time": 1730906209000}
  127. [ 2024-11-06-15-23-24 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.62, "quantity": -8.4754, "position_quote": -64.5825}
  128. [ 2024-11-06-15-23-24 ] MESSAGE: erase
  129. [ 2024-11-06-15-23-24 ] MESSAGE: ! HCDAI
  130.  
  131. stream = onForceDexOrdersBookUpdated
  132.  
  133. {"asset": "HC", "free": 57.6638, "locked": 0, "wallet": 0, "update_time": 1730906607084}
  134. {"asset": "DAI", "free": 418.273, "locked": 0, "wallet": 0, "update_time": 1730906607084}
  135.  
  136. {"asset": "HC", "free": 57.9233, "locked": 0, "wallet": 0, "update_time": 1730906617683}
  137. {"asset": "DAI", "free": 418.273, "locked": 0, "wallet": 0, "update_time": 1730906617683}
  138.  
  139.  
  140. stream = onForceDexOrdersBookUpdated
  141.  
  142. {"asset": "HC", "free": 58.3325, "locked": 0, "wallet": 0, "update_time": 1730906628284}
  143. {"asset": "DAI", "free": 418.273, "locked": 0, "wallet": 0, "update_time": 1730906628284}
  144.  
  145.  
  146. stream = onForceDexOrdersBookUpdated
  147.  
  148.  
  149. stream = onMyForceDexOrdersUpdated
  150.  
  151. _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245318", "status": "OPEN", "quantity": "18531200000000000000", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "7610000000000000000", "id": "9aff9f5b-c8ad-4537-9661-4e04b4f667d8", "type": "LIMIT", "orderNumber": "907738", "direction": "BID", "initialQuantity": "18531200000000000000", "createdAt": "2024-11-06T15:23:23.000Z"}}
  152. stream == e_stream::ACCOUNT_ORDER
  153. _fill_order 7610000000000000000/18531200000000000000/BUY 8115860895943530197
  154. WebSocketEvent: delta=1.73091e+11, event_time=1730906603000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 132126242203424, "order": {"symbol": "HCDAI", "coid": 8115860895943530197, {"dex_order_id": "907738", "order_id": "1730906596623002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.610000, "quantity": 18.531200, "filled_quantity": 0.000000, "update_time": 1730906603000}}
  155. [ 2024-11-06-15-23-55 ] INFO Execution::_process: WebSocketEvent: delta=1.73091e+11, event_time=1730906603000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 132126242203424, "order": {"symbol": "HCDAI", "coid": 8115860895943530197, {"dex_order_id": "907738", "order_id": "1730906596623002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.610000, "quantity": 18.531200, "filled_quantity": 0.000000, "update_time": 1730906603000}}
  156. [ 2024-11-06-15-23-55 ] MESSAGE: limit
  157. [ 2024-11-06-15-23-55 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 8115860895943530197, {"dex_order_id": "907738", "order_id": "1730906596623002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.610000, "quantity": 18.531200, "filled_quantity": 0.000000, "update_time": 1730906603000}
  158. old_it != cur_storage.end()
  159. [ 2024-11-06-15-23-55 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 8115860895943530197, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 7.610000, "quantity": 18.531200, "update_time": 0}
  160. [ 2024-11-06-15-23-55 ] MESSAGE: (execution) filled quantity is not initialized
  161. [ 2024-11-06-15-23-55 ] MESSAGE: ! HCDAI
  162.  
  163. stream = onMyForceDexOrdersUpdated
  164.  
  165. _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245318", "status": "OPEN", "quantity": "16379579060000000000", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "7610000000000000000", "id": "9aff9f5b-c8ad-4537-9661-4e04b4f667d8", "type": "LIMIT", "orderNumber": "907738", "direction": "BID", "initialQuantity": "18531200000000000000", "createdAt": "2024-11-06T15:23:23.000Z"}}
  166. stream == e_stream::ACCOUNT_ORDER
  167. _fill_order 7610000000000000000/18531200000000000000/BUY 8115860895943530197
  168. WebSocketEvent: delta=1.73091e+11, event_time=1730906603000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 132126242203424, "order": {"symbol": "HCDAI", "coid": 8115860895943530197, {"dex_order_id": "907738", "order_id": "1730906596623002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.610000, "quantity": 18.531200, "filled_quantity": 2.151700, "update_time": 1730906603000}}
  169. [ 2024-11-06-15-23-55 ] INFO Execution::_process: WebSocketEvent: delta=1.73091e+11, event_time=1730906603000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 132126242203424, "order": {"symbol": "HCDAI", "coid": 8115860895943530197, {"dex_order_id": "907738", "order_id": "1730906596623002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.610000, "quantity": 18.531200, "filled_quantity": 2.151700, "update_time": 1730906603000}}
  170. [ 2024-11-06-15-23-55 ] MESSAGE: limit
  171. [ 2024-11-06-15-23-55 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 8115860895943530197, {"dex_order_id": "907738", "order_id": "1730906596623002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.610000, "quantity": 18.531200, "filled_quantity": 2.151700, "update_time": 1730906603000}
  172. old_it != cur_storage.end()
  173. [ 2024-11-06-15-23-55 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 8115860895943530197, {"dex_order_id": "907738", "order_id": "1730906596623002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.610000, "quantity": 18.531200, "filled_quantity": 0.000000, "update_time": 1730906603000}
  174. $$$ {"symbol": "HCDAI", "price": 7.610000, "quantity": 2.151700, "trade_side": BUY, "trade_time": 1730906603000}
  175. open_position for order
  176. [ 2024-11-06-15-23-55 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.610000, "quantity": 2.151700, "trade_side": BUY, "trade_time": 1730906603000}
  177. [ 2024-11-06-15-23-55 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.6234, "quantity": -6.3237, "position_quote": -48.2081}
  178. [ 2024-11-06-15-23-55 ] MESSAGE: ! HCDAI
  179.  
  180. stream = onForceDexOrdersBookUpdated
  181.  
  182. {"asset": "HC", "free": 58.3325, "locked": 0, "wallet": 0, "update_time": 1730906638887}
  183. {"asset": "DAI", "free": 418.273, "locked": 0, "wallet": 0, "update_time": 1730906638887}
  184.  
  185.  
  186. stream = onMyForceDexOrdersUpdated
  187.  
  188. _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245318", "status": "OPEN", "quantity": "16119579060000000000", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "7610000000000000000", "id": "9aff9f5b-c8ad-4537-9661-4e04b4f667d8", "type": "LIMIT", "orderNumber": "907738", "direction": "BID", "initialQuantity": "18531200000000000000", "createdAt": "2024-11-06T15:23:23.000Z"}}
  189. stream == e_stream::ACCOUNT_ORDER
  190. _fill_order 7610000000000000000/18531200000000000000/BUY 8115860895943530197
  191. WebSocketEvent: delta=1.73091e+11, event_time=1730906603000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 132126242203424, "order": {"symbol": "HCDAI", "coid": 8115860895943530197, {"dex_order_id": "907738", "order_id": "1730906596623002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.610000, "quantity": 18.531200, "filled_quantity": 2.411700, "update_time": 1730906603000}}
  192. [ 2024-11-06-15-24-02 ] INFO Execution::_process: WebSocketEvent: delta=1.73091e+11, event_time=1730906603000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 132126242203424, "order": {"symbol": "HCDAI", "coid": 8115860895943530197, {"dex_order_id": "907738", "order_id": "1730906596623002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.610000, "quantity": 18.531200, "filled_quantity": 2.411700, "update_time": 1730906603000}}
  193. [ 2024-11-06-15-24-02 ] MESSAGE: limit
  194. [ 2024-11-06-15-24-02 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 8115860895943530197, {"dex_order_id": "907738", "order_id": "1730906596623002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.610000, "quantity": 18.531200, "filled_quantity": 2.411700, "update_time": 1730906603000}
  195. old_it != cur_storage.end()
  196. [ 2024-11-06-15-24-02 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 8115860895943530197, {"dex_order_id": "907738", "order_id": "1730906596623002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.610000, "quantity": 18.531200, "filled_quantity": 2.151700, "update_time": 1730906603000}
  197. $$$ {"symbol": "HCDAI", "price": 7.610000, "quantity": 0.260000, "trade_side": BUY, "trade_time": 1730906603000}
  198. open_position for order
  199. [ 2024-11-06-15-24-02 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.610000, "quantity": 0.260000, "trade_side": BUY, "trade_time": 1730906603000}
  200. [ 2024-11-06-15-24-02 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.62398, "quantity": -6.0637, "position_quote": -46.2295}
  201. [ 2024-11-06-15-24-02 ] MESSAGE: ! HCDAI
  202.  
  203. stream = onForceDexOrdersBookUpdated
  204.  
  205.  
  206. stream = onMyForceDexOrdersUpdated
  207.  
  208. _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245318", "status": "OPEN", "quantity": "15709579060000000000", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "7610000000000000000", "id": "9aff9f5b-c8ad-4537-9661-4e04b4f667d8", "type": "LIMIT", "orderNumber": "907738", "direction": "BID", "initialQuantity": "18531200000000000000", "createdAt": "2024-11-06T15:23:23.000Z"}}
  209. stream == e_stream::ACCOUNT_ORDER
  210. _fill_order 7610000000000000000/18531200000000000000/BUY 8115860895943530197
  211. WebSocketEvent: delta=1.73091e+11, event_time=1730906603000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 132126242203424, "order": {"symbol": "HCDAI", "coid": 8115860895943530197, {"dex_order_id": "907738", "order_id": "1730906596623002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.610000, "quantity": 18.531200, "filled_quantity": 2.821700, "update_time": 1730906603000}}
  212. [ 2024-11-06-15-24-08 ] INFO Execution::_process: WebSocketEvent: delta=1.73091e+11, event_time=1730906603000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 132126242203424, "order": {"symbol": "HCDAI", "coid": 8115860895943530197, {"dex_order_id": "907738", "order_id": "1730906596623002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.610000, "quantity": 18.531200, "filled_quantity": 2.821700, "update_time": 1730906603000}}
  213. [ 2024-11-06-15-24-08 ] MESSAGE: limit
  214. [ 2024-11-06-15-24-08 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 8115860895943530197, {"dex_order_id": "907738", "order_id": "1730906596623002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.610000, "quantity": 18.531200, "filled_quantity": 2.821700, "update_time": 1730906603000}
  215. old_it != cur_storage.end()
  216. [ 2024-11-06-15-24-08 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 8115860895943530197, {"dex_order_id": "907738", "order_id": "1730906596623002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.610000, "quantity": 18.531200, "filled_quantity": 2.411700, "update_time": 1730906603000}
  217. $$$ {"symbol": "HCDAI", "price": 7.610000, "quantity": 0.410000, "trade_side": BUY, "trade_time": 1730906603000}
  218. open_position for order
  219. [ 2024-11-06-15-24-08 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.610000, "quantity": 0.410000, "trade_side": BUY, "trade_time": 1730906603000}
  220. [ 2024-11-06-15-24-08 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.62499, "quantity": -5.6537, "position_quote": -43.1094}
  221. [ 2024-11-06-15-24-08 ] MESSAGE: ! HCDAI
  222.  
  223. stream = onForceDexOrdersBookUpdated
  224.  
  225. {"asset": "HC", "free": 58.3325, "locked": 0, "wallet": 0, "update_time": 1730906649490}
  226. {"asset": "DAI", "free": 418.273, "locked": 0, "wallet": 0, "update_time": 1730906649490}
  227.  
  228.  
  229. stream = onForceDexOrdersBookUpdated
  230.  
  231. {"asset": "HC", "free": 65.6378, "locked": 0, "wallet": 0, "update_time": 1730906660094}
  232. {"asset": "DAI", "free": 418.273, "locked": 0, "wallet": 0, "update_time": 1730906660094}
  233.  
  234.  
  235. stream = onForceDexOrdersBookUpdated
  236.  
  237.  
  238. stream = onForceDexOrdersBookUpdated
  239.  
  240. {"asset": "HC", "free": 65.6378, "locked": 0, "wallet": 0, "update_time": 1730906670695}
  241. {"asset": "DAI", "free": 418.273, "locked": 0, "wallet": 0, "update_time": 1730906670695}
  242.  
  243. {"asset": "HC", "free": 65.6378, "locked": 0, "wallet": 0, "update_time": 1730906681302}
  244. {"asset": "DAI", "free": 418.273, "locked": 0, "wallet": 0, "update_time": 1730906681302}
  245.  
  246.  
  247. stream = onMyForceDexOrdersUpdated
  248.  
  249. _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245318", "status": "OPEN", "quantity": "8389579060000000000", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "7610000000000000000", "id": "9aff9f5b-c8ad-4537-9661-4e04b4f667d8", "type": "LIMIT", "orderNumber": "907738", "direction": "BID", "initialQuantity": "18531200000000000000", "createdAt": "2024-11-06T15:23:23.000Z"}}
  250. stream == e_stream::ACCOUNT_ORDER
  251. _fill_order 7610000000000000000/18531200000000000000/BUY 8115860895943530197
  252. WebSocketEvent: delta=1.73091e+11, event_time=1730906603000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 132126242203424, "order": {"symbol": "HCDAI", "coid": 8115860895943530197, {"dex_order_id": "907738", "order_id": "1730906596623002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.610000, "quantity": 18.531200, "filled_quantity": 10.141700, "update_time": 1730906603000}}
  253. [ 2024-11-06-15-24-45 ] INFO Execution::_process: WebSocketEvent: delta=1.73091e+11, event_time=1730906603000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 132126242203424, "order": {"symbol": "HCDAI", "coid": 8115860895943530197, {"dex_order_id": "907738", "order_id": "1730906596623002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.610000, "quantity": 18.531200, "filled_quantity": 10.141700, "update_time": 1730906603000}}
  254. [ 2024-11-06-15-24-45 ] MESSAGE: limit
  255. [ 2024-11-06-15-24-45 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 8115860895943530197, {"dex_order_id": "907738", "order_id": "1730906596623002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.610000, "quantity": 18.531200, "filled_quantity": 10.141700, "update_time": 1730906603000}
  256. old_it != cur_storage.end()
  257. [ 2024-11-06-15-24-45 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 8115860895943530197, {"dex_order_id": "907738", "order_id": "1730906596623002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.610000, "quantity": 18.531200, "filled_quantity": 2.821700, "update_time": 1730906603000}
  258. $$$ {"symbol": "HCDAI", "price": 7.610000, "quantity": 7.320000, "trade_side": BUY, "trade_time": 1730906603000}
  259. open_position for order
  260. [ 2024-11-06-15-24-45 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.610000, "quantity": 7.320000, "trade_side": BUY, "trade_time": 1730906603000}
  261. [ 2024-11-06-15-24-45 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.61, "quantity": 1.6663, "position_quote": 12.5958}
  262. [ 2024-11-06-15-24-45 ] MESSAGE: ! HCDAI
  263.  
  264. stream = onForceDexOrdersBookUpdated
  265.  
  266. {"asset": "HC", "free": 65.6378, "locked": 0, "wallet": 0, "update_time": 1730906691907}
  267. {"asset": "DAI", "free": 418.273, "locked": 0, "wallet": 0, "update_time": 1730906691907}
  268.  
  269.  
  270. stream = onForceDexOrdersBookUpdated
  271.  
  272. {"asset": "HC", "free": 65.6378, "locked": 0, "wallet": 0, "update_time": 1730906702511}
  273. {"asset": "DAI", "free": 418.273, "locked": 0, "wallet": 0, "update_time": 1730906702511}
  274.  
  275.  
  276. stream = onForceDexOrdersBookUpdated
  277.  
  278. {"asset": "HC", "free": 70.5366, "locked": 0, "wallet": 0, "update_time": 1730906713113}
  279. {"asset": "DAI", "free": 418.273, "locked": 0, "wallet": 0, "update_time": 1730906713113}
  280.  
  281.  
  282. stream = onForceDexOrdersBookUpdated
  283.  
  284. [ 2024-11-06-15-25-21 ] MESSAGE: sleep time = 118618
  285. [ 2024-11-06-15-25-21 ] MESSAGE: ask price 7.620000 bid price: 7.610000
  286. [ 2024-11-06-15-25-21 ] MESSAGE: Narrow spread
  287. [ 2024-11-06-15-25-21 ] MESSAGE: dealing with narrow spread
  288. [ 2024-11-06-15-25-21 ] INFO dealing with narrow spread result: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.61, 7.09593); ], bids: [(7.62, 7.08661); ]
  289. [ 2024-11-06-15-25-21 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.61, 7.09593); ], bids: [(7.62, 7.08661); ]
  290. [ 2024-11-06-15-25-21 ] DEBUG base balance: {"asset": "HC", "free": 70.5366, "locked": 0, "wallet": 0, "update_time": 1730906713113}
  291. [ 2024-11-06-15-25-21 ] DEBUG quote balance: {"asset": "DAI", "free": 418.273, "locked": 0, "wallet": 0, "update_time": 1730906713113}
  292. [ 2024-11-06-15-25-21 ] MESSAGE: balances_ratio: 1.284176
  293. [ 2024-11-06-15-25-21 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.61, 7.09593); ], bids: [(7.62, 7.08661); ]
  294. [ 2024-11-06-15-25-21 ] MESSAGE: LIMIT GRID
  295. [ 2024-11-06-15-25-21 ] DEBUG in _process_limit_grid: 7.61
  296. [ 2024-11-06-15-25-21 ] DEBUG in _process_limit_grid: 7.09593
  297. [ 2024-11-06-15-25-21 ] DEBUG in _process_limit_grid: 7.62
  298. [ 2024-11-06-15-25-21 ] DEBUG in _process_limit_grid: 7.08661
  299. [ 2024-11-06-15-25-21 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 7.620000, "quantity": 7.086600, "type": "LIMIT", "side": "BUY"}
  300. [ 2024-11-06-15-25-21 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 7.610000, "quantity": 7.095900, "type": "LIMIT", "side": "SELL"}
  301. [ 2024-11-06-15-25-21 ] MESSAGE: csize: 2
  302. [ 2024-11-06-15-25-21 ] DEBUG ! cancel: {"symbol": "HCDAI", "coid": 13883235749156551484, {"dex_order_id": "0", "order_id": index_order_id "7620000000000000000/7086600000000000000/BUY 3986861416427041506
  303. ", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": index_order_id 7610000000000000000/7095900000000000000/SELL7.610000, "quantity": 18.531200, 5651143699667296743
  304. "update_time": 0}
  305. [ cancel_order_wrapper::execute
  306. 2024-11-06-15-25-21 ] DEBUG ! cancel: {"symbol": "HCDAI", "coid": 8115860895943530197, {"dex_order_id": "907738", "order_id": "2024/11/06 15:25:21 extends args: {}
  307. 1730906596623002", 2024/11/06 15:25:21 args: {"orderId": "0"}
  308. "type": "LIMIT", 2024/11/06 15:25:21 start cancelation
  309. "side": "BUY", "status": "NEW", "price": 7.610000, "quantity": 18.531200, "filled_quantity": 10.141700, "update_time": 1730906603000}
  310. cancel_order_wrapper::execute
  311. 2024/11/06 15:25:21 finish cancelation
  312. 2024/11/06 15:25:21 extends args: {}
  313. 2024/11/06 15:25:21 args: {"orderId": "907738"}
  314. 2024/11/06 15:25:21 start cancelation
  315. 2024/11/06 15:25:21 finish cancelation
  316. [ 2024-11-06-15-25-21 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.620000, "quantity": 7.086600, "client_order_id": 3986861416427041506, "type": "LIMIT", "side": "BUY"}
  317. ! new api API 0x577833bc8fe0
  318. order_request_t {"symbol": "HCDAI", "price": 7.620000, "quantity": 7.086600, "client_order_id": 3986861416427041506, "type": "LIMIT", "side": "BUY"}
  319. quantity 70866
  320. [ new_order_wrapper::execute
  321. 2024-11-06-15-25-21 ] DEBUG ! new: {"ext_params": {"timeout": "30000", "priority": "0"}, "params": {"quantity": "7086600000000000000", "price": "7620000000000000000", "orderType": "0", "isBid": "true"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
  322. {"symbol": "HCDAI", "price": 7.610000, "quantity": 7.095900, "client_order_id": 5651143699667296743, "type": "LIMIT", "side": "SELL"}
  323. ! new api API 0x577833bc8fe0
  324. order_request_t {"symbol": "HCDAI", "price": 7.610000, "quantity": 7.095900, "client_order_id": 5651143699667296743, "type": "LIMIT", "side": "SELL"}
  325. 2024/11/06 15:25:21 extends args: {"timeout": "30000", "priority": "0"}
  326. 2024/11/06 15:25:21 args: {"quantity": "7086600000000000000", "price": "7620000000000000000", "orderType": "0", "isBid": "true"}
  327. quantity 70959
  328. 2024/11/06 15:25:21 start cancelation
  329. 2024/11/06 15:25:21 finish cancelation
  330. new_order_wrapper::execute
  331. {"ext_params": {"timeout": "30000", "priority": "0"}, "params": {"quantity": "7095900000000000000", "price": "7610000000000000000", "orderType": "0", "isBid": "false"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
  332. 2024/11/06 15:25:21 extends args: {"timeout": "30000", "priority": "0"}
  333. 2024/11/06 15:25:21 args: {"quantity": "7095900000000000000", "price": "7610000000000000000", "orderType": "0", "isBid": "false"}
  334. 2024/11/06 15:25:21 start cancelation
  335. 2024/11/06 15:25:21 finish cancelation
  336. 2024/11/06 15:25:22 gas price = 95614320421
  337. 2024/11/06 15:25:22 cancel tx 0x498d7b3b9b928ffe5d303d66c72126a9b25dcbbff07ebd7eda4c230e868a1be4 with tx 0x4b95c33460f18867f35c740cb644ddf8c1d7753ad09a4a690236a57c6d68eb3d; Nonce 91
  338. 2024/11/06 15:25:22 gas price = 95853118470
  339. 2024/11/06 15:25:22 cancel tx 0x498d7b3b9b928ffe5d303d66c72126a9b25dcbbff07ebd7eda4c230e868a1be4 with tx 0x4b95c33460f18867f35c740cb644ddf8c1d7753ad09a4a690236a57c6d68eb3d; Nonce 91
  340. 2024/11/06 15:25:22 cancel tx 0x498d7b3b9b928ffe5d303d66c72126a9b25dcbbff07ebd7eda4c230e868a1be4 with tx 0x4b95c33460f18867f35c740cb644ddf8c1d7753ad09a4a690236a57c6d68eb3d; Nonce 91
  341. 2024/11/06 15:25:22 cancel tx 0x498d7b3b9b928ffe5d303d66c72126a9b25dcbbff07ebd7eda4c230e868a1be4 with tx 0x4b95c33460f18867f35c740cb644ddf8c1d7753ad09a4a690236a57c6d68eb3d; Nonce 91
  342. 2024/11/06 15:25:22 gas price = 95614320421
  343. 2024/11/06 15:25:22 gas price = 95853118470
  344. 2024/11/06 15:25:22 TX Hash: 0x5f6fc2960018fb0fa5cd5988ed738fc5d56cca1fc8baafbb0d5e9aefbabccecb ; Nonce: 93
  345. 2024/11/06 15:25:22 TX Hash: 0x8e09c10ae1ac31de6ac746b66ee2453735d2b2d4398d4bdf97ff02334955692c ; Nonce: 92
  346. 2024/11/06 15:25:22 Failed to send transaction: nonce too low: next nonce 92, tx nonce 91
  347. 2024/11/06 15:25:22 Failed to send transaction: nonce too low: next nonce 92, tx nonce 91
  348. 2024/11/06 15:25:22 Failed to send transaction: nonce too low: next nonce 92, tx nonce 91
  349. 2024/11/06 15:25:22 Failed to send transaction: nonce too low: next nonce 92, tx nonce 91
  350. 2024/11/06 15:25:22 TX Hash: 0xeb333530c7518d793120fd7df5d4d6dcd88aa2ce794249fb546f380cb83c8df8 ; Nonce: 95
  351. 2024/11/06 15:25:22 TX Hash: 0xf37242670f6d0ba692e439fb491a7e433242e4faa18c4a68182877505c39f7bd ; Nonce: 94
  352. {"asset": "HC", "free": 70.5366, "locked": 0, "wallet": 0, "update_time": 1730906723713}
  353. {"asset": "DAI", "free": 418.273, "locked": 0, "wallet": 0, "update_time": 1730906723713}
  354.  
  355. {"asset": "HC", "free": 70.5366, "locked": 0, "wallet": 0, "update_time": 1730906734308}
  356. {"asset": "DAI", "free": 418.273, "locked": 0, "wallet": 0, "update_time": 1730906734308}
  357.  
  358.  
  359. stream = onMyForceDexOrdersUpdated
  360.  
  361. _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245318", "status": "OPEN", "quantity": "3480948923013698632", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "7610000000000000000", "id": "9aff9f5b-c8ad-4537-9661-4e04b4f667d8", "type": "LIMIT", "orderNumber": "907738", "direction": "BID", "initialQuantity": "18531200000000000000", "createdAt": "2024-11-06T15:23:23.000Z"}}
  362. stream == e_stream::ACCOUNT_ORDER
  363. _fill_order 7610000000000000000/18531200000000000000/BUY 8115860895943530197
  364. WebSocketEvent: delta=1.73091e+11, event_time=1730906603000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 132126242203424, "order": {"symbol": "HCDAI", "coid": 8115860895943530197, {"dex_order_id": "907738", "order_id": "1730906596623002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.610000, "quantity": 18.531200, "filled_quantity": 15.050300, "update_time": 1730906603000}}
  365. [ 2024-11-06-15-25-39 ] INFO Execution::_process: WebSocketEvent: delta=1.73091e+11, event_time=1730906603000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 132126242203424, "order": {"symbol": "HCDAI", "coid": 8115860895943530197, {"dex_order_id": "907738", "order_id": "1730906596623002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.610000, "quantity": 18.531200, "filled_quantity": 15.050300, "update_time": 1730906603000}}
  366. [ 2024-11-06-15-25-39 ] MESSAGE: limit
  367. [ 2024-11-06-15-25-39 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 8115860895943530197, {"dex_order_id": "907738", "order_id": "1730906596623002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.610000, "quantity": 18.531200, "filled_quantity": 15.050300, "update_time": 1730906603000}
  368. old_it != cur_storage.end()
  369. [ 2024-11-06-15-25-39 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 8115860895943530197, {"dex_order_id": "907738", "order_id": "1730906596623002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.610000, "quantity": 18.531200, "filled_quantity": 10.141700, "update_time": 1730906603000}
  370. $$$ {"symbol": "HCDAI", "price": 7.610000, "quantity": 4.908600, "trade_side": BUY, "trade_time": 1730906603000}
  371. open_position for order
  372. [ 2024-11-06-15-25-39 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.610000, "quantity": 4.908600, "trade_side": BUY, "trade_time": 1730906603000}
  373. [ 2024-11-06-15-25-39 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.59711, "quantity": 6.5749, "position_quote": 49.9502}
  374. [ 2024-11-06-15-25-39 ] MESSAGE: ! HCDAI
  375.  
  376. stream = onForceDexOrdersBookUpdated
  377.  
  378. {"asset": "HC", "free": 70.5366, "locked": 0, "wallet": 0, "update_time": 1730906744907}
  379. {"asset": "DAI", "free": 418.273, "locked": 0, "wallet": 0, "update_time": 1730906744907}
  380.  
  381.  
  382. stream = onForceDexOrdersBookUpdated
  383.  
  384. 2024/11/06 15:25:51 failed to wait for transaction mining (0x4b95c33460f18867f35c740cb644ddf8c1d7753ad09a4a690236a57c6d68eb3d): context deadline exceeded
  385. 2024/11/06 15:25:51 failed to wait for transaction mining (0x4b95c33460f18867f35c740cb644ddf8c1d7753ad09a4a690236a57c6d68eb3d): context deadline exceeded
  386. 2024/11/06 15:25:51 failed to wait for transaction mining (0x4b95c33460f18867f35c740cb644ddf8c1d7753ad09a4a690236a57c6d68eb3d): context deadline exceeded
  387. 2024/11/06 15:25:51 failed to wait for transaction mining (0x4b95c33460f18867f35c740cb644ddf8c1d7753ad09a4a690236a57c6d68eb3d): context deadline exceeded
  388.  
  389. stream = onForceDexOrdersBookUpdated
  390.  
  391. {"asset": "HC", "free": 70.5366, "locked": 0, "wallet": 0, "update_time": 1730906755521}
  392. {"asset": "DAI", "free": 418.273, "locked": 0, "wallet": 0, "update_time": 1730906755521}
  393.  
  394. 2024/11/06 15:25:55 {
  395. tx = 0x8e09c10ae1ac31de6ac746b66ee2453735d2b2d4398d4bdf97ff02334955692c failed
  396. exec_time = 33.763132s
  397. }
  398. cancel_order_wrapper::response_filler{"tx_hash": "0x8e09c10ae1ac31de6ac746b66ee2453735d2b2d4398d4bdf97ff02334955692c", "error": "unknown tx error"}
  399. [ 2024-11-06-15-25-55 ] MESSAGE: cancel order delta: 33913
  400. [ 2024-11-06-15-25-55 ] DEBUG ? cancel: empty order
  401.  
  402. stream = onForceDexOrdersBookUpdated
  403.  
  404. {"asset": "HC", "free": 70.5366, "locked": 0, "wallet": 0, "update_time": 1730906766159}
  405. {"asset": "DAI", "free": 418.273, "locked": 0, "wallet": 0, "update_time": 1730906766159}
  406.  
  407.  
  408. stream = onForceDexOrdersBookUpdated
  409.  
  410. ^C
  411. ubuntu@ip-172-31-31-23:~/dmm_strat/solutions/test$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement