Advertisement
den4ik2003

Untitled

Nov 12th, 2024
9
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.85 KB | None | 0 0
  1. {"payload": {"extensions": {}, "variables": {}}, "type": "subscribe", "id": "1731403723002002"}
  2. {"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": "1731403723002003"}
  3. {"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": "1731403723002001"}
  4. {"asset": "MATIC", "free": 1.15138, "locked": 0, "wallet": 0, "update_time": 1731403723170}
  5. {"asset": "HC", "free": 698.16, "locked": 0, "wallet": 0, "update_time": 1731403723170}
  6. {"asset": "DAI", "free": 954.81, "locked": 0, "wallet": 0, "update_time": 1731403723170}
  7.  
  8. feed.at("type").s() != ping{"type": "connection_ack"}
  9. 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": "1731403723002002"}
  10. feed.at("type").s() != ping{"type": "connection_ack"}
  11. feed.at("type").s() != ping{"type": "connection_ack"}
  12. [ 2024-11-12-09-28-44 ] MESSAGE: Process tick
  13. [ 2024-11-12-09-28-44 ] DEBUG best book: {"ask_price": 6.53, "ask_quantity": 67.3776, "bid_price": 6.52, "bid_quantity": 39.2211}
  14. [ 2024-11-12-09-28-44 ] DEBUG second book: {"ask_price": 6.55, "ask_quantity": 241.704, "bid_price": 6.5, "bid_quantity": 473.877}
  15. [ 2024-11-12-09-28-44 ] DEBUG : OrderEvent: delta=1.73126e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [], bids: [(6.5, 14.6894); ]
  16. [ 2024-11-12-09-28-44 ] INFO portfolio: OrderEvent: delta=1.73126e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [], bids: [(6.5, 14.6894); ]
  17. [ 2024-11-12-09-28-44 ] INFO execution order event process: OrderEvent: delta=1.73126e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [], bids: [(6.5, 14.6894); ]
  18. [ 2024-11-12-09-28-44 ] MESSAGE: LIMIT GRID
  19. [ 2024-11-12-09-28-44 ] DEBUG in _process_limit_grid: 6.5
  20. [ 2024-11-12-09-28-44 ] DEBUG in _process_limit_grid: 14.6894
  21. [ 2024-11-12-09-28-44 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 6.500000, "quantity": 14.689400, "type": "LIMIT", "side": "BUY"}
  22. [ 2024-11-12-09-28-44 ] MESSAGE: csize: 0
  23. index_order_id 6500000000000000000/14689400000000000000/BUY 11006989577484577131
  24. [New Thread 0x7fff90c00640 (LWP 804522)]
  25. [ 2024-11-12-09-28-44 ] DEBUG ! new: {"symbol": "HCDAI", "price": 6.500000, "quantity": 14.689400, "client_order_id": 11006989577484577131, "type": "LIMIT", "side": "BUY"}
  26. ! new api API 0x555555979f30
  27. order_request_t {"symbol": "HCDAI", "price": 6.500000, "quantity": 14.689400, "client_order_id": 11006989577484577131, "type": "LIMIT", "side": "BUY"}
  28. quantity 146894
  29. new_order_wrapper::execute
  30. {"ext_params": {"timeout": "16000", "priority": "0"}, "params": {"quantity": "14689400000000000000", "price": "6500000000000000000", "orderType": "0", "isBid": "true"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
  31. 2024/11/12 09:28:44 extends args: {"timeout": "16000", "priority": "0"}
  32. 2024/11/12 09:28:44 args: {"quantity": "14689400000000000000", "price": "6500000000000000000", "orderType": "0", "isBid": "true"}
  33. 2024/11/12 09:28:44 waiting time: 0 ; net timeout after waiting = 16000 ms
  34. 2024/11/12 09:28:44 nonce: 83
  35. 2024/11/12 09:28:44 gas price = 111822410290
  36. 2024/11/12 09:28:44 TX Hash: 0x2c54fe90b4c226d2fba36ef7418165bd9f70925583a09cd58827bde0c2ab9c16 ; Nonce: 83
  37.  
  38. stream = onForceDexOrdersBookUpdated
  39.  
  40. 2024/11/12 09:28:48 timeout_metric -> complete: tx: 0x2c54fe90b4c226d2fba36ef7418165bd9f70925583a09cd58827bde0c2ab9c16 ; exec_time: 4.224442s ; attempt = 0 ; first tx 0x2c54fe90b4c226d2fba36ef7418165bd9f70925583a09cd58827bde0c2ab9c16
  41. 2024/11/12 09:28:48 golang tx log: {
  42. tx = 0x2c54fe90b4c226d2fba36ef7418165bd9f70925583a09cd58827bde0c2ab9c16 ok;
  43. nonce = 83
  44. status = 1
  45. block = 64189585
  46. usedGas = 368103
  47. exec_time = 4.224484s
  48. }
  49. C++ new_order_wrapper response: {"tx_hash": "0x2c54fe90b4c226d2fba36ef7418165bd9f70925583a09cd58827bde0c2ab9c16", "used_gas": "368103", "block": "64189585", "error": "ok"}
  50. [ 2024-11-12-09-28-48 ] MESSAGE: new order delta: 4924
  51. [Thread 0x7fff90c00640 (LWP 804522) exited]
  52. [Thread 0x7ffff4800640 (LWP 804483) exited]
  53.  
  54. stream = onForceDexOrdersBookUpdated
  55.  
  56.  
  57. stream = onForceDexOrdersBookUpdated
  58.  
  59. get_open_orders_wrapper::request_filler
  60. auth token: eyJhbG
  61. {"asset": "MATIC", "free": 1.11022, "locked": 0, "wallet": 0, "update_time": 1731403744315}
  62. {"asset": "HC", "free": 698.16, "locked": 0, "wallet": 0, "update_time": 1731403744315}
  63. {"asset": "DAI", "free": 859.329, "locked": 0, "wallet": 0, "update_time": 1731403744315}
  64.  
  65.  
  66. stream = onForceDexOrdersBookUpdated
  67.  
  68.  
  69. stream = onForceDexOrdersBookUpdated
  70.  
  71.  
  72. stream = onMyForceDexOrdersUpdated
  73.  
  74. _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245312", "status": "OPEN", "quantity": "14689400000000000000", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "6500000000000000000", "id": "8aa44712-9f25-41d9-80af-ced02ebabf3d", "type": "LIMIT", "orderNumber": "954900", "direction": "BID", "initialQuantity": "14689400000000000000", "createdAt": "2024-11-12T09:28:48.000Z"}}
  75. start _update_balances
  76. get_open_orders_wrapper::request_filler
  77. auth token: eyJhbG
  78. _fill_order 6500000000000000000/14689400000000000000/BUY 11006989577484577131
  79. end _update_balances
  80. stream == e_stream::ACCOUNT_ORDER
  81. _fill_order 6500000000000000000/14689400000000000000/BUY 11006989577484577131
  82. WebSocketEvent: delta=1.7314e+11, event_time=1731403728000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337059104, "order": {"symbol": "HCDAI", "coid": 11006989577484577131, {"dex_order_id": "954900", "order_id": "1731403723002003", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 6.500000, "quantity": 14.689400, "filled_quantity": 0.000000, "update_time": 1731403728000}}
  83. [ 2024-11-12-09-29-19 ] INFO Execution::_process: WebSocketEvent: delta=1.7314e+11, event_time=1731403728000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337059104, "order": {"symbol": "HCDAI", "coid": 11006989577484577131, {"dex_order_id": "954900", "order_id": "1731403723002003", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 6.500000, "quantity": 14.689400, "filled_quantity": 0.000000, "update_time": 1731403728000}}
  84. [ 2024-11-12-09-29-19 ] MESSAGE: limit
  85. [ 2024-11-12-09-29-19 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 11006989577484577131, {"dex_order_id": "954900", "order_id": "1731403723002003", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 6.500000, "quantity": 14.689400, "filled_quantity": 0.000000, "update_time": 1731403728000}
  86. old_it != cur_storage.end()
  87. [ 2024-11-12-09-29-19 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 11006989577484577131, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 6.500000, "quantity": 14.689400, "update_time": 0}
  88. [ 2024-11-12-09-29-19 ] MESSAGE: (execution) filled quantity is not initialized
  89. [ 2024-11-12-09-29-19 ] MESSAGE: ! HCDAI
  90.  
  91. stream = onForceDexOrdersBookUpdated
  92.  
  93. get_open_orders_wrapper::request_filler
  94. auth token: eyJhbG
  95. _fill_order 6500000000000000000/14689400000000000000/BUY 11006989577484577131
  96. {"asset": "MATIC", "free": 1.11022, "locked": 0, "wallet": 0, "update_time": 1731403765488}
  97. {"asset": "HC", "free": 698.16, "locked": 0, "wallet": 0, "update_time": 1731403765488}
  98. {"asset": "DAI", "free": 859.329, "locked": 14.6894, "wallet": 0, "update_time": 1731403765488}
  99.  
  100.  
  101. stream = onForceDexOrdersBookUpdated
  102.  
  103.  
  104. stream = onForceDexOrdersBookUpdated
  105.  
  106. get_open_orders_wrapper::request_filler
  107. auth token: eyJhbG
  108. _fill_order 6500000000000000000/14689400000000000000/BUY 11006989577484577131
  109. {"asset": "MATIC", "free": 1.11022, "locked": 0, "wallet": 0, "update_time": 1731403786638}
  110. {"asset": "HC", "free": 698.16, "locked": 0, "wallet": 0, "update_time": 1731403786638}
  111. {"asset": "DAI", "free": 859.329, "locked": 14.6894, "wallet": 0, "update_time": 1731403786638}
  112.  
  113.  
  114. stream = onForceDexOrdersBookUpdated
  115.  
  116.  
  117. stream = onForceDexOrdersBookUpdated
  118.  
  119.  
  120. stream = onForceDexOrdersBookUpdated
  121.  
  122. get_open_orders_wrapper::request_filler
  123. auth token: eyJhbG
  124. _fill_order 6500000000000000000/14689400000000000000/BUY 11006989577484577131
  125. {"asset": "MATIC", "free": 1.11022, "locked": 0, "wallet": 0, "update_time": 1731403808197}
  126. {"asset": "HC", "free": 698.16, "locked": 0, "wallet": 0, "update_time": 1731403808197}
  127. {"asset": "DAI", "free": 859.329, "locked": 14.6894, "wallet": 0, "update_time": 1731403808197}
  128.  
  129.  
  130. stream = onForceDexOrdersBookUpdated
  131.  
  132. [ 2024-11-12-09-30-14 ] MESSAGE: Process order book
  133. [ 2024-11-12-09-30-14 ] DEBUG best book: {"ask_price": 6.55, "ask_quantity": 241.704, "bid_price": 6.53, "bid_quantity": 189.046}
  134. [ 2024-11-12-09-30-14 ] DEBUG second book: {"ask_price": 6.57, "ask_quantity": 417.385, "bid_price": 6.51, "bid_quantity": 0}
  135. [ 2024-11-12-09-30-14 ] DEBUG : OrderEvent: delta=1.73126e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [], bids: [(6.51, 13.4258); ]
  136. [ 2024-11-12-09-30-14 ] INFO portfolio: OrderEvent: delta=1.73126e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [], bids: [(6.51, 13.4258); ]
  137. [ 2024-11-12-09-30-14 ] INFO execution order event process: OrderEvent: delta=1.73126e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [], bids: [(6.51, 13.4258); ]
  138. [ 2024-11-12-09-30-14 ] MESSAGE: LIMIT GRID
  139. [ 2024-11-12-09-30-14 ] DEBUG in _process_limit_grid: 6.51
  140. [ 2024-11-12-09-30-14 ] DEBUG in _process_limit_grid: 13.4258
  141. execution to cancel: id: 11006989577484577131 dex id = 954900 p = 6.500000 q = 14.689400
  142. [ 2024-11-12-09-30-14 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 6.510000, "quantity": 13.425800, "type": "LIMIT", "side": "BUY"}
  143. [ 2024-11-12-09-30-14 ] MESSAGE: csize: 1
  144. [New Thread 0x7fff90c00640 (LWP 804821)]
  145. [ index_order_id 6510000000000000000/13425800000000000000/BUY 16761958000999727297
  146. 2024-11-12-09-30-14 ] DEBUG ! cancel: {"symbol": "HCDAI", "coid": 11006989577484577131, {"dex_order_id": "954900", "order_id": "1731403723002003", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 6.500000, "quantity": 14.689400, "filled_quantity": 0.000000, "update_time": 1731403728000}
  147. cancel_order_wrapper::execute
  148. [New Thread 0x7fff87e00640 (LWP 804822)]
  149. [ 2024-11-12-09-30-14 ] DEBUG ! new: {"symbol": "HCDAI", "price": 6.510000, "quantity": 13.425800, "client_order_id": 16761958000999727297, "type": "LIMIT", "side": "BUY"}
  150. ! new api API 0x555555979f30
  151. order_request_t {"symbol": "HCDAI", "price": 6.510000, "quantity": 13.425800, "client_order_id": 16761958000999727297, "type": "LIMIT", "side": "BUY"}
  152. quantity 134258
  153. 2024/11/12 09:30:14 extends args: {"timeout": "16000"}
  154. 2024/11/12 09:30:14 args: {"orderId": "954900"}
  155. 2024/11/12 09:30:14 waiting time: 0 ; net timeout after waiting = 16000 ms
  156. new_order_wrapper::execute
  157. {"ext_params": {"timeout": "16000", "priority": "0"}, "params": {"quantity": "13425800000000000000", "price": "6510000000000000000", "orderType": "0", "isBid": "true"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
  158. 2024/11/12 09:30:14 nonce: 84
  159. 2024/11/12 09:30:14 gas price = 103803888210
  160. 2024/11/12 09:30:14 TX Hash: 0x4bf25d62a1f73021f390c19dd961d76068f0cb6d2cd46047ed6944c4a6955432 ; Nonce: 84
  161. 2024/11/12 09:30:19 timeout_metric -> complete: tx: 0x4bf25d62a1f73021f390c19dd961d76068f0cb6d2cd46047ed6944c4a6955432 ; exec_time: 4.179297s ; attempt = 0 ; first tx 0x4bf25d62a1f73021f390c19dd961d76068f0cb6d2cd46047ed6944c4a6955432
  162. 2024/11/12 09:30:19 golang tx log: {
  163. tx = 0x4bf25d62a1f73021f390c19dd961d76068f0cb6d2cd46047ed6944c4a6955432 ok;
  164. nonce = 84
  165. status = 1
  166. block = 64189628
  167. usedGas = 161269
  168. exec_time = 4.179335s
  169. }
  170. 2024/11/12 09:30:19 extends args: {"timeout": "16000", "priority": "0"}
  171. 2024/11/12 09:30:19 args: {"quantity": "13425800000000000000", "price": "6510000000000000000", "orderType": "0", "isBid": "true"}
  172. 2024/11/12 09:30:19 waiting time: 4887 ; net timeout after waiting = 11113 ms
  173. cancel_order_wrapper::response_filler{"tx_hash": "0x4bf25d62a1f73021f390c19dd961d76068f0cb6d2cd46047ed6944c4a6955432", "used_gas": "161269", "block": "64189628", "error": "ok"}
  174. [ 2024-11-12-09-30-19 ] MESSAGE: cancel order delta: 4888
  175. [Thread 0x7fff90c00640 (LWP 804821) exited]
  176. 2024/11/12 09:30:19 nonce: 85
  177. 2024/11/12 09:30:19 gas price = 101914784799
  178. 2024/11/12 09:30:19 TX Hash: 0x82acdf591e1a3f962e09720d99bb2e0813f7016fb4a138d66b32b942e2e8dcd6 ; Nonce: 85
  179.  
  180. stream = onForceDexOrdersBookUpdated
  181.  
  182. 2024/11/12 09:30:24 timeout_metric -> complete: tx: 0x82acdf591e1a3f962e09720d99bb2e0813f7016fb4a138d66b32b942e2e8dcd6 ; exec_time: 5.178750s ; attempt = 0 ; first tx 0x82acdf591e1a3f962e09720d99bb2e0813f7016fb4a138d66b32b942e2e8dcd6
  183. 2024/11/12 09:30:24 {
  184. tx = 0x82acdf591e1a3f962e09720d99bb2e0813f7016fb4a138d66b32b942e2e8dcd6 failed
  185. exec_time = 5.178797s
  186. }
  187. error: unknown tx error
  188. [ 2024-11-12-09-30-25 ] MESSAGE: new order delta: 10950
  189. [ 2024-11-12-09-30-25 ] ERROR : new order error: request={"symbol": "HCDAI", "price": 6.510000, "quantity": 13.425800, "client_order_id": 16761958000999727297, "type": "LIMIT", "side": "BUY"} id = 16761958000999727297
  190. [Thread 0x7fff87e00640 (LWP 804822) exited]
  191. get_open_orders_wrapper::request_filler
  192. auth token: eyJhbG
  193. _fill_order 6500000000000000000/14689400000000000000/BUY 11006989577484577131
  194. {"asset": "MATIC", "free": 1.04327, "locked": 0, "wallet": 0, "update_time": 1731403829333}
  195. {"asset": "HC", "free": 698.16, "locked": 0, "wallet": 0, "update_time": 1731403829333}
  196. {"asset": "DAI", "free": 954.81, "locked": 14.6894, "wallet": 0, "update_time": 1731403829333}
  197.  
  198.  
  199. stream = onForceDexOrdersBookUpdated
  200.  
  201.  
  202. stream = onForceDexOrdersBookUpdated
  203.  
  204.  
  205. stream = onMyForceDexOrdersUpdated
  206.  
  207. _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245312", "status": "CANCELLED", "quantity": "14689400000000000000", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "6500000000000000000", "id": "8aa44712-9f25-41d9-80af-ced02ebabf3d", "type": "LIMIT", "orderNumber": "954900", "direction": "BID", "initialQuantity": "14689400000000000000", "createdAt": "2024-11-12T09:28:48.000Z"}}
  208. start _update_balances
  209. get_open_orders_wrapper::request_filler
  210. auth token: eyJhbG
  211. end _update_balances
  212. stream == e_stream::ACCOUNT_ORDER
  213. _fill_order 6500000000000000000/14689400000000000000/BUY 11006989577484577131
  214. WebSocketEvent: delta=1.7314e+11, event_time=1731403728000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337059104, "order": {"symbol": "HCDAI", "coid": 11006989577484577131, {"dex_order_id": "954900", "order_id": "1731403723002003", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 6.500000, "quantity": 14.689400, "filled_quantity": 0.000000, "update_time": 1731403728000}}
  215. [ 2024-11-12-09-30-47 ] INFO Execution::_process: WebSocketEvent: delta=1.7314e+11, event_time=1731403728000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337059104, "order": {"symbol": "HCDAI", "coid": 11006989577484577131, {"dex_order_id": "954900", "order_id": "1731403723002003", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 6.500000, "quantity": 14.689400, "filled_quantity": 0.000000, "update_time": 1731403728000}}
  216. [ 2024-11-12-09-30-47 ] MESSAGE: limit
  217. [ 2024-11-12-09-30-47 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 11006989577484577131, {"dex_order_id": "954900", "order_id": "1731403723002003", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 6.500000, "quantity": 14.689400, "filled_quantity": 0.000000, "update_time": 1731403728000}
  218. old_it != cur_storage.end()
  219. [ 2024-11-12-09-30-47 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 11006989577484577131, {"dex_order_id": "954900", "order_id": "1731403723002003", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 6.500000, "quantity": 14.689400, "filled_quantity": 0.000000, "update_time": 1731403728000}
  220. [ 2024-11-12-09-30-47 ] MESSAGE: erase
  221. [ 2024-11-12-09-30-47 ] MESSAGE: ! HCDAI
  222.  
  223. stream = onForceDexOrdersBookUpdated
  224.  
  225. get_open_orders_wrapper::request_filler
  226. auth token: eyJhbG
  227. {"asset": "MATIC", "free": 1.04327, "locked": 0, "wallet": 0, "update_time": 1731403850471}
  228. {"asset": "HC", "free": 698.16, "locked": 0, "wallet": 0, "update_time": 1731403850471}
  229. {"asset": "DAI", "free": 954.81, "locked": 0, "wallet": 0, "update_time": 1731403850471}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement