Advertisement
den4ik2003

Untitled

Nov 21st, 2024
4
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.25 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:45:32 init Nonce: 357
  5. 2024/11/21 07:45:32 bind contract 0x6b965968fbc6ff0d2ed7cb1cb38c1c1bbe0327b4
  6. 2024/11/21 07:45:32 bind contract 0x1a9f5fd1b36f8d1e03f0ff6eabbbb268f053033e
  7. 2024/11/21 07:45:32 bind contract 0x6fcb55c09671bd0d28b5a0e9d303793ac005f19c
  8. 2024/11/21 07:45:32 bind contract 0x762d3d096b9a74f4d3adf2b0824456ef8fce5daa
  9. 2024/11/21 07:45:32 bind contract 0x8f3cf7ad23cd3cadbd9735aff958023239c6a063
  10. 2024/11/21 07:45:32 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:45:26.151Z", "txHash": "0x306571d8352b418b85a88243349ea726074e68360603982196c46eeff8dbc9e0", "address": "0x6b965968fbc6ff0d2ed7cb1cb38c1c1bbe0327b4", "lastSyncedBlock": "64546736", "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 0x562f2b158f80
  16. run forever balance 0x562f2b158f80
  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.887, "locked": 0, "wallet": 0, "update_time": 1732175135581}, {"asset": "HC", "free": 725.465, "locked": 0, "wallet": 0, "update_time": 1732175135581}, {"asset": "DAI", "free": 740.353, "locked": 0, "wallet": 0, "update_time": 1732175135581}]}
  20. get balance indicator 0x562f2b159120
  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. Execution was constructed
  27. Trader was created
  28. subscription stream: ACCOUNT_BALANCE
  29. no account balance subscription
  30. subscription stream: PART_DEPTH
  31. subscription stream: TICK
  32. mfs api run ws: tick
  33. subscription stream: ACCOUNT_ORDER
  34. subscription stream: ACCOUNT_TRADE
  35. get_open_orders_wrapper::request_filler
  36. auth token: eyJhbG
  37. {"payload": {"extensions": {}, "variables": {}}, "type": "subscribe", "id": "1732175136408002"}
  38. {"payload": {"query": "subscription onForceDexOrdersBookUpdated($pairId: UUID!) { onForceDexOrdersBookUpdated(pairId: $pairId) { lines { direction quantity price __typename } __typename }}", "operationName": "onForceDexOrdersBookUpdated", "extensions": {}, "variables": {"pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e"}}, "type": "subscribe", "id": "1732175136408001"}
  39. {"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": "1732175136408003"}
  40. {"asset": "MATIC", "free": 490.887, "locked": 0, "wallet": 0, "update_time": 1732175136648}
  41. {"asset": "HC", "free": 725.465, "locked": 0, "wallet": 0, "update_time": 1732175136648}
  42. {"asset": "DAI", "free": 740.353, "locked": 0, "wallet": 0, "update_time": 1732175136648}
  43.  
  44. feed.at("type").s() != ping{"type": "connection_ack"}
  45. feed.at("type").s() != ping{"type": "connection_ack"}
  46. 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": "1732175136408002"}
  47. feed.at("type").s() != ping{"type": "connection_ack"}
  48. [ 2024-11-21-07-45-37 ] MESSAGE: Tiiick
  49. [ 2024-11-21-07-45-37 ] DEBUG : {"ask_price": 7.1, "ask_quantity": 614.013, "bid_price": 7.09, "bid_quantity": 167.128}
  50. [ 2024-11-21-07-45-37 ] DEBUG : OrderEvent: delta=1.73204e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(3.12, 3); ], bids: []
  51. [ 2024-11-21-07-45-37 ] INFO portfolio: OrderEvent: delta=1.73204e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(3.12, 3); ], bids: []
  52. [ 2024-11-21-07-45-37 ] INFO execution order event process: OrderEvent: delta=1.73204e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(3.12, 3); ], bids: []
  53. [ 2024-11-21-07-45-37 ] MESSAGE: LIMIT GRID
  54. [ 2024-11-21-07-45-37 ] DEBUG in _process_limit_grid: 3.12
  55. [ 2024-11-21-07-45-37 ] DEBUG in _process_limit_grid: 3
  56. [ 2024-11-21-07-45-37 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 3.120000, "quantity": 3.000000, "type": "LIMIT", "side": "SELL"}
  57. [ 2024-11-21-07-45-37 ] MESSAGE: csize: 0
  58. index_order_id 3120000000000000000/3000000000000000000/SELL 11470819470383771039
  59. [ 2024-11-21-07-45-37 ] DEBUG ! new: {"symbol": "HCDAI", "price": 3.120000, "quantity": 3.000000, "client_order_id": 11470819470383771039, "type": "LIMIT", "side": "SELL"}
  60. ! new api API 0x562f2b158f80
  61. order_request_t {"symbol": "HCDAI", "price": 3.120000, "quantity": 3.000000, "client_order_id": 11470819470383771039, "type": "LIMIT", "side": "SELL"}
  62. quantity 30000
  63. new_order_wrapper::execute
  64. {"ext_params": {"timeout": "30000", "priority": "0"}, "params": {"quantity": "3000000000000000000", "price": "3120000000000000000", "orderType": "0", "isBid": "false"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
  65. 2024/11/21 07:45:37 extends args: {"timeout": "30000", "priority": "0"}
  66. 2024/11/21 07:45:37 args: {"quantity": "3000000000000000000", "price": "3120000000000000000", "orderType": "0", "isBid": "false"}
  67. 2024/11/21 07:45:37 waiting time: 0 ; net timeout after waiting = 30000 ms
  68. 2024/11/21 07:45:37 nonce: 357
  69. 2024/11/21 07:45:37 gas price = 46572697102
  70. 2024/11/21 07:45:38 TX Hash: 0x57b4be035ee460199405b0dc14dece8f6eb3a2426d0092b4d107954603941d56 ; Nonce: 357
  71. 2024/11/21 07:45:42 timeout_metric -> complete: tx: 0x57b4be035ee460199405b0dc14dece8f6eb3a2426d0092b4d107954603941d56 ; exec_time: 4.160316s ; attempt = 0 ; first tx 0x57b4be035ee460199405b0dc14dece8f6eb3a2426d0092b4d107954603941d56
  72. 2024/11/21 07:45:42 golang tx log: {
  73. tx = 0x57b4be035ee460199405b0dc14dece8f6eb3a2426d0092b4d107954603941d56 ok;
  74. nonce = 357
  75. status = 1
  76. block = 64546759
  77. usedGas = 444679
  78. exec_time = 4.160359s
  79. }
  80. C++ new_order_wrapper response: {"tx_hash": "0x57b4be035ee460199405b0dc14dece8f6eb3a2426d0092b4d107954603941d56", "used_gas": "444679", "block": "64546759", "error": "ok"}
  81. [ 2024-11-21-07-45-42 ] MESSAGE: new order delta: 4798
  82.  
  83. 1732175146082 stream = onForceDexOrdersBookUpdated
  84.  
  85. 1732175151782 we get ping message: {"type":"ping"}
  86. 1732175151786 we get ping message: {"type":"ping"}
  87. 1732175151791 we get ping message: {"type":"ping"}
  88. 1732175156783 we get ping message: {"type":"ping"}
  89. 1732175156786 we get ping message: {"type":"ping"}
  90. 1732175156791 we get ping message: {"type":"ping"}
  91. get_open_orders_wrapper::request_filler
  92. auth token: eyJhbG
  93. {"asset": "MATIC", "free": 490.866, "locked": 0, "wallet": 0, "update_time": 1732175157689}
  94. {"asset": "HC", "free": 722.465, "locked": 0, "wallet": 0, "update_time": 1732175157689}
  95. {"asset": "DAI", "free": 761.58, "locked": 0, "wallet": 0, "update_time": 1732175157689}
  96.  
  97. 1732175161782 we get ping message: {"type":"ping"}
  98. 1732175161785 we get ping message: {"type":"ping"}
  99. 1732175161786 we get ping message: {"type":"ping"}
  100. 1732175166784 we get ping message: {"type":"ping"}
  101. 1732175166787 we get ping message: {"type":"ping"}
  102. 1732175166791 we get ping message: {"type":"ping"}
  103.  
  104. 1732175168578 stream = onMyForceDexOrdersUpdated
  105.  
  106. _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245312", "status": "OPEN", "quantity": "3000000000000000000", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "3120000000000000000", "id": "f734da28-d6cb-473d-bc70-3d69ff5c7a64", "type": "LIMIT", "orderNumber": "1072483", "direction": "ASK", "initialQuantity": "3000000000000000000", "createdAt": "2024-11-21T07:45:41.000Z"}}
  107. start _update_balances
  108. get_open_orders_wrapper::request_filler
  109. auth token: eyJhbG
  110. end _update_balances
  111. stream == e_stream::ACCOUNT_ORDER
  112. _fill_order 3120000000000000000/3000000000000000000/SELL 11470819470383771039
  113. WebSocketEvent: delta=1.73218e+11, event_time=1732175141000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 137878556085584, "order": {"symbol": "HCDAI", "coid": 11470819470383771039, {"dex_order_id": "1072483", "order_id": "1732175136408003", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 3.120000, "quantity": 3.000000, "filled_quantity": 0.000000, "update_time": 1732175141000}}
  114. [ 2024-11-21-07-46-09 ] INFO Execution::_process: WebSocketEvent: delta=1.73218e+11, event_time=1732175141000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 137878556085584, "order": {"symbol": "HCDAI", "coid": 11470819470383771039, {"dex_order_id": "1072483", "order_id": "1732175136408003", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 3.120000, "quantity": 3.000000, "filled_quantity": 0.000000, "update_time": 1732175141000}}
  115. [ 2024-11-21-07-46-09 ] MESSAGE: limit
  116. [ 2024-11-21-07-46-09 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 11470819470383771039, {"dex_order_id": "1072483", "order_id": "1732175136408003", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 3.120000, "quantity": 3.000000, "filled_quantity": 0.000000, "update_time": 1732175141000}
  117. old_it != cur_storage.end()
  118. [ 2024-11-21-07-46-09 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 11470819470383771039, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": 3.120000, "quantity": 3.000000, "update_time": 0}
  119. [ 2024-11-21-07-46-09 ] MESSAGE: (execution) filled quantity is not initialized
  120. [ 2024-11-21-07-46-09 ] MESSAGE: ! HCDAI
  121.  
  122. 1732175169894 stream = onForceDexOrdersBookUpdated
  123.  
  124.  
  125. 1732175169902 stream = onMyForceDexOrdersUpdated
  126.  
  127. _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245312", "status": "CLOSED", "quantity": "0", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "3120000000000000000", "id": "f734da28-d6cb-473d-bc70-3d69ff5c7a64", "type": "LIMIT", "orderNumber": "1072483", "direction": "ASK", "initialQuantity": "3000000000000000000", "createdAt": "2024-11-21T07:45:41.000Z"}}
  128. start _update_balances
  129. get_open_orders_wrapper::request_filler
  130. auth token: eyJhbG
  131. end _update_balances
  132. stream == e_stream::ACCOUNT_ORDER
  133. _fill_order 3120000000000000000/3000000000000000000/SELL 11470819470383771039
  134. WebSocketEvent: delta=1.73218e+11, event_time=1732175141000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 137878556085584, "order": {"symbol": "HCDAI", "coid": 11470819470383771039, {"dex_order_id": "1072483", "order_id": "1732175136408003", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 3.120000, "quantity": 3.000000, "filled_quantity": 3.000000, "update_time": 1732175141000}}
  135. [ 2024-11-21-07-46-10 ] INFO Execution::_process: WebSocketEvent: delta=1.73218e+11, event_time=1732175141000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 137878556085584, "order": {"symbol": "HCDAI", "coid": 11470819470383771039, {"dex_order_id": "1072483", "order_id": "1732175136408003", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 3.120000, "quantity": 3.000000, "filled_quantity": 3.000000, "update_time": 1732175141000}}
  136. [ 2024-11-21-07-46-10 ] MESSAGE: limit
  137. [ 2024-11-21-07-46-10 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 11470819470383771039, {"dex_order_id": "1072483", "order_id": "1732175136408003", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 3.120000, "quantity": 3.000000, "filled_quantity": 3.000000, "update_time": 1732175141000}
  138. old_it != cur_storage.end()
  139. [ 2024-11-21-07-46-10 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 11470819470383771039, {"dex_order_id": "1072483", "order_id": "1732175136408003", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 3.120000, "quantity": 3.000000, "filled_quantity": 0.000000, "update_time": 1732175141000}
  140. $$$ {"symbol": "HCDAI", "price": 3.120000, "quantity": 3.000000, "trade_side": SELL, "trade_time": 1732175141000}
  141. open_position for order
  142. [ 2024-11-21-07-46-10 ] INFO Open position: : {"symbol": "HCDAI", "price": 3.120000, "quantity": 3.000000, "trade_side": SELL, "trade_time": 1732175141000}
  143. [ 2024-11-21-07-46-10 ] INFO new position: {"symbol": "HCDAI", "entry_price": 3.12, "quantity": -3, "position_quote": -9.36}
  144. [ 2024-11-21-07-46-10 ] MESSAGE: erase
  145. [ 2024-11-21-07-46-10 ] MESSAGE: ! HCDAI
  146. 1732175171786 we get ping message: {"type":"ping"}
  147. 1732175171788 we get ping message: {"type":"ping"}
  148. 1732175171791 we get ping message: {"type":"ping"}
  149. 1732175176789 we get ping message: {"type":"ping"}
  150. 1732175176790 we get ping message: {"type":"ping"}
  151. 1732175176793 we get ping message: {"type":"ping"}
  152. get_open_orders_wrapper::request_filler
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement