Advertisement
den4ik2003

Untitled

Nov 6th, 2024
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 50.68 KB | None | 0 0
  1. ubuntu@ip-172-31-31-23:~/dmm_strat/solutions/test$ ./test volume/volume_launch.config > volume_mfs.txt
  2. 2024/11/06 13:03:29 init Nonce: 42
  3. 2024/11/06 13:03:29 bind contract 0x6b965968fbc6ff0d2ed7cb1cb38c1c1bbe0327b4
  4. 2024/11/06 13:03:29 bind contract 0x1a9f5fd1b36f8d1e03f0ff6eabbbb268f053033e
  5. 2024/11/06 13:03:29 bind contract 0x6fcb55c09671bd0d28b5a0e9d303793ac005f19c
  6. 2024/11/06 13:03:29 bind contract 0x762d3d096b9a74f4d3adf2b0824456ef8fce5daa
  7. 2024/11/06 13:03:29 bind contract 0x8f3cf7ad23cd3cadbd9735aff958023239c6a063
  8. run forever balance 0x63aad54939b0
  9. {"type": "DEX", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "HC", "free": 64.3799, "locked": 0, "wallet": 0, "update_time": 1730898211205}, {"asset": "DAI", "free": 499.731, "locked": 0, "wallet": 0, "update_time": 1730898211205}]}
  10. get balance indicator 0x63aad5493b50
  11. 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"]}}
  12. >:)
  13. [ 2024-11-06-13-03-31 ] MESSAGE: no volume price file
  14. no account balance subscription
  15. feed.at("type").s() != ping{"type": "connection_ack"}
  16. feed.at("type").s() != ping{"type": "connection_ack"}
  17. [ 2024-11-06-13-03-34 ] MESSAGE: sleep time = 125933
  18. [ 2024-11-06-13-03-34 ] MESSAGE: ask price 7.690000 bid price: 7.640000
  19. [ 2024-11-06-13-03-34 ] MESSAGE: current_volume: 148.271291 previous price = 7.680000
  20. [ 2024-11-06-13-03-34 ] MESSAGE: start calculating new normal distributed price
  21. [ 2024-11-06-13-03-34 ] MESSAGE: calculate deviated price (new) = 7.685262 current price = 7.680000
  22. [ 2024-11-06-13-03-34 ] MESSAGE: delta = 0.005262
  23. [ 2024-11-06-13-03-34 ] MESSAGE: new_price > upper_bound
  24. [ 2024-11-06-13-03-34 ] MESSAGE: new price after = 7.674738
  25. [ 2024-11-06-13-03-34 ] MESSAGE: price: 7.674738
  26. quantity: 19.319395
  27. [ 2024-11-06-13-03-34 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
  28. [ 2024-11-06-13-03-34 ] DEBUG base balance: {"asset": "HC", "free": 64.3799, "locked": 0, "wallet": 0, "update_time": 1730898211832}
  29. [ 2024-11-06-13-03-34 ] DEBUG quote balance: {"asset": "DAI", "free": 499.731, "locked": 0, "wallet": 0, "update_time": 1730898211832}
  30. [ 2024-11-06-13-03-34 ] MESSAGE: balances_ratio: 0.988730
  31. [ 2024-11-06-13-03-34 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
  32. [ 2024-11-06-13-03-34 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.670000, "quantity": 19.319400, "client_order_id": 2996499060979357340, "type": "LIMIT", "side": "BUY"}
  33. ! new api API 0x63aad54939b0
  34. [ 2024-11-06-13-03-34 ] DEBUG ! new: 2024/11/06 13:03:34 extends args: {"timeout": "30000", "priority": "0"}
  35. {"symbol": "HCDAI", "price": 7.670000, "quantity": 19.319400, "client_order_id": 6289111126658128970, "type": "LIMIT", "side": "SELL"}
  36. 2024/11/06 13:03:34 args: {"quantity": "19319400000000000000", "price": "7670000000000000000", "orderType": "0", "isBid": "true"}
  37. ! new api API 0x63aad54939b0
  38. 2024/11/06 13:03:34 start cancelation
  39. 2024/11/06 13:03:34 finish cancelation
  40. 2024/11/06 13:03:34 extends args: {"timeout": "30000", "priority": "0"}
  41. 2024/11/06 13:03:34 args: {"quantity": "19319400000000000000", "price": "7670000000000000000", "orderType": "0", "isBid": "false"}
  42. 2024/11/06 13:03:34 start cancelation
  43. 2024/11/06 13:03:34 finish cancelation
  44. 2024/11/06 13:03:35 gas price = 48328382831
  45. 2024/11/06 13:03:35 gas price = 48328382831
  46. 2024/11/06 13:03:35 TX Hash: 0x251268b3ab37d1da2267d48d0e80a1ba3c72e7069a9045c6ec04eb12ed4f1c3c ; Nonce: 43
  47. 2024/11/06 13:03:35 TX Hash: 0x74b04cb63f1b24f68a7ab9505b721f5d4147f4357d304530551b178f88291b13 ; Nonce: 42
  48. 2024/11/06 13:03:42 golang tx log: {
  49. tx = 0x74b04cb63f1b24f68a7ab9505b721f5d4147f4357d304530551b178f88291b13 ok;
  50. status = 1
  51. block = 63955517
  52. usedGas = 623287
  53. exec_time = 7.868166s
  54. }
  55. [ 2024-11-06-13-03-42 ] MESSAGE: new order delta: 7868
  56. [ 2024-11-06-13-03-42 ] DEBUG ? new: empty order
  57. 2024/11/06 13:03:45 golang tx log: {
  58. tx = 0x251268b3ab37d1da2267d48d0e80a1ba3c72e7069a9045c6ec04eb12ed4f1c3c ok;
  59. status = 1
  60. block = 63955519
  61. usedGas = 584464
  62. exec_time = 10.740089s
  63. }
  64. [ 2024-11-06-13-03-45 ] MESSAGE: new order delta: 10741
  65. [ 2024-11-06-13-03-45 ] DEBUG ? new: empty order
  66. stream == e_stream::ACCOUNT_ORDER
  67. [ 2024-11-06-13-04-10 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898221000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 2996499060979357340, {"dex_order_id": "906463", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.670000, "quantity": 19.319400, "filled_quantity": 0.000000, "update_time": 1730898221000}}
  68. [ 2024-11-06-13-04-10 ] MESSAGE: limit
  69. [ 2024-11-06-13-04-10 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 2996499060979357340, {"dex_order_id": "906463", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.670000, "quantity": 19.319400, "filled_quantity": 0.000000, "update_time": 1730898221000}
  70. [ 2024-11-06-13-04-10 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 2996499060979357340, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 7.670000, "quantity": 19.319400, "update_time": 0}
  71. [ 2024-11-06-13-04-10 ] MESSAGE: (execution) filled quantity is not initialized
  72. [ 2024-11-06-13-04-10 ] MESSAGE: ! HCDAI
  73. stream == e_stream::ACCOUNT_ORDER
  74. [ 2024-11-06-13-04-10 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898221000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 2996499060979357340, {"dex_order_id": "906463", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.670000, "quantity": 19.319400, "filled_quantity": 7.752600, "update_time": 1730898221000}}
  75. [ 2024-11-06-13-04-10 ] MESSAGE: limit
  76. [ 2024-11-06-13-04-10 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 2996499060979357340, {"dex_order_id": "906463", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.670000, "quantity": 19.319400, "filled_quantity": 7.752600, "update_time": 1730898221000}
  77. [ 2024-11-06-13-04-10 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 2996499060979357340, {"dex_order_id": "906463", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.670000, "quantity": 19.319400, "filled_quantity": 0.000000, "update_time": 1730898221000}
  78. $$$ {"symbol": "HCDAI", "price": 7.670000, "quantity": 7.752600, "trade_side": BUY, "trade_time": 1730898221000}
  79. open_position for order
  80. [ 2024-11-06-13-04-10 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.670000, "quantity": 7.752600, "trade_side": BUY, "trade_time": 1730898221000}
  81. [ 2024-11-06-13-04-10 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.67, "quantity": 7.7526, "position_quote": 59.4624}
  82. [ 2024-11-06-13-04-10 ] MESSAGE: ! HCDAI
  83. stream == e_stream::ACCOUNT_ORDER
  84. [ 2024-11-06-13-04-16 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898225000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 6289111126658128970, {"dex_order_id": "906464", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.670000, "quantity": 19.319400, "filled_quantity": 0.000000, "update_time": 1730898225000}}
  85. [ 2024-11-06-13-04-16 ] MESSAGE: limit
  86. [ 2024-11-06-13-04-16 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 6289111126658128970, {"dex_order_id": "906464", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.670000, "quantity": 19.319400, "filled_quantity": 0.000000, "update_time": 1730898225000}
  87. [ 2024-11-06-13-04-16 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 6289111126658128970, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": 7.670000, "quantity": 19.319400, "update_time": 0}
  88. [ 2024-11-06-13-04-16 ] MESSAGE: (execution) filled quantity is not initialized
  89. [ 2024-11-06-13-04-16 ] MESSAGE: ! HCDAI
  90. stream == e_stream::ACCOUNT_ORDER
  91. [ 2024-11-06-13-04-16 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898221000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 2996499060979357340, {"dex_order_id": "906463", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.670000, "quantity": 19.319400, "filled_quantity": 19.319400, "update_time": 1730898221000}}
  92. [ 2024-11-06-13-04-16 ] MESSAGE: limit
  93. [ 2024-11-06-13-04-16 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 2996499060979357340, {"dex_order_id": "906463", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.670000, "quantity": 19.319400, "filled_quantity": 19.319400, "update_time": 1730898221000}
  94. [ 2024-11-06-13-04-16 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 2996499060979357340, {"dex_order_id": "906463", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.670000, "quantity": 19.319400, "filled_quantity": 7.752600, "update_time": 1730898221000}
  95. $$$ {"symbol": "HCDAI", "price": 7.670000, "quantity": 11.566800, "trade_side": BUY, "trade_time": 1730898221000}
  96. open_position for order
  97. [ 2024-11-06-13-04-16 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.670000, "quantity": 11.566800, "trade_side": BUY, "trade_time": 1730898221000}
  98. [ 2024-11-06-13-04-16 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.67, "quantity": 19.3194, "position_quote": 148.18}
  99. [ 2024-11-06-13-04-16 ] MESSAGE: erase
  100. [ 2024-11-06-13-04-16 ] MESSAGE: ! HCDAI
  101. stream == e_stream::ACCOUNT_ORDER
  102. [ 2024-11-06-13-04-16 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898225000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 6289111126658128970, {"dex_order_id": "906464", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.670000, "quantity": 19.319400, "filled_quantity": 19.319400, "update_time": 1730898225000}}
  103. [ 2024-11-06-13-04-16 ] MESSAGE: limit
  104. [ 2024-11-06-13-04-16 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 6289111126658128970, {"dex_order_id": "906464", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.670000, "quantity": 19.319400, "filled_quantity": 19.319400, "update_time": 1730898225000}
  105. [ 2024-11-06-13-04-16 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 6289111126658128970, {"dex_order_id": "906464", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.670000, "quantity": 19.319400, "filled_quantity": 0.000000, "update_time": 1730898225000}
  106. $$$ {"symbol": "HCDAI", "price": 7.670000, "quantity": 19.319400, "trade_side": SELL, "trade_time": 1730898225000}
  107. open_position for order
  108. [ 2024-11-06-13-04-16 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.670000, "quantity": 19.319400, "trade_side": SELL, "trade_time": 1730898225000}
  109. [ 2024-11-06-13-04-16 ] INFO new position: {"symbol": "HCDAI", "entry_price": 0, "quantity": 0, "position_quote": 0}
  110. [ 2024-11-06-13-04-16 ] MESSAGE: erase
  111. [ 2024-11-06-13-04-16 ] MESSAGE: ! HCDAI
  112. [ 2024-11-06-13-05-47 ] MESSAGE: sleep time = 101400
  113. [ 2024-11-06-13-05-47 ] MESSAGE: ask price 7.690000 bid price: 7.640000
  114. [ 2024-11-06-13-05-47 ] MESSAGE: current_volume: 130.089265 previous price = 7.674738
  115. [ 2024-11-06-13-05-47 ] MESSAGE: start calculating new normal distributed price
  116. [ 2024-11-06-13-05-47 ] MESSAGE: calculate deviated price (new) = 7.663470 current price = 7.674738
  117. [ 2024-11-06-13-05-47 ] MESSAGE: delta = -0.011268
  118. [ 2024-11-06-13-05-47 ] MESSAGE: new price after = 7.663470
  119. [ 2024-11-06-13-05-47 ] MESSAGE: price: 7.663470
  120. quantity: 16.975243
  121. [ 2024-11-06-13-05-47 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
  122. [ 2024-11-06-13-05-47 ] DEBUG base balance: {"asset": "HC", "free": 64.3413, "locked": 0, "wallet": 0, "update_time": 1730898339492}
  123. [ 2024-11-06-13-05-47 ] DEBUG quote balance: {"asset": "DAI", "free": 499.435, "locked": 0, "wallet": 0, "update_time": 1730898339492}
  124. [ 2024-11-06-13-05-47 ] MESSAGE: balances_ratio: 0.987271
  125. [ 2024-11-06-13-05-47 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
  126. [ 2024-11-06-13-05-47 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.660000, "quantity": 16.975200, "client_order_id": 9464693683520657121, "type": "LIMIT", "side": "BUY"}
  127. ! new api API 0x63aad54939b0
  128. [ 2024-11-06-13-05-47 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.660000, "quantity": 16.975200, "client_order_id": 14865112647110992970, "type": "LIMIT", "side": "SELL"}
  129. ! new api API 0x63aad54939b0
  130. 2024/11/06 13:05:47 extends args: {"timeout": "30000", "priority": "0"}
  131. 2024/11/06 13:05:47 args: {"quantity": "16975200000000000000", "price": "7660000000000000000", "orderType": "0", "isBid": "true"}
  132. 2024/11/06 13:05:47 start cancelation
  133. 2024/11/06 13:05:47 finish cancelation
  134. 2024/11/06 13:05:47 extends args: {"timeout": "30000", "priority": "0"}
  135. 2024/11/06 13:05:47 args: {"quantity": "16975200000000000000", "price": "7660000000000000000", "orderType": "0", "isBid": "false"}
  136. 2024/11/06 13:05:47 start cancelation
  137. 2024/11/06 13:05:47 finish cancelation
  138. 2024/11/06 13:05:47 gas price = 49025361110
  139. 2024/11/06 13:05:47 gas price = 49025361110
  140. 2024/11/06 13:05:48 TX Hash: 0x667e66a126a1c1336e08c7388fba72800f72ad4e4b3bc105ed1cb96f53cf6e2c ; Nonce: 45
  141. 2024/11/06 13:05:48 TX Hash: 0x14ff354a602c99d4c06aa3d842e7c239bc59894380d75fc5f46eac4465a786bb ; Nonce: 44
  142. [ 2024-11-06-13-07-41 ] MESSAGE: sleep time = 112593
  143. [ 2024-11-06-13-07-41 ] MESSAGE: ask price 7.670000 bid price: 7.640000
  144. [ 2024-11-06-13-07-41 ] MESSAGE: current_volume: 138.057893 previous price = 7.663470
  145. [ 2024-11-06-13-07-41 ] MESSAGE: start calculating new normal distributed price
  146. [ 2024-11-06-13-07-41 ] MESSAGE: calculate deviated price (new) = 7.664810 current price = 7.663470
  147. [ 2024-11-06-13-07-41 ] MESSAGE: delta = 0.001341
  148. [ 2024-11-06-13-07-41 ] MESSAGE: new_price > upper_bound
  149. [ 2024-11-06-13-07-41 ] MESSAGE: new price after = 7.660000
  150. [ 2024-11-06-13-07-41 ] MESSAGE: price: 7.660000
  151. quantity: 18.023224
  152. [ 2024-11-06-13-07-41 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
  153. [ 2024-11-06-13-07-41 ] DEBUG base balance: {"asset": "HC", "free": 64.3413, "locked": 0, "wallet": 0, "update_time": 1730898456362}
  154. [ 2024-11-06-13-07-41 ] DEBUG quote balance: {"asset": "DAI", "free": 499.435, "locked": 0, "wallet": 0, "update_time": 1730898456362}
  155. [ 2024-11-06-13-07-41 ] MESSAGE: balances_ratio: 0.986824
  156. [ 2024-11-06-13-07-41 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
  157. [ 2024-11-06-13-07-41 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.660000, "quantity": 18.023200, "client_order_id": 13283824405816181755, "type": "LIMIT", "side": "BUY"}
  158. ! new api API 0x63aad54939b0
  159. [ 2024-11-06-13-07-41 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.660000, "quantity": 18.023200, "client_order_id": 12701296106768463687, "type": "LIMIT", "side": "SELL"}
  160. ! new api API 2024/11/06 13:07:41 extends args: {"timeout": "30000", "priority": "0"}
  161. 0x63aad54939b0
  162. 2024/11/06 13:07:41 args: {"quantity": "18023200000000000000", "price": "7660000000000000000", "orderType": "0", "isBid": "true"}
  163. 2024/11/06 13:07:41 start cancelation
  164. 2024/11/06 13:07:41 finish cancelation
  165. 2024/11/06 13:07:41 extends args: {"timeout": "30000", "priority": "0"}
  166. 2024/11/06 13:07:41 args: {"quantity": "18023200000000000000", "price": "7660000000000000000", "orderType": "0", "isBid": "false"}
  167. 2024/11/06 13:07:41 start cancelation
  168. 2024/11/06 13:07:41 finish cancelation
  169. 2024/11/06 13:07:41 gas price = 56965750056
  170. 2024/11/06 13:07:41 cancel tx 0x667e66a126a1c1336e08c7388fba72800f72ad4e4b3bc105ed1cb96f53cf6e2c with tx 0xbf71016249648859b5a98bc0bbca2c7be4f5ac8654a5ef86354828dcef223c31; Nonce 45
  171. 2024/11/06 13:07:41 cancel tx 0x14ff354a602c99d4c06aa3d842e7c239bc59894380d75fc5f46eac4465a786bb with tx 0x391a6b4aece0aa6a95e9752901893df0e5420e88df561e54fdbc966203aa89a4; Nonce 44
  172. 2024/11/06 13:07:41 cancel tx 0x14ff354a602c99d4c06aa3d842e7c239bc59894380d75fc5f46eac4465a786bb with tx 0x391a6b4aece0aa6a95e9752901893df0e5420e88df561e54fdbc966203aa89a4; Nonce 44
  173. 2024/11/06 13:07:41 cancel tx 0x667e66a126a1c1336e08c7388fba72800f72ad4e4b3bc105ed1cb96f53cf6e2c with tx 0x1846b7351364168f9e4648b8d8dc88c941498abf8b84d665eef8b70b9e6639be; Nonce 45
  174. 2024/11/06 13:07:41 gas price = 58155449449
  175. 2024/11/06 13:07:41 TX Hash: 0x70772f23c41aaf9ce91846d5961785bad2bfe9fd5050f60dca4032f63065267e ; Nonce: 46
  176. 2024/11/06 13:07:42 TX Hash: 0x1e75d70fedac41b670e17d2cbb838674589e0be601315991023b862536eb89ce ; Nonce: 47
  177. 2024/11/06 13:07:48 golang tx log: {
  178. tx = 0x391a6b4aece0aa6a95e9752901893df0e5420e88df561e54fdbc966203aa89a4 ok;
  179. status = 1
  180. block = 63955632
  181. usedGas = 21000
  182. }
  183. 2024/11/06 13:07:48 golang tx log: {
  184. tx = 0x391a6b4aece0aa6a95e9752901893df0e5420e88df561e54fdbc966203aa89a4 ok;
  185. status = 1
  186. block = 63955632
  187. usedGas = 21000
  188. }
  189. [ 2024-11-06-13-07-53 ] MESSAGE: new order delta: 125492
  190. [ 2024-11-06-13-07-53 ] DEBUG ? new: empty order
  191. 2024/11/06 13:07:56 golang tx log: {
  192. tx = 0x1846b7351364168f9e4648b8d8dc88c941498abf8b84d665eef8b70b9e6639be ok;
  193. status = 1
  194. block = 63955634
  195. usedGas = 21000
  196. }
  197. [ 2024-11-06-13-07-58 ] MESSAGE: new order delta: 130493
  198. [ 2024-11-06-13-07-58 ] DEBUG ? new: empty order
  199. 2024/11/06 13:08:10 golang tx log: {
  200. tx = 0x70772f23c41aaf9ce91846d5961785bad2bfe9fd5050f60dca4032f63065267e ok;
  201. status = 1
  202. block = 63955643
  203. usedGas = 470255
  204. exec_time = 28.631004s
  205. }
  206. [ 2024-11-06-13-08-10 ] MESSAGE: new order delta: 28632
  207. [ 2024-11-06-13-08-10 ] DEBUG ? new: empty order
  208. 2024/11/06 13:08:10 golang tx log: {
  209. tx = 0x1e75d70fedac41b670e17d2cbb838674589e0be601315991023b862536eb89ce ok;
  210. status = 1
  211. block = 63955643
  212. usedGas = 442433
  213. exec_time = 28.777434s
  214. }
  215. [ 2024-11-06-13-08-10 ] MESSAGE: new order delta: 28778
  216. [ 2024-11-06-13-08-10 ] DEBUG ? new: empty order
  217. 2024/11/06 13:08:11 failed to wait for transaction mining (0xbf71016249648859b5a98bc0bbca2c7be4f5ac8654a5ef86354828dcef223c31): context deadline exceeded
  218. stream == e_stream::ACCOUNT_ORDER
  219. [ 2024-11-06-13-08-40 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898489000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 13283824405816181755, {"dex_order_id": "906503", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.660000, "quantity": 18.023200, "filled_quantity": 0.000000, "update_time": 1730898489000}}
  220. [ 2024-11-06-13-08-40 ] MESSAGE: limit
  221. [ 2024-11-06-13-08-40 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 13283824405816181755, {"dex_order_id": "906503", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.660000, "quantity": 18.023200, "filled_quantity": 0.000000, "update_time": 1730898489000}
  222. [ 2024-11-06-13-08-40 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 13283824405816181755, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 7.660000, "quantity": 18.023200, "update_time": 0}
  223. [ 2024-11-06-13-08-40 ] MESSAGE: (execution) filled quantity is not initialized
  224. [ 2024-11-06-13-08-40 ] MESSAGE: ! HCDAI
  225. stream == e_stream::ACCOUNT_ORDER
  226. [ 2024-11-06-13-08-40 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898489000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 12701296106768463687, {"dex_order_id": "906504", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.660000, "quantity": 18.023200, "filled_quantity": 0.000000, "update_time": 1730898489000}}
  227. [ 2024-11-06-13-08-40 ] MESSAGE: limit
  228. [ 2024-11-06-13-08-40 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 12701296106768463687, {"dex_order_id": "906504", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.660000, "quantity": 18.023200, "filled_quantity": 0.000000, "update_time": 1730898489000}
  229. [ 2024-11-06-13-08-40 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 12701296106768463687, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": 7.660000, "quantity": 18.023200, "update_time": 0}
  230. [ 2024-11-06-13-08-40 ] MESSAGE: (execution) filled quantity is not initialized
  231. [ 2024-11-06-13-08-40 ] MESSAGE: ! HCDAI
  232. stream == e_stream::ACCOUNT_ORDER
  233. [ 2024-11-06-13-08-40 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898489000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 13283824405816181755, {"dex_order_id": "906503", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.660000, "quantity": 18.023200, "filled_quantity": 18.023200, "update_time": 1730898489000}}
  234. [ 2024-11-06-13-08-40 ] MESSAGE: limit
  235. [ 2024-11-06-13-08-40 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 13283824405816181755, {"dex_order_id": "906503", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.660000, "quantity": 18.023200, "filled_quantity": 18.023200, "update_time": 1730898489000}
  236. [ 2024-11-06-13-08-40 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 13283824405816181755, {"dex_order_id": "906503", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.660000, "quantity": 18.023200, "filled_quantity": 0.000000, "update_time": 1730898489000}
  237. $$$ {"symbol": "HCDAI", "price": 7.660000, "quantity": 18.023200, "trade_side": BUY, "trade_time": 1730898489000}
  238. open_position for order
  239. [ 2024-11-06-13-08-40 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.660000, "quantity": 18.023200, "trade_side": BUY, "trade_time": 1730898489000}
  240. [ 2024-11-06-13-08-40 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.66, "quantity": 18.0232, "position_quote": 138.058}
  241. [ 2024-11-06-13-08-40 ] MESSAGE: erase
  242. [ 2024-11-06-13-08-40 ] MESSAGE: ! HCDAI
  243. stream == e_stream::ACCOUNT_ORDER
  244. [ 2024-11-06-13-08-40 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898489000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 12701296106768463687, {"dex_order_id": "906504", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.660000, "quantity": 18.023200, "filled_quantity": 18.023200, "update_time": 1730898489000}}
  245. [ 2024-11-06-13-08-40 ] MESSAGE: limit
  246. [ 2024-11-06-13-08-40 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 12701296106768463687, {"dex_order_id": "906504", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.660000, "quantity": 18.023200, "filled_quantity": 18.023200, "update_time": 1730898489000}
  247. [ 2024-11-06-13-08-40 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 12701296106768463687, {"dex_order_id": "906504", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.660000, "quantity": 18.023200, "filled_quantity": 0.000000, "update_time": 1730898489000}
  248. $$$ {"symbol": "HCDAI", "price": 7.660000, "quantity": 18.023200, "trade_side": SELL, "trade_time": 1730898489000}
  249. open_position for order
  250. [ 2024-11-06-13-08-40 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.660000, "quantity": 18.023200, "trade_side": SELL, "trade_time": 1730898489000}
  251. [ 2024-11-06-13-08-40 ] INFO new position: {"symbol": "HCDAI", "entry_price": 0, "quantity": 0, "position_quote": 0}
  252. [ 2024-11-06-13-08-40 ] MESSAGE: erase
  253. [ 2024-11-06-13-08-40 ] MESSAGE: ! HCDAI
  254. [ 2024-11-06-13-09-34 ] MESSAGE: sleep time = 129719
  255. [ 2024-11-06-13-09-34 ] MESSAGE: ask price 7.690000 bid price: 7.670000
  256. [ 2024-11-06-13-09-34 ] MESSAGE: current_volume: 117.761964 previous price = 7.660000
  257. [ 2024-11-06-13-09-34 ] MESSAGE: start calculating new normal distributed price
  258. [ 2024-11-06-13-09-34 ] MESSAGE: calculate deviated price (new) = 7.647927 current price = 7.660000
  259. [ 2024-11-06-13-09-34 ] MESSAGE: delta = -0.012073
  260. [ 2024-11-06-13-09-34 ] MESSAGE: new_price < lower_bound
  261. [ 2024-11-06-13-09-34 ] MESSAGE: new price after = 7.680000
  262. [ 2024-11-06-13-09-34 ] MESSAGE: price: 7.680000
  263. quantity: 15.333589
  264. [ 2024-11-06-13-09-34 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
  265. [ 2024-11-06-13-09-34 ] DEBUG base balance: {"asset": "HC", "free": 64.3052, "locked": 0, "wallet": 0, "update_time": 1730898573285}
  266. [ 2024-11-06-13-09-34 ] DEBUG quote balance: {"asset": "DAI", "free": 499.159, "locked": 0, "wallet": 0, "update_time": 1730898573285}
  267. [ 2024-11-06-13-09-34 ] MESSAGE: balances_ratio: 0.989393
  268. [ 2024-11-06-13-09-34 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
  269. [ 2024-11-06-13-09-34 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.680000, "quantity": 15.333600, "client_order_id": 5766491332254769525, "type": "LIMIT", "side": "BUY"}
  270. ! new api API 0x63aad54939b0
  271. [ 2024-11-06-13-09-342024/11/06 13:09:34 extends args: {"timeout": "30000", "priority": "0"}
  272. 2024/11/06 13:09:34 args: {"quantity": "15333600000000000000", "price": "7680000000000000000", "orderType": "0", "isBid": "true"}
  273. 2024/11/06 13:09:34 start cancelation
  274. 2024/11/06 13:09:34 finish cancelation
  275. ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.680000, "quantity": 15.333600, "client_order_id": 13207811016173213746, "type": "LIMIT", "side": "SELL"}
  276. ! new api API 0x63aad54939b0
  277. 2024/11/06 13:09:34 extends args: {"timeout": "30000", "priority": "0"}
  278. 2024/11/06 13:09:34 args: {"quantity": "15333600000000000000", "price": "7680000000000000000", "orderType": "0", "isBid": "false"}
  279. 2024/11/06 13:09:34 start cancelation
  280. 2024/11/06 13:09:34 finish cancelation
  281. 2024/11/06 13:09:35 gas price = 60038954723
  282. 2024/11/06 13:09:35 gas price = 60038954723
  283. 2024/11/06 13:09:35 TX Hash: 0xdd55561c49a74da46ebfff31bf946476e74dcd21fadd6ea04570e089cdf0aca3 ; Nonce: 49
  284. 2024/11/06 13:09:35 TX Hash: 0x89c7183ba602940d6e94422374e350bb10b4783e1227982bf98cb217c7cc9f05 ; Nonce: 48
  285. 2024/11/06 13:09:39 golang tx log: {
  286. tx = 0x89c7183ba602940d6e94422374e350bb10b4783e1227982bf98cb217c7cc9f05 ok;
  287. status = 1
  288. block = 63955685
  289. usedGas = 470243
  290. exec_time = 4.876541s
  291. }
  292. [ 2024-11-06-13-09-39 ] MESSAGE: new order delta: 4877
  293. [ 2024-11-06-13-09-39 ] DEBUG ? new: empty order
  294. 2024/11/06 13:09:43 golang tx log: {
  295. tx = 0xdd55561c49a74da46ebfff31bf946476e74dcd21fadd6ea04570e089cdf0aca3 ok;
  296. status = 1
  297. block = 63955687
  298. usedGas = 442421
  299. exec_time = 8.791425s
  300. }
  301. [ 2024-11-06-13-09-43 ] MESSAGE: new order delta: 8792
  302. [ 2024-11-06-13-09-43 ] DEBUG ? new: empty order
  303. stream == e_stream::ACCOUNT_ORDER
  304. [ 2024-11-06-13-10-10 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898579000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 5766491332254769525, {"dex_order_id": "906515", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.680000, "quantity": 15.333600, "filled_quantity": 0.000000, "update_time": 1730898579000}}
  305. [ 2024-11-06-13-10-10 ] MESSAGE: limit
  306. [ 2024-11-06-13-10-10 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 5766491332254769525, {"dex_order_id": "906515", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.680000, "quantity": 15.333600, "filled_quantity": 0.000000, "update_time": 1730898579000}
  307. [ 2024-11-06-13-10-10 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 5766491332254769525, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 7.680000, "quantity": 15.333600, "update_time": 0}
  308. [ 2024-11-06-13-10-10 ] MESSAGE: (execution) filled quantity is not initialized
  309. [ 2024-11-06-13-10-10 ] MESSAGE: ! HCDAI
  310. stream == e_stream::ACCOUNT_ORDER
  311. [ 2024-11-06-13-10-16 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898583000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 13207811016173213746, {"dex_order_id": "906516", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.680000, "quantity": 15.333600, "filled_quantity": 0.000000, "update_time": 1730898583000}}
  312. [ 2024-11-06-13-10-16 ] MESSAGE: limit
  313. [ 2024-11-06-13-10-16 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 13207811016173213746, {"dex_order_id": "906516", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.680000, "quantity": 15.333600, "filled_quantity": 0.000000, "update_time": 1730898583000}
  314. [ 2024-11-06-13-10-16 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 13207811016173213746, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": 7.680000, "quantity": 15.333600, "update_time": 0}
  315. [ 2024-11-06-13-10-16 ] MESSAGE: (execution) filled quantity is not initialized
  316. [ 2024-11-06-13-10-16 ] MESSAGE: ! HCDAI
  317. stream == e_stream::ACCOUNT_ORDER
  318. [ 2024-11-06-13-10-16 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898579000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 5766491332254769525, {"dex_order_id": "906515", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.680000, "quantity": 15.333600, "filled_quantity": 15.333600, "update_time": 1730898579000}}
  319. [ 2024-11-06-13-10-16 ] MESSAGE: limit
  320. [ 2024-11-06-13-10-16 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 5766491332254769525, {"dex_order_id": "906515", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.680000, "quantity": 15.333600, "filled_quantity": 15.333600, "update_time": 1730898579000}
  321. [ 2024-11-06-13-10-16 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 5766491332254769525, {"dex_order_id": "906515", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.680000, "quantity": 15.333600, "filled_quantity": 0.000000, "update_time": 1730898579000}
  322. $$$ {"symbol": "HCDAI", "price": 7.680000, "quantity": 15.333600, "trade_side": BUY, "trade_time": 1730898579000}
  323. open_position for order
  324. [ 2024-11-06-13-10-16 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.680000, "quantity": 15.333600, "trade_side": BUY, "trade_time": 1730898579000}
  325. [ 2024-11-06-13-10-16 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.68, "quantity": 15.3336, "position_quote": 117.762}
  326. [ 2024-11-06-13-10-16 ] MESSAGE: erase
  327. [ 2024-11-06-13-10-16 ] MESSAGE: ! HCDAI
  328. stream == e_stream::ACCOUNT_ORDER
  329. [ 2024-11-06-13-10-16 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898583000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 13207811016173213746, {"dex_order_id": "906516", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.680000, "quantity": 15.333600, "filled_quantity": 15.333600, "update_time": 1730898583000}}
  330. [ 2024-11-06-13-10-16 ] MESSAGE: limit
  331. [ 2024-11-06-13-10-16 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 13207811016173213746, {"dex_order_id": "906516", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.680000, "quantity": 15.333600, "filled_quantity": 15.333600, "update_time": 1730898583000}
  332. [ 2024-11-06-13-10-16 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 13207811016173213746, {"dex_order_id": "906516", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.680000, "quantity": 15.333600, "filled_quantity": 0.000000, "update_time": 1730898583000}
  333. $$$ {"symbol": "HCDAI", "price": 7.680000, "quantity": 15.333600, "trade_side": SELL, "trade_time": 1730898583000}
  334. open_position for order
  335. [ 2024-11-06-13-10-16 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.680000, "quantity": 15.333600, "trade_side": SELL, "trade_time": 1730898583000}
  336. [ 2024-11-06-13-10-16 ] INFO new position: {"symbol": "HCDAI", "entry_price": 0, "quantity": 0, "position_quote": 0}
  337. [ 2024-11-06-13-10-16 ] MESSAGE: erase
  338. [ 2024-11-06-13-10-16 ] MESSAGE: ! HCDAI
  339. [ 2024-11-06-13-11-45 ] MESSAGE: sleep time = 113816
  340. [ 2024-11-06-13-11-45 ] MESSAGE: ask price 7.670000 bid price: 7.640000
  341. [ 2024-11-06-13-11-45 ] MESSAGE: current_volume: 122.102978 previous price = 7.680000
  342. [ 2024-11-06-13-11-45 ] MESSAGE: start calculating new normal distributed price
  343. [ 2024-11-06-13-11-45 ] MESSAGE: calculate deviated price (new) = 7.684074 current price = 7.680000
  344. [ 2024-11-06-13-11-45 ] MESSAGE: delta = 0.004074
  345. [ 2024-11-06-13-11-45 ] MESSAGE: new_price > upper_bound
  346. [ 2024-11-06-13-11-45 ] MESSAGE: new price after = 7.660000
  347. [ 2024-11-06-13-11-45 ] MESSAGE: price: 7.660000
  348. quantity: 15.940337
  349. [ 2024-11-06-13-11-45 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
  350. [ 2024-11-06-13-11-45 ] DEBUG base balance: {"asset": "HC", "free": 64.2746, "locked": 0, "wallet": 0, "update_time": 1730898701036}
  351. [ 2024-11-06-13-11-45 ] DEBUG quote balance: {"asset": "DAI", "free": 498.923, "locked": 0, "wallet": 0, "update_time": 1730898701036}
  352. [ 2024-11-06-13-11-45 ] MESSAGE: balances_ratio: 0.986812
  353. [ 2024-11-06-13-11-45 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
  354. [ 2024-11-06-13-11-45 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.660000, "quantity": 15.940300, "client_order_id": 10383728224054343054, "type": "LIMIT", "side": "BUY"}
  355. ! new api API 0x63aad54939b0
  356. [ 2024-11-06-13-11-45 ] DEBUG 2024/11/06 13:11:45 extends args: {"timeout": "30000", "priority": "0"}
  357. 2024/11/06 13:11:45 args: {"quantity": "15940300000000000000", "price": "7660000000000000000", "orderType": "0", "isBid": "true"}
  358. 2024/11/06 13:11:45 start cancelation
  359. 2024/11/06 13:11:45 finish cancelation
  360. ! new: {"symbol": "HCDAI", "price": 7.660000, "quantity": 15.940300, "client_order_id": 12327940340437119805, "type": "LIMIT", "side": "SELL"}
  361. ! new api API 0x63aad54939b0
  362. 2024/11/06 13:11:45 extends args: {"timeout": "30000", "priority": "0"}
  363. 2024/11/06 13:11:45 args: {"quantity": "15940300000000000000", "price": "7660000000000000000", "orderType": "0", "isBid": "false"}
  364. 2024/11/06 13:11:45 start cancelation
  365. 2024/11/06 13:11:45 finish cancelation
  366. 2024/11/06 13:11:46 gas price = 55082227398
  367. 2024/11/06 13:11:46 gas price = 55082227398
  368. 2024/11/06 13:11:46 TX Hash: 0x2763d67dcef39612330f652e514e2549ca398ef5ee9c621cfb293f359710c2f3 ; Nonce: 51
  369. 2024/11/06 13:11:46 TX Hash: 0x7ed10fae65d59e1ed3cddc54bfd976e67a337255cb36c76947f4beeeaf5e1158 ; Nonce: 50
  370. 2024/11/06 13:11:50 golang tx log: {
  371. tx = 0x7ed10fae65d59e1ed3cddc54bfd976e67a337255cb36c76947f4beeeaf5e1158 ok;
  372. status = 1
  373. block = 63955746
  374. usedGas = 470267
  375. exec_time = 4.636620s
  376. }
  377. [ 2024-11-06-13-11-50 ] MESSAGE: new order delta: 4637
  378. [ 2024-11-06-13-11-50 ] DEBUG ? new: empty order
  379. 2024/11/06 13:11:54 golang tx log: {
  380. tx = 0x2763d67dcef39612330f652e514e2549ca398ef5ee9c621cfb293f359710c2f3 ok;
  381. status = 1
  382. block = 63955748
  383. usedGas = 584452
  384. exec_time = 8.626870s
  385. }
  386. [ 2024-11-06-13-11-54 ] MESSAGE: new order delta: 8627
  387. [ 2024-11-06-13-11-54 ] DEBUG ? new: empty order
  388. stream == e_stream::ACCOUNT_ORDER
  389. [ 2024-11-06-13-12-15 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898709000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 10383728224054343054, {"dex_order_id": "906533", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.660000, "quantity": 15.940300, "filled_quantity": 0.000000, "update_time": 1730898709000}}
  390. [ 2024-11-06-13-12-15 ] MESSAGE: limit
  391. [ 2024-11-06-13-12-15 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 10383728224054343054, {"dex_order_id": "906533", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.660000, "quantity": 15.940300, "filled_quantity": 0.000000, "update_time": 1730898709000}
  392. [ 2024-11-06-13-12-15 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 10383728224054343054, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 7.660000, "quantity": 15.940300, "update_time": 0}
  393. [ 2024-11-06-13-12-15 ] MESSAGE: (execution) filled quantity is not initialized
  394. [ 2024-11-06-13-12-15 ] MESSAGE: ! HCDAI
  395. stream == e_stream::ACCOUNT_ORDER
  396. [ 2024-11-06-13-12-22 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898713000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 12327940340437119805, {"dex_order_id": "906535", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.660000, "quantity": 15.940300, "filled_quantity": 0.000000, "update_time": 1730898713000}}
  397. [ 2024-11-06-13-12-22 ] MESSAGE: limit
  398. [ 2024-11-06-13-12-22 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 12327940340437119805, {"dex_order_id": "906535", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.660000, "quantity": 15.940300, "filled_quantity": 0.000000, "update_time": 1730898713000}
  399. [ 2024-11-06-13-12-22 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 12327940340437119805, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": 7.660000, "quantity": 15.940300, "update_time": 0}
  400. [ 2024-11-06-13-12-22 ] MESSAGE: (execution) filled quantity is not initialized
  401. [ 2024-11-06-13-12-22 ] MESSAGE: ! HCDAI
  402. stream == e_stream::ACCOUNT_ORDER
  403. [ 2024-11-06-13-12-22 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898709000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 10383728224054343054, {"dex_order_id": "906533", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.660000, "quantity": 15.940300, "filled_quantity": 15.940300, "update_time": 1730898709000}}
  404. [ 2024-11-06-13-12-22 ] MESSAGE: limit
  405. [ 2024-11-06-13-12-22 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 10383728224054343054, {"dex_order_id": "906533", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.660000, "quantity": 15.940300, "filled_quantity": 15.940300, "update_time": 1730898709000}
  406. [ 2024-11-06-13-12-22 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 10383728224054343054, {"dex_order_id": "906533", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.660000, "quantity": 15.940300, "filled_quantity": 0.000000, "update_time": 1730898709000}
  407. $$$ {"symbol": "HCDAI", "price": 7.660000, "quantity": 15.940300, "trade_side": BUY, "trade_time": 1730898709000}
  408. open_position for order
  409. [ 2024-11-06-13-12-22 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.660000, "quantity": 15.940300, "trade_side": BUY, "trade_time": 1730898709000}
  410. [ 2024-11-06-13-12-22 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.66, "quantity": 15.9403, "position_quote": 122.103}
  411. [ 2024-11-06-13-12-22 ] MESSAGE: erase
  412. [ 2024-11-06-13-12-22 ] MESSAGE: ! HCDAI
  413. stream == e_stream::ACCOUNT_ORDER
  414. [ 2024-11-06-13-12-22 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898713000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 12327940340437119805, {"dex_order_id": "906535", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.660000, "quantity": 15.940300, "filled_quantity": 8.940300, "update_time": 1730898713000}}
  415. [ 2024-11-06-13-12-22 ] MESSAGE: limit
  416. [ 2024-11-06-13-12-22 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 12327940340437119805, {"dex_order_id": "906535", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.660000, "quantity": 15.940300, "filled_quantity": 8.940300, "update_time": 1730898713000}
  417. [ 2024-11-06-13-12-22 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 12327940340437119805, {"dex_order_id": "906535", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.660000, "quantity": 15.940300, "filled_quantity": 0.000000, "update_time": 1730898713000}
  418. $$$ {"symbol": "HCDAI", "price": 7.660000, "quantity": 8.940300, "trade_side": SELL, "trade_time": 1730898713000}
  419. open_position for order
  420. [ 2024-11-06-13-12-22 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.660000, "quantity": 8.940300, "trade_side": SELL, "trade_time": 1730898713000}
  421. [ 2024-11-06-13-12-22 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.66, "quantity": 7, "position_quote": 53.62}
  422. [ 2024-11-06-13-12-22 ] MESSAGE: ! HCDAI
  423. stream == e_stream::ACCOUNT_ORDER
  424. [ 2024-11-06-13-12-34 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898713000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 12327940340437119805, {"dex_order_id": "906535", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.660000, "quantity": 15.940300, "filled_quantity": 15.940300, "update_time": 1730898713000}}
  425. [ 2024-11-06-13-12-34 ] MESSAGE: limit
  426. [ 2024-11-06-13-12-34 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 12327940340437119805, {"dex_order_id": "906535", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.660000, "quantity": 15.940300, "filled_quantity": 15.940300, "update_time": 1730898713000}
  427. [ 2024-11-06-13-12-34 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 12327940340437119805, {"dex_order_id": "906535", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.660000, "quantity": 15.940300, "filled_quantity": 8.940300, "update_time": 1730898713000}
  428. $$$ {"symbol": "HCDAI", "price": 7.660000, "quantity": 7.000000, "trade_side": SELL, "trade_time": 1730898713000}
  429. open_position for order
  430. [ 2024-11-06-13-12-34 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.660000, "quantity": 7.000000, "trade_side": SELL, "trade_time": 1730898713000}
  431. [ 2024-11-06-13-12-34 ] INFO new position: {"symbol": "HCDAI", "entry_price": 0, "quantity": 0, "position_quote": 0}
  432. [ 2024-11-06-13-12-34 ] MESSAGE: erase
  433. [ 2024-11-06-13-12-34 ] MESSAGE: ! HCDAI
  434. [ 2024-11-06-13-13-42 ] MESSAGE: sleep time = 126141
  435. [ 2024-11-06-13-13-42 ] MESSAGE: ask price 7.640000 bid price: 7.630000
  436. [ 2024-11-06-13-13-42 ] MESSAGE: Narrow spread
  437. [ 2024-11-06-13-13-42 ] MESSAGE: dealing with narrow spread
  438. [ 2024-11-06-13-13-42 ] INFO dealing with narrow spread result: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.63, 7.07733); ], bids: [(7.64, 7.06806); ]
  439. [ 2024-11-06-13-13-42 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.63, 7.07733); ], bids: [(7.64, 7.06806); ]
  440. [ 2024-11-06-13-13-42 ] DEBUG base balance: {"asset": "HC", "free": 64.2427, "locked": 0, "wallet": 0, "update_time": 1730898817992}
  441. [ 2024-11-06-13-13-42 ] DEBUG quote balance: {"asset": "DAI", "free": 498.679, "locked": 0, "wallet": 0, "update_time": 1730898817992}
  442. [ 2024-11-06-13-13-42 ] MESSAGE: balances_ratio: 0.983585
  443. [ 2024-11-06-13-13-42 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.63, 7.07733); ], bids: [(7.64, 7.06806); ]
  444. [ 2024-11-06-13-13-42 ] MESSAGE: LIMIT GRID
  445. [ 2024-11-06-13-13-42 ] DEBUG in _process_limit_grid: 7.63
  446. [ 2024-11-06-13-13-42 ] DEBUG in _process_limit_grid: 7.07733
  447. [ 2024-11-06-13-13-42 ] DEBUG in _process_limit_grid: 7.64
  448. [ 2024-11-06-13-13-42 ] DEBUG in _process_limit_grid: 7.06806
  449. [ 2024-11-06-13-13-42 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 7.640000, "quantity": 7.068100, "type": "LIMIT", "side": "BUY"}
  450. [ 2024-11-06-13-13-42 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 7.630000, "quantity": 7.077300, "type": "LIMIT", "side": "SELL"}
  451. [ 2024-11-06-13-13-42 ] MESSAGE: csize: 0
  452. [ 2024-11-06-13-13-42 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.640000, "quantity": 7.068100, "client_order_id": 7591030134650113030, "type": "LIMIT", "side": "BUY"}
  453. ! new api API 0x63aad54939b0
  454. [ 2024-11-06-13-13-42 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.630000, "quantity": 7.077300, "client_order_id": 2903835777163515087, "type": "LIMIT", "side": "SELL"}
  455. ! new api API 0x63aad54939b0
  456. 2024/11/06 13:13:42 extends args: {"timeout": "30000", "priority": "0"}
  457. 2024/11/06 13:13:42 args: {"quantity": "7068100000000000000", "price": "7640000000000000000", "orderType": "0", "isBid": "true"}
  458. 2024/11/06 13:13:42 start cancelation
  459. 2024/11/06 13:13:42 finish cancelation
  460. 2024/11/06 13:13:42 extends args: {"timeout": "30000", "priority": "0"}
  461. 2024/11/06 13:13:42 args: {"quantity": "7077300000000000000", "price": "7630000000000000000", "orderType": "0", "isBid": "false"}
  462. 2024/11/06 13:13:42 start cancelation
  463. 2024/11/06 13:13:42 finish cancelation
  464. 2024/11/06 13:13:42 gas price = 52138913891
  465. 2024/11/06 13:13:42 gas price = 52138913891
  466. 2024/11/06 13:13:42 TX Hash: 0x8672ad201553a7d73639698d85b52db524b0a0541629e3425c6d88b849343000 ; Nonce: 53
  467. 2024/11/06 13:13:42 TX Hash: 0x3fc8559244b714f1a7d779d6efe30c8ceda43c84d938e117617d13ebab8b3061 ; Nonce: 52
  468. 2024/11/06 13:13:47 golang tx log: {
  469. tx = 0x8672ad201553a7d73639698d85b52db524b0a0541629e3425c6d88b849343000 ok;
  470. status = 1
  471. block = 63955802
  472. usedGas = 441891
  473. exec_time = 5.634239s
  474. }
  475. [ 2024-11-06-13-13-47 ] MESSAGE: new order delta: 5635
  476. [ 2024-11-06-13-13-47 ] DEBUG ? new: empty order
  477. 2024/11/06 13:13:47 golang tx log: {
  478. tx = 0x3fc8559244b714f1a7d779d6efe30c8ceda43c84d938e117617d13ebab8b3061 ok;
  479. status = 1
  480. block = 63955802
  481. usedGas = 368103
  482. exec_time = 5.639415s
  483. }
  484. [ 2024-11-06-13-13-47 ] MESSAGE: new order delta: 5640
  485. [ 2024-11-06-13-13-47 ] DEBUG ? new: empty order
  486. stream == e_stream::ACCOUNT_ORDER
  487. [ 2024-11-06-13-14-17 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898827000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 7591030134650113030, {"dex_order_id": "906557", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.640000, "quantity": 7.068100, "filled_quantity": 0.000000, "update_time": 1730898827000}}
  488. [ 2024-11-06-13-14-17 ] MESSAGE: limit
  489. [ 2024-11-06-13-14-17 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 7591030134650113030, {"dex_order_id": "906557", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.640000, "quantity": 7.068100, "filled_quantity": 0.000000, "update_time": 1730898827000}
  490. [ 2024-11-06-13-14-17 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 7591030134650113030, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 7.640000, "quantity": 7.068100, "update_time": 0}
  491. [ 2024-11-06-13-14-17 ] MESSAGE: (execution) filled quantity is not initialized
  492. [ 2024-11-06-13-14-17 ] MESSAGE: ! HCDAI
  493. stream == e_stream::ACCOUNT_ORDER
  494. [ 2024-11-06-13-14-17 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898827000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 2903835777163515087, {"dex_order_id": "906558", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.630000, "quantity": 7.077300, "filled_quantity": 0.000000, "update_time": 1730898827000}}
  495. [ 2024-11-06-13-14-17 ] MESSAGE: limit
  496. [ 2024-11-06-13-14-17 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 2903835777163515087, {"dex_order_id": "906558", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.630000, "quantity": 7.077300, "filled_quantity": 0.000000, "update_time": 1730898827000}
  497. [ 2024-11-06-13-14-17 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 2903835777163515087, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": 7.630000, "quantity": 7.077300, "update_time": 0}
  498. [ 2024-11-06-13-14-17 ] MESSAGE: (execution) filled quantity is not initialized
  499. [ 2024-11-06-13-14-17 ] MESSAGE: ! HCDAI
  500. stream == e_stream::ACCOUNT_ORDER
  501. [ 2024-11-06-13-14-17 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898827000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 2903835777163515087, {"dex_order_id": "906558", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.630000, "quantity": 7.077300, "filled_quantity": 7.077300, "update_time": 1730898827000}}
  502. [ 2024-11-06-13-14-17 ] MESSAGE: limit
  503. [ 2024-11-06-13-14-17 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 2903835777163515087, {"dex_order_id": "906558", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.630000, "quantity": 7.077300, "filled_quantity": 7.077300, "update_time": 1730898827000}
  504. [ 2024-11-06-13-14-17 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 2903835777163515087, {"dex_order_id": "906558", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.630000, "quantity": 7.077300, "filled_quantity": 0.000000, "update_time": 1730898827000}
  505. $$$ {"symbol": "HCDAI", "price": 7.630000, "quantity": 7.077300, "trade_side": SELL, "trade_time": 1730898827000}
  506. open_position for order
  507. [ 2024-11-06-13-14-17 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.630000, "quantity": 7.077300, "trade_side": SELL, "trade_time": 1730898827000}
  508. [ 2024-11-06-13-14-17 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.63, "quantity": -7.0773, "position_quote": -53.9998}
  509. [ 2024-11-06-13-14-17 ] MESSAGE: erase
  510. [ 2024-11-06-13-14-17 ] MESSAGE: ! HCDAI
  511.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement