Advertisement
den4ik2003

Untitled

Nov 6th, 2024
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 52.30 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 12:46:20 init Nonce: 26
  3. 2024/11/06 12:46:20 bind contract 0x6b965968fbc6ff0d2ed7cb1cb38c1c1bbe0327b4
  4. 2024/11/06 12:46:20 bind contract 0x1a9f5fd1b36f8d1e03f0ff6eabbbb268f053033e
  5. 2024/11/06 12:46:20 bind contract 0x6fcb55c09671bd0d28b5a0e9d303793ac005f19c
  6. 2024/11/06 12:46:20 bind contract 0x762d3d096b9a74f4d3adf2b0824456ef8fce5daa
  7. 2024/11/06 12:46:20 bind contract 0x8f3cf7ad23cd3cadbd9735aff958023239c6a063
  8. run forever balance 0x576e78d779b0
  9. {"type": "DEX", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "HC", "free": 64.3953, "locked": 0, "wallet": 0, "update_time": 1730897183382}, {"asset": "DAI", "free": 499.806, "locked": 0, "wallet": 0, "update_time": 1730897183382}]}
  10. get balance indicator 0x576e78d77b50
  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-12-46-24 ] 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-12-46-28 ] MESSAGE: sleep time = 111776
  18. [ 2024-11-06-12-46-28 ] MESSAGE: ask price 7.690000 bid price: 7.640000
  19. [ 2024-11-06-12-46-28 ] MESSAGE: current_volume: 8.400000 previous price = 7.665000
  20. [ 2024-11-06-12-46-28 ] MESSAGE: start calculating new normal distributed price
  21. [ 2024-11-06-12-46-28 ] MESSAGE: calculate deviated price (new) = 7.677090 current price = 7.665000
  22. [ 2024-11-06-12-46-28 ] MESSAGE: delta = 0.012090
  23. [ 2024-11-06-12-46-28 ] MESSAGE: new price after = 7.677090
  24. [ 2024-11-06-12-46-28 ] MESSAGE: price: 7.677090
  25. quantity: 1.094165
  26. [ 2024-11-06-12-46-28 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
  27. [ 2024-11-06-12-46-28 ] DEBUG base balance: {"asset": "HC", "free": 64.3953, "locked": 0, "wallet": 0, "update_time": 1730897184034}
  28. [ 2024-11-06-12-46-28 ] DEBUG quote balance: {"asset": "DAI", "free": 499.806, "locked": 0, "wallet": 0, "update_time": 1730897184034}
  29. [ 2024-11-06-12-46-28 ] MESSAGE: balances_ratio: 0.989121
  30. [ 2024-11-06-12-46-28 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
  31. [ 2024-11-06-12-46-28 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.680000, "quantity": 1.094200, "client_order_id": 18357484055758267148, "type": "LIMIT", "side": "BUY"}
  32. ! new api API 0x576e78d779b0
  33. [ 2024-11-06-12-46-28 ] DEBUG ! new2024/11/06 12:46:28 extends args: {"timeout": "30000", "priority": "0"}
  34. : 2024/11/06 12:46:28 args: {"quantity": "1094200000000000000", "price": "7680000000000000000", "orderType": "0", "isBid": "true"}
  35. 2024/11/06 12:46:28 start cancelation
  36. {"symbol": "HCDAI", "price": 7.680000, "quantity": 1.094200, "client_order_id": 6214032565358649618, "type": "LIMIT", "side": "SELL"}2024/11/06 12:46:28 finish cancelation
  37.  
  38. ! new api API 0x576e78d779b0
  39. 2024/11/06 12:46:28 extends args: {"timeout": "30000", "priority": "0"}
  40. 2024/11/06 12:46:28 args: {"quantity": "1094200000000000000", "price": "7680000000000000000", "orderType": "0", "isBid": "false"}
  41. 2024/11/06 12:46:28 start cancelation
  42. 2024/11/06 12:46:28 finish cancelation
  43. 2024/11/06 12:46:28 gas price = 53169982506
  44. 2024/11/06 12:46:28 gas price = 53169982506
  45. 2024/11/06 12:46:28 TX Hash: 0x73b6119ca0dbd0a458fd4c803cb1d134c5505606683183d623088f9a0dd76cc2 ; Nonce: 26
  46. 2024/11/06 12:46:28 TX Hash: 0x151ff0cdad8d90a96bade449c8fdb815c4f8ad26d1ffffd2fe34ebee986d6765 ; Nonce: 27
  47. 2024/11/06 12:46:32 golang tx log: {
  48. tx = 0x73b6119ca0dbd0a458fd4c803cb1d134c5505606683183d623088f9a0dd76cc2 ok;
  49. status = 1
  50. block = 63955033
  51. usedGas = 643163
  52. exec_time = 4.729046s
  53. }
  54. [ 2024-11-06-12-46-32 ] MESSAGE: new order delta: 4730
  55. [ 2024-11-06-12-46-32 ] DEBUG ? new: empty order
  56. 2024/11/06 12:46:36 golang tx log: {
  57. tx = 0x151ff0cdad8d90a96bade449c8fdb815c4f8ad26d1ffffd2fe34ebee986d6765 ok;
  58. status = 1
  59. block = 63955035
  60. usedGas = 460341
  61. exec_time = 8.771786s
  62. }
  63. [ 2024-11-06-12-46-36 ] MESSAGE: new order delta: 8772
  64. [ 2024-11-06-12-46-36 ] DEBUG ? new: empty order
  65. stream == e_stream::ACCOUNT_ORDER
  66. [ 2024-11-06-12-47-02 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897192000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 18357484055758267148, {"dex_order_id": "906269", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.680000, "quantity": 1.094200, "filled_quantity": 0.000000, "update_time": 1730897192000}}
  67. [ 2024-11-06-12-47-02 ] MESSAGE: limit
  68. [ 2024-11-06-12-47-02 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 18357484055758267148, {"dex_order_id": "906269", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.680000, "quantity": 1.094200, "filled_quantity": 0.000000, "update_time": 1730897192000}
  69. [ 2024-11-06-12-47-02 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 18357484055758267148, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 7.680000, "quantity": 1.094200, "update_time": 0}
  70. [ 2024-11-06-12-47-02 ] MESSAGE: (execution) filled quantity is not initialized
  71. [ 2024-11-06-12-47-02 ] MESSAGE: ! HCDAI
  72. stream == e_stream::ACCOUNT_ORDER
  73. [ 2024-11-06-12-47-02 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897192000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 18357484055758267148, {"dex_order_id": "906269", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.680000, "quantity": 1.094200, "filled_quantity": 0.077600, "update_time": 1730897192000}}
  74. [ 2024-11-06-12-47-02 ] MESSAGE: limit
  75. [ 2024-11-06-12-47-02 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 18357484055758267148, {"dex_order_id": "906269", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.680000, "quantity": 1.094200, "filled_quantity": 0.077600, "update_time": 1730897192000}
  76. [ 2024-11-06-12-47-02 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 18357484055758267148, {"dex_order_id": "906269", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.680000, "quantity": 1.094200, "filled_quantity": 0.000000, "update_time": 1730897192000}
  77. $$$ {"symbol": "HCDAI", "price": 7.680000, "quantity": 0.077600, "trade_side": BUY, "trade_time": 1730897192000}
  78. open_position for order
  79. [ 2024-11-06-12-47-02 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.680000, "quantity": 0.077600, "trade_side": BUY, "trade_time": 1730897192000}
  80. [ 2024-11-06-12-47-02 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.68, "quantity": 0.0776, "position_quote": 0.595968}
  81. [ 2024-11-06-12-47-02 ] MESSAGE: ! HCDAI
  82. stream == e_stream::ACCOUNT_ORDER
  83. [ 2024-11-06-12-47-09 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897196000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 6214032565358649618, {"dex_order_id": "906272", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.680000, "quantity": 1.094200, "filled_quantity": 0.000000, "update_time": 1730897196000}}
  84. [ 2024-11-06-12-47-09 ] MESSAGE: limit
  85. [ 2024-11-06-12-47-09 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 6214032565358649618, {"dex_order_id": "906272", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.680000, "quantity": 1.094200, "filled_quantity": 0.000000, "update_time": 1730897196000}
  86. [ 2024-11-06-12-47-09 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 6214032565358649618, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": 7.680000, "quantity": 1.094200, "update_time": 0}
  87. [ 2024-11-06-12-47-09 ] MESSAGE: (execution) filled quantity is not initialized
  88. [ 2024-11-06-12-47-09 ] MESSAGE: ! HCDAI
  89. stream == e_stream::ACCOUNT_ORDER
  90. [ 2024-11-06-12-47-09 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897192000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 18357484055758267148, {"dex_order_id": "906269", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.680000, "quantity": 1.094200, "filled_quantity": 1.094200, "update_time": 1730897192000}}
  91. [ 2024-11-06-12-47-09 ] MESSAGE: limit
  92. [ 2024-11-06-12-47-09 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 18357484055758267148, {"dex_order_id": "906269", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.680000, "quantity": 1.094200, "filled_quantity": 1.094200, "update_time": 1730897192000}
  93. [ 2024-11-06-12-47-09 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 18357484055758267148, {"dex_order_id": "906269", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.680000, "quantity": 1.094200, "filled_quantity": 0.077600, "update_time": 1730897192000}
  94. $$$ {"symbol": "HCDAI", "price": 7.680000, "quantity": 1.016600, "trade_side": BUY, "trade_time": 1730897192000}
  95. open_position for order
  96. [ 2024-11-06-12-47-09 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.680000, "quantity": 1.016600, "trade_side": BUY, "trade_time": 1730897192000}
  97. [ 2024-11-06-12-47-09 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.68, "quantity": 1.0942, "position_quote": 8.40346}
  98. [ 2024-11-06-12-47-09 ] MESSAGE: erase
  99. [ 2024-11-06-12-47-09 ] MESSAGE: ! HCDAI
  100. stream == e_stream::ACCOUNT_ORDER
  101. [ 2024-11-06-12-47-15 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897196000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 6214032565358649618, {"dex_order_id": "906272", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.680000, "quantity": 1.094200, "filled_quantity": 1.094200, "update_time": 1730897196000}}
  102. [ 2024-11-06-12-47-15 ] MESSAGE: limit
  103. [ 2024-11-06-12-47-15 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 6214032565358649618, {"dex_order_id": "906272", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.680000, "quantity": 1.094200, "filled_quantity": 1.094200, "update_time": 1730897196000}
  104. [ 2024-11-06-12-47-15 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 6214032565358649618, {"dex_order_id": "906272", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.680000, "quantity": 1.094200, "filled_quantity": 0.000000, "update_time": 1730897196000}
  105. $$$ {"symbol": "HCDAI", "price": 7.680000, "quantity": 1.094200, "trade_side": SELL, "trade_time": 1730897196000}
  106. open_position for order
  107. [ 2024-11-06-12-47-15 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.680000, "quantity": 1.094200, "trade_side": SELL, "trade_time": 1730897196000}
  108. [ 2024-11-06-12-47-15 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.68, "quantity": -2.22045e-16, "position_quote": -1.77636e-15}
  109. [ 2024-11-06-12-47-15 ] MESSAGE: erase
  110. [ 2024-11-06-12-47-15 ] MESSAGE: ! HCDAI
  111. [ 2024-11-06-12-48-23 ] MESSAGE: sleep time = 131686
  112. [ 2024-11-06-12-48-23 ] MESSAGE: ask price 7.650000 bid price: 7.640000
  113. [ 2024-11-06-12-48-23 ] MESSAGE: Narrow spread
  114. [ 2024-11-06-12-48-23 ] MESSAGE: dealing with narrow spread
  115. [ 2024-11-06-12-48-23 ] INFO dealing with narrow spread result: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.64, 0.524426); ], bids: [(7.65, 0.52374); ]
  116. [ 2024-11-06-12-48-23 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.64, 0.524426); ], bids: [(7.65, 0.52374); ]
  117. [ 2024-11-06-12-48-23 ] DEBUG base balance: {"asset": "HC", "free": 64.3931, "locked": 0, "wallet": 0, "update_time": 1730897301031}
  118. [ 2024-11-06-12-48-23 ] DEBUG quote balance: {"asset": "DAI", "free": 499.79, "locked": 0, "wallet": 0, "update_time": 1730897301031}
  119. [ 2024-11-06-12-48-23 ] MESSAGE: balances_ratio: 0.984984
  120. [ 2024-11-06-12-48-23 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.64, 0.524426); ], bids: [(7.65, 0.52374); ]
  121. [ 2024-11-06-12-48-23 ] MESSAGE: LIMIT GRID
  122. [ 2024-11-06-12-48-23 ] DEBUG in _process_limit_grid: 7.64
  123. [ 2024-11-06-12-48-23 ] DEBUG in _process_limit_grid: 0.524426
  124. [ 2024-11-06-12-48-23 ] DEBUG in _process_limit_grid: 7.65
  125. [ 2024-11-06-12-48-23 ] DEBUG in _process_limit_grid: 0.52374
  126. [ 2024-11-06-12-48-23 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 7.650000, "quantity": 0.523700, "type": "LIMIT", "side": "BUY"}
  127. [ 2024-11-06-12-48-23 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 7.640000, "quantity": 0.524400, "type": "LIMIT", "side": "SELL"}
  128. [ 2024-11-06-12-48-23 ] MESSAGE: csize: 0
  129. [ 2024-11-06-12-48-23 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.650000, "quantity": 0.523700, "client_order_id": 3555222689979717478, "type": "LIMIT", "side": "BUY"}
  130. ! new api API 0x576e78d779b0
  131. [ 2024-11-06-12-48-23 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.640000, "quantity": 0.524400, "client_order_id": 985116120168061891, "type": "LIMIT", "side": "SELL"}
  132. ! new api API 0x576e78d779b0
  133. 2024/11/06 12:48:23 extends args: {"timeout": "30000", "priority": "0"}
  134. 2024/11/06 12:48:23 args: {"quantity": "523700000000000000", "price": "7650000000000000000", "orderType": "0", "isBid": "true"}
  135. 2024/11/06 12:48:23 start cancelation
  136. 2024/11/06 12:48:23 finish cancelation
  137. 2024/11/06 12:48:23 extends args: {"timeout": "30000", "priority": "0"}
  138. 2024/11/06 12:48:23 args: {"quantity": "524400000000000000", "price": "7640000000000000000", "orderType": "0", "isBid": "false"}
  139. 2024/11/06 12:48:23 start cancelation
  140. 2024/11/06 12:48:23 finish cancelation
  141. 2024/11/06 12:48:23 gas price = 51558530233
  142. 2024/11/06 12:48:24 gas price = 51558530233
  143. 2024/11/06 12:48:24 TX Hash: 0xfd41d3fbda75d3fb6abbda8fee2514aa22b94aff13becf74d069b21d64de1aff ; Nonce: 29
  144. 2024/11/06 12:48:24 TX Hash: 0x3022e6173e410ba813416b7a5612215bacb9ee01b11c847e9a181c47550e8725 ; Nonce: 28
  145. 2024/11/06 12:48:31 golang tx log: {
  146. tx = 0x3022e6173e410ba813416b7a5612215bacb9ee01b11c847e9a181c47550e8725 ok;
  147. status = 1
  148. block = 63955088
  149. usedGas = 413767
  150. exec_time = 7.619153s
  151. }
  152. [ 2024-11-06-12-48-31 ] MESSAGE: new order delta: 7620
  153. [ 2024-11-06-12-48-31 ] DEBUG ? new: empty order
  154. stream == e_stream::ACCOUNT_ORDER
  155. [ 2024-11-06-12-48-59 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897310000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 3555222689979717478, {"dex_order_id": "906298", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.650000, "quantity": 0.523700, "filled_quantity": 0.000000, "update_time": 1730897310000}}
  156. [ 2024-11-06-12-48-59 ] MESSAGE: limit
  157. [ 2024-11-06-12-48-59 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 3555222689979717478, {"dex_order_id": "906298", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.650000, "quantity": 0.523700, "filled_quantity": 0.000000, "update_time": 1730897310000}
  158. [ 2024-11-06-12-48-59 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 3555222689979717478, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 7.650000, "quantity": 0.523700, "update_time": 0}
  159. [ 2024-11-06-12-48-59 ] MESSAGE: (execution) filled quantity is not initialized
  160. [ 2024-11-06-12-48-59 ] MESSAGE: ! HCDAI
  161. stream == e_stream::ACCOUNT_ORDER
  162. [ 2024-11-06-12-48-59 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897310000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 3555222689979717478, {"dex_order_id": "906298", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.650000, "quantity": 0.523700, "filled_quantity": 0.523700, "update_time": 1730897310000}}
  163. [ 2024-11-06-12-48-59 ] MESSAGE: limit
  164. [ 2024-11-06-12-48-59 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 3555222689979717478, {"dex_order_id": "906298", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.650000, "quantity": 0.523700, "filled_quantity": 0.523700, "update_time": 1730897310000}
  165. [ 2024-11-06-12-48-59 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 3555222689979717478, {"dex_order_id": "906298", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.650000, "quantity": 0.523700, "filled_quantity": 0.000000, "update_time": 1730897310000}
  166. $$$ {"symbol": "HCDAI", "price": 7.650000, "quantity": 0.523700, "trade_side": BUY, "trade_time": 1730897310000}
  167. open_position for order
  168. [ 2024-11-06-12-48-59 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.650000, "quantity": 0.523700, "trade_side": BUY, "trade_time": 1730897310000}
  169. [ 2024-11-06-12-48-59 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.65, "quantity": 0.5237, "position_quote": 4.0063}
  170. [ 2024-11-06-12-48-59 ] MESSAGE: erase
  171. [ 2024-11-06-12-48-59 ] MESSAGE: ! HCDAI
  172. 2024/11/06 12:49:17 golang tx log: {
  173. tx = 0xfd41d3fbda75d3fb6abbda8fee2514aa22b94aff13becf74d069b21d64de1aff ok;
  174. status = 1
  175. block = 63955110
  176. usedGas = 441879
  177. exec_time = 53.626827s
  178. }
  179. [ 2024-11-06-12-49-17 ] MESSAGE: new order delta: 53628
  180. [ 2024-11-06-12-49-17 ] DEBUG ? new: empty order
  181. stream == e_stream::ACCOUNT_ORDER
  182. [ 2024-11-06-12-49-47 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897356000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 985116120168061891, {"dex_order_id": "906304", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.640000, "quantity": 0.524400, "filled_quantity": 0.000000, "update_time": 1730897356000}}
  183. [ 2024-11-06-12-49-47 ] MESSAGE: limit
  184. [ 2024-11-06-12-49-47 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 985116120168061891, {"dex_order_id": "906304", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.640000, "quantity": 0.524400, "filled_quantity": 0.000000, "update_time": 1730897356000}
  185. [ 2024-11-06-12-49-47 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 985116120168061891, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": 7.640000, "quantity": 0.524400, "update_time": 0}
  186. [ 2024-11-06-12-49-47 ] MESSAGE: (execution) filled quantity is not initialized
  187. [ 2024-11-06-12-49-47 ] MESSAGE: ! HCDAI
  188. stream == e_stream::ACCOUNT_ORDER
  189. [ 2024-11-06-12-49-47 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897356000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 985116120168061891, {"dex_order_id": "906304", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.640000, "quantity": 0.524400, "filled_quantity": 0.524400, "update_time": 1730897356000}}
  190. [ 2024-11-06-12-49-47 ] MESSAGE: limit
  191. [ 2024-11-06-12-49-47 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 985116120168061891, {"dex_order_id": "906304", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.640000, "quantity": 0.524400, "filled_quantity": 0.524400, "update_time": 1730897356000}
  192. [ 2024-11-06-12-49-47 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 985116120168061891, {"dex_order_id": "906304", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.640000, "quantity": 0.524400, "filled_quantity": 0.000000, "update_time": 1730897356000}
  193. $$$ {"symbol": "HCDAI", "price": 7.640000, "quantity": 0.524400, "trade_side": SELL, "trade_time": 1730897356000}
  194. open_position for order
  195. [ 2024-11-06-12-49-47 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.640000, "quantity": 0.524400, "trade_side": SELL, "trade_time": 1730897356000}
  196. [ 2024-11-06-12-49-47 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.64, "quantity": -0.0007, "position_quote": -0.000111}
  197. [ 2024-11-06-12-49-47 ] MESSAGE: erase
  198. [ 2024-11-06-12-49-47 ] MESSAGE: ! HCDAI
  199. [ 2024-11-06-12-50-41 ] MESSAGE: sleep time = 114073
  200. [ 2024-11-06-12-50-41 ] MESSAGE: ask price 7.650000 bid price: 7.630000
  201. [ 2024-11-06-12-50-41 ] MESSAGE: current_volume: 8.400000 previous price = 7.677090
  202. [ 2024-11-06-12-50-41 ] MESSAGE: start calculating new normal distributed price
  203. [ 2024-11-06-12-50-41 ] MESSAGE: calculate deviated price (new) = 7.679477 current price = 7.677090
  204. [ 2024-11-06-12-50-41 ] MESSAGE: delta = 0.002387
  205. [ 2024-11-06-12-50-41 ] MESSAGE: new_price > upper_bound
  206. [ 2024-11-06-12-50-41 ] MESSAGE: new price after = 7.640000
  207. [ 2024-11-06-12-50-41 ] MESSAGE: price: 7.640000
  208. quantity: 1.099476
  209. [ 2024-11-06-12-50-41 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
  210. [ 2024-11-06-12-50-41 ] DEBUG base balance: {"asset": "HC", "free": 64.3913, "locked": 0, "wallet": 0, "update_time": 1730897439091}
  211. [ 2024-11-06-12-50-41 ] DEBUG quote balance: {"asset": "DAI", "free": 499.782, "locked": 0, "wallet": 0, "update_time": 1730897439091}
  212. [ 2024-11-06-12-50-41 ] MESSAGE: balances_ratio: 0.984328
  213. [ 2024-11-06-12-50-41 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
  214. [ 2024-11-06-12-50-41 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.640000, "quantity": 1.099500, "client_order_id": 1449306948546055489, "type": "LIMIT", "side": "BUY"}
  215. ! new api API 0x576e78d779b0
  216. [ 2024-11-06-12-50-41 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.640000, "quantity": 1.099500, "client_order_id": 7461761264120243411, "type": "LIMIT", "side": "SELL"}
  217. ! new api API 0x576e78d779b0
  218. 2024/11/06 12:50:41 extends args: {"timeout": "30000", "priority": "0"}
  219. 2024/11/06 12:50:41 args: {"quantity": "1099500000000000000", "price": "7640000000000000000", "orderType": "0", "isBid": "false"}
  220. 2024/11/06 12:50:41 start cancelation
  221. 2024/11/06 12:50:41 finish cancelation
  222. 2024/11/06 12:50:41 extends args: {"timeout": "30000", "priority": "0"}
  223. 2024/11/06 12:50:41 args: {"quantity": "1099500000000000000", "price": "7640000000000000000", "orderType": "0", "isBid": "true"}
  224. 2024/11/06 12:50:41 start cancelation
  225. 2024/11/06 12:50:41 finish cancelation
  226. 2024/11/06 12:50:42 gas price = 50270645961
  227. 2024/11/06 12:50:42 gas price = 50270645961
  228. 2024/11/06 12:50:42 TX Hash: 0xc20c36e7900c249d140742196b2855e4bd4b4453b5a27311722534b7bc794352 ; Nonce: 31
  229. 2024/11/06 12:50:42 TX Hash: 0xb7c14b8eea0e7689ca9afba6aec76269f189ff9704059705b36f41913c56db68 ; Nonce: 30
  230. 2024/11/06 12:50:49 golang tx log: {
  231. tx = 0xb7c14b8eea0e7689ca9afba6aec76269f189ff9704059705b36f41913c56db68 ok;
  232. status = 1
  233. block = 63955153
  234. usedGas = 441891
  235. exec_time = 7.623912s
  236. }
  237. [ 2024-11-06-12-50-49 ] MESSAGE: new order delta: 7624
  238. [ 2024-11-06-12-50-49 ] DEBUG ? new: empty order
  239. 2024/11/06 12:50:53 golang tx log: {
  240. tx = 0xc20c36e7900c249d140742196b2855e4bd4b4453b5a27311722534b7bc794352 ok;
  241. status = 1
  242. block = 63955155
  243. usedGas = 480436
  244. exec_time = 11.616176s
  245. }
  246. [ 2024-11-06-12-50-53 ] MESSAGE: new order delta: 11617
  247. [ 2024-11-06-12-50-53 ] DEBUG ? new: empty order
  248. stream == e_stream::ACCOUNT_ORDER
  249. [ 2024-11-06-12-51-19 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897448000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 7461761264120243411, {"dex_order_id": "906327", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.640000, "quantity": 1.099500, "filled_quantity": 0.000000, "update_time": 1730897448000}}
  250. [ 2024-11-06-12-51-19 ] MESSAGE: limit
  251. [ 2024-11-06-12-51-19 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 7461761264120243411, {"dex_order_id": "906327", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.640000, "quantity": 1.099500, "filled_quantity": 0.000000, "update_time": 1730897448000}
  252. [ 2024-11-06-12-51-19 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 7461761264120243411, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": 7.640000, "quantity": 1.099500, "update_time": 0}
  253. [ 2024-11-06-12-51-19 ] MESSAGE: (execution) filled quantity is not initialized
  254. [ 2024-11-06-12-51-19 ] MESSAGE: ! HCDAI
  255. stream == e_stream::ACCOUNT_ORDER
  256. [ 2024-11-06-12-51-19 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897452000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 1449306948546055489, {"dex_order_id": "906330", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.640000, "quantity": 1.099500, "filled_quantity": 0.000000, "update_time": 1730897452000}}
  257. [ 2024-11-06-12-51-19 ] MESSAGE: limit
  258. [ 2024-11-06-12-51-19 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 1449306948546055489, {"dex_order_id": "906330", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.640000, "quantity": 1.099500, "filled_quantity": 0.000000, "update_time": 1730897452000}
  259. [ 2024-11-06-12-51-19 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 1449306948546055489, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 7.640000, "quantity": 1.099500, "update_time": 0}
  260. [ 2024-11-06-12-51-19 ] MESSAGE: (execution) filled quantity is not initialized
  261. [ 2024-11-06-12-51-19 ] MESSAGE: ! HCDAI
  262. stream == e_stream::ACCOUNT_ORDER
  263. [ 2024-11-06-12-51-19 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897448000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 7461761264120243411, {"dex_order_id": "906327", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.640000, "quantity": 1.099500, "filled_quantity": 1.099500, "update_time": 1730897448000}}
  264. [ 2024-11-06-12-51-19 ] MESSAGE: limit
  265. [ 2024-11-06-12-51-19 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 7461761264120243411, {"dex_order_id": "906327", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.640000, "quantity": 1.099500, "filled_quantity": 1.099500, "update_time": 1730897448000}
  266. [ 2024-11-06-12-51-19 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 7461761264120243411, {"dex_order_id": "906327", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.640000, "quantity": 1.099500, "filled_quantity": 0.000000, "update_time": 1730897448000}
  267. $$$ {"symbol": "HCDAI", "price": 7.640000, "quantity": 1.099500, "trade_side": SELL, "trade_time": 1730897448000}
  268. open_position for order
  269. [ 2024-11-06-12-51-19 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.640000, "quantity": 1.099500, "trade_side": SELL, "trade_time": 1730897448000}
  270. [ 2024-11-06-12-51-19 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.63524, "quantity": -1.1002, "position_quote": -8.40029}
  271. [ 2024-11-06-12-51-19 ] MESSAGE: erase
  272. [ 2024-11-06-12-51-19 ] MESSAGE: ! HCDAI
  273. [ 2024-11-06-12-52-41 ] MESSAGE: sleep time = 96000
  274. [ 2024-11-06-12-52-41 ] MESSAGE: ask price 7.690000 bid price: 7.650000
  275. [ 2024-11-06-12-52-41 ] MESSAGE: current_volume: 5.600000 previous price = 7.640000
  276. [ 2024-11-06-12-52-41 ] MESSAGE: start calculating new normal distributed price
  277. [ 2024-11-06-12-52-41 ] MESSAGE: calculate deviated price (new) = 7.625719 current price = 7.640000
  278. [ 2024-11-06-12-52-41 ] MESSAGE: delta = -0.014281
  279. [ 2024-11-06-12-52-41 ] MESSAGE: new_price < lower_bound
  280. [ 2024-11-06-12-52-41 ] MESSAGE: new price after = 7.660000
  281. [ 2024-11-06-12-52-41 ] MESSAGE: price: 7.660000
  282. quantity: 0.731070
  283. [ 2024-11-06-12-52-41 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
  284. [ 2024-11-06-12-52-41 ] DEBUG base balance: {"asset": "HC", "free": 63.2918, "locked": 0, "wallet": 0, "update_time": 1730897555968}
  285. [ 2024-11-06-12-52-41 ] DEBUG quote balance: {"asset": "DAI", "free": 499.777, "locked": 0, "wallet": 0, "update_time": 1730897555968}
  286. [ 2024-11-06-12-52-41 ] MESSAGE: balances_ratio: 0.970065
  287. [ 2024-11-06-12-52-41 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
  288. [ 2024-11-06-12-52-41 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.660000, "quantity": 0.731100, "client_order_id": 4384472853360402113, "type": "LIMIT", "side": "BUY"}
  289. ! new api API 0x576e78d779b0
  290. [ 2024-11-06-12-52-41 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.660000, "quantity": 0.731100, "client_order_id": 16337953858336134333, "type": "LIMIT", "side": "SELL"}
  291. ! new api API 0x576e78d779b0
  292. 2024/11/06 12:52:41 extends args: {"timeout": "30000", "priority": "0"}
  293. 2024/11/06 12:52:41 args: {"quantity": "731100000000000000", "price": "7660000000000000000", "orderType": "0", "isBid": "false"}
  294. 2024/11/06 12:52:41 start cancelation
  295. 2024/11/06 12:52:41 finish cancelation
  296. 2024/11/06 12:52:41 extends args: {"timeout": "30000", "priority": "0"}
  297. 2024/11/06 12:52:41 args: {"quantity": "731100000000000000", "price": "7660000000000000000", "orderType": "0", "isBid": "true"}
  298. 2024/11/06 12:52:41 start cancelation
  299. 2024/11/06 12:52:41 finish cancelation
  300. 2024/11/06 12:52:41 gas price = 48115771081
  301. 2024/11/06 12:52:41 gas price = 48115771081
  302. 2024/11/06 12:52:41 TX Hash: 0xfb3939d03259aff366acb115f3858a0afe84293bae7dcef35b315b28f536b236 ; Nonce: 32
  303. 2024/11/06 12:52:41 TX Hash: 0xed05e71a0a03550feb987bbd1a4a6b093255685df68eb71de1fc34456f105e1a ; Nonce: 33
  304. 2024/11/06 12:52:45 golang tx log: {
  305. tx = 0xfb3939d03259aff366acb115f3858a0afe84293bae7dcef35b315b28f536b236 ok;
  306. status = 1
  307. block = 63955208
  308. usedGas = 460353
  309. exec_time = 4.706037s
  310. }
  311. [ 2024-11-06-12-52-45 ] MESSAGE: new order delta: 4706
  312. [ 2024-11-06-12-52-45 ] DEBUG ? new: empty order
  313. 2024/11/06 12:52:49 golang tx log: {
  314. tx = 0xed05e71a0a03550feb987bbd1a4a6b093255685df68eb71de1fc34456f105e1a ok;
  315. status = 1
  316. block = 63955210
  317. usedGas = 428333
  318. exec_time = 8.721889s
  319. }
  320. [ 2024-11-06-12-52-49 ] MESSAGE: new order delta: 8722
  321. [ 2024-11-06-12-52-49 ] DEBUG ? new: empty order
  322. stream == e_stream::ACCOUNT_ORDER
  323. [ 2024-11-06-12-53-17 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897565000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 16337953858336134333, {"dex_order_id": "906351", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.660000, "quantity": 0.731100, "filled_quantity": 0.000000, "update_time": 1730897565000}}
  324. [ 2024-11-06-12-53-17 ] MESSAGE: limit
  325. [ 2024-11-06-12-53-17 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 16337953858336134333, {"dex_order_id": "906351", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.660000, "quantity": 0.731100, "filled_quantity": 0.000000, "update_time": 1730897565000}
  326. [ 2024-11-06-12-53-17 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 16337953858336134333, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": 7.660000, "quantity": 0.731100, "update_time": 0}
  327. [ 2024-11-06-12-53-17 ] MESSAGE: (execution) filled quantity is not initialized
  328. [ 2024-11-06-12-53-17 ] MESSAGE: ! HCDAI
  329. stream == e_stream::ACCOUNT_ORDER
  330. [ 2024-11-06-12-53-17 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897569000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 4384472853360402113, {"dex_order_id": "906354", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.660000, "quantity": 0.731100, "filled_quantity": 0.000000, "update_time": 1730897569000}}
  331. [ 2024-11-06-12-53-17 ] MESSAGE: limit
  332. [ 2024-11-06-12-53-17 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 4384472853360402113, {"dex_order_id": "906354", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.660000, "quantity": 0.731100, "filled_quantity": 0.000000, "update_time": 1730897569000}
  333. [ 2024-11-06-12-53-17 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 4384472853360402113, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 7.660000, "quantity": 0.731100, "update_time": 0}
  334. [ 2024-11-06-12-53-17 ] MESSAGE: (execution) filled quantity is not initialized
  335. [ 2024-11-06-12-53-17 ] MESSAGE: ! HCDAI
  336. stream == e_stream::ACCOUNT_ORDER
  337. [ 2024-11-06-12-53-17 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897452000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 1449306948546055489, {"dex_order_id": "906330", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.640000, "quantity": 1.099500, "filled_quantity": 1.099500, "update_time": 1730897452000}}
  338. [ 2024-11-06-12-53-17 ] MESSAGE: limit
  339. [ 2024-11-06-12-53-17 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 1449306948546055489, {"dex_order_id": "906330", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.640000, "quantity": 1.099500, "filled_quantity": 1.099500, "update_time": 1730897452000}
  340. [ 2024-11-06-12-53-17 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 1449306948546055489, {"dex_order_id": "906330", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.640000, "quantity": 1.099500, "filled_quantity": 0.000000, "update_time": 1730897452000}
  341. $$$ {"symbol": "HCDAI", "price": 7.640000, "quantity": 1.099500, "trade_side": BUY, "trade_time": 1730897452000}
  342. open_position for order
  343. [ 2024-11-06-12-53-17 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.640000, "quantity": 1.099500, "trade_side": BUY, "trade_time": 1730897452000}
  344. [ 2024-11-06-12-53-17 ] INFO new position: {"symbol": "HCDAI", "entry_price": 0.158571, "quantity": -0.0007, "position_quote": -0.000111}
  345. [ 2024-11-06-12-53-17 ] MESSAGE: erase
  346. [ 2024-11-06-12-53-17 ] MESSAGE: ! HCDAI
  347. stream == e_stream::ACCOUNT_ORDER
  348. [ 2024-11-06-12-53-17 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897565000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 16337953858336134333, {"dex_order_id": "906351", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.660000, "quantity": 0.731100, "filled_quantity": 0.731100, "update_time": 1730897565000}}
  349. [ 2024-11-06-12-53-17 ] MESSAGE: limit
  350. [ 2024-11-06-12-53-17 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 16337953858336134333, {"dex_order_id": "906351", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.660000, "quantity": 0.731100, "filled_quantity": 0.731100, "update_time": 1730897565000}
  351. [ 2024-11-06-12-53-17 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 16337953858336134333, {"dex_order_id": "906351", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.660000, "quantity": 0.731100, "filled_quantity": 0.000000, "update_time": 1730897565000}
  352. $$$ {"symbol": "HCDAI", "price": 7.660000, "quantity": 0.731100, "trade_side": SELL, "trade_time": 1730897565000}
  353. open_position for order
  354. [ 2024-11-06-12-53-17 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.660000, "quantity": 0.731100, "trade_side": SELL, "trade_time": 1730897565000}
  355. [ 2024-11-06-12-53-17 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.65282, "quantity": -0.7318, "position_quote": -5.60034}
  356. [ 2024-11-06-12-53-17 ] MESSAGE: erase
  357. [ 2024-11-06-12-53-17 ] MESSAGE: ! HCDAI
  358. stream == e_stream::ACCOUNT_ORDER
  359. [ 2024-11-06-12-53-17 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897569000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 4384472853360402113, {"dex_order_id": "906354", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.660000, "quantity": 0.731100, "filled_quantity": 0.731100, "update_time": 1730897569000}}
  360. [ 2024-11-06-12-53-17 ] MESSAGE: limit
  361. [ 2024-11-06-12-53-17 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 4384472853360402113, {"dex_order_id": "906354", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.660000, "quantity": 0.731100, "filled_quantity": 0.731100, "update_time": 1730897569000}
  362. [ 2024-11-06-12-53-17 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 4384472853360402113, {"dex_order_id": "906354", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.660000, "quantity": 0.731100, "filled_quantity": 0.000000, "update_time": 1730897569000}
  363. $$$ {"symbol": "HCDAI", "price": 7.660000, "quantity": 0.731100, "trade_side": BUY, "trade_time": 1730897569000}
  364. open_position for order
  365. [ 2024-11-06-12-53-17 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.660000, "quantity": 0.731100, "trade_side": BUY, "trade_time": 1730897569000}
  366. [ 2024-11-06-12-53-17 ] INFO new position: {"symbol": "HCDAI", "entry_price": 0.158571, "quantity": -0.0007, "position_quote": -0.000111}
  367. [ 2024-11-06-12-53-17 ] MESSAGE: erase
  368. [ 2024-11-06-12-53-17 ] MESSAGE: ! HCDAI
  369. [ 2024-11-06-12-54-25 ] MESSAGE: sleep time = 116058
  370. [ 2024-11-06-12-54-25 ] MESSAGE: ask price 7.690000 bid price: 7.650000
  371. [ 2024-11-06-12-54-25 ] MESSAGE: current_volume: 8.309775 previous price = 7.660000
  372. [ 2024-11-06-12-54-25 ] MESSAGE: start calculating new normal distributed price
  373. [ 2024-11-06-12-54-25 ] MESSAGE: calculate deviated price (new) = 7.640850 current price = 7.660000
  374. [ 2024-11-06-12-54-25 ] MESSAGE: delta = -0.019150
  375. [ 2024-11-06-12-54-25 ] MESSAGE: new_price < lower_bound
  376. [ 2024-11-06-12-54-25 ] MESSAGE: new price after = 7.679150
  377. [ 2024-11-06-12-54-25 ] MESSAGE: price: 7.679150
  378. quantity: 1.082122
  379. [ 2024-11-06-12-54-25 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
  380. [ 2024-11-06-12-54-25 ] DEBUG base balance: {"asset": "HC", "free": 64.3877, "locked": 0, "wallet": 0, "update_time": 1730897662217}
  381. [ 2024-11-06-12-54-25 ] DEBUG quote balance: {"asset": "DAI", "free": 499.765, "locked": 0, "wallet": 0, "update_time": 1730897662217}
  382. [ 2024-11-06-12-54-25 ] MESSAGE: balances_ratio: 0.989350
  383. [ 2024-11-06-12-54-25 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
  384. [ 2024-11-06-12-54-25 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.680000, "quantity": 1.082100, "client_order_id": 1847126080562110631, "type": "LIMIT", "side": "BUY"}
  385. ! new api API 0x576e78d779b0
  386. [ 2024-11-06-12-54-25 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.680000, "quantity": 1.082100, "client_order_id": 9715394799702201273, "type": "LIMIT", "side": "SELL"}
  387. ! new api API 0x576e78d779b0
  388. 2024/11/06 12:54:25 extends args: {"timeout": "30000", "priority": "0"}
  389. 2024/11/06 12:54:25 args: {"quantity": "1082100000000000000", "price": "7680000000000000000", "orderType": "0", "isBid": "true"}
  390. 2024/11/06 12:54:25 start cancelation
  391. 2024/11/06 12:54:25 finish cancelation
  392. 2024/11/06 12:54:25 extends args: {"timeout": "30000", "priority": "0"}
  393. 2024/11/06 12:54:25 args: {"quantity": "1082100000000000000", "price": "7680000000000000000", "orderType": "0", "isBid": "false"}
  394. 2024/11/06 12:54:25 start cancelation
  395. 2024/11/06 12:54:25 finish cancelation
  396. 2024/11/06 12:54:25 gas price = 43974141782
  397. 2024/11/06 12:54:25 gas price = 43974141782
  398. 2024/11/06 12:54:25 TX Hash: 0x1b0d46b9831f65f87478f73dc7118e545b33ae5d79d8841c3832147c4abc8d99 ; Nonce: 35
  399. 2024/11/06 12:54:25 TX Hash: 0xe342ca60c9c04e3162b4d1119fa6195995d7f642cc8a232a527f5aefd4c74a37 ; Nonce: 34
  400. 2024/11/06 12:54:29 golang tx log: {
  401. tx = 0xe342ca60c9c04e3162b4d1119fa6195995d7f642cc8a232a527f5aefd4c74a37 ok;
  402. status = 1
  403. block = 63955257
  404. usedGas = 460341
  405. exec_time = 4.623864s
  406. }
  407. [ 2024-11-06-12-54-29 ] MESSAGE: new order delta: 4624
  408. [ 2024-11-06-12-54-29 ] DEBUG ? new: empty order
  409. 2024/11/06 12:54:33 golang tx log: {
  410. tx = 0x1b0d46b9831f65f87478f73dc7118e545b33ae5d79d8841c3832147c4abc8d99 ok;
  411. status = 1
  412. block = 63955259
  413. usedGas = 428321
  414. exec_time = 8.654414s
  415. }
  416. [ 2024-11-06-12-54-33 ] MESSAGE: new order delta: 8655
  417. [ 2024-11-06-12-54-33 ] DEBUG ? new: empty order
  418. stream == e_stream::ACCOUNT_ORDER
  419. [ 2024-11-06-12-54-56 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897669000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 9715394799702201273, {"dex_order_id": "906374", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.680000, "quantity": 1.082100, "filled_quantity": 0.000000, "update_time": 1730897669000}}
  420. [ 2024-11-06-12-54-56 ] MESSAGE: limit
  421. [ 2024-11-06-12-54-56 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 9715394799702201273, {"dex_order_id": "906374", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.680000, "quantity": 1.082100, "filled_quantity": 0.000000, "update_time": 1730897669000}
  422. [ 2024-11-06-12-54-56 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 9715394799702201273, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": 7.680000, "quantity": 1.082100, "update_time": 0}
  423. [ 2024-11-06-12-54-56 ] MESSAGE: (execution) filled quantity is not initialized
  424. [ 2024-11-06-12-54-56 ] MESSAGE: ! HCDAI
  425. stream == e_stream::ACCOUNT_ORDER
  426. [ 2024-11-06-12-55-03 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897673000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 1847126080562110631, {"dex_order_id": "906375", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.680000, "quantity": 1.082100, "filled_quantity": 0.000000, "update_time": 1730897673000}}
  427. [ 2024-11-06-12-55-03 ] MESSAGE: limit
  428. [ 2024-11-06-12-55-03 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 1847126080562110631, {"dex_order_id": "906375", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.680000, "quantity": 1.082100, "filled_quantity": 0.000000, "update_time": 1730897673000}
  429. [ 2024-11-06-12-55-03 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 1847126080562110631, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 7.680000, "quantity": 1.082100, "update_time": 0}
  430. [ 2024-11-06-12-55-03 ] MESSAGE: (execution) filled quantity is not initialized
  431. [ 2024-11-06-12-55-03 ] MESSAGE: ! HCDAI
  432. stream == e_stream::ACCOUNT_ORDER
  433. [ 2024-11-06-12-55-03 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897669000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 9715394799702201273, {"dex_order_id": "906374", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.680000, "quantity": 1.082100, "filled_quantity": 1.082100, "update_time": 1730897669000}}
  434. [ 2024-11-06-12-55-03 ] MESSAGE: limit
  435. [ 2024-11-06-12-55-03 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 9715394799702201273, {"dex_order_id": "906374", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.680000, "quantity": 1.082100, "filled_quantity": 1.082100, "update_time": 1730897669000}
  436. [ 2024-11-06-12-55-03 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 9715394799702201273, {"dex_order_id": "906374", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.680000, "quantity": 1.082100, "filled_quantity": 0.000000, "update_time": 1730897669000}
  437. $$$ {"symbol": "HCDAI", "price": 7.680000, "quantity": 1.082100, "trade_side": SELL, "trade_time": 1730897669000}
  438. open_position for order
  439. [ 2024-11-06-12-55-03 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.680000, "quantity": 1.082100, "trade_side": SELL, "trade_time": 1730897669000}
  440. [ 2024-11-06-12-55-03 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.67514, "quantity": -1.0828, "position_quote": -8.31064}
  441. [ 2024-11-06-12-55-03 ] MESSAGE: erase
  442. [ 2024-11-06-12-55-03 ] MESSAGE: ! HCDAI
  443. stream == e_stream::ACCOUNT_ORDER
  444. [ 2024-11-06-12-55-03 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897673000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 1847126080562110631, {"dex_order_id": "906375", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.680000, "quantity": 1.082100, "filled_quantity": 1.082100, "update_time": 1730897673000}}
  445. [ 2024-11-06-12-55-03 ] MESSAGE: limit
  446. [ 2024-11-06-12-55-03 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 1847126080562110631, {"dex_order_id": "906375", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.680000, "quantity": 1.082100, "filled_quantity": 1.082100, "update_time": 1730897673000}
  447. [ 2024-11-06-12-55-03 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 1847126080562110631, {"dex_order_id": "906375", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.680000, "quantity": 1.082100, "filled_quantity": 0.000000, "update_time": 1730897673000}
  448. $$$ {"symbol": "HCDAI", "price": 7.680000, "quantity": 1.082100, "trade_side": BUY, "trade_time": 1730897673000}
  449. open_position for order
  450. [ 2024-11-06-12-55-03 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.680000, "quantity": 1.082100, "trade_side": BUY, "trade_time": 1730897673000}
  451. [ 2024-11-06-12-55-03 ] INFO new position: {"symbol": "HCDAI", "entry_price": 0.158571, "quantity": -0.0007, "position_quote": -0.000111}
  452. [ 2024-11-06-12-55-03 ] MESSAGE: erase
  453. [ 2024-11-06-12-55-03 ] MESSAGE: ! HCDAI
  454. [ 2024-11-06-12-56-21 ] MESSAGE: sleep time = 144000
  455. [ 2024-11-06-12-56-21 ] MESSAGE: ask price 7.680000 bid price: 7.640000
  456. [ 2024-11-06-12-56-21 ] MESSAGE: current_volume: 7.418506 previous price = 7.679150
  457. [ 2024-11-06-12-56-21 ] MESSAGE: start calculating new normal distributed price
  458. [ 2024-11-06-12-56-21 ] MESSAGE: calculate deviated price (new) = 7.671855 current price = 7.679150
  459. [ 2024-11-06-12-56-21 ] MESSAGE: delta = -0.007295
  460. [ 2024-11-06-12-56-21 ] MESSAGE: new_price > upper_bound
  461. [ 2024-11-06-12-56-21 ] MESSAGE: new price after = 7.670000
  462. [ 2024-11-06-12-56-21 ] MESSAGE: price: 7.670000
  463. quantity: 0.967211
  464. [ 2024-11-06-12-56-21 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
  465. [ 2024-11-06-12-56-21 ] DEBUG base balance: {"asset": "HC", "free": 64.3855, "locked": 0, "wallet": 0, "update_time": 1730897779109}
  466. [ 2024-11-06-12-56-21 ] DEBUG quote balance: {"asset": "DAI", "free": 499.749, "locked": 0, "wallet": 0, "update_time": 1730897779109}
  467. [ 2024-11-06-12-56-21 ] MESSAGE: balances_ratio: 0.988170
  468. [ 2024-11-06-12-56-21 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
  469. [ 2024-11-06-12-56-21 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.670000, "quantity": 0.967200, "client_order_id": 14245802473532444760, "type": "LIMIT", "side": "BUY"}
  470. ! new api API 0x576e78d779b0
  471. [ 2024-11-06-12-56-21 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.670000, "quantity": 0.967200, "client_order_id": 7924640458441067847, "type": "LIMIT", "side": "SELL"}
  472. ! new api API 0x576e78d779b0
  473. 2024/11/06 12:56:21 extends args: {"timeout": "30000", "priority": "0"}
  474. 2024/11/06 12:56:21 args: {"quantity": "967200000000000000", "price": "7670000000000000000", "orderType": "0", "isBid": "true"}
  475. 2024/11/06 12:56:21 start cancelation
  476. 2024/11/06 12:56:21 finish cancelation
  477. 2024/11/06 12:56:21 extends args: {"timeout": "30000", "priority": "0"}
  478. 2024/11/06 12:56:21 args: {"quantity": "967200000000000000", "price": "7670000000000000000", "orderType": "0", "isBid": "false"}
  479. 2024/11/06 12:56:21 start cancelation
  480. 2024/11/06 12:56:21 finish cancelation
  481. 2024/11/06 12:56:21 gas price = 45199855874
  482. 2024/11/06 12:56:21 gas price = 45215920750
  483. 2024/11/06 12:56:22 TX Hash: 0x522a936401656209ba18939531e842202a8000af616cd9d39f5464446f9d8588 ; Nonce: 37
  484. 2024/11/06 12:56:22 TX Hash: 0xaafc7d41a52cc2c1d7675878ca428279f1b2080f8a54568048b6844056c052de ; Nonce: 36
  485. 2024/11/06 12:56:28 golang tx log: {
  486. tx = 0xaafc7d41a52cc2c1d7675878ca428279f1b2080f8a54568048b6844056c052de ok;
  487. status = 1
  488. block = 63955312
  489. usedGas = 453936
  490. exec_time = 6.625194s
  491. }
  492. [ 2024-11-06-12-56-28 ] MESSAGE: new order delta: 6626
  493. [ 2024-11-06-12-56-28 ] DEBUG ? new: empty order
  494. 2024/11/06 12:56:32 golang tx log: {
  495. tx = 0x522a936401656209ba18939531e842202a8000af616cd9d39f5464446f9d8588 ok;
  496. status = 1
  497. block = 63955314
  498. usedGas = 468123
  499. exec_time = 10.620829s
  500. }
  501. [ 2024-11-06-12-56-32 ] MESSAGE: new order delta: 10621
  502. [ 2024-11-06-12-56-32 ] DEBUG ? new: empty order
  503. stream == e_stream::ACCOUNT_ORDER
  504. [ 2024-11-06-12-56-58 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897787000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 14245802473532444760, {"dex_order_id": "906395", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.670000, "quantity": 0.967200, "filled_quantity": 0.000000, "update_time": 1730897787000}}
  505. [ 2024-11-06-12-56-58 ] MESSAGE: limit
  506. [ 2024-11-06-12-56-58 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 14245802473532444760, {"dex_order_id": "906395", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.670000, "quantity": 0.967200, "filled_quantity": 0.000000, "update_time": 1730897787000}
  507. [ 2024-11-06-12-56-58 ] MESSAGE: ! HCDAI
  508. stream == e_stream::ACCOUNT_ORDER
  509. [ 2024-11-06-12-56-58 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897791000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 7924640458441067847, {"dex_order_id": "906397", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.670000, "quantity": 0.967200, "filled_quantity": 0.000000, "update_time": 1730897791000}}
  510. [ 2024-11-06-12-56-58 ] MESSAGE: limit
  511. [ 2024-11-06-12-56-58 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 7924640458441067847, {"dex_order_id": "906397", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.670000, "quantity": 0.967200, "filled_quantity": 0.000000, "update_time": 1730897791000}
  512. [ 2024-11-06-12-56-58 ] MESSAGE: ! HCDAI
  513. stream == e_stream::ACCOUNT_ORDER
  514. [ 2024-11-06-12-56-58 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897787000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 14245802473532444760, {"dex_order_id": "906395", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.670000, "quantity": 0.967200, "filled_quantity": 0.967200, "update_time": 1730897787000}}
  515. [ 2024-11-06-12-56-58 ] MESSAGE: limit
  516. [ 2024-11-06-12-56-58 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 14245802473532444760, {"dex_order_id": "906395", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.670000, "quantity": 0.967200, "filled_quantity": 0.967200, "update_time": 1730897787000}
  517. [ 2024-11-06-12-56-58 ] MESSAGE: ! HCDAI
  518.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement