Advertisement
den4ik2003

Untitled

Nov 6th, 2024
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.73 KB | None | 0 0
  1. user_id: 1245318
  2. authentification was completed
  3. API 0x555555971fe0
  4. run forever balance 0x555555971fe0
  5. getBalance {"token_name": "DAI", "error": "ok", "balance": "0"}
  6. balanceOf {"token_name": "DAI", "error": "ok", "balance": "1000000000000000000000"}
  7. getBalance {"token_name": "HC", "error": "ok", "balance": "0"}
  8. balanceOf {"token_name": "HC", "error": "ok", "balance": "0"}
  9. {"type": "DEX", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "HC", "free": 0, "locked": 0, "wallet": 0, "update_time": 1730886490011}, {"asset": "DAI", "free": 1000, "locked": 0, "wallet": 0, "update_time": 1730886490011}]}
  10. [New Thread 0x7fff9e000640 (LWP 605420)]
  11. get balance indicator 0x555555972180
  12. 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", "TICK"]}}
  13. >:)
  14. auth token: eyJhbG
  15. getBalance {"token_name": "DAI", "error": "ok", "balance": "0"}
  16. balanceOf {"token_name": "DAI", "error": "ok", "balance": "1000000000000000000000"}
  17. getBalance {"token_name": "HC", "error": "ok", "balance": "0"}
  18. get_open_orders_wrapper::request_filler
  19. auth token: eyJhbG
  20. balanceOf {"token_name": "HC", "error": "ok", "balance": "0"}
  21. {"asset": "HC", "free": 0, "locked": 0, "wallet": 0, "update_time": 1730886490763}
  22. {"asset": "DAI", "free": 1000, "locked": 0, "wallet": 0, "update_time": 1730886490763}
  23.  
  24. [New Thread 0x7fff9d600640 (LWP 605421)]
  25. Execution was constructed
  26. Trader was created
  27. [New Thread 0x7fff9cc00640 (LWP 605422)]
  28. [New Thread 0x7fff93e00640 (LWP 605423)]
  29. [New Thread 0x7fff93400640 (LWP 605424)]
  30. subscription stream: ACCOUNT_BALANCE
  31. no account balance subscription
  32. subscription stream: PART_DEPTH
  33. subscription stream: TICK
  34. mfs api run ws: tick
  35. subscription stream: ACCOUNT_ORDER
  36. subscription stream: ACCOUNT_TRADE
  37. [New Thread 0x7fff92a00640 (LWP 605425)]
  38. [New Thread 0x7fff92000640 (LWP 605426)]
  39. [New Thread 0x7fff91600640 (LWP 605427)]
  40. {"payload": {"extensions": {}, "variables": {}}, "type": "subscribe", "id": "1730886491054002"}
  41. {"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": "1245318", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e"}}, "type": "subscribe", "id": "1730886491054003"}
  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": "1730886491054001"}
  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": "1730886491054002"}
  45. feed.at("type").s() != ping{"type": "connection_ack"}
  46. feed.at("type").s() != ping{"type": "connection_ack"}
  47. {"symbol": "HCDAI", "tick": "2000"}
  48. [ 2024-11-06-09-48-13 ] MESSAGE: starts taker test!
  49. [ 2024-11-06-09-48-13 ] DEBUG taker test completed: OrderEvent: delta=1.73079e+11, symbol="HCDAI", type="TAKER_BUY", priority=default, amount: 65
  50. [ 2024-11-06-09-48-13 ] INFO portfolio: OrderEvent: delta=1.73079e+11, symbol="HCDAI", type="TAKER_BUY", priority=default, amount: 65
  51. [ 2024-11-06-09-48-13 ] INFO execution order event process: OrderEvent: delta=1.73079e+11, symbol="HCDAI", type="TAKER_BUY", priority=default, amount: 65
  52. index_order_id 0/65000000000000000000/BUY 17059178135423184753
  53. [New Thread 0x7fff90c00640 (LWP 605447)]
  54. [ 2024-11-06-09-48-13 ] DEBUG ! new: {"symbol": "HCDAI", "quantity": 65.000000, "client_order_id": 17059178135423184753, "type": "MARKET", "side": "BUY"}
  55. ! new api API 0x555555971fe0
  56. order_request_t {"symbol": "HCDAI", "quantity": 65.000000, "client_order_id": 17059178135423184753, "type": "MARKET", "side": "BUY"}
  57. quantity 650000
  58. new_order_wrapper::execute
  59. {"ext_params": {"timeout": "30000", "priority": "0"}, "params": {"quantity": "65000000000000000000", "price": "0", "orderType": "1", "isBid": "true"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
  60. 2024/11/06 09:48:13 extends args: {"timeout": "30000", "priority": "0"}
  61. 2024/11/06 09:48:13 args: {"quantity": "65000000000000000000", "price": "0", "orderType": "1", "isBid": "true"}
  62. 2024/11/06 09:48:13 start cancelation
  63. 2024/11/06 09:48:13 finish cancelation
  64. 2024/11/06 09:48:13 gas price = 47216400448
  65. 2024/11/06 09:48:13 TX Hash: 0xbac3b00cbc1ad1af02c44b34d449c800ad371d3f908c532bc136e6ce3e059c8a ; Nonce: 13
  66. {"symbol": "HCDAI", "tick": "2000"}
  67. {"symbol": "HCDAI", "tick": "2000"}
  68. [Thread 0x7ffff4800640 (LWP 605419) exited]
  69.  
  70. stream = onForceDexOrdersBookUpdated
  71.  
  72. {"symbol": "HCDAI", "tick": "2000"}
  73. getBalance {"token_name": "DAI", "error": "ok", "balance": "0"}
  74. {"symbol": "HCDAI", "tick": "2000"}
  75. balanceOf {"token_name": "DAI", "error": "ok", "balance": "1000000000000000000000"}
  76. getBalance {"token_name": "HC", "error": "ok", "balance": "0"}
  77. balanceOf {"token_name": "HC", "error": "ok", "balance": "0"}
  78. {"asset": "HC", "free": 0, "locked": 0, "wallet": 0, "update_time": 1730886501478}
  79. {"asset": "DAI", "free": 1000, "locked": 0, "wallet": 0, "update_time": 1730886501478}
  80.  
  81. 2024/11/06 09:48:22 golang tx log: {
  82. tx = 0xbac3b00cbc1ad1af02c44b34d449c800ad371d3f908c532bc136e6ce3e059c8a ok;
  83. status = 1
  84. block = 63950013
  85. usedGas = 459203
  86. exec_time = 9.755982s
  87. }
  88. C++ new_order_wrapper response: {"tx_hash": "0xbac3b00cbc1ad1af02c44b34d449c800ad371d3f908c532bc136e6ce3e059c8a", "used_gas": "459203", "block": "63950013", "error": "ok"}
  89. [ 2024-11-06-09-48-22 ] MESSAGE: new order delta: 9757
  90. [ 2024-11-06-09-48-22 ] DEBUG ? new: empty order
  91. [Thread 0x7fff90c00640 (LWP 605447) exited]
  92. {"symbol": "HCDAI", "tick": "2000"}
  93.  
  94. stream = onForceDexOrdersBookUpdated
  95.  
  96. {"symbol": "HCDAI", "tick": "2000"}
  97. {"symbol": "HCDAI", "tick": "2000"}
  98. {"symbol": "HCDAI", "tick": "2000"}
  99. {"symbol": "HCDAI", "tick": "2000"}
  100. getBalance {"token_name": "DAI", "error": "ok", "balance": "0"}
  101. balanceOf {"token_name": "DAI", "error": "ok", "balance": "496250000000000000000"}
  102. getBalance {"token_name": "HC", "error": "ok", "balance": "0"}
  103. balanceOf {"token_name": "HC", "error": "ok", "balance": "64870000000000000000"}
  104. {"asset": "HC", "free": 64.87, "locked": 0, "wallet": 0, "update_time": 1730886512199}
  105. {"asset": "DAI", "free": 496.25, "locked": 0, "wallet": 0, "update_time": 1730886512199}
  106.  
  107. {"symbol": "HCDAI", "tick": "2000"}
  108. {"symbol": "HCDAI", "tick": "2000"}
  109. {"symbol": "HCDAI", "tick": "2000"}
  110. {"symbol": "HCDAI", "tick": "2000"}
  111. {"symbol": "HCDAI", "tick": "2000"}
  112. getBalance {"token_name": "DAI", "error": "ok", "balance": "0"}
  113. balanceOf {"token_name": "DAI", "error": "ok", "balance": "496250000000000000000"}
  114. getBalance {"token_name": "HC", "error": "ok", "balance": "0"}
  115. balanceOf {"token_name": "HC", "error": "ok", "balance": "64870000000000000000"}
  116. {"asset": "HC", "free": 64.87, "locked": 0, "wallet": 0, "update_time": 1730886522924}
  117. {"asset": "DAI", "free": 496.25, "locked": 0, "wallet": 0, "update_time": 1730886522924}
  118.  
  119. {"symbol": "HCDAI", "tick": "2000"}
  120. {"symbol": "HCDAI", "tick": "2000"}
  121. {"symbol": "HCDAI", "tick": "2000"}
  122. {"symbol": "HCDAI", "tick": "2000"}
  123. {"symbol": "HCDAI", "tick": "2000"}
  124.  
  125. stream = onMyForceDexOrdersUpdated
  126.  
  127. _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245318", "status": "CLOSED", "quantity": "65000000000000000000", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "1000000000000000000000000", "id": "56ccad54-85c7-4a19-81c7-a3ab8a7454a7", "type": "MARKET", "orderNumber": "904575", "direction": "BID", "initialQuantity": "65000000000000000000", "createdAt": "2024-11-06T09:48:22.000Z"}}
  128. feed_piece {"userId": "1245318", "status": "CLOSED", "quantity": "65000000000000000000", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "1000000000000000000000000", "id": "1730886491054003", "type": "MARKET", "orderNumber": "904575", "direction": "BID", "initialQuantity": "65000000000000000000", "createdAt": "2024-11-06T09:48:22.000Z"} for event ACCOUNT_ORDER
  129. stream == e_stream::ACCOUNT_ORDER
  130. _fill_order 0/65000000000000000000/BUY 17059178135423184753
  131. WebSocketEvent: delta=1.73089e+11, event_time=1730886502000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337059104, "order": {"symbol": "HCDAI", "coid": 17059178135423184753, {"dex_order_id": "904575", "order_id": "1730886491054003", "type": "MARKET", "side": "BUY", "status": "CLOSED", "price": 1000000.000000, "quantity": 65.000000, "filled_quantity": 0.000000, "update_time": 1730886502000}}
  132. [ 2024-11-06-09-48-52 ] INFO Execution::_process: WebSocketEvent: delta=1.73089e+11, event_time=1730886502000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337059104, "order": {"symbol": "HCDAI", "coid": 17059178135423184753, {"dex_order_id": "904575", "order_id": "1730886491054003", "type": "MARKET", "side": "BUY", "status": "CLOSED", "price": 1000000.000000, "quantity": 65.000000, "filled_quantity": 0.000000, "update_time": 1730886502000}}
  133. [ 2024-11-06-09-48-52 ] MESSAGE: market
  134. [ 2024-11-06-09-48-52 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 17059178135423184753, {"dex_order_id": "904575", "order_id": "1730886491054003", "type": "MARKET", "side": "BUY", "status": "CLOSED", "price": 1000000.000000, "quantity": 65.000000, "filled_quantity": 0.000000, "update_time": 1730886502000}
  135. old_it != cur_storage.end()
  136. [ 2024-11-06-09-48-52 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 17059178135423184753, {"dex_order_id": "0", "order_id": "", "type": "MARKET", "side": "BUY", "status": "PENDING", "quantity": 65.000000, "update_time": 0}
  137. [ 2024-11-06-09-48-52 ] MESSAGE: ! HCDAI
  138.  
  139. stream = onMyForceDexOrdersUpdated
  140.  
  141. _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245318", "status": "CLOSED", "quantity": "0", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "1000000000000000000000000", "id": "56ccad54-85c7-4a19-81c7-a3ab8a7454a7", "type": "MARKET", "orderNumber": "904575", "direction": "BID", "initialQuantity": "65000000000000000000", "createdAt": "2024-11-06T09:48:22.000Z"}}
  142. feed_piece {"userId": "1245318", "status": "CLOSED", "quantity": "0", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "1000000000000000000000000", "id": "1730886491054003", "type": "MARKET", "orderNumber": "904575", "direction": "BID", "initialQuantity": "65000000000000000000", "createdAt": "2024-11-06T09:48:22.000Z"} for event ACCOUNT_ORDER
  143. stream == e_stream::ACCOUNT_ORDER
  144. _fill_order 0/65000000000000000000/BUY 17059178135423184753
  145. WebSocketEvent: delta=1.73089e+11, event_time=1730886502000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337059104, "order": {"symbol": "HCDAI", "coid": 17059178135423184753, {"dex_order_id": "904575", "order_id": "1730886491054003", "type": "MARKET", "side": "BUY", "status": "CLOSED", "price": 1000000.000000, "quantity": 65.000000, "filled_quantity": 65.000000, "update_time": 1730886502000}}
  146. [ 2024-11-06-09-48-52 ] INFO Execution::_process: WebSocketEvent: delta=1.73089e+11, event_time=1730886502000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337059104, "order": {"symbol": "HCDAI", "coid": 17059178135423184753, {"dex_order_id": "904575", "order_id": "1730886491054003", "type": "MARKET", "side": "BUY", "status": "CLOSED", "price": 1000000.000000, "quantity": 65.000000, "filled_quantity": 65.000000, "update_time": 1730886502000}}
  147. [ 2024-11-06-09-48-52 ] MESSAGE: market
  148. [ 2024-11-06-09-48-52 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 17059178135423184753, {"dex_order_id": "904575", "order_id": "1730886491054003", "type": "MARKET", "side": "BUY", "status": "CLOSED", "price": 1000000.000000, "quantity": 65.000000, "filled_quantity": 65.000000, "update_time": 1730886502000}
  149. old_it != cur_storage.end()
  150. [ 2024-11-06-09-48-52 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 17059178135423184753, {"dex_order_id": "904575", "order_id": "1730886491054003", "type": "MARKET", "side": "BUY", "status": "CLOSED", "price": 1000000.000000, "quantity": 65.000000, "filled_quantity": 0.000000, "update_time": 1730886502000}
  151. $$$ {"symbol": "HCDAI", "price": 1000000.000000, "quantity": 65.000000, "trade_side": BUY, "trade_time": 1730886502000}
  152. open_position for order
  153. [ 2024-11-06-09-48-52 ] INFO Open position: : {"symbol": "HCDAI", "price": 1000000.000000, "quantity": 65.000000, "trade_side": BUY, "trade_time": 1730886502000}
  154. [ 2024-11-06-09-48-52 ] INFO new position: {"symbol": "HCDAI", "entry_price": 1e+06, "quantity": 65, "position_quote": 6.5e+07}
  155. [ 2024-11-06-09-48-52 ] MESSAGE: erase
  156. [ 2024-11-06-09-48-52 ] MESSAGE: ! HCDAI
  157. {"symbol": "HCDAI", "tick": "2000"}
  158. getBalance {"token_name": "DAI", "error": "ok", "balance": "0"}
  159. balanceOf {"token_name": "DAI", "error": "ok", "balance": "496250000000000000000"}
  160.  
  161. stream = onForceDexOrdersBookUpdated
  162.  
  163. getBalance {"token_name": "HC", "error": "ok", "balance": "0"}
  164. balanceOf {"token_name": "HC", "error": "ok", "balance": "64870000000000000000"}
  165. {"asset": "HC", "free": 64.87, "locked": 0, "wallet": 0, "update_time": 1730886533639}
  166. {"asset": "DAI", "free": 496.25, "locked": 0, "wallet": 0, "update_time": 1730886533639}
  167.  
  168. {"symbol": "HCDAI", "tick": "2000"}
  169. {"symbol": "HCDAI", "tick": "2000"}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement