Advertisement
den4ik2003

Untitled

Nov 21st, 2024
4
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.88 KB | None | 0 0
  1. ubuntu@ip-172-31-31-23:~/dmm_strat/solutions/test$ ./test taker/volume_launch.config
  2. {}
  3. C++ 1ffd161f95a641469ef6fb6b7b5cbac3
  4. 2024/11/21 07:38:26 init Nonce: 355
  5. 2024/11/21 07:38:26 bind contract 0x6b965968fbc6ff0d2ed7cb1cb38c1c1bbe0327b4
  6. 2024/11/21 07:38:26 bind contract 0x1a9f5fd1b36f8d1e03f0ff6eabbbb268f053033e
  7. 2024/11/21 07:38:26 bind contract 0x6fcb55c09671bd0d28b5a0e9d303793ac005f19c
  8. 2024/11/21 07:38:26 bind contract 0x762d3d096b9a74f4d3adf2b0824456ef8fce5daa
  9. 2024/11/21 07:38:26 bind contract 0x8f3cf7ad23cd3cadbd9735aff958023239c6a063
  10. 2024/11/21 07:38:26 bind contract 0x0000000000000000000000000000000000001010
  11. {"type": "FORCE_DEX", "txIndex": "0", "name": "HC/DAI", "baseAsset": "0x762d3d096b9a74f4d3adf2b0824456ef8fce5daa", "baseAssetDecimals": "18", "quoteAssetDecimals": "18", "chainId": "matic", "createdAt": "0001-01-01T00:00:00.000Z", "deployedBlock": "59522571", "updatedAt": "2024-11-21T07:38:26.497Z", "txHash": "0x306571d8352b418b85a88243349ea726074e68360603982196c46eeff8dbc9e0", "address": "0x6b965968fbc6ff0d2ed7cb1cb38c1c1bbe0327b4", "lastSyncedBlock": "64546543", "id": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "quoteAsset": "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063", "symbol": "HCDAI"}
  12. {"userId": "1245312", "error": "ok"}
  13. user_id: 1245312
  14. authentification was completed
  15. API 0x6082cd496f80
  16. run forever balance 0x6082cd496f80
  17. get_open_orders_wrapper::request_filler
  18. auth token: eyJhbG
  19. {"type": "DEX", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "MATIC", "free": 490.915, "locked": 0, "wallet": 0, "update_time": 1732174709878}, {"asset": "HC", "free": 727.465, "locked": 0, "wallet": 0, "update_time": 1732174709878}, {"asset": "DAI", "free": 726.221, "locked": 0, "wallet": 0, "update_time": 1732174709878}]}
  20. get balance indicator 0x6082cd497120
  21. trader {"symbol": "HCDAI", "account": "MFS_1", "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", "TICK"]}}
  22. >:)
  23. auth token: eyJhbG
  24. get_open_orders_wrapper::request_filler
  25. auth token: eyJhbG
  26. {"asset": "MATIC", "free": 490.915, "locked": 0, "wallet": 0, "update_time": 1732174710979}
  27. {"asset": "HC", "free": 727.465, "locked": 0, "wallet": 0, "update_time": 1732174710979}
  28. {"asset": "DAI", "free": 726.221, "locked": 0, "wallet": 0, "update_time": 1732174710979}
  29.  
  30. get_open_orders_wrapper::request_filler
  31. auth token: eyJhbG
  32. Execution was constructed
  33. Trader was created
  34. subscription stream: ACCOUNT_BALANCE
  35. no account balance subscription
  36. subscription stream: PART_DEPTH
  37. subscription stream: TICK
  38. mfs api run ws: tick
  39. subscription stream: ACCOUNT_ORDER
  40. subscription stream: ACCOUNT_TRADE
  41. {"payload": {"extensions": {}, "variables": {}}, "type": "subscribe", "id": "1732174711809002"}
  42. {"payload": {"query": "subscription onForceDexOrdersBookUpdated($pairId: UUID!) { onForceDexOrdersBookUpdated(pairId: $pairId) { lines { direction quantity price __typename } __typename }}", "operationName": "onForceDexOrdersBookUpdated", "extensions": {}, "variables": {"pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e"}}, "type": "subscribe", "id": "1732174711809001"}
  43. feed.at("type").s() != ping{"type": "connection_ack"}
  44. feed.at("type").s() != ping{"payload": [{"locations": [{"column": "35", "line": "1"}], "message": "The request is missing the \u0060query\u0060 property and the \u0060id\u0060 property."}], "type": "error", "id": "1732174711809002"}
  45. feed.at("type").s() != ping{"type": "connection_ack"}
  46. {"payload": {"query": "subscription onMyForceDexOrdersUpdated($userId: BigInt!, $pairId: UUID!) { onMyForceDexOrdersUpdated(userId: $userId, pairId: $pairId) { createdAt direction orderNumber id initialQuantity pairId price quantity status type userId }}", "operationName": "onMyForceDexOrdersUpdated", "extensions": {}, "variables": {"userId": "1245312", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e"}}, "type": "subscribe", "id": "1732174711809003"}
  47. [ 2024-11-21-07-38-32 ] MESSAGE: Tiiick
  48. [ 2024-11-21-07-38-32 ] DEBUG : {"ask_price": 7.09, "ask_quantity": 262.018, "bid_price": 7.08, "bid_quantity": 7.0622}
  49. [ 2024-11-21-07-38-32 ] DEBUG : OrderEvent: delta=1.73205e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(6.98, 1); ], bids: []
  50. [ 2024-11-21-07-38-32 ] INFO portfolio: OrderEvent: delta=1.73205e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(6.98, 1); ], bids: []
  51. [ 2024-11-21-07-38-32 ] INFO execution order event process: OrderEvent: delta=1.73205e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(6.98, 1); ], bids: []
  52. [ 2024-11-21-07-38-32 ] MESSAGE: LIMIT GRID
  53. [ 2024-11-21-07-38-32 ] DEBUG in _process_limit_grid: 6.98
  54. [ 2024-11-21-07-38-32 ] DEBUG in _process_limit_grid: 1
  55. [ 2024-11-21-07-38-32 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 6.980000, "quantity": 1.000000, "type": "LIMIT", "side": "SELL"}
  56. [ 2024-11-21-07-38-32 ] MESSAGE: csize: 0
  57. index_order_id 6980000000000000000/1000000000000000000/SELL 12204234676019749564
  58. [ 2024-11-21-07-38-32 ] DEBUG ! new: {"symbol": "HCDAI", "price": 6.980000, "quantity": 1.000000, "client_order_id": 12204234676019749564, "type": "LIMIT", "side": "SELL"}
  59. ! new api API 0x6082cd496f80
  60. order_request_t {"symbol": "HCDAI", "price": 6.980000, "quantity": 1.000000, "client_order_id": 12204234676019749564, "type": "LIMIT", "side": "SELL"}
  61. quantity 10000
  62. new_order_wrapper::execute
  63. {"ext_params": {"timeout": "30000", "priority": "0"}, "params": {"quantity": "1000000000000000000", "price": "6980000000000000000", "orderType": "0", "isBid": "false"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
  64. 2024/11/21 07:38:32 extends args: {"timeout": "30000", "priority": "0"}
  65. 2024/11/21 07:38:32 args: {"quantity": "1000000000000000000", "price": "6980000000000000000", "orderType": "0", "isBid": "false"}
  66. 2024/11/21 07:38:32 waiting time: 0 ; net timeout after waiting = 30000 ms
  67. feed.at("type").s() != ping{"type": "connection_ack"}
  68. 2024/11/21 07:38:33 nonce: 355
  69. 2024/11/21 07:38:33 gas price = 30878651617
  70. 2024/11/21 07:38:33 TX Hash: 0x6457d2d18cb3d63d3e5e900b57998cbe197945ddb1841efef6aa79736781c653 ; Nonce: 355
  71.  
  72. 1732174715123 stream = onForceDexOrdersBookUpdated
  73.  
  74. 2024/11/21 07:38:39 timeout_metric -> complete: tx: 0x6457d2d18cb3d63d3e5e900b57998cbe197945ddb1841efef6aa79736781c653 ; exec_time: 6.183400s ; attempt = 0 ; first tx 0x6457d2d18cb3d63d3e5e900b57998cbe197945ddb1841efef6aa79736781c653
  75. 2024/11/21 07:38:39 golang tx log: {
  76. tx = 0x6457d2d18cb3d63d3e5e900b57998cbe197945ddb1841efef6aa79736781c653 ok;
  77. nonce = 355
  78. status = 1
  79. block = 64546561
  80. usedGas = 444679
  81. exec_time = 6.183441s
  82. }
  83. C++ new_order_wrapper response: {"tx_hash": "0x6457d2d18cb3d63d3e5e900b57998cbe197945ddb1841efef6aa79736781c653", "used_gas": "444679", "block": "64546561", "error": "ok"}
  84. [ 2024-11-21-07-38-39 ] MESSAGE: new order delta: 6850
  85. 1732174727220 we get ping message: {"type":"ping"}
  86.  
  87. 1732174727226 stream = onForceDexOrdersBookUpdated
  88.  
  89. 1732174727239 we get ping message: {"type":"ping"}
  90. 1732174727660 we get ping message: {"type":"ping"}
  91. get_open_orders_wrapper::request_filler
  92. auth token: eyJhbG
  93. 1732174732182 we get ping message: {"type":"ping"}
  94. 1732174732211 we get ping message: {"type":"ping"}
  95. {"asset": "MATIC", "free": 490.901, "locked": 0, "wallet": 0, "update_time": 1732174732108}
  96. {"asset": "HC", "free": 726.465, "locked": 0, "wallet": 0, "update_time": 1732174732108}
  97. {"asset": "DAI", "free": 733.287, "locked": 0, "wallet": 0, "update_time": 1732174732108}
  98.  
  99. 1732174732660 we get ping message: {"type":"ping"}
  100. 1732174737183 we get ping message: {"type":"ping"}
  101. 1732174737210 we get ping message: {"type":"ping"}
  102. 1732174737661 we get ping message: {"type":"ping"}
  103. 1732174742181 we get ping message: {"type":"ping"}
  104. 1732174742209 we get ping message: {"type":"ping"}
  105. 1732174742661 we get ping message: {"type":"ping"}
  106. 1732174747180 we get ping message: {"type":"ping"}
  107. 1732174747211 we get ping message: {"type":"ping"}
  108. 1732174747661 we get ping message: {"type":"ping"}
  109. 1732174752182 we get ping message: {"type":"ping"}
  110. 1732174752209 we get ping message: {"type":"ping"}
  111. 1732174752661 we get ping message: {"type":"ping"}
  112. get_open_orders_wrapper::request_filler
  113. auth token: eyJhbG
  114. {"asset": "MATIC", "free": 490.901, "locked": 0, "wallet": 0, "update_time": 1732174753206}
  115. {"asset": "HC", "free": 726.465, "locked": 0, "wallet": 0, "update_time": 1732174753206}
  116. {"asset": "DAI", "free": 733.287, "locked": 0, "wallet": 0, "update_time": 1732174753206}
  117.  
  118.  
  119. 1732174755701 stream = onForceDexOrdersBookUpdated
  120.  
  121. 1732174757182 we get ping message: {"type":"ping"}
  122. 1732174757211 we get ping message: {"type":"ping"}
  123. 1732174757663 we get ping message: {"type":"ping"}
  124. 1732174762182 we get ping message: {"type":"ping"}
  125. 1732174762219 we get ping message: {"type":"ping"}
  126. 1732174762660 we get ping message: {"type":"ping"}
  127.  
  128. 1732174766377 stream = onMyForceDexOrdersUpdated
  129.  
  130. _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245312", "status": "OPEN", "quantity": "1000000000000000000", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "6980000000000000000", "id": "ad705a74-62bb-473b-88c0-c6e5d0f7f4f6", "type": "LIMIT", "orderNumber": "1072447", "direction": "ASK", "initialQuantity": "1000000000000000000", "createdAt": "2024-11-21T07:38:39.000Z"}}
  131. start _update_balances
  132. get_open_orders_wrapper::request_filler
  133. auth token: eyJhbG
  134. 1732174767235 we get ping message: {"type":"ping"}
  135. 1732174767237 we get ping message: {"type":"ping"}
  136. end _update_balances
  137. stream == e_stream::ACCOUNT_ORDER
  138. _fill_order 6980000000000000000/1000000000000000000/SELL 12204234676019749564
  139. WebSocketEvent: delta=1.73217e+11, event_time=1732174719000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 126243055570256, "order": {"symbol": "HCDAI", "coid": 12204234676019749564, {"dex_order_id": "1072447", "order_id": "1732174711809003", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 6.980000, "quantity": 1.000000, "filled_quantity": 0.000000, "update_time": 1732174719000}}
  140. [ 2024-11-21-07-39-28 ] INFO Execution::_process: WebSocketEvent: delta=1.73217e+11, event_time=1732174719000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 126243055570256, "order": {"symbol": "HCDAI", "coid": 12204234676019749564, {"dex_order_id": "1072447", "order_id": "1732174711809003", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 6.980000, "quantity": 1.000000, "filled_quantity": 0.000000, "update_time": 1732174719000}}
  141. [ 2024-11-21-07-39-28 ] MESSAGE: limit
  142. [ 2024-11-21-07-39-28 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 12204234676019749564, {"dex_order_id": "1072447", "order_id": "1732174711809003", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 6.980000, "quantity": 1.000000, "filled_quantity": 0.000000, "update_time": 1732174719000}
  143. old_it != cur_storage.end()
  144. [ 2024-11-21-07-39-28 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 12204234676019749564, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": 6.980000, "quantity": 1.000000, "update_time": 0}
  145. [ 2024-11-21-07-39-28 ] MESSAGE: (execution) filled quantity is not initialized
  146. [ 2024-11-21-07-39-28 ] MESSAGE: ! HCDAI
  147.  
  148. 1732174768008 stream = onMyForceDexOrdersUpdated
  149.  
  150. _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245312", "status": "CLOSED", "quantity": "0", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "6980000000000000000", "id": "ad705a74-62bb-473b-88c0-c6e5d0f7f4f6", "type": "LIMIT", "orderNumber": "1072447", "direction": "ASK", "initialQuantity": "1000000000000000000", "createdAt": "2024-11-21T07:38:39.000Z"}}
  151. start _update_balances
  152. get_open_orders_wrapper::request_filler
  153. auth token: eyJhbG
  154. end _update_balances
  155. stream == e_stream::ACCOUNT_ORDER
  156. _fill_order 6980000000000000000/1000000000000000000/SELL 12204234676019749564
  157. WebSocketEvent: delta=1.73217e+11, event_time=1732174719000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 126243055570256, "order": {"symbol": "HCDAI", "coid": 12204234676019749564, {"dex_order_id": "1072447", "order_id": "1732174711809003", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 6.980000, "quantity": 1.000000, "filled_quantity": 1.000000, "update_time": 1732174719000}}
  158. [ 2024-11-21-07-39-29 ] INFO Execution::_process: WebSocketEvent: delta=1.73217e+11, event_time=1732174719000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 126243055570256, "order": {"symbol": "HCDAI", "coid": 12204234676019749564, {"dex_order_id": "1072447", "order_id": "1732174711809003", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 6.980000, "quantity": 1.000000, "filled_quantity": 1.000000, "update_time": 1732174719000}}
  159. [ 2024-11-21-07-39-29 ] MESSAGE: limit
  160. [ 2024-11-21-07-39-29 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 12204234676019749564, {"dex_order_id": "1072447", "order_id": "1732174711809003", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 6.980000, "quantity": 1.000000, "filled_quantity": 1.000000, "update_time": 1732174719000}
  161. old_it != cur_storage.end()
  162. [ 2024-11-21-07-39-29 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 12204234676019749564, {"dex_order_id": "1072447", "order_id": "1732174711809003", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 6.980000, "quantity": 1.000000, "filled_quantity": 0.000000, "update_time": 1732174719000}
  163. $$$ {"symbol": "HCDAI", "price": 6.980000, "quantity": 1.000000, "trade_side": SELL, "trade_time": 1732174719000}
  164. open_position for order
  165. [ 2024-11-21-07-39-29 ] INFO Open position: : {"symbol": "HCDAI", "price": 6.980000, "quantity": 1.000000, "trade_side": SELL, "trade_time": 1732174719000}
  166. [ 2024-11-21-07-39-29 ] INFO new position: {"symbol": "HCDAI", "entry_price": 6.98, "quantity": -1, "position_quote": -6.98}
  167. [ 2024-11-21-07-39-29 ] MESSAGE: erase
  168. [ 2024-11-21-07-39-29 ] MESSAGE: ! HCDAI
  169. 1732174769597 we get ping message: {"type":"ping"}
  170.  
  171. 1732174769614 stream = onForceDexOrdersBookUpdated
  172.  
  173. 1732174772210 we get ping message: {"type":"ping"}
  174. 1732174772223 we get ping message: {"type":"ping"}
  175. 1732174772662 we get ping message: {"type":"ping"}
  176. [ 2024-11-21-07-39-33 ] MESSAGE: Tiiick
  177. [ 2024-11-21-07-39-33 ] DEBUG : {"ask_price": 7.09, "ask_quantity": 232.018, "bid_price": 7.08, "bid_quantity": 135.773}
  178. [ 2024-11-21-07-39-33 ] DEBUG : OrderEvent: delta=1.73205e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(6.98, 1); ], bids: []
  179. [ 2024-11-21-07-39-33 ] INFO portfolio: OrderEvent: delta=1.73205e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(6.98, 1); ], bids: []
  180. [ 2024-11-21-07-39-33 ] INFO execution order event process: OrderEvent: delta=1.73205e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(6.98, 1); ], bids: []
  181. [ 2024-11-21-07-39-33 ] MESSAGE: LIMIT GRID
  182. [ 2024-11-21-07-39-33 ] DEBUG in _process_limit_grid: 6.98
  183. [ 2024-11-21-07-39-33 ] DEBUG in _process_limit_grid: 1
  184. [ 2024-11-21-07-39-33 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 6.980000, "quantity": 1.000000, "type": "LIMIT", "side": "SELL"}
  185. [ 2024-11-21-07-39-33 ] MESSAGE: csize: 0
  186. index_order_id 6980000000000000000/1000000000000000000/SELL 12204234676019749564
  187. [ 2024-11-21-07-39-33 ] DEBUG ! new: {"symbol": "HCDAI", "price": 6.980000, "quantity": 1.000000, "client_order_id": 12204234676019749564, "type": "LIMIT", "side": "SELL"}
  188. ! new api API 0x6082cd496f80
  189. order_request_t {"symbol": "HCDAI", "price": 6.980000, "quantity": 1.000000, "client_order_id": 12204234676019749564, "type": "LIMIT", "side": "SELL"}
  190. quantity 10000
  191. new_order_wrapper::execute
  192. {"ext_params": {"timeout": "30000", "priority": "0"}, "params": {"quantity": "1000000000000000000", "price": "6980000000000000000", "orderType": "0", "isBid": "false"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
  193. 2024/11/21 07:39:33 extends args: {"timeout": "30000", "priority": "0"}
  194. 2024/11/21 07:39:33 args: {"quantity": "1000000000000000000", "price": "6980000000000000000", "orderType": "0", "isBid": "false"}
  195. 2024/11/21 07:39:33 waiting time: 0 ; net timeout after waiting = 30000 ms
  196.  
  197. 1732174773845 stream = onForceDexOrdersBookUpdated
  198.  
  199. 2024/11/21 07:39:34 nonce: 356
  200. 2024/11/21 07:39:34 gas price = 32345692775
  201. 2024/11/21 07:39:34 TX Hash: 0xc23cc54658bd06e7eedbec984f5d0e40a70389fe81569d4191568a8bfca67580 ; Nonce: 356
  202. get_open_orders_wrapper::request_filler
  203. auth token: eyJhbG
  204. {"asset": "MATIC", "free": 490.901, "locked": 0, "wallet": 0, "update_time": 1732174774301}
  205. {"asset": "HC", "free": 726.465, "locked": 0, "wallet": 0, "update_time": 1732174774301}
  206. {"asset": "DAI", "free": 733.287, "locked": 0, "wallet": 0, "update_time": 1732174774301}
  207.  
  208. 1732174777209 we get ping message: {"type":"ping"}
  209. 1732174777222 we get ping message: {"type":"ping"}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement