Advertisement
den4ik2003

Untitled

Jan 27th, 2025
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 50.45 KB | None | 0 0
  1. add_parser: BINANCE_FUTURES
  2. add_parser: BITMART_SPOT
  3. add_parser: LBANK_SPOT
  4. add_parser: MEXC_SPOT
  5. /home/ubuntu/keys//lbank_spot/mm.account
  6. shared_parser: LBANK_SPOT
  7. has: BINANCE_FUTURES
  8. has: BITMART_SPOT
  9. has: LBANK_SPOT
  10. has: MEXC_SPOT
  11. [New Thread 0x7fffe2200640 (LWP 462674)]
  12. run forever balance 0x5555556a4e50
  13. {"type": "SPOT", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "usdt", "free": 6.23637, "locked": 44.9943, "update_time": 1737984138111}, {"asset": "lbk", "free": 247.95, "locked": 1800, "update_time": 1737984138111}]}
  14. [New Thread 0x7fffe1e00640 (LWP 462705)]
  15. Initializing orderbook
  16. [New Thread 0x7fffe1400640 (LWP 462706)]
  17. {"symbol": "lbk_usdt", "market": "LBANK_SPOT", "account": "MM"}
  18. prev zero position: 2047.95 51.2306
  19. prev offset: 2047.95 51.2306
  20. zero position: 2047.95 51.2306
  21. offset: 2047.95 51.2306
  22. zone with bound: 200
  23. zone side: SELL
  24. quantity 0 : 800
  25. price offset 0 : 1000
  26.  
  27. zone with bound: 1000
  28. zone side: SELL
  29. quantity 0 : 500
  30. quantity 1 : 500
  31. price offset 0 : 1200
  32. price offset 1 : 1600
  33.  
  34. zone with bound: 200
  35. zone side: BUY
  36. quantity 0 : 20
  37. price offset 0 : 1000
  38.  
  39. zone with bound: 1000
  40. zone side: BUY
  41. quantity 0 : 15
  42. quantity 1 : 15
  43. price offset 0 : 1200
  44. price offset 1 : 1600
  45.  
  46. market ask zones: 2
  47. market bid zones: 2
  48.  
  49. params size: 1
  50. ok
  51. {"name": "VANILLA", "labels": ["0"], "symbols": [{"account": "MM", "market": "LBANK_SPOT", "symbol": "lbk_usdt"}]}
  52. members_.channels[i].stream: ACCOUNT_BALANCE
  53. members_.channels[i].stream: PART_DEPTH
  54. members_.channels[i].stream: TRADE
  55. members_.channels[i].stream: ACCOUNT_ORDER
  56. {"subscribe": "assetUpdate", "action": "subscribe"}
  57. {"depth": "50", "pair": "lbk_usdt", "subscribe": "depth", "action": "subscribe"}
  58. {"pair": "lbk_usdt", "subscribe": "trade", "action": "subscribe"}
  59. {"pair": "lbk_usdt", "subscribe": "orderUpdate", "action": "subscribe"}
  60. [New Thread 0x7fffe0a00640 (LWP 462707)]
  61. [New Thread 0x7fffd7e00640 (LWP 462708)]
  62. {"ok": "1"}
  63. subscription_channel.serialize(): {"subscribeKey": "23fe429766156bf36d5011093d2c16af5339782fe9b0aff2f0c6d167a132a83a", "subscribe": "assetUpdate", "action": "subscribe"}
  64. subscription_channel.serialize(): {"depth": "50", "pair": "lbk_usdt", "subscribe": "depth", "action": "subscribe"}
  65. subscription_channel.serialize(): {"pair": "lbk_usdt", "subscribe": "trade", "action": "subscribe"}
  66. subscription_channel.serialize(): {"subscribeKey": "23fe429766156bf36d5011093d2c16af5339782fe9b0aff2f0c6d167a132a83a", "pair": "lbk_usdt", "subscribe": "orderUpdate", "action": "subscribe"}
  67. _feed_process: {"trade":{"volume":20330.0,"amount":471.79831,"price":0.023207,"direction":"sell","TS":"2025-01-27T21:22:28.450"},"SERVER":"V2","type":"trade","pair":"lbk_usdt","TS":"2025-01-27T21:22:28.455"}
  68. rust now: 1737984148504220
  69. rust cycle latency: 110
  70.  
  71. websocket depth latency: 139
  72. rust now: 1737984149343612
  73. rust cycle latency: 369
  74.  
  75. upd balance cd: {"asset": "usdt", "free": 6.23637, "locked": 44.9943, "update_time": 1737984139541}
  76. upd balance cd: {"asset": "lbk", "free": 247.95, "locked": 1800, "update_time": 1737984139541}
  77. websocket depth latency: 60
  78. rust now: 1737984150783596
  79. rust cycle latency: 267
  80.  
  81. _feed_process: {"trade":{"volume":23707.0,"amount":549.954986,"price":0.023198,"direction":"sell","TS":"2025-01-27T21:22:30.721"},"SERVER":"V2","type":"trade","pair":"lbk_usdt","TS":"2025-01-27T21:22:30.725"}
  82. rust now: 1737984150783885
  83. rust cycle latency: 87
  84.  
  85. websocket depth latency: 69
  86. rust now: 1737984150930597
  87. rust cycle latency: 283
  88.  
  89. websocket depth latency: 54
  90. Market: LBANK_SPOT
  91. [ 2025-01-27-13-22-34 ] DEBUG base balance: {"asset": "lbk", "free": 247.95, "locked": 1800, "update_time": 1737984139541}
  92. [ 2025-01-27-13-22-34 ] DEBUG quote balance: {"asset": "usdt", "free": 6.23637, "locked": 44.9943, "update_time": 1737984139541}
  93. config.zero_quote - quote_balance: -5e-05
  94. base_balance - config.zero_base: 0
  95. ask_bound: 0.0230395
  96. bid_bound: 0.0230395
  97. quote_position: -5e-05
  98. config.offset_quote - quote_balance: -5e-05
  99. BUY usage coeff = 1
  100. base_position: 0
  101. config.offset_base - base_balance: 0
  102. SELL usage coeff = 1
  103. [ 2025-01-27-13-22-34 ] DEBUG strategy calculated orders: OrderEvent: symbol="lbk_usdt", type="LIMIT_GRID", asks: [(0.0267258, 500); (0.0258042, 500); (0.0253435, 800); ], bids: [(0.0193532, 775.066); (0.0202748, 739.836); (0.0207356, 964.527); ]
  104. [ 2025-01-27-13-22-34 ] INFO execution order event process: OrderEvent: symbol="lbk_usdt", type="LIMIT_GRID", asks: [(0.0267258, 500); (0.0258042, 500); (0.0253435, 800); ], bids: [(0.0193532, 775.066); (0.0202748, 739.836); (0.0207356, 964.527); ]
  105. [ 2025-01-27-13-22-34 ] DEBUG ask in _process_limit_grid: 0.0267258
  106. [ 2025-01-27-13-22-34 ] DEBUG ask in _process_limit_grid: 500
  107. [ 2025-01-27-13-22-34 ] DEBUG ask in _process_limit_grid: 0.0258042
  108. [ 2025-01-27-13-22-34 ] DEBUG ask in _process_limit_grid: 500
  109. [ 2025-01-27-13-22-34 ] DEBUG ask in _process_limit_grid: 0.0253435
  110. [ 2025-01-27-13-22-34 ] DEBUG ask in _process_limit_grid: 800
  111. [ 2025-01-27-13-22-34 ] DEBUG bid in _process_limit_grid: 0.0193532
  112. [ 2025-01-27-13-22-34 ] DEBUG bid in _process_limit_grid: 775.066
  113. [ 2025-01-27-13-22-34 ] DEBUG bid in _process_limit_grid: 0.0202748
  114. [ 2025-01-27-13-22-34 ] DEBUG bid in _process_limit_grid: 739.836
  115. [ 2025-01-27-13-22-34 ] DEBUG bid in _process_limit_grid: 0.0207356
  116. [ 2025-01-27-13-22-34 ] DEBUG bid in _process_limit_grid: 964.527
  117. [ 2025-01-27-13-22-34 ] DEBUG already opened order: {"symbol": "lbk_usdt", "coid": 142475472054155, "order_id": "484ebe49-417c-4413-b217-d2d9f1d58fb6", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.020841, "quantity": 720, "filled_quantity": 0, "update_time": 1737983707000}
  118. [ 2025-01-27-13-22-34 ] DEBUG already opened order: {"symbol": "lbk_usdt", "coid": 142475472054156, "order_id": "b46af8b3-2983-462d-b5ee-520383b5b097", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.020457, "quantity": 733, "filled_quantity": 0, "update_time": 1737983707000}
  119. [ 2025-01-27-13-22-34 ] DEBUG already opened order: {"symbol": "lbk_usdt", "coid": 142475472054158, "order_id": "e6dcb9e9-ca9b-499a-9f8e-66f1516a78aa", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.025473, "quantity": 600, "filled_quantity": 0, "update_time": 1737983707000}
  120. [ 2025-01-27-13-22-34 ] DEBUG already opened order: {"symbol": "lbk_usdt", "coid": 142475472054157, "order_id": "b128448f-3ce2-4640-862e-550295c04737", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.020072, "quantity": 747, "filled_quantity": 0, "update_time": 1737983707000}
  121. [ 2025-01-27-13-22-34 ] DEBUG already opened order: {"symbol": "lbk_usdt", "coid": 142475472054159, "order_id": "4efcecac-c808-4ba4-a4d6-ebec9f791a56", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.025857, "quantity": 600, "filled_quantity": 0, "update_time": 1737983707000}
  122. [ 2025-01-27-13-22-34 ] DEBUG already opened order: {"symbol": "lbk_usdt", "coid": 142475472054160, "order_id": "7c9fa6a2-9943-4718-a32f-92d73eedc36f", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.026242, "quantity": 600, "filled_quantity": 0, "update_time": 1737983707000}
  123. [New Thread 0x7fffd7400640 (LWP 462746)]
  124. [New Thread 0x7fffd6a00640 (LWP 462747)]
  125. [New Thread 0x7fffd6000640 (LWP 462748)]
  126. [New Thread 0x7fffd5600640 (LWP 462749)]
  127. [New Thread 0x7fffd4c00640 (LWP 462750)]
  128. [New Thread 0x7fffcbe00640 (LWP 462751)]
  129. [ 2025-01-27-13-22-34 ] DEBUG csize: 6
  130. [New Thread 0x7fffcb400640 (LWP 462752)]
  131. [New Thread 0x7fffcaa00640 (LWP 462753)]
  132. [New Thread 0x7fffca000640 (LWP 462754)]
  133. [New Thread 0x7fffc9600640 (LWP 462755)]
  134. [New Thread 0x7fffc8c00640 (LWP 462756)]
  135. [New Thread 0x7fffbfe00640 (LWP 462757)]
  136. rust now: 1737984154737594
  137. rust cycle latency: 11008
  138.  
  139. _feed_process: {"trade":{"volume":21025.0,"amount":485.21495,"price":0.023078,"direction":"buy","TS":"2025-01-27T21:22:34.681"},"SERVER":"V2","type":"trade","pair":"lbk_usdt","TS":"2025-01-27T21:22:34.689"}
  140. rust now: 1737984154748621
  141. rust cycle latency: 52
  142.  
  143. {"ts": "1737984154780", "error_code": "10016", "result": "false", "msg": "Currency is not enough"}
  144. {"ts": "1737984154784", "error_code": "10016", "result": "false", "msg": "Currency is not enough"}
  145. {"ts": "1737984154785", "error_code": "10016", "result": "false", "msg": "Currency is not enough"}
  146. {"ts": "1737984154785", "error_code": "10014", "result": "false", "msg": "Currency is not enough"}
  147. [Thread 0x7fffcaa00640 (LWP 462753) exited]
  148. _feed_process: {"SERVER":"V2","orderUpdate":{"accAmt":"0","amount":"0","avgPrice":"0","customerID":"142475472054155","orderAmt":"0","orderPrice":"0","orderStatus":4,"price":"0","remainAmt":"0","role":"taker","symbol":"lbk_usdt","type":"buy_maker","updateTime":1737984154868,"uuid":"484ebe49-417c-4413-b217-d2d9f1d58fb6","volumePrice":"0"},"type":"orderUpdate","pair":"lbk_usdt","TS":"2025-01-27T21:22:34.870"}
  149. [ 2025-01-27-13-22-34 ] INFO : WebSocketEvent: , event_time=0", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 1737984154868, "order": {"symbol": "lbk_usdt", "coid": 142475472054155, "order_id": "484ebe49-417c-4413-b217-d2d9f1d58fb6", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 0.000000, "quantity": 0, "filled_quantity": -9223372036854775808, "update_time": 1737984154868}}
  150. rust now: 1737984154898887
  151. rust cycle latency: 256
  152.  
  153. [Thread 0x7fffbfe00640 (LWP 462757) exited]
  154. _feed_process: {"SERVER":"V2","orderUpdate":{"accAmt":"0","amount":"0","avgPrice":"0","customerID":"142475472054160","orderAmt":"0","orderPrice":"0","orderStatus":4,"price":"0","remainAmt":"0","role":"taker","symbol":"lbk_usdt","type":"sell_maker","updateTime":1737984154868,"uuid":"7c9fa6a2-9943-4718-a32f-92d73eedc36f","volumePrice":"0"},"type":"orderUpdate","pair":"lbk_usdt","TS":"2025-01-27T21:22:34.870"}
  155. [ 2025-01-27-13-22-34 ] INFO : WebSocketEvent: , event_time=0", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 1737984154868, "order": {"symbol": "lbk_usdt", "coid": 142475472054160, "order_id": "7c9fa6a2-9943-4718-a32f-92d73eedc36f", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.000000, "quantity": 0, "filled_quantity": 0, "update_time": 1737984154868}}
  156. rust now: 1737984154899638
  157. rust cycle latency: 321
  158.  
  159. _feed_process: {"SERVER":"V2","orderUpdate":{"accAmt":"0","amount":"0","avgPrice":"0","customerID":"142475472054156","orderAmt":"0","orderPrice":"0","orderStatus":4,"price":"0","remainAmt":"0","role":"taker","symbol":"lbk_usdt","type":"buy_maker","updateTime":1737984154869,"uuid":"b46af8b3-2983-462d-b5ee-520383b5b097","volumePrice":"0"},"type":"orderUpdate","pair":"lbk_usdt","TS":"2025-01-27T21:22:34.871"}
  160. [ 2025-01-27-13-22-34 ] INFO : WebSocketEvent: , event_time=0", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 1737984154869, "order": {"symbol": "lbk_usdt", "coid": 142475472054156, "order_id": "b46af8b3-2983-462d-b5ee-520383b5b097", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 0.000000, "quantity": 0, "filled_quantity": -9223372036854775808, "update_time": 1737984154869}}
  161. rust now: 1737984154901018
  162. rust cycle latency: 285
  163.  
  164. _feed_process: {"SERVER":"V2","orderUpdate":{"accAmt":"0","amount":"0","avgPrice":"0","customerID":"142475472054155","orderAmt":"720","orderPrice":"0.020841","orderStatus":-1,"price":"0","remainAmt":"0","role":"taker","symbol":"lbk_usdt","type":"buy_maker","updateTime":1737984154876,"uuid":"484ebe49-417c-4413-b217-d2d9f1d58fb6","volumePrice":"0"},"type":"orderUpdate","pair":"lbk_usdt","TS":"2025-01-27T21:22:34.878"}
  165. [ 2025-01-27-13-22-34 ] INFO : WebSocketEvent: , event_time=0", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 1737984154876, "order": {"symbol": "lbk_usdt", "coid": 142475472054155, "order_id": "484ebe49-417c-4413-b217-d2d9f1d58fb6", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 0.020841, "quantity": 720, "filled_quantity": 720, "update_time": 1737984154876}}
  166. rust now: 1737984154906866
  167. rust cycle latency: 161
  168.  
  169. _feed_process: {"data":{"asset":"51.23065","assetCode":"usdt","free":"36.236866","freeze":"14.993784","time":1737984154876,"type":"ORDER_CANCEL"},"SERVER":"V2","type":"assetUpdate","TS":"2025-01-27T21:22:34.878"}
  170. get balance indicator 0x5555556a4f78
  171. AccountOrderFail
  172. BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737984154876, "balance": {"asset": "usdt", "free": 36.2369, "locked": 14.9938, "update_time": 1737984154876}}
  173. $ tlm_usdt
  174. rust now: 1737984154913277
  175. rust cycle latency: 182
  176.  
  177. _feed_process: {"SERVER":"V2","orderUpdate":{"accAmt":"0","amount":"0","avgPrice":"0","customerID":"142475472054160","orderAmt":"600","orderPrice":"0.026242","orderStatus":-1,"price":"0","remainAmt":"0","role":"taker","symbol":"lbk_usdt","type":"sell_maker","updateTime":1737984154877,"uuid":"7c9fa6a2-9943-4718-a32f-92d73eedc36f","volumePrice":"0"},"type":"orderUpdate","pair":"lbk_usdt","TS":"2025-01-27T21:22:34.878"}
  178. [ 2025-01-27-13-22-34 ] INFO : WebSocketEvent: , event_time=0", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 1737984154877, "order": {"symbol": "lbk_usdt", "coid": 142475472054160, "order_id": "7c9fa6a2-9943-4718-a32f-92d73eedc36f", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.026242, "quantity": 600, "filled_quantity": 600, "update_time": 1737984154877}}
  179. rust now: 1737984154913637
  180. rust cycle latency: 118
  181.  
  182. _feed_process: {"data":{"asset":"2047.95","assetCode":"lbk","free":"847.95","freeze":"1200","time":1737984154877,"type":"ORDER_CANCEL"},"SERVER":"V2","type":"assetUpdate","TS":"2025-01-27T21:22:34.879"}
  183. AccountOrderFail
  184. BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737984154877, "balance": {"asset": "lbk", "free": 847.95, "locked": 1200, "update_time": 1737984154877}}
  185. $ tlm_lbk
  186. rust now: 1737984154913765
  187. rust cycle latency: 121
  188.  
  189. _feed_process: {"SERVER":"V2","orderUpdate":{"accAmt":"0","amount":"0","avgPrice":"0","customerID":"142475472054156","orderAmt":"733","orderPrice":"0.020457","orderStatus":-1,"price":"0","remainAmt":"0","role":"taker","symbol":"lbk_usdt","type":"buy_maker","updateTime":1737984154878,"uuid":"b46af8b3-2983-462d-b5ee-520383b5b097","volumePrice":"0"},"type":"orderUpdate","pair":"lbk_usdt","TS":"2025-01-27T21:22:34.879"}
  190. [ 2025-01-27-13-22-34 ] INFO : WebSocketEvent: , event_time=0", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 1737984154878, "order": {"symbol": "lbk_usdt", "coid": 142475472054156, "order_id": "b46af8b3-2983-462d-b5ee-520383b5b097", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 0.020457, "quantity": 733, "filled_quantity": 733, "update_time": 1737984154878}}
  191. rust now: 1737984154913896
  192. rust cycle latency: 189
  193.  
  194. _feed_process: {"data":{"asset":"51.23065","assetCode":"usdt","free":"36.236866","freeze":"14.993784","time":1737984154878,"type":"ORDER_CANCEL"},"SERVER":"V2","type":"assetUpdate","TS":"2025-01-27T21:22:34.882"}
  195. AccountOrderFail
  196. BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737984154878, "balance": {"asset": "usdt", "free": 36.2369, "locked": 14.9938, "update_time": 1737984154878}}
  197. rust now: 1737984154914101
  198. rust cycle latency: 67
  199.  
  200. [Thread 0x7fffcb400640 (LWP 462752) exited]
  201. [Thread 0x7fffca000640 (LWP 462754) exited]
  202. [Thread 0x7fffc9600640 (LWP 462755) exited]
  203. [Thread 0x7fffc8c00640 (LWP 462756) exited]
  204. {"ts": "1737984154915", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
  205. {"ts": "1737984154917", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
  206. [Thread 0x7fffd7400640 (LWP 462746) exited]
  207. [Thread 0x7fffd6a00640 (LWP 462747) exited]
  208. [Thread 0x7fffd6000640 (LWP 462748) exited]
  209. [Thread 0x7fffd5600640 (LWP 462749) exited]
  210. {"ts": "1737984154931", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
  211. {"ts": "1737984154934", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
  212. {"ts": "1737984154935", "error_code": "10037", "result": "false", "msg": "The order has been cancelled or completed"}
  213. {"ts": "1737984154941", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
  214. _feed_process: {"SERVER":"V2","orderUpdate":{"accAmt":"0","amount":"0","avgPrice":"0","customerID":"142475472054159","orderAmt":"0","orderPrice":"0","orderStatus":4,"price":"0","remainAmt":"0","role":"taker","symbol":"lbk_usdt","type":"sell_maker","updateTime":1737984154908,"uuid":"4efcecac-c808-4ba4-a4d6-ebec9f791a56","volumePrice":"0"},"type":"orderUpdate","pair":"lbk_usdt","TS":"2025-01-27T21:22:34.910"}
  215. [ 2025-01-27-13-22-34 ] INFO : WebSocketEvent: , event_time=0", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 1737984154908, "order": {"symbol": "lbk_usdt", "coid": 142475472054159, "order_id": "4efcecac-c808-4ba4-a4d6-ebec9f791a56", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.000000, "quantity": 0, "filled_quantity": 0, "update_time": 1737984154908}}
  216. rust now: 1737984154968061
  217. rust cycle latency: 257
  218.  
  219. _feed_process: {"SERVER":"V2","orderUpdate":{"accAmt":"0","amount":"0","avgPrice":"0","customerID":"142475472054159","orderAmt":"600","orderPrice":"0.025857","orderStatus":-1,"price":"0","remainAmt":"0","role":"taker","symbol":"lbk_usdt","type":"sell_maker","updateTime":1737984154919,"uuid":"4efcecac-c808-4ba4-a4d6-ebec9f791a56","volumePrice":"0"},"type":"orderUpdate","pair":"lbk_usdt","TS":"2025-01-27T21:22:34.920"}
  220. [ 2025-01-27-13-22-34 ] INFO : WebSocketEvent: , event_time=0", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 1737984154919, "order": {"symbol": "lbk_usdt", "coid": 142475472054159, "order_id": "4efcecac-c808-4ba4-a4d6-ebec9f791a56", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.025857, "quantity": 600, "filled_quantity": 600, "update_time": 1737984154919}}
  221. rust now: 1737984154968347
  222. rust cycle latency: 213
  223.  
  224. _feed_process: {"data":{"asset":"2047.95","assetCode":"lbk","free":"1447.95","freeze":"600","time":1737984154919,"type":"ORDER_CANCEL"},"SERVER":"V2","type":"assetUpdate","TS":"2025-01-27T21:22:34.920"}
  225. AccountOrderFail
  226. AccountOrderFail
  227. BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737984154919, "balance": {"asset": "lbk", "free": 1447.95, "locked": 600, "update_time": 1737984154919}}
  228. rust now: 1737984154968583
  229. rust cycle latency: 139
  230.  
  231. _feed_process: {"SERVER":"V2","orderUpdate":{"accAmt":"0","amount":"0","avgPrice":"0","customerID":"142475472054157","orderAmt":"0","orderPrice":"0","orderStatus":4,"price":"0","remainAmt":"0","role":"taker","symbol":"lbk_usdt","type":"buy_maker","updateTime":1737984154935,"uuid":"b128448f-3ce2-4640-862e-550295c04737","volumePrice":"0"},"type":"orderUpdate","pair":"lbk_usdt","TS":"2025-01-27T21:22:34.937"}
  232. [ 2025-01-27-13-22-34 ] INFO : WebSocketEvent: , event_time=0", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 1737984154935, "order": {"symbol": "lbk_usdt", "coid": 142475472054157, "order_id": "b128448f-3ce2-4640-862e-550295c04737", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 0.000000, "quantity": 0, "filled_quantity": -9223372036854775808, "update_time": 1737984154935}}
  233. rust now: 1737984154968749
  234. rust cycle latency: 113
  235.  
  236. _feed_process: {"data":{"asset":"2047.95","assetCode":"lbk","free":"947.95","freeze":"1100","time":1737984154937,"type":"ORDER_CREATE"},"SERVER":"V2","type":"assetUpdate","TS":"2025-01-27T21:22:34.938"}
  237. AccountOrderFail
  238. BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737984154937, "balance": {"asset": "lbk", "free": 947.95, "locked": 1100, "update_time": 1737984154937}}
  239. rust now: 1737984154968870
  240. rust cycle latency: 122
  241.  
  242. _feed_process: {"SERVER":"V2","orderUpdate":{"accAmt":"0","amount":"0","avgPrice":"0","customerID":"142475472054158","orderAmt":"600","orderPrice":"0.025473","orderStatus":-1,"price":"0","remainAmt":"0","role":"taker","symbol":"lbk_usdt","type":"sell_maker","updateTime":1737984154941,"uuid":"e6dcb9e9-ca9b-499a-9f8e-66f1516a78aa","volumePrice":"0"},"type":"orderUpdate","pair":"lbk_usdt","TS":"2025-01-27T21:22:34.942"}
  243. [ 2025-01-27-13-22-34 ] INFO : WebSocketEvent: , event_time=0", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 1737984154941, "order": {"symbol": "lbk_usdt", "coid": 142475472054158, "order_id": "e6dcb9e9-ca9b-499a-9f8e-66f1516a78aa", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.025473, "quantity": 600, "filled_quantity": 600, "update_time": 1737984154941}}
  244. rust now: 1737984154971303
  245. rust cycle latency: 231
  246.  
  247. _feed_process: {"data":{"asset":"2047.95","assetCode":"lbk","free":"1047.95","freeze":"1000","time":1737984154941,"type":"ORDER_CANCEL"},"SERVER":"V2","type":"assetUpdate","TS":"2025-01-27T21:22:34.942"}
  248. BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737984154941, "balance": {"asset": "lbk", "free": 1047.95, "locked": 1000, "update_time": 1737984154941}}
  249. rust now: 1737984154971599
  250. rust cycle latency: 108
  251.  
  252. _feed_process: {"data":{"asset":"51.23065","assetCode":"usdt","free":"51.23065","freeze":"0","time":1737984154941,"type":"ORDER_CANCEL"},"SERVER":"V2","type":"assetUpdate","TS":"2025-01-27T21:22:34.942"}
  253. BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737984154941, "balance": {"asset": "usdt", "free": 51.2306, "locked": 0, "update_time": 1737984154941}}
  254. rust now: 1737984154971720
  255. rust cycle latency: 59
  256.  
  257. _feed_process: {"SERVER":"V2","orderUpdate":{"accAmt":"0","amount":"0","avgPrice":"0","customerID":"142475472503448","orderAmt":"500","orderPrice":"0.025804","orderStatus":0,"price":"0","remainAmt":"500","role":"taker","symbol":"lbk_usdt","type":"sell_maker","updateTime":1737984154942,"uuid":"116f50ef-3947-4264-8c00-f55834859351","volumePrice":"0"},"type":"orderUpdate","pair":"lbk_usdt","TS":"2025-01-27T21:22:34.942"}
  258. [ 2025-01-27-13-22-34 ] INFO : WebSocketEvent: , event_time=0", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 1737984154942, "order": {"symbol": "lbk_usdt", "coid": 142475472503448, "order_id": "116f50ef-3947-4264-8c00-f55834859351", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.025804, "quantity": 500, "filled_quantity": 0, "update_time": 1737984154942}}
  259. rust now: 1737984154971787
  260. rust cycle latency: 107
  261.  
  262. {"ts": "1737984154943", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
  263. _feed_process: {"data":{"asset":"2047.95","assetCode":"lbk","free":"1047.95","freeze":"1000","time":1737984154942,"type":"ORDER_CREATE"},"SERVER":"V2","type":"assetUpdate","TS":"2025-01-27T21:22:34.943"}
  264. BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737984154942, "balance": {"asset": "lbk", "free": 1047.95, "locked": 1000, "update_time": 1737984154942}}
  265. rust now: 1737984154973488
  266. rust cycle latency: 109
  267.  
  268. _feed_process: {"SERVER":"V2","orderUpdate":{"accAmt":"0","amount":"0","avgPrice":"0","customerID":"142475472054158","orderAmt":"0","orderPrice":"0","orderStatus":4,"price":"0","remainAmt":"0","role":"taker","symbol":"lbk_usdt","type":"sell_maker","updateTime":1737984154935,"uuid":"e6dcb9e9-ca9b-499a-9f8e-66f1516a78aa","volumePrice":"0"},"type":"orderUpdate","pair":"lbk_usdt","TS":"2025-01-27T21:22:34.944"}
  269. [ 2025-01-27-13-22-34 ] INFO : WebSocketEvent: , event_time=0", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 1737984154935, "order": {"symbol": "lbk_usdt", "coid": 142475472054158, "order_id": "e6dcb9e9-ca9b-499a-9f8e-66f1516a78aa", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.000000, "quantity": 0, "filled_quantity": 0, "update_time": 1737984154935}}
  270. rust now: 1737984154973639
  271. rust cycle latency: 116
  272.  
  273. _feed_process: {"SERVER":"V2","orderUpdate":{"accAmt":"0","amount":"0","avgPrice":"0","customerID":"142475472503449","orderAmt":"500","orderPrice":"0.026726","orderStatus":0,"price":"0","remainAmt":"500","role":"taker","symbol":"lbk_usdt","type":"sell_maker","updateTime":1737984154936,"uuid":"13fa2600-8814-4076-a935-4a4ca83c3306","volumePrice":"0"},"type":"orderUpdate","pair":"lbk_usdt","TS":"2025-01-27T21:22:34.944"}
  274. [ 2025-01-27-13-22-34 ] INFO : WebSocketEvent: , event_time=0", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 1737984154936, "order": {"symbol": "lbk_usdt", "coid": 142475472503449, "order_id": "13fa2600-8814-4076-a935-4a4ca83c3306", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.026726, "quantity": 500, "filled_quantity": 0, "update_time": 1737984154936}}
  275. rust now: 1737984154973801
  276. rust cycle latency: 331
  277.  
  278. {"ts": "1737984154951", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
  279. {"ts": "1737984154959", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
  280. {"ts": "1737984154970", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
  281. {"ts": "1737984154971", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
  282. {"ts": "1737984154968", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
  283. {"ts": "1737984154973", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
  284. {"ts": "1737984154980", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
  285. {"ts": "1737984154992", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
  286. {"ts": "1737984154995", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
  287. {"ts": "1737984154998", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
  288. {"ts": "1737984155004", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
  289. {"ts": "1737984155004", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
  290. {"ts": "1737984155007", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
  291. {"ts": "1737984155010", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
  292. {"ts": "1737984155019", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
  293. {"ts": "1737984155029", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
  294. {"ts": "1737984155029", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
  295. {"ts": "1737984155032", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
  296. [Thread 0x7fffd4c00640 (LWP 462750) exited]
  297. [Thread 0x7fffcbe00640 (LWP 462751) exited]
  298. _feed_process: {"SERVER":"V2","orderUpdate":{"accAmt":"0","amount":"0","avgPrice":"0","customerID":"142475472054157","orderAmt":"747","orderPrice":"0.020072","orderStatus":-1,"price":"0","remainAmt":"0","role":"taker","symbol":"lbk_usdt","type":"buy_maker","updateTime":1737984154941,"uuid":"b128448f-3ce2-4640-862e-550295c04737","volumePrice":"0"},"type":"orderUpdate","pair":"lbk_usdt","TS":"2025-01-27T21:22:34.945"}
  299. [ 2025-01-27-13-22-35 ] INFO : WebSocketEvent: , event_time=0", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 1737984154941, "order": {"symbol": "lbk_usdt", "coid": 142475472054157, "order_id": "b128448f-3ce2-4640-862e-550295c04737", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 0.020072, "quantity": 747, "filled_quantity": 747, "update_time": 1737984154941}}
  300. rust now: 1737984155178566
  301. rust cycle latency: 235
  302.  
  303. {"ts": "1737984154991", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
  304. {"ts": "1737984154999", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
  305. {"ts": "1737984155267", "error_code": "10036", "result": "false", "msg": "Duplicate custom_id"}
  306. {"ts": "1737984155269", "error_code": "10036", "result": "false", "msg": "Duplicate custom_id"}
  307. websocket depth latency: 42
  308. rust now: 1737984155326094
  309. rust cycle latency: 299
  310.  
  311. _feed_process: {"trade":{"volume":30487.0,"amount":702.085123,"price":0.023029,"direction":"buy","TS":"2025-01-27T21:22:35.275"},"SERVER":"V2","type":"trade","pair":"lbk_usdt","TS":"2025-01-27T21:22:35.300"}
  312. rust now: 1737984155340222
  313. rust cycle latency: 86
  314.  
  315. {"ts": "1737984154997", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
  316. websocket depth latency: 31
  317. rust now: 1737984156411249
  318. rust cycle latency: 290
  319.  
  320. _feed_process: {"trade":{"volume":33838.0,"amount":779.999738,"price":0.023051,"direction":"buy","TS":"2025-01-27T21:22:36.378"},"SERVER":"V2","type":"trade","pair":"lbk_usdt","TS":"2025-01-27T21:22:36.382"}
  321. rust now: 1737984156414122
  322. rust cycle latency: 63
  323.  
  324. websocket depth latency: 138
  325. rust now: 1737984156956177
  326. rust cycle latency: 269
  327.  
  328. websocket depth latency: 68
  329. Market: LBANK_SPOT
  330. [ 2025-01-27-13-22-38 ] DEBUG base balance: {"asset": "lbk", "free": 1047.95, "locked": 1000, "update_time": 1737984154942}
  331. [ 2025-01-27-13-22-38 ] DEBUG quote balance: {"asset": "usdt", "free": 51.2306, "locked": 0, "update_time": 1737984154941}
  332. config.zero_quote - quote_balance: -5e-05
  333. base_balance - config.zero_base: 0
  334. ask_bound: 0.0230725
  335. bid_bound: 0.0230725
  336. quote_position: -5e-05
  337. config.offset_quote - quote_balance: -5e-05
  338. BUY usage coeff = 1
  339. base_position: 0
  340. config.offset_base - base_balance: 0
  341. SELL usage coeff = 1
  342. [ 2025-01-27-13-22-38 ] DEBUG strategy calculated orders: OrderEvent: symbol="lbk_usdt", type="LIMIT_GRID", asks: [(0.0267258, 500); (0.0258042, 500); (0.0253435, 800); ], bids: [(0.0193532, 775.066); (0.0202748, 739.836); (0.0207356, 964.527); ]
  343. [ 2025-01-27-13-22-38 ] INFO execution order event process: OrderEvent: symbol="lbk_usdt", type="LIMIT_GRID", asks: [(0.0267258, 500); (0.0258042, 500); (0.0253435, 800); ], bids: [(0.0193532, 775.066); (0.0202748, 739.836); (0.0207356, 964.527); ]
  344. [ 2025-01-27-13-22-38 ] DEBUG ask in _process_limit_grid: 0.0267258
  345. [ 2025-01-27-13-22-38 ] DEBUG ask in _process_limit_grid: 500
  346. [ 2025-01-27-13-22-38 ] DEBUG ask in _process_limit_grid: 0.0258042
  347. [ 2025-01-27-13-22-38 ] DEBUG ask in _process_limit_grid: 500
  348. [ 2025-01-27-13-22-38 ] DEBUG ask in _process_limit_grid: 0.0253435
  349. [ 2025-01-27-13-22-38 ] DEBUG ask in _process_limit_grid: 800
  350. [ 2025-01-27-13-22-38 ] DEBUG bid in _process_limit_grid: 0.0193532
  351. [ 2025-01-27-13-22-38 ] DEBUG bid in _process_limit_grid: 775.066
  352. [ 2025-01-27-13-22-38 ] DEBUG bid in _process_limit_grid: 0.0202748
  353. [ 2025-01-27-13-22-38 ] DEBUG bid in _process_limit_grid: 739.836
  354. [ 2025-01-27-13-22-38 ] DEBUG bid in _process_limit_grid: 0.0207356
  355. [ 2025-01-27-13-22-38 ] DEBUG bid in _process_limit_grid: 964.527
  356. [ 2025-01-27-13-22-38 ] DEBUG already opened order: {"symbol": "lbk_usdt", "coid": 142475472503448, "order_id": "116f50ef-3947-4264-8c00-f55834859351", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.025804, "quantity": 500, "filled_quantity": 0, "update_time": 1737984154942}
  357. [ 2025-01-27-13-22-38 ] DEBUG already opened order: {"symbol": "lbk_usdt", "coid": 142475472503449, "order_id": "13fa2600-8814-4076-a935-4a4ca83c3306", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.026726, "quantity": 500, "filled_quantity": 0, "update_time": 1737984154936}
  358. [New Thread 0x7fffcbe00640 (LWP 462758)]
  359. [New Thread 0x7fffd4c00640 (LWP 462759)]
  360. [New Thread 0x7fffd5600640 (LWP 462760)]
  361. [New Thread 0x7fffd6000640 (LWP 462761)]
  362. [ 2025-01-27-13-22-38 ] DEBUG csize: 0
  363. rust now: 1737984158312839
  364. rust cycle latency: 7453
  365.  
  366. _feed_process: {"trade":{"volume":26129.0,"amount":601.698612,"price":0.023028,"direction":"sell","TS":"2025-01-27T21:22:38.242"},"SERVER":"V2","type":"trade","pair":"lbk_usdt","TS":"2025-01-27T21:22:38.246"}
  367. rust now: 1737984158320315
  368. rust cycle latency: 56
  369.  
  370. _feed_process: {"SERVER":"V2","orderUpdate":{"accAmt":"0","amount":"0","avgPrice":"0","customerID":"142475472503453","orderAmt":"965","orderPrice":"0.020736","orderStatus":0,"price":"0","remainAmt":"20.01024","role":"taker","symbol":"lbk_usdt","type":"buy_maker","updateTime":1737984158444,"uuid":"aad6562e-5cdb-4ccd-b6fc-e7cf099fb232","volumePrice":"0"},"type":"orderUpdate","pair":"lbk_usdt","TS":"2025-01-27T21:22:38.445"}
  371. [ 2025-01-27-13-22-38 ] INFO : WebSocketEvent: , event_time=0", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 1737984158444, "order": {"symbol": "lbk_usdt", "coid": 142475472503453, "order_id": "aad6562e-5cdb-4ccd-b6fc-e7cf099fb232", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.020736, "quantity": 965, "filled_quantity": 0, "update_time": 1737984158444}}
  372. rust now: 1737984158482831
  373. rust cycle latency: 288
  374.  
  375. _feed_process: {"data":{"asset":"51.23065","assetCode":"usdt","free":"1.218335","freeze":"50.012315","time":1737984158445,"type":"ORDER_CREATE"},"SERVER":"V2","type":"assetUpdate","TS":"2025-01-27T21:22:38.446"}
  376. AccountOrderFail
  377. AccountOrderFail
  378. BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737984158445, "balance": {"asset": "usdt", "free": 1.21833, "locked": 50.0123, "update_time": 1737984158445}}
  379. rust now: 1737984158483145
  380. rust cycle latency: 145
  381.  
  382. _feed_process: {"SERVER":"V2","orderUpdate":{"accAmt":"0","amount":"0","avgPrice":"0","customerID":"142475472503451","orderAmt":"740","orderPrice":"0.020275","orderStatus":0,"price":"0","remainAmt":"15.0035","role":"taker","symbol":"lbk_usdt","type":"buy_maker","updateTime":1737984158447,"uuid":"af334a64-db11-412a-90d2-435d387d16cf","volumePrice":"0"},"type":"orderUpdate","pair":"lbk_usdt","TS":"2025-01-27T21:22:38.448"}
  383. [ 2025-01-27-13-22-38 ] INFO : WebSocketEvent: , event_time=0", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 1737984158447, "order": {"symbol": "lbk_usdt", "coid": 142475472503451, "order_id": "af334a64-db11-412a-90d2-435d387d16cf", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.020275, "quantity": 740, "filled_quantity": 0, "update_time": 1737984158447}}
  384. rust now: 1737984158483304
  385. rust cycle latency: 116
  386.  
  387. _feed_process: {"data":{"asset":"51.23065","assetCode":"usdt","free":"1.218335","freeze":"50.012315","time":1737984158447,"type":"ORDER_CREATE"},"SERVER":"V2","type":"assetUpdate","TS":"2025-01-27T21:22:38.449"}
  388. BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737984158447, "balance": {"asset": "usdt", "free": 1.21833, "locked": 50.0123, "update_time": 1737984158447}}
  389. rust now: 1737984158483428
  390. rust cycle latency: 127
  391.  
  392. [Thread 0x7fffd4c00640 (LWP 462759) exited]
  393. [Thread 0x7fffd6000640 (LWP 462761) exited]
  394. _feed_process: {"SERVER":"V2","orderUpdate":{"accAmt":"0","amount":"0","avgPrice":"0","customerID":"142475472503450","orderAmt":"775","orderPrice":"0.019353","orderStatus":0,"price":"0","remainAmt":"14.998575","role":"taker","symbol":"lbk_usdt","type":"buy_maker","updateTime":1737984158523,"uuid":"5b59baa4-d838-4740-b4f9-343cd1e04677","volumePrice":"0"},"type":"orderUpdate","pair":"lbk_usdt","TS":"2025-01-27T21:22:38.524"}
  395. [ 2025-01-27-13-22-38 ] INFO : WebSocketEvent: , event_time=0", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 1737984158523, "order": {"symbol": "lbk_usdt", "coid": 142475472503450, "order_id": "5b59baa4-d838-4740-b4f9-343cd1e04677", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.019353, "quantity": 775, "filled_quantity": 0, "update_time": 1737984158523}}
  396. rust now: 1737984158553033
  397. rust cycle latency: 251
  398.  
  399. _feed_process: {"data":{"asset":"51.23065","assetCode":"usdt","free":"1.218335","freeze":"50.012315","time":1737984158523,"type":"ORDER_CREATE"},"SERVER":"V2","type":"assetUpdate","TS":"2025-01-27T21:22:38.524"}
  400. BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737984158523, "balance": {"asset": "usdt", "free": 1.21833, "locked": 50.0123, "update_time": 1737984158523}}
  401. rust now: 1737984158553596
  402. rust cycle latency: 124
  403.  
  404. {"ts": "1737984158555", "error_code": "10016", "result": "false", "msg": "Currency is not enough"}
  405. _feed_process: {"SERVER":"V2","orderUpdate":{"accAmt":"0","amount":"0","avgPrice":"0","customerID":"142475472503452","orderAmt":"800","orderPrice":"0.025343","orderStatus":0,"price":"0","remainAmt":"800","role":"taker","symbol":"lbk_usdt","type":"sell_maker","updateTime":1737984158554,"uuid":"7b14ee94-7165-4f40-8bb1-935b525e12bb","volumePrice":"0"},"type":"orderUpdate","pair":"lbk_usdt","TS":"2025-01-27T21:22:38.557"}
  406. [ 2025-01-27-13-22-38 ] INFO : WebSocketEvent: , event_time=0", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 1737984158554, "order": {"symbol": "lbk_usdt", "coid": 142475472503452, "order_id": "7b14ee94-7165-4f40-8bb1-935b525e12bb", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.025343, "quantity": 800, "filled_quantity": 0, "update_time": 1737984158554}}
  407. rust now: 1737984158585996
  408. rust cycle latency: 292
  409.  
  410. _feed_process: {"data":{"asset":"2047.95","assetCode":"lbk","free":"247.95","freeze":"1800","time":1737984158554,"type":"ORDER_CREATE"},"SERVER":"V2","type":"assetUpdate","TS":"2025-01-27T21:22:38.557"}
  411. BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737984158554, "balance": {"asset": "lbk", "free": 247.95, "locked": 1800, "update_time": 1737984158554}}
  412. rust now: 1737984158586382
  413. rust cycle latency: 131
  414.  
  415. [Thread 0x7fffcbe00640 (LWP 462758) exited]
  416. [Thread 0x7fffd5600640 (LWP 462760) exited]
  417. {"ts": "1737984158555", "error_code": "10014", "result": "false", "msg": "Currency is not enough"}
  418. websocket depth latency: 182
  419. rust now: 1737984159357752
  420. rust cycle latency: 327
  421.  
  422. websocket depth latency: 79
  423. rust now: 1737984159358120
  424. rust cycle latency: 310
  425.  
  426. _feed_process: {"trade":{"volume":9250.0,"amount":213.7305,"price":0.023106,"direction":"buy","TS":"2025-01-27T21:22:39.276"},"SERVER":"V2","type":"trade","pair":"lbk_usdt","TS":"2025-01-27T21:22:39.281"}
  427. rust now: 1737984159358453
  428. rust cycle latency: 59
  429.  
  430. websocket depth latency: 456
  431. Market: LBANK_SPOT
  432. [ 2025-01-27-13-22-41 ] DEBUG base balance: {"asset": "lbk", "free": 247.95, "locked": 1800, "update_time": 1737984158554}
  433. [ 2025-01-27-13-22-41 ] DEBUG quote balance: {"asset": "usdt", "free": 1.21833, "locked": 50.0123, "update_time": 1737984158523}
  434. config.zero_quote - quote_balance: -5e-05
  435. base_balance - config.zero_base: 0
  436. ask_bound: 0.0230515
  437. bid_bound: 0.0230515
  438. quote_position: -5e-05
  439. config.offset_quote - quote_balance: -5e-05
  440. BUY usage coeff = 1
  441. base_position: 0
  442. config.offset_base - base_balance: 0
  443. SELL usage coeff = 1
  444. [ 2025-01-27-13-22-41 ] DEBUG strategy calculated orders: OrderEvent: symbol="lbk_usdt", type="LIMIT_GRID", asks: [(0.0267258, 500); (0.0258042, 500); (0.0253435, 800); ], bids: [(0.0193532, 775.066); (0.0202748, 739.836); (0.0207356, 964.527); ]
  445. [ 2025-01-27-13-22-41 ] INFO execution order event process: OrderEvent: symbol="lbk_usdt", type="LIMIT_GRID", asks: [(0.0267258, 500); (0.0258042, 500); (0.0253435, 800); ], bids: [(0.0193532, 775.066); (0.0202748, 739.836); (0.0207356, 964.527); ]
  446. [ 2025-01-27-13-22-41 ] DEBUG ask in _process_limit_grid: 0.0267258
  447. [ 2025-01-27-13-22-41 ] DEBUG ask in _process_limit_grid: 500
  448. [ 2025-01-27-13-22-41 ] DEBUG ask in _process_limit_grid: 0.0258042
  449. [ 2025-01-27-13-22-41 ] DEBUG ask in _process_limit_grid: 500
  450. [ 2025-01-27-13-22-41 ] DEBUG ask in _process_limit_grid: 0.0253435
  451. [ 2025-01-27-13-22-41 ] DEBUG ask in _process_limit_grid: 800
  452. [ 2025-01-27-13-22-41 ] DEBUG bid in _process_limit_grid: 0.0193532
  453. [ 2025-01-27-13-22-41 ] DEBUG bid in _process_limit_grid: 775.066
  454. [ 2025-01-27-13-22-41 ] DEBUG bid in _process_limit_grid: 0.0202748
  455. [ 2025-01-27-13-22-41 ] DEBUG bid in _process_limit_grid: 739.836
  456. [ 2025-01-27-13-22-41 ] DEBUG bid in _process_limit_grid: 0.0207356
  457. [ 2025-01-27-13-22-41 ] DEBUG bid in _process_limit_grid: 964.527
  458. [ 2025-01-27-13-22-41 ] DEBUG already opened order: {"symbol": "lbk_usdt", "coid": 142475472503453, "order_id": "aad6562e-5cdb-4ccd-b6fc-e7cf099fb232", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.020736, "quantity": 965, "filled_quantity": 0, "update_time": 1737984158444}
  459. [ 2025-01-27-13-22-41 ] DEBUG already opened order: {"symbol": "lbk_usdt", "coid": 142475472503452, "order_id": "7b14ee94-7165-4f40-8bb1-935b525e12bb", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.025343, "quantity": 800, "filled_quantity": 0, "update_time": 1737984158554}
  460. [ 2025-01-27-13-22-41 ] DEBUG already opened order: {"symbol": "lbk_usdt", "coid": 142475472503451, "order_id": "af334a64-db11-412a-90d2-435d387d16cf", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.020275, "quantity": 740, "filled_quantity": 0, "update_time": 1737984158447}
  461. [ 2025-01-27-13-22-41 ] DEBUG already opened order: {"symbol": "lbk_usdt", "coid": 142475472503450, "order_id": "5b59baa4-d838-4740-b4f9-343cd1e04677", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.019353, "quantity": 775, "filled_quantity": 0, "update_time": 1737984158523}
  462. [ 2025-01-27-13-22-41 ] DEBUG already opened order: {"symbol": "lbk_usdt", "coid": 142475472503448, "order_id": "116f50ef-3947-4264-8c00-f55834859351", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.025804, "quantity": 500, "filled_quantity": 0, "update_time": 1737984154942}
  463. [ 2025-01-27-13-22-41 ] DEBUG already opened order: {"symbol": "lbk_usdt", "coid": 142475472503449, "order_id": "13fa2600-8814-4076-a935-4a4ca83c3306", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.026726, "quantity": 500, "filled_quantity": 0, "update_time": 1737984154936}
  464. [ 2025-01-27-13-22-41 ] DEBUG csize: 0
  465. rust now: 1737984161383294
  466. rust cycle latency: 6952
  467.  
  468. _feed_process: {"trade":{"volume":6914.0,"amount":159.727228,"price":0.023102,"direction":"buy","TS":"2025-01-27T21:22:40.925"},"SERVER":"V2","type":"trade","pair":"lbk_usdt","TS":"2025-01-27T21:22:40.930"}
  469. rust now: 1737984161390272
  470. rust cycle latency: 64
  471.  
  472. 1737984163334 volunerable ping: {"ping": "0ca8f854-7ba7-4341-9d86-d3327e52804e", "action": "ping"}
  473. _feed_process PONG: {"pong": "0ca8f854-7ba7-4341-9d86-d3327e52804e", "action": "pong"}
  474. rust now: 1737984163559574
  475. rust cycle latency: 52
  476.  
  477. websocket depth latency: 65
  478. rust now: 1737984163559635
  479. rust cycle latency: 341
  480.  
  481. _feed_process: {"trade":{"volume":1614.0,"amount":37.212384,"price":0.023056,"direction":"buy","TS":"2025-01-27T21:22:43.492"},"SERVER":"V2","type":"trade","pair":"lbk_usdt","TS":"2025-01-27T21:22:43.497"}
  482. rust now: 1737984163559999
  483. rust cycle latency: 48
  484.  
  485. _feed_process: {"trade":{"volume":499.0,"amount":11.535383,"price":0.023117,"direction":"buy","TS":"2025-01-27T21:22:44.847"},"SERVER":"V2","type":"trade","pair":"lbk_usdt","TS":"2025-01-27T21:22:44.853"}
  486. Market: LBANK_SPOT
  487. [ 2025-01-27-13-22-44 ] DEBUG base balance: {"asset": "lbk", "free": 247.95, "locked": 1800, "update_time": 1737984158554}
  488. [ 2025-01-27-13-22-44 ] DEBUG quote balance: {"asset": "usdt", "free": 1.21833, "locked": 50.0123, "update_time": 1737984158523}
  489. config.zero_quote - quote_balance: -5e-05
  490. base_balance - config.zero_base: 0
  491. ask_bound: 0.0230285
  492. bid_bound: 0.0230285
  493. quote_position: -5e-05
  494. config.offset_quote - quote_balance: -5e-05
  495. BUY usage coeff = 1
  496. base_position: 0
  497. config.offset_base - base_balance: 0
  498. SELL usage coeff = 1
  499. [ 2025-01-27-13-22-44 ] DEBUG strategy calculated orders: OrderEvent: symbol="lbk_usdt", type="LIMIT_GRID", asks: [(0.0267258, 500); (0.0258042, 500); (0.0253435, 800); ], bids: [(0.0193532, 775.066); (0.0202748, 739.836); (0.0207356, 964.527); ]
  500. [ 2025-01-27-13-22-44 ] INFO execution order event process: OrderEvent: symbol="lbk_usdt", type="LIMIT_GRID", asks: [(0.0267258, 500); (0.0258042, 500); (0.0253435, 800); ], bids: [(0.0193532, 775.066); (0.0202748, 739.836); (0.0207356, 964.527); ]
  501. [ 2025-01-27-13-22-44 ] DEBUG ask in _process_limit_grid: 0.0267258
  502. [ 2025-01-27-13-22-44 ] DEBUG ask in _process_limit_grid: 500
  503. [ 2025-01-27-13-22-44 ] DEBUG ask in _process_limit_grid: 0.0258042
  504. [ 2025-01-27-13-22-44 ] DEBUG ask in _process_limit_grid: 500
  505. [ 2025-01-27-13-22-44 ] DEBUG ask in _process_limit_grid: 0.0253435
  506. [ 2025-01-27-13-22-44 ] DEBUG ask in _process_limit_grid: 800
  507. [ 2025-01-27-13-22-44 ] DEBUG bid in _process_limit_grid: 0.0193532
  508. [ 2025-01-27-13-22-44 ] DEBUG bid in _process_limit_grid: 775.066
  509. [ 2025-01-27-13-22-44 ] DEBUG bid in _process_limit_grid: 0.0202748
  510. [ 2025-01-27-13-22-44 ] DEBUG bid in _process_limit_grid: 739.836
  511. [ 2025-01-27-13-22-44 ] DEBUG bid in _process_limit_grid: 0.0207356
  512. [ 2025-01-27-13-22-44 ] DEBUG bid in _process_limit_grid: 964.527
  513. [ 2025-01-27-13-22-44 ] DEBUG already opened order: {"symbol": "lbk_usdt", "coid": 142475472503453, "order_id": "aad6562e-5cdb-4ccd-b6fc-e7cf099fb232", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.020736, "quantity": 965, "filled_quantity": 0, "update_time": 1737984158444}
  514. [ 2025-01-27-13-22-44 ] DEBUG already opened order: {"symbol": "lbk_usdt", "coid": 142475472503452, "order_id": "7b14ee94-7165-4f40-8bb1-935b525e12bb", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.025343, "quantity": 800, "filled_quantity": 0, "update_time": 1737984158554}
  515. [ 2025-01-27-13-22-44 ] DEBUG already opened order: {"symbol": "lbk_usdt", "coid": 142475472503451, "order_id": "af334a64-db11-412a-90d2-435d387d16cf", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.020275, "quantity": 740, "filled_quantity": 0, "update_time": 1737984158447}
  516. [ 2025-01-27-13-22-44 ] DEBUG already opened order: {"symbol": "lbk_usdt", "coid": 142475472503450, "order_id": "5b59baa4-d838-4740-b4f9-343cd1e04677", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.019353, "quantity": 775, "filled_quantity": 0, "update_time": 1737984158523}
  517. [ 2025-01-27-13-22-44 ] DEBUG already opened order: {"symbol": "lbk_usdt", "coid": 142475472503448, "order_id": "116f50ef-3947-4264-8c00-f55834859351", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.025804, "quantity": 500, "filled_quantity": 0, "update_time": 1737984154942}
  518. [ 2025-01-27-13-22-44 ] DEBUG already opened order: {"symbol": "lbk_usdt", "coid": 142475472503449, "order_id": "13fa2600-8814-4076-a935-4a4ca83c3306", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.026726, "quantity": 500, "filled_quantity": 0, "update_time": 1737984154936}
  519. [ 2025-01-27-13-22-44 ] DEBUG csize: 0
  520. rust now: 1737984164882871
  521. rust cycle latency: 5838
  522.  
  523. _feed_process: {"trade":{"volume":5001.0,"amount":115.053006,"price":0.023006,"direction":"sell","TS":"2025-01-27T21:22:45.740"},"SERVER":"V2","type":"trade","pair":"lbk_usdt","TS":"2025-01-27T21:22:45.753"}
  524. rust now: 1737984165849416
  525. rust cycle latency: 99
  526.  
  527. websocket depth latency: 95
  528. rust now: 1737984165849543
  529. rust cycle latency: 275
  530.  
  531. websocket depth latency: 73
  532. rust now: 1737984165849854
  533. rust cycle latency: 286
  534.  
  535. websocket depth latency: 44
  536. rust now: 1737984166306325
  537. rust cycle latency: 292
  538.  
  539. _feed_process: {"trade":{"volume":28667.0,"amount":661.577026,"price":0.023078,"direction":"sell","TS":"2025-01-27T21:22:46.259"},"SERVER":"V2","type":"trade","pair":"lbk_usdt","TS":"2025-01-27T21:22:46.265"}
  540. rust now: 1737984166306643
  541. rust cycle latency: 62
  542.  
  543. websocket depth latency: 43
  544. rust now: 1737984166569440
  545. rust cycle latency: 281
  546.  
  547. websocket depth latency: 29
  548. Market: LBANK_SPOT
  549. [ 2025-01-27-13-22-47 ] DEBUG base balance: {"asset": "lbk", "free": 247.95, "locked": 1800, "update_time": 1737984158554}
  550. [ 2025-01-27-13-22-47 ] DEBUG quote balance: {"asset": "usdt", "free": 1.21833, "locked": 50.0123, "update_time": 1737984158523}
  551. config.zero_quote - quote_balance: -5e-05
  552. base_balance - config.zero_base: 0
  553. ask_bound: 0.0230861
  554. bid_bound: 0.0230861
  555. quote_position: -5e-05
  556. config.offset_quote - quote_balance: -5e-05
  557. BUY usage coeff = 1
  558. base_position: 0
  559. config.offset_base - base_balance: 0
  560. SELL usage coeff = 1
  561. [ 2025-01-27-13-22-47 ] DEBUG strategy calculated orders: OrderEvent: symbol="lbk_usdt", type="LIMIT_GRID", asks: [(0.0267258, 500); (0.0258042, 500); (0.0253435, 800); ], bids: [(0.0193532, 775.066); (0.0202748, 739.836); (0.0207356, 964.527); ]
  562. [ 2025-01-27-13-22-47 ] INFO execution order event process: OrderEvent: symbol="lbk_usdt", type="LIMIT_GRID", asks: [(0.0267258, 500); (0.0258042, 500); (0.0253435, 800); ], bids: [(0.0193532, 775.066); (0.0202748, 739.836); (0.0207356, 964.527); ]
  563. [ 2025-01-27-13-22-47 ] DEBUG ask in _process_limit_grid: 0.0267258
  564. [ 2025-01-27-13-22-47 ] DEBUG ask in _process_limit_grid: 500
  565. [ 2025-01-27-13-22-47 ] DEBUG ask in _process_limit_grid: 0.0258042
  566. [ 2025-01-27-13-22-47 ] DEBUG ask in _process_limit_grid: 500
  567. [ 2025-01-27-13-22-47 ] DEBUG ask in _process_limit_grid: 0.0253435
  568. [ 2025-01-27-13-22-47 ] DEBUG ask in _process_limit_grid: 800
  569. [ 2025-01-27-13-22-47 ] DEBUG bid in _process_limit_grid: 0.0193532
  570. [ 2025-01-27-13-22-47 ] DEBUG bid in _process_limit_grid: 775.066
  571. [ 2025-01-27-13-22-47 ] DEBUG bid in _process_limit_grid: 0.0202748
  572. [ 2025-01-27-13-22-47 ] DEBUG bid in _process_limit_grid: 739.836
  573. [ 2025-01-27-13-22-47 ] DEBUG bid in _process_limit_grid: 0.0207356
  574. [ 2025-01-27-13-22-47 ] DEBUG bid in _process_limit_grid: 964.527
  575. [ 2025-01-27-13-22-47 ] DEBUG already opened order: {"symbol": "lbk_usdt", "coid": 142475472503453, "order_id": "aad6562e-5cdb-4ccd-b6fc-e7cf099fb232", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.020736, "quantity": 965, "filled_quantity": 0, "update_time": 1737984158444}
  576. [ 2025-01-27-13-22-47 ] DEBUG already opened order: {"symbol": "lbk_usdt", "coid": 142475472503452, "order_id": "7b14ee94-7165-4f40-8bb1-935b525e12bb", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.025343, "quantity": 800, "filled_quantity": 0, "update_time": 1737984158554}
  577. [ 2025-01-27-13-22-47 ] DEBUG already opened order: {"symbol": "lbk_usdt", "coid": 142475472503451, "order_id": "af334a64-db11-412a-90d2-435d387d16cf", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.020275, "quantity": 740, "filled_quantity": 0, "update_time": 1737984158447}
  578. [ 2025-01-27-13-22-47 ] DEBUG already opened order: {"symbol": "lbk_usdt", "coid": 142475472503450, "order_id": "5b59baa4-d838-4740-b4f9-343cd1e04677", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.019353, "quantity": 775, "filled_quantity": 0, "update_time": 1737984158523}
  579. [ 2025-01-27-13-22-47 ] DEBUG already opened order: {"symbol": "lbk_usdt", "coid": 142475472503448, "order_id": "116f50ef-3947-4264-8c00-f55834859351", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.025804, "quantity": 500, "filled_quantity": 0, "update_time": 1737984154942}
  580. [ 2025-01-27-13-22-47 ] DEBUG already opened order: {"symbol": "lbk_usdt", "coid": 142475472503449, "order_id": "13fa2600-8814-4076-a935-4a4ca83c3306", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.026726, "quantity": 500, "filled_quantity": 0, "update_time": 1737984154936}
  581. [ 2025-01-27-13-22-47 ] DEBUG csize: 0
  582. rust now: 1737984167951256
  583. rust cycle latency: 6068
  584.  
  585. _feed_process: {"trade":{"volume":21801.0,"amount":502.927269,"price":0.023069,"direction":"sell","TS":"2025-01-27T21:22:47.920"},"SERVER":"V2","type":"trade","pair":"lbk_usdt","TS":"2025-01-27T21:22:47.925"}
  586. rust now: 1737984167977077
  587. rust cycle latency: 78
  588.  
  589. websocket depth latency: 180
  590. rust now: 1737984168544915
  591. rust cycle latency: 316
  592.  
  593. ^C
  594. Thread 1 "test" received signal SIGINT, Interrupt.
  595. 0x00007ffff6ce57f8 in __GI___clock_nanosleep (clock_id=clock_id@entry=0, flags=flags@entry=0, req=0x7fffffffdc40, rem=0x7fffffffdc40) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:78
  596. 78 ../sysdeps/unix/sysv/linux/clock_nanosleep.c: No such file or directory.
  597. (gdb)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement