Advertisement
den4ik2003

Untitled

Dec 17th, 2024
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.61 KB | None | 0 0
  1. Copyright (C) 2022 Free Software Foundation, Inc.
  2. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  3. This is free software: you are free to change and redistribute it.
  4. There is NO WARRANTY, to the extent permitted by law.
  5. Type "show copying" and "show warranty" for details.
  6. This GDB was configured as "x86_64-linux-gnu".
  7. Type "show configuration" for configuration details.
  8. For bug reporting instructions, please see:
  9. <https://www.gnu.org/software/gdb/bugs/>.
  10. Find the GDB manual and other documentation resources online at:
  11. <http://www.gnu.org/software/gdb/documentation/>.
  12.  
  13. For help, type "help".
  14. Type "apropos word" to search for commands related to "word"...
  15. Reading symbols from ./test...
  16. (gdb) run mm/launch.config
  17. Starting program: /home/ubuntu/dmm_strat/solutions/test/test mm/launch.config
  18. [Thread debugging using libthread_db enabled]
  19. Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
  20. market: BITMART_SPOT
  21. market: MEXC_SPOT
  22. market: MFS_DEX
  23. {"params": [{"target_price": "0.0082", "quote_refund_fond": "10", "offset_base": "21610", "offset_quote": "56.5031", "zero_base": "21678", "zones": [{"side": "BUY", "quantity_step": "0", "total": "15", "protection": "false", "n_levels": "2", "bound": "200"}, {"side": "SELL", "quantity_step": "0", "total": "2000", "protection": "false", "n_levels": "2", "bound": "200"}], "price_step": "500", "zero_quote": "104.1822", "spread_size": "100"}], "target_exchange": {"market": "MEXC_SPOT", "is_external_market": "false"}, "pricing_mode": "by_mid_price", "cooldown": "10000", "init_spread_size": "200"}
  24. converts_ size: 3
  25. api keys: mx0vglRsnmcTEgpmkD ef47dd75fb8b41eebf145056dc98032fthis = 0x555555958930
  26. [New Thread 0x7ffff6800640 (LWP 1967161)]
  27. [New Thread 0x7ffff6400640 (LWP 1967162)]
  28. API 0x555555958930
  29. run forever balance 0x555555958930
  30. SIGN https://api.mexc.com/api/v3/account?recvWindow=5000&timestamp=1734430573989&signature=23ccc5597b615daa50ceaf31829bf010dc056305fe68392e8ad526530d0287e8
  31. {"type": "SPOT", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "PNK", "free": 0.02, "locked": 0, "wallet": 0, "update_time": 0}, {"asset": "ORDITT", "free": 288.29, "locked": 0, "wallet": 0, "update_time": 0}, {"asset": "LAI", "free": 7061.78, "locked": 0, "wallet": 0, "update_time": 0}, {"asset": "MCC", "free": 54153.6, "locked": 0, "wallet": 0, "update_time": 0}, {"asset": "LOTT", "free": 19612, "locked": 1998, "wallet": 0, "update_time": 0}, {"asset": "ABDS", "free": 110, "locked": 0, "wallet": 0, "update_time": 0}, {"asset": "USDT", "free": 51.5007, "locked": 15.0025, "wallet": 0, "update_time": 0}]}
  32. [New Thread 0x7ffff6000640 (LWP 1967163)]
  33. SIGN https://api.mexc.com/api/v3/account?recvWindow=5000&timestamp=1734430574043&signature=7534bb6ea8e89629ab45a4a503251234544d6b1d2400a57a19cff751aa961f52
  34. get balance indicator 0x555555958ad0
  35. ***
  36. /mnt/logs/MEXC_SPOT-LOTTUSDT-NEW_MM_TRADER-2024-12-17-10-16-14.log
  37. ***
  38. trader {"symbol": "LOTTUSDT", "account": "TEST_1", "market": "MEXC_SPOT", "logger": {"log_file": "NEW_MM_TRADER", "severity_level": "DEBUG"}, "execution": {"print_ws_events": "1", "cancel_on_start": "0"}, "data": {"print_ws_events": "0", "use_part_depth": "true", "events": ["ORDER_BOOK"]}}
  39. >:)
  40. {"asset": "PNK", "free": 0.02, "locked": 0, "wallet": 0, "update_time": 0}
  41. {"asset": "ORDITT", "free": 288.29, "locked": 0, "wallet": 0, "update_time": 0}
  42. {"asset": "LAI", "free": 7061.78, "locked": 0, "wallet": 0, "update_time": 0}
  43. {"asset": "MCC", "free": 54153.6, "locked": 0, "wallet": 0, "update_time": 0}
  44. {"asset": "LOTT", "free": 19612, "locked": 1998, "wallet": 0, "update_time": 0}
  45. {"asset": "ABDS", "free": 110, "locked": 0, "wallet": 0, "update_time": 0}
  46. {"asset": "USDT", "free": 51.5007, "locked": 15.0025, "wallet": 0, "update_time": 0}
  47.  
  48. SIGN https://api.mexc.com/api/v3/openOrders?recvWindow=5000&symbol=LOTTUSDT&timestamp=1734430574113&signature=1c162e3f4f26bdb200e7b4226d585af3accb74ca900e52fc464415bd213fa90b
  49. already opened {"symbol": "LOTTUSDT", "coid": 1734424892946, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008230, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 1734430574170}
  50. already opened {"symbol": "LOTTUSDT", "coid": 1734424892944, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.007987, "quantity": 939.000000, "filled_quantity": 0.000000, "update_time": 1734430574170}
  51. already opened {"symbol": "LOTTUSDT", "coid": 1734424892943, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.008068, "quantity": 929.000000, "filled_quantity": 0.000000, "update_time": 1734430574170}
  52. already opened {"symbol": "LOTTUSDT", "coid": 1734424892945, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008149, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 1734430574171}
  53. [New Thread 0x7ffff5600640 (LWP 1967165)]
  54. Execution was constructed
  55. Trader was created
  56. found target exchange symbol: 0x555555be31f8
  57. zone with bound: 200
  58. zone side: SELL
  59. quantity 0 : 1000
  60. quantity 1 : 1000
  61. price offset 0 : 50
  62. price offset 1 : 150
  63.  
  64. zone with bound: 200
  65. zone side: BUY
  66. quantity 0 : 7.5
  67. quantity 1 : 7.5
  68. price offset 0 : 50
  69. price offset 1 : 150
  70.  
  71. market ask zones: 1
  72. market bid zones: 1
  73.  
  74. init mid price = 0.0081085
  75. params size: 1
  76. ok
  77. [New Thread 0x7ffff4c00640 (LWP 1967166)]
  78. [New Thread 0x7fffefe00640 (LWP 1967167)]
  79. SIGN https://api.mexc.com/api/v3/userDataStream?recvWindow=5000&timestamp=1734430574173&signature=1bb67beff43f646e8361ab1785abee753f52f6554c0ebdd1c0fa29d24852a308
  80. [New Thread 0x7fffef400640 (LWP 1967174)]
  81. {"params": ["spot@private.account.v3.api", "spot@public.limit.depth.v3.api@LOTTUSDT@20", "spot@private.orders.v3.api", "spot@private.deals.v3.api"], "method": "SUBSCRIPTION"}
  82. Market: MEXC_SPOT
  83. refund_remain_quote: 10
  84. refund_remain_base: 0
  85. [ 2024-12-17-10-16-17 ] DEBUG base balance: {"asset": "LOTT", "free": 19612, "locked": 1998, "wallet": 0, "update_time": 0}
  86. [ 2024-12-17-10-16-17 ] DEBUG quote balance: {"asset": "USDT", "free": 51.5007, "locked": 15.0025, "wallet": 0, "update_time": 0}
  87. config.zero_quote - quote_balance: 47.6791
  88. base_balance - config.zero_base: -68.05
  89. ask_bound: 0.0081085
  90. bid_bound: 0.0081085
  91. quote_position: 47.6791
  92. config.offset_quote - quote_balance: -1.47222e-05
  93. BUY usage coeff = 1
  94. base_position: 68.05
  95. config.offset_base - base_balance: 0.05
  96. SELL usage coeff = 0.999975
  97. [ 2024-12-17-10-16-17 ] DEBUG strategy calculated orders: OrderEvent: delta=1.73434e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.00823013, 999.975); (0.00814904, 999.975); ], bids: [(0.00798687, 939.041); (0.00806796, 929.603); ]
  98. MEXC_SPOT book {"ask_price": 0.008126, "ask_quantity": 4492.92, "bid_price": 0, "bid_quantity": 0}
  99. MEXC_SPOT grid OrderEvent: delta=1.73434e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.00823013, 999.975); (0.00814904, 999.975); ], bids: [(0.00798687, 939.041); (0.00806796, 929.603); ]
  100. min_bid: 1e+09
  101. max_ask: 0
  102. MEXC_SPOT grid before OrderEvent: delta=1.73434e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.00823013, 999.975); (0.00814904, 999.975); ], bids: [(0.00798687, 939.041); (0.00806796, 929.603); ]
  103. MEXC_SPOT grid after OrderEvent: delta=1.73434e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.00823013, 999.975); (0.00814904, 999.975); ], bids: [(0.00798687, 939.041); (0.00806796, 929.603); ]
  104. MEXC_SPOT new order OrderEvent: delta=1.73429e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.00823013, 999.975); (0.00814904, 999.975); ], bids: [(0.00798687, 939.041); (0.00806796, 929.603); ]
  105. Vector size: 1
  106. single res OrderEvent: delta=1.73429e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.00823013, 999.975); (0.00814904, 999.975); ], bids: [(0.00798687, 939.041); (0.00806796, 929.603); ]
  107. [ 2024-12-17-10-16-17 ] INFO portfolio: OrderEvent: delta=1.73429e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.00823013, 999.975); (0.00814904, 999.975); ], bids: [(0.00798687, 939.041); (0.00806796, 929.603); ]
  108. execution to cancel: id: 1734424892945 dex id = 0 p = 0.008149 q = 999.000000
  109. execution to cancel: id: 1734424892943 dex id = 0 p = 0.008068 q = 929.000000
  110. execution to cancel: id: 1734424892944 dex id = 0 p = 0.007987 q = 939.000000
  111. execution to cancel: id: 1734424892946 dex id = 0 p = 0.008230 q = 999.000000
  112. [New Thread 0x7fffeea00640 (LWP 1967199)]
  113. 1734430577547
  114. delete mexc execute: {"timestamp": "1734430577547", "recvWindow": "5000", "origClientOrderId": "1734424892945", "symbol": "LOTTUSDT"}
  115. [New Thread 0x7fffee000640 (LWP 1967200)]
  116. SIGN https://api.mexc.com/api/v3/order?origClientOrderId=1734424892945&recvWindow=5000&symbol=LOTTUSDT&timestamp=1734430577547&signature=cd35269599c2190521a96283ecb222c8e44f3ad11f2b9b780205ed26f23ea07c
  117. 1734430577547
  118. delete mexc execute: {"timestamp": "1734430577547", "recvWindow": "5000", "origClientOrderId": "1734424892943", "symbol": "LOTTUSDT"}
  119. [New Thread 0x7fffed600640 (LWP 1967201)]
  120. SIGN https://api.mexc.com/api/v3/order?origClientOrderId=1734424892943&recvWindow=5000&symbol=LOTTUSDT&timestamp=1734430577547&signature=de4726fdc148435b4e151a42f931a60039b08f220f25d407bd0e087b5c9adc33
  121. 1734430577547
  122. delete mexc execute: {"timestamp": "1734430577547", "recvWindow": "5000", "origClientOrderId": "1734424892944", "symbol": "LOTTUSDT"}
  123. SIGN [New Thread 0x7fffecc00640 (LWP 1967202)]
  124. https://api.mexc.com/api/v3/order?origClientOrderId=1734424892944&recvWindow=5000&symbol=LOTTUSDT&timestamp=1734430577547&signature=1946d4a4ce572a15017737e39f4fc89685ff2ac11068cbb4de9454092a597ed3
  125. 1734430577548
  126. delete mexc execute: {"timestamp": "1734430577548", "recvWindow": "5000", "origClientOrderId": "1734424892946", "symbol": "LOTTUSDT"}
  127. SIGN https://api.mexc.com/api/v3/order[New Thread 0x7fffe3e00640 (LWP 1967203)]
  128. ?origClientOrderId=1734424892946&recvWindow=5000&symbol=LOTTUSDT&timestamp=1734430577548&signature=aa112cb5cf0c06b32999e92cb27eedf2d6519374ac5805d05a83ef4911db8e13
  129. ! new api API 0x555555958930
  130. new request mexc: {"newClientOrderId": "1734430574114", "quantity": "929", "price": "0.008068", "side": "BUY", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
  131. [New Thread 0x7fffe3400640 (LWP 1967204)]
  132. 1734430577548
  133. post mexc execute: {"timestamp": "1734430577548", "recvWindow": "5000", "newClientOrderId": "1734430574114", "quantity": "929", "price": "0.008068", "side": "BUY", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
  134. ! new api API 0x555555958930
  135. new request mexc: {"newClientOrderId": "1734430574115", "quantity": "939", "price": "0.007987", "side": "BUY", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
  136. SIGN https://api.mexc.com/api/v3/order?1734430577548
  137. post mexc execute: newClientOrderId=1734430574114&price=0.008068&quantity=929&recvWindow=5000&side=BUY&symbol=LOTTUSDT&timestamp=1734430577548&type=LIMIT_MAKER&signature=dabf1704a6af7e18c95dd6563a7ab91f008b4615e28d32034a1300953f01d79a
  138. {"timestamp": "1734430577548", "recvWindow": "5000", "newClientOrderId": "1734430574115", "quantity": "939", "price": "0.007987", "side": "BUY", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
  139. SIGN https://api.mexc.com/api/v3/order?newClientOrderId=1734430574115&price=0.007987&quantity=939&recvWindow=5000&side=BUY&symbol=LOTTUSDT&timestamp=1734430577548&type=LIMIT_MAKER&signature=8bc27dcb6464f58732dd6f61d6e045aa91843cdc2b84e50bcd157fd0a4a2a03a
  140. [New Thread 0x7fffe2600640 (LWP 1967206)]
  141. [New Thread 0x7fffe2a00640 (LWP 1967205)]
  142. ! new api API 0x555555958930
  143. new request mexc: {"newClientOrderId": "1734430574116", "quantity": "999", "price": "0.008149", "side": "SELL", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
  144. 1734430577549
  145. post mexc execute: {"timestamp": "1734430577549", "recvWindow": "5000", "newClientOrderId": "1734430574116", "quantity": "999", "price": "0.008149", "side": "SELL", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
  146. [New Thread 0x7fffe1c00640 (LWP 1967207)]
  147. [New Thread 0x7fffe1200640 (LWP 1967208)]
  148. SIGN https://api.mexc.com/api/v3/order?newClientOrderId=1734430574116&price=0.008149&quantity=999&recvWindow=5000&side=SELL&symbol=LOTTUSDT&timestamp=1734430577549&type=LIMIT_MAKER&signature=70fc49a22b86da60e7cf1daf6714daa73380aaac1cc85c0d09b88ee2f533dae6
  149. ! new api API 0x555555958930
  150. new request mexc: {"newClientOrderId": "1734430574117", "quantity": "999", "price": "0.008230", "side": "SELL", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
  151. 1734430577550
  152. post mexc execute: [New Thread 0x7fffe0e00640 (LWP 1967209)]
  153. {"timestamp": "1734430577550", "recvWindow": "5000", "newClientOrderId": "1734430574117", "quantity": "999", "price": "0.008230", "side": "SELL", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
  154. SIGN https://api.mexc.com/api/v3/order?newClientOrderId=1734430574117&price=0.008230&quantity=999&recvWindow=5000&side=SELL&symbol=LOTTUSDT&timestamp=1734430577550&type=LIMIT_MAKER&signature=47c87bbf8f6c25ced76e0dbb13a7951adabfa23a045a635595a5cab056496fd4
  155. [New Thread 0x7fffe0a00640 (LWP 1967210)]
  156. [New Thread 0x7fffe0600640 (LWP 1967211)]
  157. [Thread 0x7fffeea00640 (LWP 1967199) exited]
  158. stream == e_stream::ACCOUNT_ORDER
  159. WebSocketEvent: delta=1.73443e+11, event_time=1734430577574", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734424892945, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.008149, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}}
  160. old_it != cur_storage.end()
  161. [ 2024-12-17-10-16-17 ] MESSAGE: ! LOTTUSDT
  162. [Thread 0x7fffecc00640 (LWP 1967202) exited]
  163. stream == e_stream::ACCOUNT_ORDER
  164. WebSocketEvent: delta=1.73443e+11, event_time=1734430577578", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734424892943, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 0.008068, "quantity": 929.000000, "filled_quantity": 0.000000, "update_time": 0}}
  165. old_it != cur_storage.end()
  166. [ 2024-12-17-10-16-17 ] MESSAGE: ! LOTTUSDT
  167. stream == e_stream::ACCOUNT_ORDER
  168. WebSocketEvent: delta=1.73443e+11, event_time=1734430577590", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734424892946, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.008230, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}}
  169. old_it != cur_storage.end()
  170. [ 2024-12-17-10-16-17 ] MESSAGE: ! LOTTUSDT
  171. [Thread 0x7fffed600640 (LWP 1967201) exited]
  172. stream == e_stream::ACCOUNT_ORDER
  173. WebSocketEvent: delta=1.73443e+11, event_time=1734430577599", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734424892944, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 0.007987, "quantity": 939.000000, "filled_quantity": 0.000000, "update_time": 0}}
  174. old_it != cur_storage.end()
  175. [ 2024-12-17-10-16-17 ] MESSAGE: ! LOTTUSDT
  176. [Thread 0x7fffee000640 (LWP 1967200) exited]
  177. [Thread 0x7fffe2600640 (LWP 1967206) exited]
  178. [Thread 0x7fffe1c00640 (LWP 1967207) exited]
  179. [Thread 0x7fffe3400640 (LWP 1967204) exited]
  180. stream == e_stream::ACCOUNT_ORDER
  181. WebSocketEvent: delta=1.73443e+11, event_time=1734430577635", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734430574115, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.007987, "quantity": 939.000000, "filled_quantity": 0.000000, "update_time": 0}}
  182. old_it != cur_storage.end()
  183. [ 2024-12-17-10-16-17 ] MESSAGE: ! LOTTUSDT
  184. stream == e_stream::ACCOUNT_ORDER
  185. WebSocketEvent: delta=1.73443e+11, event_time=1734430577635", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734430574117, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008230, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}}
  186. old_it != cur_storage.end()
  187. [ 2024-12-17-10-16-17 ] MESSAGE: ! LOTTUSDT
  188. stream == e_stream::ACCOUNT_ORDER
  189. WebSocketEvent: delta=1.73443e+11, event_time=1734430577635", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734430574116, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008149, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}}
  190. old_it != cur_storage.end()
  191. [ 2024-12-17-10-16-17 ] MESSAGE: ! LOTTUSDT
  192. stream == e_stream::ACCOUNT_ORDER
  193. WebSocketEvent: delta=1.73443e+11, event_time=1734430577641", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734430574114, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.008068, "quantity": 929.000000, "filled_quantity": 0.000000, "update_time": 0}}
  194. old_it != cur_storage.end()
  195. [ 2024-12-17-10-16-17 ] MESSAGE: ! LOTTUSDT
  196. [Thread 0x7fffe3e00640 (LWP 1967203) exited]
  197. SIGN https://api.mexc.com/api/v3/account?recvWindow=5000&timestamp=1734430584074&signature=aa4c272bb0d35e2688eab56748033dd22c7e7938a157c61a1101221bec761c22
  198. {"asset": "PNK", "free": 0.02, "locked": 0, "wallet": 0, "update_time": 0}
  199. {"asset": "ORDITT", "free": 288.29, "locked": 0, "wallet": 0, "update_time": 0}
  200. {"asset": "LAI", "free": 7061.78, "locked": 0, "wallet": 0, "update_time": 0}
  201. {"asset": "MCC", "free": 54153.6, "locked": 0, "wallet": 0, "update_time": 0}
  202. {"asset": "LOTT", "free": 19612, "locked": 1998, "wallet": 0, "update_time": 0}
  203. {"asset": "ABDS", "free": 110, "locked": 0, "wallet": 0, "update_time": 0}
  204. {"asset": "USDT", "free": 51.5007, "locked": 15.0025, "wallet": 0, "update_time": 0}
  205.  
  206. [Thread 0x7fffe0600640 (LWP 1967211) exited]
  207. [Thread 0x7fffe2a00640 (LWP 1967205) exited]
  208. [Thread 0x7fffe0e00640 (LWP 1967209) exited]
  209. [Thread 0x7fffe1200640 (LWP 1967208) exited]
  210. [Thread 0x7fffe0a00640 (LWP 1967210) exited]
  211. [Thread 0x7ffff6400640 (LWP 1967162) exited]
  212. Market: MEXC_SPOT
  213. refund_remain_quote: 10
  214. refund_remain_base: 0
  215. [ 2024-12-17-10-16-28 ] DEBUG base balance: {"asset": "LOTT", "free": 19612, "locked": 1998, "wallet": 0, "update_time": 0}
  216. [ 2024-12-17-10-16-28 ] DEBUG quote balance: {"asset": "USDT", "free": 51.5007, "locked": 15.0025, "wallet": 0, "update_time": 0}
  217. config.zero_quote - quote_balance: 47.6791
  218. base_balance - config.zero_base: -68.05
  219. ask_bound: 0.0081085
  220. bid_bound: 0.0081085
  221. quote_position: 47.6791
  222. config.offset_quote - quote_balance: -1.47222e-05
  223. BUY usage coeff = 1
  224. base_position: 68.05
  225. config.offset_base - base_balance: 0.05
  226. SELL usage coeff = 0.999975
  227. [ 2024-12-17-10-16-28 ] DEBUG strategy calculated orders: OrderEvent: delta=1.73434e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.00823013, 999.975); (0.00814904, 999.975); ], bids: [(0.00798687, 939.041); (0.00806796, 929.603); ]
  228. MEXC_SPOT book {"ask_price": 0.008126, "ask_quantity": 4492.92, "bid_price": 0, "bid_quantity": 0}
  229. MEXC_SPOT grid OrderEvent: delta=1.73434e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.00823013, 999.975); (0.00814904, 999.975); ], bids: [(0.00798687, 939.041); (0.00806796, 929.603); ]
  230. min_bid: 1e+09
  231. max_ask: 0
  232. MEXC_SPOT grid before OrderEvent: delta=1.73434e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.00823013, 999.975); (0.00814904, 999.975); ], bids: [(0.00798687, 939.041); (0.00806796, 929.603); ]
  233. MEXC_SPOT grid after OrderEvent: delta=1.73434e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.00823013, 999.975); (0.00814904, 999.975); ], bids: [(0.00798687, 939.041); (0.00806796, 929.603); ]
  234. MEXC_SPOT new order OrderEvent: delta=1.73429e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.00823013, 999.975); (0.00814904, 999.975); ], bids: [(0.00798687, 939.041); (0.00806796, 929.603); ]
  235. Vector size: 1
  236. single res OrderEvent: delta=1.73429e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.00823013, 999.975); (0.00814904, 999.975); ], bids: [(0.00798687, 939.041); (0.00806796, 929.603); ]
  237. [ 2024-12-17-10-16-28 ] INFO portfolio: OrderEvent: delta=1.73429e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.00823013, 999.975); (0.00814904, 999.975); ], bids: [(0.00798687, 939.041); (0.00806796, 929.603); ]
  238. execution to cancel: id: 1734430574117 dex id = 0 p = 0.008230 q = 999.000000
  239. execution to cancel: id: 1734430574116 dex id = 0 p = 0.008149 q = 999.000000
  240. execution to cancel: id: 1734430574114 dex id = 0 p = 0.008068 q = 929.000000
  241. execution to cancel: id: 1734430574115 dex id = 0 p = 0.007987 q = 939.000000
  242. [New Thread 0x7fffe3e00640 (LWP 1967273)]
  243. 1734430588059
  244. delete mexc execute: {"timestamp": "1734430588059", "recvWindow": "5000", "origClientOrderId": "1734430574117", "symbol": "LOTTUSDT"}
  245. [New Thread 0x7fffe3400640 (LWP 1967274)]
  246. SIGN https://api.mexc.com/api/v3/order?origClientOrderId=1734430574117&recvWindow=5000&symbol=LOTTUSDT&timestamp=1734430588059&signature=a2e269fb76a8e423394a54c4d20f6acbee5c99eb7487fde9c62238feccfb4990
  247. 1734430588060
  248. delete mexc execute: {"timestamp": "1734430588060", "recvWindow": "5000", "origClientOrderId": "1734430574116", "symbol": "LOTTUSDT"}
  249. [New Thread 0x7fffe1c00640 (LWP 1967275)]
  250. SIGN https://api.mexc.com/api/v3/order?origClientOrderId=1734430574116&recvWindow=5000&symbol=LOTTUSDT&timestamp=1734430588060&signature=38506e9a9e3140153a05151914dd8737f0cf4262c130cc701e1754620d505bb6
  251. [New Thread 0x7fffeea00640 (LWP 1967276)]
  252. 1734430588060
  253. delete mexc execute: {"timestamp": "1734430588060", "recvWindow": "5000", "origClientOrderId": "1734430574114", "symbol": "LOTTUSDT"}
  254. SIGN https://api.mexc.com/api/v3/order?origClientOrderId=1734430574114&recvWindow=5000&symbol=LOTTUSDT&timestamp=1734430588060&signature=e9ca663229b47f484568befd8d3754b29ad28fefebd9fcd1262b6bc48cdec547
  255. 1734430588060
  256. delete mexc execute: {"timestamp": "1734430588060", "recvWindow": "5000", "origClientOrderId": "1734430574115", "symbol": "LOTTUSDT"}
  257. [New Thread 0x7fffee000640 (LWP 1967277)]
  258. SIGN https://api.mexc.com/api/v3/order?origClientOrderId=1734430574115&recvWindow=5000&symbol=LOTTUSDT&timestamp=1734430588060&signature=590196fc53500beb1649e0491eae57d376aacfa47ec2ceaa38d1ae3a93aec849
  259. ! new api API 0x555555958930
  260. new request mexc: {"newClientOrderId": "1734430574118", "quantity": "929", "price": "0.008068", "side": "BUY", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
  261. 1734430588060
  262. post mexc execute: {"timestamp": "1734430588060", "recvWindow": "5000", "newClientOrderId": "1734430574118", "quantity": "929", "price": "0.008068", "side": "BUY", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
  263. SIGN https://api.mexc.com/api/v3/order?newClientOrderId=1734430574118&price=0.008068&quantity=929&recvWindow=5000&side=BUY&symbol=LOTTUSDT&timestamp=1734430588060&type=LIMIT_MAKER&signature=16842b09844b639bbdfa7f697c70a7caf9fb5ec9cd1328bafd5a00285a676bdc
  264. [New Thread 0x7fffed600640 (LWP 1967278)]
  265. ! new api API 0x555555958930
  266. new request mexc: {"newClientOrderId": "1734430574119", "quantity": "939", "price": "0.007987", "side": "BUY", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
  267. 1734430588061
  268. post mexc execute: {"timestamp": "1734430588061", "recvWindow": "5000", "newClientOrderId": "1734430574119", "quantity": "939", "price": "0.007987", "side": "BUY", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
  269. [New Thread 0x7fffecc00640 (LWP 1967279)]
  270. ! new api API 0x555555958930
  271. SIGN new request mexc: https://api.mexc.com/api/v3/order?newClientOrderId=1734430574119&price=0.007987&quantity=939&recvWindow=5000&side=BUY&symbol=LOTTUSDT&timestamp=1734430588061&type=LIMIT_MAKER&signature=3b28ad0f5e527bece8f2cfd6d8663573d623d4abcdb6248bc08a49288e83429e{"newClientOrderId": "1734430574120", "quantity": "999", "price": "0.008149", "side": "SELL", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
  272.  
  273. 1734430588061
  274. post mexc execute: {"timestamp": "1734430588061", "recvWindow": "5000", "newClientOrderId": "1734430574120", "quantity": "999", "price": "0.008149", "side": "SELL", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}[New Thread 0x7fffe2600640 (LWP 1967280)]
  275.  
  276. ! new api API 0x555555958930
  277. new request mexc: SIGN https://api.mexc.com/api/v3/order?newClientOrderId=1734430574120&price=0.008149&quantity=999&recvWindow=5000&side=SELL&symbol=LOTTUSDT&timestamp=1734430588061&type=LIMIT_MAKER&signature=c905a7bd2d66414a10cbc057e92f1592440384ec8fe526d41dc97c5f2e93ff27
  278. {"newClientOrderId": "1734430574121", "quantity": "999", "price": "0.008230", "side": "SELL", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
  279. 1734430588062
  280. post mexc execute: {"timestamp": "1734430588062", "recvWindow": "5000", "newClientOrderId": "1734430574121", "quantity": "999", "price": "0.008230", "side": "SELL", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
  281. SIGN https://api.mexc.com/api/v3/order?newClientOrderId=1734430574121&price=0.008230&quantity=999&recvWindow=5000&side=SELL&symbol=LOTTUSDT&timestamp=1734430588062&type=LIMIT_MAKER&signature=eb6964475e78984313912bed7f5773d4bd052635032acdf3a8e80803d6a5a1b5
  282. [Thread 0x7fffeea00640 (LWP 1967276) exited]
  283. [Thread 0x7fffe1c00640 (LWP 1967275) exited]
  284. [Thread 0x7fffe3e00640 (LWP 1967273) exited]
  285. stream == e_stream::ACCOUNT_ORDER
  286. WebSocketEvent: delta=1.73443e+11, event_time=1734430588090", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734430574114, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 0.008068, "quantity": 929.000000, "filled_quantity": 0.000000, "update_time": 0}}
  287. old_it != cur_storage.end()
  288. [ 2024-12-17-10-16-28 ] MESSAGE: ! LOTTUSDT
  289. stream == e_stream::ACCOUNT_ORDER
  290. WebSocketEvent: delta=1.73443e+11, event_time=1734430588091", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734430574115, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 0.007987, "quantity": 939.000000, "filled_quantity": 0.000000, "update_time": 0}}
  291. old_it != cur_storage.end()
  292. [ 2024-12-17-10-16-28 ] MESSAGE: ! LOTTUSDT
  293. stream == e_stream::ACCOUNT_ORDER
  294. WebSocketEvent: delta=1.73443e+11, event_time=1734430588095", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734430574117, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.008230, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}}
  295. old_it != cur_storage.end()
  296. [ 2024-12-17-10-16-28 ] MESSAGE: ! LOTTUSDT
  297. [Thread 0x7fffed600640 (LWP 1967278) exited]
  298. [Thread 0x7fffe3400640 (LWP 1967274) exited]
  299. stream == e_stream::ACCOUNT_ORDER
  300. WebSocketEvent: delta=1.73443e+11, event_time=1734430588102", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734430574116, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.008149, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}}
  301. old_it != cur_storage.end()
  302. [ 2024-12-17-10-16-28 ] MESSAGE: ! LOTTUSDT
  303. [Thread 0x7fffee000640 (LWP 1967277) exited]
  304. [Thread 0x7fffe2600640 (LWP 1967280) exited]
  305. [Thread 0x7fffecc00640 (LWP 1967279) exited]
  306. stream == e_stream::ACCOUNT_ORDER
  307. WebSocketEvent: delta=1.73443e+11, event_time=1734430588115", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734430574119, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.007987, "quantity": 939.000000, "filled_quantity": 0.000000, "update_time": 0}}
  308. old_it != cur_storage.end()
  309. [ 2024-12-17-10-16-28 ] MESSAGE: ! LOTTUSDT
  310. stream == e_stream::ACCOUNT_ORDER
  311. WebSocketEvent: delta=1.73443e+11, event_time=1734430588120", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734430574121, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008230, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}}
  312. old_it != cur_storage.end()
  313. [ 2024-12-17-10-16-28 ] MESSAGE: ! LOTTUSDT
  314. stream == e_stream::ACCOUNT_ORDER
  315. WebSocketEvent: delta=1.73443e+11, event_time=1734430588130", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734430574118, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.008068, "quantity": 929.000000, "filled_quantity": 0.000000, "update_time": 0}}
  316. old_it != cur_storage.end()
  317. [ 2024-12-17-10-16-28 ] MESSAGE: ! LOTTUSDT
  318. stream == e_stream::ACCOUNT_ORDER
  319. WebSocketEvent: delta=1.73443e+11, event_time=1734430588130", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734430574120, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008149, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}}
  320. old_it != cur_storage.end()
  321. [ 2024-12-17-10-16-28 ] MESSAGE: ! LOTTUSDT
  322. ^C
  323. Thread 1 "test" received signal SIGINT, Interrupt.
  324. __futex_abstimed_wait_common64 (private=128, cancel=true, abstime=0x0, op=265, expected=1967166, futex_word=0x7ffff4c00910) at ./nptl/futex-internal.c:57
  325. 57 ./nptl/futex-internal.c: No such file or directory.
  326. (gdb)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement