Advertisement
den4ik2003

Untitled

Nov 8th, 2024
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.44 KB | None | 0 0
  1. warning: File "/usr/local/go/src/runtime/runtime-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
  2. [New Thread 0x7ffff5a00640 (LWP 719355)]
  3. [New Thread 0x7fffede00640 (LWP 719356)]
  4. [New Thread 0x7fffed400640 (LWP 719357)]
  5. [New Thread 0x7fff9fe00640 (LWP 719359)]
  6. [New Thread 0x7fffeca00640 (LWP 719358)]
  7. [New Thread 0x7fff9f400640 (LWP 719360)]
  8. [New Thread 0x7fff9ea00640 (LWP 719361)]
  9. [New Thread 0x7fff9e000640 (LWP 719362)]
  10. 2024/11/08 13:58:58 init Nonce: 32
  11. 2024/11/08 13:58:58 bind contract 0x6b965968fbc6ff0d2ed7cb1cb38c1c1bbe0327b4
  12. 2024/11/08 13:58:58 bind contract 0x1a9f5fd1b36f8d1e03f0ff6eabbbb268f053033e
  13. 2024/11/08 13:58:58 bind contract 0x6fcb55c09671bd0d28b5a0e9d303793ac005f19c
  14. 2024/11/08 13:58:58 bind contract 0x762d3d096b9a74f4d3adf2b0824456ef8fce5daa
  15. 2024/11/08 13:58:58 bind contract 0x8f3cf7ad23cd3cadbd9735aff958023239c6a063
  16. 2024/11/08 13:58:58 bind contract 0x0000000000000000000000000000000000001010
  17. [New Thread 0x7ffff4800640 (LWP 719374)]
  18. {"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-08T13:58:53.675Z", "txHash": "0x306571d8352b418b85a88243349ea726074e68360603982196c46eeff8dbc9e0", "address": "0x6b965968fbc6ff0d2ed7cb1cb38c1c1bbe0327b4", "lastSyncedBlock": "64036937", "id": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "quoteAsset": "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063", "symbol": "HCDAI"}
  19. {"userId": "1245312", "error": "ok"}
  20. user_id: 1245312
  21. authentification was completed
  22. API 0x55555596efd0
  23. run forever balance 0x55555596efd0
  24. {"type": "DEX", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "MATIC", "free": 2.24087, "locked": 0, "wallet": 0, "update_time": 1731074340704}, {"asset": "HC", "free": 376.416, "locked": 0, "wallet": 0, "update_time": 1731074340704}, {"asset": "DAI", "free": 2919.62, "locked": 0, "wallet": 0, "update_time": 1731074340704}]}
  25. [New Thread 0x7fff9d600640 (LWP 719382)]
  26. get balance indicator 0x55555596f170
  27. trader {"symbol": "HCDAI", "account": "MFS_1", "market": "MFS_DEX", "logger": {"severity_level": "DEBUG"}, "execution": {"print_ws_events": "1", "cancel_on_start": "0", "timeout": "16000"}, "data": {"print_ws_events": "0", "use_part_depth": "true", "events": ["ORDER_BOOK"]}}
  28. >:)
  29. auth token: eyJhbG
  30. get_open_orders_wrapper::request_filler
  31. auth token: eyJhbG
  32. _fill_order 6300000000000000000/23171400000000000000/BUY 5439221958491864869
  33. already opened {"symbol": "HCDAI", "coid": 5439221958491864869, {"dex_order_id": "927367", "order_id": "f0b26900-fb08-4a8d-825b-08696efa45f8", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 6.300000, "quantity": 23.171400, "filled_quantity": 0.000000, "update_time": 1731074078000}
  34. [New Thread 0x7fff9cc00640 (LWP 719383)]
  35. Execution was constructed
  36. Trader was created
  37. [New Thread 0x7fff8fe00640 (LWP 719384)]
  38. [New Thread 0x7fff8f400640 (LWP 719385)]
  39. subscription stream: ACCOUNT_BALANCE
  40. no account balance subscription
  41. subscription stream: PART_DEPTH
  42. subscription stream: ACCOUNT_ORDER
  43. subscription stream: ACCOUNT_TRADE
  44. [New Thread 0x7fff8ea00640 (LWP 719386)]
  45. [New Thread 0x7fff8e000640 (LWP 719387)]
  46. {"asset": "MATIC", "free": 2.24087, "locked": 0, "wallet": 0, "update_time": 1731074341466}
  47. {"asset": "HC", "free": 376.416, "locked": 0, "wallet": 0, "update_time": 1731074341466}
  48. {"asset": "DAI", "free": 2919.62, "locked": 0, "wallet": 0, "update_time": 1731074341466}
  49.  
  50. {"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": "1731074341393002"}
  51. {"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": "1731074341393001"}
  52. feed.at("type").s() != ping{"type": "connection_ack"}
  53. feed.at("type").s() != ping{"type": "connection_ack"}
  54.  
  55. stream = onForceDexOrdersBookUpdated
  56.  
  57. [ 2024-11-08-13-59-07 ] MESSAGE: calculate orders mid price = 7.020000
  58. [ 2024-11-08-13-59-07 ] INFO base balance: {"asset": "HC", "free": 376.416, "locked": 0, "wallet": 0, "update_time": 1731074341466}
  59. [ 2024-11-08-13-59-07 ] INFO quote balance: {"asset": "DAI", "free": 2919.62, "locked": 0, "wallet": 0, "update_time": 1731074341466}
  60. [ 2024-11-08-13-59-07 ] MESSAGE: calculate and ticks 140
  61. [ 2024-11-08-13-59-07 ] MESSAGE: sell 7.720000 18.820785
  62. [ 2024-11-08-13-59-07 ] MESSAGE: buy 6.310000 23.134826
  63. [ 2024-11-08-13-59-07 ] INFO portfolio: OrderEvent: delta=1.73098e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.72, 18.8208); ], bids: [(6.31, 23.1348); ]
  64. [ 2024-11-08-13-59-07 ] MESSAGE: position quote: 0.000000max pos: 20.000000
  65. [ 2024-11-08-13-59-07 ] MESSAGE: max pos is not exceeded
  66. [ 2024-11-08-13-59-07 ] DEBUG overall risk checker res: OrderEvent: delta=1.73098e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.72, 18.8208); ], bids: [(6.31, 23.1348); ]
  67. [ 2024-11-08-13-59-07 ] INFO execution order event process: OrderEvent: delta=1.73098e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.72, 18.8208); ], bids: [(6.31, 23.1348); ]
  68. [ 2024-11-08-13-59-07 ] MESSAGE: LIMIT GRID
  69. [ 2024-11-08-13-59-07 ] DEBUG in _process_limit_grid: 7.72
  70. [ 2024-11-08-13-59-07 ] DEBUG in _process_limit_grid: 18.8208
  71. [ 2024-11-08-13-59-07 ] DEBUG in _process_limit_grid: 6.31
  72. [ 2024-11-08-13-59-07 ] DEBUG in _process_limit_grid: 23.1348
  73. [ 2024-11-08-13-59-07 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 6.310000, "quantity": 23.134800, "type": "LIMIT", "side": "BUY"}
  74. [ 2024-11-08-13-59-07 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 7.720000, "quantity": 18.820800, "type": "LIMIT", "side": "SELL"}
  75. [ 2024-11-08-13-59-07 ] MESSAGE: csize: 1
  76. [New Thread 0x7fff8d600640 (LWP 719406)]
  77. index_order_id 6310000000000000000/23134800000000000000/BUY 5647907520329827670
  78. [ 2024-11-08-13-59-07 ] DEBUG ! cancel: {"symbol": "HCDAI", "coid": 5439221958491864869, {"dex_order_id": "927367", "order_id": "f0b26900-fb08-4a8d-825b-08696efa45f8", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 6.300000, "quantity": 23.171400, "filled_quantity": 0.000000[New Thread 0x7fff8cc00640 (LWP 719407)]
  79. , "update_time": 1731074078000}
  80. cancel_order_wrapper::execute
  81. index_order_id 7720000000000000000/18820800000000000000/SELL 15431391249033006881
  82. [ 2024-11-08-13-59-07 ] DEBUG ! new: {"symbol": "HCDAI", "price": 6.310000, "quantity": 23.134800, "client_order_id": 5647907520329827670, "type": "LIMIT", "side": "BUY"}
  83. ! new api API 0x55555596efd0
  84. order_request_t {"symbol": "HCDAI", "price": 6.310000, "quantity": 23.134800, "client_order_id": 5647907520329827670, "type": "LIMIT", "side": "BUY"}
  85. 2024/11/08 13:59:07 extends args: {}
  86. 2024/11/08 13:59:07 args: {"orderId": "927367"}
  87. 2024/11/08 13:59:07 waiting time: 0 ; net timeout after waiting = 120000 ms
  88. quantity 231348
  89. [New Thread 0x7fff83e00640 (LWP 719408)]
  90. new_order_wrapper::execute
  91. {"ext_params": {"timeout": "16000", "priority": "0"}, "params": {"quantity": "23134800000000000000", "price": "6310000000000000000", "orderType": "0", "isBid": "true"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
  92. [ 2024-11-08-13-59-07 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.720000, "quantity": 18.820800, "client_order_id": 15431391249033006881, "type": "LIMIT", "side": "SELL"}2024/11/08 13:59:07 extends args: {"timeout": "16000", "priority": "0"}
  93.  
  94. 2024/11/08 13:59:07 args: {"quantity": "23134800000000000000", "price": "6310000000000000000", "orderType": "0", "isBid": "true"}
  95. ! new api API 0x55555596efd0
  96. order_request_t {"symbol": "HCDAI", "price": 7.720000, "quantity": 18.820800, "client_order_id": 15431391249033006881, "type": "LIMIT", "side": "SELL"}
  97. quantity 188208
  98. new_order_wrapper::execute
  99. {"ext_params": {"timeout": "16000", "priority": "0"}, "params": {"quantity": "18820800000000000000", "price": "7720000000000000000", "orderType": "0", "isBid": "false"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
  100. 2024/11/08 13:59:07 extends args: {"timeout": "16000", "priority": "0"}
  101. 2024/11/08 13:59:07 args: {"quantity": "18820800000000000000", "price": "7720000000000000000", "orderType": "0", "isBid": "false"}
  102. 2024/11/08 13:59:08 nonce: 32
  103. 2024/11/08 13:59:08 gas price = 63129089586
  104. 2024/11/08 13:59:08 TX Hash: 0x4ede5b10d0c30ca562e11cbecabc15abe550967712567fde4c9d542fc46e75f0 ; Nonce: 32
  105. [Thread 0x7ffff4800640 (LWP 719374) exited]
  106. {"asset": "MATIC", "free": 2.24087, "locked": 0, "wallet": 0, "update_time": 1731074352229}
  107. {"asset": "HC", "free": 376.416, "locked": 0, "wallet": 0, "update_time": 1731074352229}
  108. {"asset": "DAI", "free": 2919.62, "locked": 0, "wallet": 0, "update_time": 1731074352229}
  109.  
  110.  
  111. stream = onForceDexOrdersBookUpdated
  112.  
  113. {"asset": "MATIC", "free": 2.24087, "locked": 0, "wallet": 0, "update_time": 1731074362990}
  114. {"asset": "HC", "free": 376.416, "locked": 0, "wallet": 0, "update_time": 1731074362990}
  115. {"asset": "DAI", "free": 2919.62, "locked": 0, "wallet": 0, "update_time": 1731074362990}
  116.  
  117.  
  118. stream = onForceDexOrdersBookUpdated
  119.  
  120. {"asset": "MATIC", "free": 2.24087, "locked": 0, "wallet": 0, "update_time": 1731074373810}
  121. {"asset": "HC", "free": 376.416, "locked": 0, "wallet": 0, "update_time": 1731074373810}
  122. {"asset": "DAI", "free": 2919.62, "locked": 0, "wallet": 0, "update_time": 1731074373810}
  123.  
  124.  
  125. stream = onForceDexOrdersBookUpdated
  126.  
  127. {"asset": "MATIC", "free": 2.24087, "locked": 0, "wallet": 0, "update_time": 1731074384587}
  128. {"asset": "HC", "free": 376.416, "locked": 0, "wallet": 0, "update_time": 1731074384587}
  129. {"asset": "DAI", "free": 2919.62, "locked": 0, "wallet": 0, "update_time": 1731074384587}
  130.  
  131. {"asset": "MATIC", "free": 2.24087, "locked": 0, "wallet": 0, "update_time": 1731074395348}
  132. {"asset": "HC", "free": 376.416, "locked": 0, "wallet": 0, "update_time": 1731074395348}
  133. {"asset": "DAI", "free": 2919.62, "locked": 0, "wallet": 0, "update_time": 1731074395348}
  134.  
  135.  
  136. stream = onForceDexOrdersBookUpdated
  137.  
  138. {"asset": "MATIC", "free": 2.24087, "locked": 0, "wallet": 0, "update_time": 1731074406129}
  139. {"asset": "HC", "free": 376.416, "locked": 0, "wallet": 0, "update_time": 1731074406129}
  140. {"asset": "DAI", "free": 2919.62, "locked": 0, "wallet": 0, "update_time": 1731074406129}
  141.  
  142. {"asset": "MATIC", "free": 2.24087, "locked": 0, "wallet": 0, "update_time": 1731074416895}
  143. {"asset": "HC", "free": 376.416, "locked": 0, "wallet": 0, "update_time": 1731074416895}
  144. {"asset": "DAI", "free": 2919.62, "locked": 0, "wallet": 0, "update_time": 1731074416895}
  145.  
  146.  
  147. stream = onForceDexOrdersBookUpdated
  148.  
  149. ^C
  150. Thread 1 "test" received signal SIGINT, Interrupt.
  151. __futex_abstimed_wait_common64 (private=128, cancel=true, abstime=0x0, op=265, expected=719384, futex_word=0x7fff8fe00910) at ./nptl/futex-internal.c:57
  152. 57 ./nptl/futex-internal.c: No such file or directory.
  153. (gdb)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement