Advertisement
den4ik2003

Untitled

Jan 24th, 2025
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.06 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/test_1.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 208420)]
  12. run forever balance 0x5555556a4790
  13. {"type": "SPOT", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "usdt", "free": 28.8791, "locked": 0, "update_time": 0}, {"asset": "lbk", "free": 872.107, "locked": 0, "update_time": 0}]}
  14. [New Thread 0x7fffe1e00640 (LWP 208452)]
  15. Initializing orderbook
  16. [New Thread 0x7fffe1400640 (LWP 208453)]
  17. {"symbol": "lbk_usdt", "market": "LBANK_SPOT", "account": "TEST_1"}
  18. cooldown: 15000
  19. sleep time: 15000
  20. binance subscribe: wss://fstream.binance.com/stream?streams=btcusdt@kline_5m/btcusdt@kline_1d
  21. /mnt/volume_telemetry/lbk_usdt_lbank_spot
  22. {"name": "VANILLA", "separate": "0", "labels": ["50"], "symbols": [{"account": "TEST_1", "market": "LBANK_SPOT", "symbol": "lbk_usdt"}]}
  23. members_.channels[i].stream: ACCOUNT_BALANCE
  24. members_.channels[i].stream: PART_DEPTH
  25. members_.channels[i].stream: ACCOUNT_ORDER
  26. get balance indicator 0x5555556a48b8
  27. {"ok": "1"}
  28. {"subscribe": "assetUpdate", "action": "subscribe"}
  29. {"depth": "50", "pair": "lbk_usdt", "subscribe": "depth", "action": "subscribe"}
  30. {"pair": "lbk_usdt", "subscribe": "orderUpdate", "action": "subscribe"}
  31. [New Thread 0x7fffe0a00640 (LWP 208454)]
  32. [New Thread 0x7fffd7e00640 (LWP 208455)]
  33. {"ok": "1"}
  34. subscription_channel.serialize(): {"subscribeKey": "a0ce6df8b673fc4fde5682f6b20f822a10c870272cdfb713c3fc4125d3bbe1a0", "subscribe": "assetUpdate", "action": "subscribe"}
  35. subscription_channel.serialize(): {"depth": "50", "pair": "lbk_usdt", "subscribe": "depth", "action": "subscribe"}
  36. subscription_channel.serialize(): {"subscribeKey": "a0ce6df8b673fc4fde5682f6b20f822a10c870272cdfb713c3fc4125d3bbe1a0", "pair": "lbk_usdt", "subscribe": "orderUpdate", "action": "subscribe"}
  37. upd balance cd: {"asset": "usdt", "free": 28.8791, "locked": 0, "update_time": 0}
  38. upd balance cd: {"asset": "lbk", "free": 872.107, "locked": 0, "update_time": 0}
  39. 1737729560291 ask: 0.02538/516 upd_time: 1737729556861
  40. 1737729560291 bid: 0.025316/118 upd_time: 1737729556861
  41. [ 2025-01-24-14-39-20 ] DEBUG base balance: {"asset": "lbk", "free": 872.107, "locked": 0, "update_time": 0}
  42. [ 2025-01-24-14-39-20 ] DEBUG quote balance: {"asset": "usdt", "free": 28.8791, "locked": 0, "update_time": 0}
  43. current_volume_5m: 349.249
  44. btc_turnover_1d: 4.06875e+10
  45. price_max: 105697
  46. price_min: 104814
  47. sleep_time: 15387
  48. current_volume: 17.913
  49. btc_klines_5m[btc_klines_5m.size() - 1].close: 105241.3
  50. norm_price_coeff: 0.484156
  51. (best_book.ask_price - best_book.bid_price - step_size) * norm_price_coeff: 3.05018e-05
  52. (best_book.bid_price + step_size / 2): 0.0253165
  53. current_price: 0.025347
  54. max_trade_available_quantity: 832.655
  55. calculated_current_volume: 22.7652
  56. [ 2025-01-24-14-39-20 ] MESSAGE: current_quantity >= base_balance - 1 / current_price
  57. [ 2025-01-24-14-39-20 ] INFO execution order event process: OrderEvent: symbol="lbk_usdt", type="LIMIT_GRID", asks: [], bids: [(0.02538, 898.143); ]
  58. [ 2025-01-24-14-39-20 ] DEBUG bid in _process_limit_grid: 0.02538
  59. [ 2025-01-24-14-39-20 ] DEBUG bid in _process_limit_grid: 898.143
  60. [New Thread 0x7fffd7400640 (LWP 208474)]
  61. [ 2025-01-24-14-39-20 ] DEBUG csize: 0
  62. _feed_process: {"SERVER":"V2","orderUpdate":{"accAmt":"0","amount":"0","avgPrice":"0","customerID":"142475217912112","orderAmt":"898","orderPrice":"0.02538","orderStatus":0,"price":"0","remainAmt":"22.79124","role":"taker","symbol":"lbk_usdt","type":"buy","updateTime":1737729560442,"uuid":"e58b20ed-51e4-4ea0-a6b4-bbee71c94da0","volumePrice":"0"},"type":"orderUpdate","pair":"lbk_usdt","TS":"2025-01-24T22:39:20.443"}
  63. [ 2025-01-24-14-39-20 ] INFO : WebSocketEvent: , event_time=0", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 1737729560442, "order": {"symbol": "lbk_usdt", "coid": 142475217912112, "order_id": "e58b20ed-51e4-4ea0-a6b4-bbee71c94da0", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.025380, "quantity": 898, "filled_quantity": 0, "update_time": 1737729560442}}
  64. [Thread 0x7fffd7400640 (LWP 208474) exited]
  65. {"ts": "1737729560539", "error_code": "10016", "result": "false", "msg": "Currency is not enough"}
  66. _feed_process: {"SERVER":"V2","orderUpdate":{"accAmt":"516","amount":"516","avgPrice":"0.02538","customerID":"142475217912112","orderAmt":"898","orderPrice":"0.02538","orderStatus":1,"price":"0.02538","remainAmt":"9.69516","role":"taker","symbol":"lbk_usdt","txUuid":"2890de271d72a3e289eb942c9a99b725b4159bfb","type":"buy","updateTime":1737729560589,"uuid":"e58b20ed-51e4-4ea0-a6b4-bbee71c94da0","volumePrice":"13.09608"},"type":"orderUpdate","pair":"lbk_usdt","TS":"2025-01-24T22:39:20.595"}
  67. [ 2025-01-24-14-39-20 ] INFO : WebSocketEvent: , event_time=0", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 1737729560589, "order": {"symbol": "lbk_usdt", "coid": 142475217912112, "order_id": "e58b20ed-51e4-4ea0-a6b4-bbee71c94da0", "type": "LIMIT", "side": "BUY", "status": "PARTIALLY_FILLED", "price": 0.025380, "quantity": 898, "filled_quantity": 516, "update_time": 1737729560589}}
  68. _feed_process: {"data":{"asset":"1387.591","assetCode":"lbk","free":"1387.591","freeze":"0","time":1737729560594,"type":"ORDER_DEAL"},"SERVER":"V2","type":"assetUpdate","TS":"2025-01-24T22:39:20.595"}
  69. BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737729560594, "balance": {"asset": "lbk", "free": 1387.59, "locked": 0, "update_time": 1737729560594}}
  70. $ tlm_lbk
  71. _feed_process: {"data":{"asset":"1769.209","assetCode":"lbk","free":"1769.209","freeze":"0","time":1737729562012,"type":"ORDER_DEAL"},"SERVER":"V2","type":"assetUpdate","TS":"2025-01-24T22:39:22.013"}
  72. BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737729562012, "balance": {"asset": "lbk", "free": 1769.21, "locked": 0, "update_time": 1737729562012}}
  73. _feed_process: {"SERVER":"V2","orderUpdate":{"accAmt":"898","amount":"382","avgPrice":"0.02538","customerID":"142475217912112","orderAmt":"898","orderPrice":"0.02538","orderStatus":2,"price":"0.02538","remainAmt":"0","role":"maker","symbol":"lbk_usdt","txUuid":"e2518183cefeaf3667631293f869ce0f2bf326d0","type":"buy","updateTime":1737729561974,"uuid":"e58b20ed-51e4-4ea0-a6b4-bbee71c94da0","volumePrice":"9.69516"},"type":"orderUpdate","pair":"lbk_usdt","TS":"2025-01-24T22:39:22.014"}
  74. [ 2025-01-24-14-39-22 ] INFO : WebSocketEvent: , event_time=0", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 1737729561974, "order": {"symbol": "lbk_usdt", "coid": 142475217912112, "order_id": "e58b20ed-51e4-4ea0-a6b4-bbee71c94da0", "type": "LIMIT", "side": "BUY", "status": "FILLED", "price": 0.025380, "quantity": 898, "filled_quantity": 898, "update_time": 1737729561974}}
  75. _feed_process: {"data":{"asset":"6.087822","assetCode":"usdt","free":"6.087822","freeze":"0","time":1737729560443,"type":"ORDER_CREATE"},"SERVER":"V2","type":"assetUpdate","TS":"2025-01-24T22:39:23.094"}
  76. BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737729560443, "balance": {"asset": "usdt", "free": 6.08782, "locked": 0, "update_time": 1737729560443}}
  77. $ tlm_usdt
  78. _feed_process: {"data":{"asset":"6.087822","assetCode":"usdt","free":"6.087822","freeze":"0","time":1737729560595,"type":"ORDER_DEAL"},"SERVER":"V2","type":"assetUpdate","TS":"2025-01-24T22:39:23.103"}
  79. BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737729560595, "balance": {"asset": "usdt", "free": 6.08782, "locked": 0, "update_time": 1737729560595}}
  80. _feed_process: {"data":{"asset":"6.087822","assetCode":"usdt","free":"6.087822","freeze":"0","time":1737729562013,"type":"ORDER_DEAL"},"SERVER":"V2","type":"assetUpdate","TS":"2025-01-24T22:39:23.107"}
  81. BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737729562013, "balance": {"asset": "usdt", "free": 6.08782, "locked": 0, "update_time": 1737729562013}}
  82. [Thread 0x7fffe2200640 (LWP 208420) exited]
  83. 1737729572895 volunerable ping: {"ping": "0ca8f854-7ba7-4341-9d86-d3327e52804e", "action": "ping"}
  84. 1737729576012 ask: 0.02538/516 upd_time: 1737729556861
  85. 1737729576012 bid: 0.025316/118 upd_time: 1737729556861
  86. [ 2025-01-24-14-39-36 ] DEBUG base balance: {"asset": "lbk", "free": 1769.21, "locked": 0, "update_time": 1737729562012}
  87. [ 2025-01-24-14-39-36 ] DEBUG quote balance: {"asset": "usdt", "free": 6.08782, "locked": 0, "update_time": 1737729562013}
  88. current_volume_5m: 349.249
  89. btc_turnover_1d: 4.06875e+10
  90. price_max: 105697
  91. price_min: 104814
  92. sleep_time: 20086
  93. current_volume: 23.3834
  94. btc_klines_5m[btc_klines_5m.size() - 1].close: 105295.0
  95. norm_price_coeff: 0.54493
  96. (best_book.ask_price - best_book.bid_price - step_size) * norm_price_coeff: 3.43306e-05
  97. (best_book.bid_price + step_size / 2): 0.0253165
  98. current_price: 0.0253508
  99. max_trade_available_quantity: 200.696
  100. calculated_current_volume: 15.5889
  101. [ 2025-01-24-14-39-36 ] MESSAGE: current_quantity * current_price >= quote_balance - 1
  102. [ 2025-01-24-14-39-36 ] INFO execution order event process: OrderEvent: symbol="lbk_usdt", type="LIMIT_GRID", asks: [(0.025316, 614.927); ], bids: []
  103. [ 2025-01-24-14-39-36 ] DEBUG ask in _process_limit_grid: 0.025316
  104. [ 2025-01-24-14-39-36 ] DEBUG ask in _process_limit_grid: 614.927
  105. [New Thread 0x7fffd7400640 (LWP 208531)]
  106. [ 2025-01-24-14-39-36 ] DEBUG csize: 0
  107. _feed_process: {"SERVER":"V2","orderUpdate":{"accAmt":"0","amount":"0","avgPrice":"0","customerID":"142475217912113","orderAmt":"615","orderPrice":"0.025316","orderStatus":0,"price":"0","remainAmt":"615","role":"taker","symbol":"lbk_usdt","type":"sell","updateTime":1737729576085,"uuid":"0f0c6771-1fd9-4c22-b003-631ed5a42d6b","volumePrice":"0"},"type":"orderUpdate","pair":"lbk_usdt","TS":"2025-01-24T22:39:36.086"}
  108. [ 2025-01-24-14-39-36 ] INFO : WebSocketEvent: , event_time=0", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 1737729576085, "order": {"symbol": "lbk_usdt", "coid": 142475217912113, "order_id": "0f0c6771-1fd9-4c22-b003-631ed5a42d6b", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.025316, "quantity": 615, "filled_quantity": 0, "update_time": 1737729576085}}
  109. _feed_process: [New Thread 0x7fffd6a00640 (LWP 208532)]
  110. {"data":{"asset":"1769.209","assetCode":"lbk","free":"1154.209","freeze":"615","time":1737729576085,"type":"ORDER_CREATE"},"SERVER":"V2","type":"assetUpdate","TS":"2025-01-24T22:39:36.087"}
  111. BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737729576085, "balance": {"asset": "lbk", "free": 1154.21, "locked": 615, "update_time": 1737729576085}}
  112. [Thread 0x7fffd7400640 (LWP 208531) exited]
  113. _feed_process: {"SERVER":"V2","orderUpdate":{"accAmt":"118","amount":"118","avgPrice":"0.025316","customerID":"142475217912113","orderAmt":"615","orderPrice":"0.025316","orderStatus":1,"price":"0.025316","remainAmt":"497","role":"taker","symbol":"lbk_usdt","txUuid":"c9cdd774b761620bc652d99eee633577fdd3cd53","type":"sell","updateTime":1737729576232,"uuid":"0f0c6771-1fd9-4c22-b003-631ed5a42d6b","volumePrice":"2.987288"},"type":"orderUpdate","pair":"lbk_usdt","TS":"2025-01-24T22:39:36.238"}
  114. [ 2025-01-24-14-39-36 ] INFO : WebSocketEvent: , event_time=0", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 1737729576232, "order": {"symbol": "lbk_usdt", "coid": 142475217912113, "order_id": "0f0c6771-1fd9-4c22-b003-631ed5a42d6b", "type": "LIMIT", "side": "SELL", "status": "PARTIALLY_FILLED", "price": 0.025316, "quantity": 615, "filled_quantity": 118, "update_time": 1737729576232}}
  115. _feed_process: {"data":{"asset":"1651.209","assetCode":"lbk","free":"1154.209","freeze":"497","time":1737729576238,"type":"ORDER_DEAL"},"SERVER":"V2","type":"assetUpdate","TS":"2025-01-24T22:39:36.239"}
  116. BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737729576238, "balance": {"asset": "lbk", "free": 1154.21, "locked": 497, "update_time": 1737729576238}}
  117. _feed_process: {"data":{"asset":"9.072123","assetCode":"usdt","free":"9.072123","freeze":"0","time":1737729576238,"type":"ORDER_DEAL"},"SERVER":"V2","type":"assetUpdate","TS":"2025-01-24T22:39:36.578"}
  118. BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737729576238, "balance": {"asset": "usdt", "free": 9.07212, "locked": 0, "update_time": 1737729576238}}
  119. upd balance cd: {"asset": "usdt", "free": 6.08782, "locked": 0, "update_time": 0}
  120. upd balance cd: {"asset": "lbk", "free": 1769.21, "locked": 0, "update_time": 0}
  121. [Thread 0x7ffff6a00640 (LWP 208385) exited]
  122. 1737729587896 volunerable ping: {"ping": "0ca8f854-7ba7-4341-9d86-d3327e52804e", "action": "ping"}
  123. _feed_process: {"data":{"asset":"1154.209","assetCode":"lbk","free":"1154.209","freeze":"0","time":1737729588146,"type":"ORDER_DEAL"},"SERVER":"V2","type":"assetUpdate","TS":"2025-01-24T22:39:48.147"}
  124. BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737729588146, "balance": {"asset": "lbk", "free": 1154.21, "locked": 0, "update_time": 1737729588146}}
  125. _feed_process: {"data":{"asset":"21.641593","assetCode":"usdt","free":"21.641593","freeze":"0","time":1737729588147,"type":"ORDER_DEAL"},"SERVER":"V2","type":"assetUpdate","TS":"2025-01-24T22:39:48.147"}
  126. BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737729588147, "balance": {"asset": "usdt", "free": 21.6416, "locked": 0, "update_time": 1737729588147}}
  127. _feed_process: {"SERVER":"V2","orderUpdate":{"accAmt":"615","amount":"497","avgPrice":"0.025316","customerID":"142475217912113","orderAmt":"615","orderPrice":"0.025316","orderStatus":2,"price":"0.025316","remainAmt":"0","role":"maker","symbol":"lbk_usdt","txUuid":"a15831d482c3a265a2abb9e2e3b6eca7c7ad2770","type":"sell","updateTime":1737729588140,"uuid":"0f0c6771-1fd9-4c22-b003-631ed5a42d6b","volumePrice":"12.582052"},"type":"orderUpdate","pair":"lbk_usdt","TS":"2025-01-24T22:39:48.154"}
  128. [ 2025-01-24-14-39-48 ] INFO : WebSocketEvent: , event_time=0", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 1737729588140, "order": {"symbol": "lbk_usdt", "coid": 142475217912113, "order_id": "0f0c6771-1fd9-4c22-b003-631ed5a42d6b", "type": "LIMIT", "side": "SELL", "status": "FILLED", "price": 0.025316, "quantity": 615, "filled_quantity": 615, "update_time": 1737729588140}}
  129. [New Thread 0x7fffe2200640 (LWP 208607)]
  130. upd balance cd: {"asset": "usdt", "free": 9.07212, "locked": 0, "update_time": 0}
  131. upd balance cd: {"asset": "lbk", "free": 1154.21, "locked": 497, "update_time": 0}
  132. 1737729596670 ask: 0.02538/516 upd_time: 1737729556861
  133. 1737729596670 bid: 0.025316/118 upd_time: 1737729556861
  134. [ 2025-01-24-14-39-56 ] DEBUG base balance: {"asset": "lbk", "free": 1154.21, "locked": 497, "update_time": 0}
  135. [ 2025-01-24-14-39-56 ] DEBUG quote balance: {"asset": "usdt", "free": 9.07212, "locked": 0, "update_time": 0}
  136. [ 2025-01-24-14-39-56 ] INFO execution order event process: OrderEvent: symbol="lbk_usdt", type="LIMIT_GRID", asks: [], bids: []
  137. [ 2025-01-24-14-39-56 ] DEBUG csize: 0
  138. 1737729602896 volunerable ping: {"ping": "0ca8f854-7ba7-4341-9d86-d3327e52804e", "action": "ping"}
  139. [Thread 0x7fffe2a00640 (LWP 208418) exited]
  140. [New Thread 0x7ffff6a00640 (LWP 208660)]
  141. upd balance cd: {"asset": "usdt", "free": 21.6416, "locked": 0, "update_time": 0}
  142. upd balance cd: {"asset": "lbk", "free": 1154.21, "locked": 0, "update_time": 0}
  143. [Thread 0x7fffd6a00640 (LWP 208532) exited]
  144. [New Thread 0x7fffe2a00640 (LWP 208698)]
  145. upd balance cd: {"asset": "usdt", "free": 21.6416, "locked": 0, "update_time": 0}
  146. upd balance cd: {"asset": "lbk", "free": 1154.21, "locked": 0, "update_time": 0}
  147. 1737729617896 volunerable ping: {"ping": "0ca8f854-7ba7-4341-9d86-d3327e52804e", "action": "ping"}
  148. 1737729618015 ask: 0.02538/516 upd_time: 1737729556861
  149. 1737729618015 bid: 0.025316/118 upd_time: 1737729556861
  150. [ 2025-01-24-14-40-18 ] DEBUG base balance: {"asset": "lbk", "free": 1154.21, "locked": 0, "update_time": 0}
  151. [ 2025-01-24-14-40-18 ] DEBUG quote balance: {"asset": "usdt", "free": 21.6416, "locked": 0, "update_time": 0}
  152. current_volume_5m: 383.184
  153. btc_turnover_1d: 3.9796e+10
  154. price_max: 105697
  155. price_min: 104814
  156. sleep_time: 14205
  157. current_volume: 18.1438
  158. btc_klines_5m[btc_klines_5m.size() - 1].close: 105260.4
  159. norm_price_coeff: 0.505772
  160. (best_book.ask_price - best_book.bid_price - step_size) * norm_price_coeff: 3.18636e-05
  161. (best_book.bid_price + step_size / 2): 0.0253165
  162. current_price: 0.0253484
  163. max_trade_available_quantity: 814.317
  164. calculated_current_volume: 12.0958
  165. current_quantity: 477.184
  166. price/quantity: 0.0253484/477.184
  167. [ 2025-01-24-14-40-18 ] DEBUG volume strategy result: OrderEvent: symbol="lbk_usdt", type="SELF_TRADE"
  168. [ 2025-01-24-14-40-18 ] INFO execution order event process: OrderEvent: symbol="lbk_usdt", type="SELF_TRADE"
  169. _feed_process: {"data":{"asset":"21.641593","assetCode":"usdt","free":"9.550597","freeze":"12.090996","time":1737729618063,"type":"ORDER_CREATE"},"SERVER":"V2","type":"assetUpdate","TS":"2025-01-24T22:40:18.065"}
  170. 1737729600034: finished kline 5m
  171. BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737729618063, "balance": {"asset": "usdt", "free": 9.5506, "locked": 12.091, "update_time": 1737729618063}}
  172. _feed_process: {"SERVER":"V2","orderUpdate":{"accAmt":"0","amount":"0","avgPrice":"0","customerID":"142475217912114","orderAmt":"477","orderPrice":"0.025348","orderStatus":0,"price":"0","remainAmt":"12.090996","role":"taker","symbol":"lbk_usdt","type":"buy","updateTime":1737729618063,"uuid":"7664d55c-a284-4802-9024-40ea372e762d","volumePrice":"0"},"type":"orderUpdate","pair":"lbk_usdt","TS":"2025-01-24T22:40:18.079"}
  173. [ 2025-01-24-14-40-18 ] INFO : WebSocketEvent: , event_time=0", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 1737729618063, "order": {"symbol": "lbk_usdt", "coid": 142475217912114, "order_id": "7664d55c-a284-4802-9024-40ea372e762d", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.025348, "quantity": 477, "filled_quantity": 0, "update_time": 1737729618063}}
  174. _feed_process: {"data":{"asset":"1154.209","assetCode":"lbk","free":"677.209","freeze":"477","time":1737729618436,"type":"ORDER_CREATE"},"SERVER":"V2","type":"assetUpdate","TS":"2025-01-24T22:40:18.438"}
  175. BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737729618436, "balance": {"asset": "lbk", "free": 677.209, "locked": 477, "update_time": 1737729618436}}
  176. _feed_process: {"SERVER":"V2","orderUpdate":{"accAmt":"0","amount":"0","avgPrice":"0","customerID":"142475217912115","orderAmt":"477","orderPrice":"0.025348","orderStatus":0,"price":"0","remainAmt":"477","role":"taker","symbol":"lbk_usdt","type":"sell","updateTime":1737729618436,"uuid":"4829273f-e8b5-4ab3-ab44-23845a9cd628","volumePrice":"0"},"type":"orderUpdate","pair":"lbk_usdt","TS":"2025-01-24T22:40:18.453"}
  177. [ 2025-01-24-14-40-18 ] INFO : WebSocketEvent: , event_time=0", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 1737729618436, "order": {"symbol": "lbk_usdt", "coid": 142475217912115, "order_id": "4829273f-e8b5-4ab3-ab44-23845a9cd628", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.025348, "quantity": 477, "filled_quantity": 0, "update_time": 1737729618436}}
  178. _feed_process: {"SERVER":"V2","orderUpdate":{"accAmt":"477","amount":"477","avgPrice":"0.025348","customerID":"142475217912114","orderAmt":"477","orderPrice":"0.025348","orderStatus":2,"price":"0.025348","remainAmt":"0","role":"maker","symbol":"lbk_usdt","txUuid":"26ce33dbe955346ddcf076b597a05317d753fb01","type":"buy","updateTime":1737729618539,"uuid":"7664d55c-a284-4802-9024-40ea372e762d","volumePrice":"12.090996"},"type":"orderUpdate","pair":"lbk_usdt","TS":"2025-01-24T22:40:18.545"}
  179. [ 2025-01-24-14-40-18 ] INFO : WebSocketEvent: , event_time=0", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 1737729618539, "order": {"symbol": "lbk_usdt", "coid": 142475217912114, "order_id": "7664d55c-a284-4802-9024-40ea372e762d", "type": "LIMIT", "side": "BUY", "status": "FILLED", "price": 0.025348, "quantity": 477, "filled_quantity": 477, "update_time": 1737729618539}}
  180. _feed_process: {"data":{"asset":"1153.732","assetCode":"lbk","free":"1153.732","freeze":"0","time":1737729618544,"type":"ORDER_DEAL"},"SERVER":"V2","type":"assetUpdate","TS":"2025-01-24T22:40:18.545"}
  181. BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737729618544, "balance": {"asset": "lbk", "free": 1153.73, "locked": 0, "update_time": 1737729618544}}
  182. _feed_process: {"data":{"asset":"21.629502","assetCode":"usdt","free":"21.629502","freeze":"0","time":1737729618545,"type":"ORDER_DEAL"},"SERVER":"V2","type":"assetUpdate","TS":"2025-01-24T22:40:18.545"}
  183. BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737729618545, "balance": {"asset": "usdt", "free": 21.6295, "locked": 0, "update_time": 1737729618545}}
  184. _feed_process: {"SERVER":"V2","orderUpdate":{"accAmt":"477","amount":"477","avgPrice":"0.025348","customerID":"142475217912115","orderAmt":"477","orderPrice":"0.025348","orderStatus":2,"price":"0.025348","remainAmt":"0","role":"taker","symbol":"lbk_usdt","txUuid":"26ce33dbe955346ddcf076b597a05317d753fb01","type":"sell","updateTime":1737729618539,"uuid":"4829273f-e8b5-4ab3-ab44-23845a9cd628","volumePrice":"12.090996"},"type":"orderUpdate","pair":"lbk_usdt","TS":"2025-01-24T22:40:18.545"}
  185. [ 2025-01-24-14-40-18 ] INFO : WebSocketEvent: , event_time=0", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 1737729618539, "order": {"symbol": "lbk_usdt", "coid": 142475217912115, "order_id": "4829273f-e8b5-4ab3-ab44-23845a9cd628", "type": "LIMIT", "side": "SELL", "status": "FILLED", "price": 0.025348, "quantity": 477, "filled_quantity": 477, "update_time": 1737729618539}}
  186. [Thread 0x7ffff6a00640 (LWP 208660) exited]
  187. 1737729632344 ask: 0.02538/516 upd_time: 1737729556861
  188. 1737729632344 bid: 0.025316/118 upd_time: 1737729556861
  189. [ 2025-01-24-14-40-32 ] DEBUG base balance: {"asset": "lbk", "free": 1153.73, "locked": 0, "update_time": 1737729618544}
  190. [ 2025-01-24-14-40-32 ] DEBUG quote balance: {"asset": "usdt", "free": 21.6295, "locked": 0, "update_time": 1737729618545}
  191. current_volume_5m: 383.184
  192. btc_turnover_1d: 3.9796e+10
  193. price_max: 105697
  194. price_min: 104814
  195. sleep_time: 25243
  196. current_volume: 32.2424
  197. btc_klines_5m[btc_klines_5m.size() - 1].close: 105370.0
  198. norm_price_coeff: 0.62981
  199. (best_book.ask_price - best_book.bid_price - step_size) * norm_price_coeff: 3.9678e-05
  200. (best_book.bid_price + step_size / 2): 0.0253165
  201. current_price: 0.0253562
  202. max_trade_available_quantity: 813.589
  203. calculated_current_volume: 28.8011
  204. [ 2025-01-24-14-40-32 ] MESSAGE: current_quantity * current_price >= quote_balance - 1
  205. [ 2025-01-24-14-40-32 ] INFO execution order event process: OrderEvent: symbol="lbk_usdt", type="LIMIT_GRID", asks: [(0.025316, 1135.86); ], bids: []
  206. [ 2025-01-24-14-40-32 ] DEBUG ask in _process_limit_grid: 0.025316
  207. [ 2025-01-24-14-40-32 ] DEBUG ask in _process_limit_grid: 1135.86
  208. [New Thread 0x7fffd7400640 (LWP 208737)]
  209. [ 2025-01-24-14-40-32 ] DEBUG csize: 0
  210. _feed_process: {"SERVER":"V2","orderUpdate":{"accAmt":"0","amount":"0","avgPrice":"0","customerID":"142475217912116","orderAmt":"1136","orderPrice":"0.025316","orderStatus":0,"price":"0","remainAmt":"1136","role":"taker","symbol":"lbk_usdt","type":"sell","updateTime":1737729632433,"uuid":"74a86197-b1aa-422a-aafe-552e62006eb5","volumePrice":"0"},"type":"orderUpdate","pair":"lbk_usdt","TS":"2025-01-24T22:40:32.434"}
  211. [ 2025-01-24-14-40-32 ] INFO : WebSocketEvent: , event_time=0", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 1737729632433, "order": {"symbol": "lbk_usdt", "coid": 142475217912116, "order_id": "74a86197-b1aa-422a-aafe-552e62006eb5", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.025316, "quantity": 1136, "filled_quantity": 0, "update_time": 1737729632433}}
  212. _feed_process: {"data":{"asset":"1153.732","assetCode":"lbk","free":"17.732","freeze":"1136","time":1737729632433,"type":"ORDER_CREATE"},"SERVER":"V2","type":"assetUpdate","TS":"2025-01-24T22:40:32.435"}
  213. BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737729632433, "balance": {"asset": "lbk", "free": 17.732, "locked": 1136, "update_time": 1737729632433}}
  214. [New Thread 0x7fffd6a00640 (LWP 208738)]
  215. _feed_process: {"SERVER":"V2","orderUpdate":{"accAmt":"39","amount":"39","avgPrice":"0.025338","customerID":"142475217912116","orderAmt":"1136","orderPrice":"0.025316","orderStatus":1,"price":"0.025338","remainAmt":"1097","role":"taker","symbol":"lbk_usdt","txUuid":"0b06761a10d0675269346a24d858a519b801f630","type":"sell","updateTime":1737729632493,"uuid":"74a86197-b1aa-422a-aafe-552e62006eb5","volumePrice":"0.988182"},"type":"orderUpdate","pair":"lbk_usdt","TS":"2025-01-24T22:40:32.503"}
  216. [ 2025-01-24-14-40-32 ] INFO : WebSocketEvent: , event_time=0", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 1737729632493, "order": {"symbol": "lbk_usdt", "coid": 142475217912116, "order_id": "74a86197-b1aa-422a-aafe-552e62006eb5", "type": "LIMIT", "side": "SELL", "status": "PARTIALLY_FILLED", "price": 0.025316, "quantity": 1136, "filled_quantity": 39, "update_time": 1737729632493}}
  217. _feed_process: {"data":{"asset":"1114.732","assetCode":"lbk","free":"17.732","freeze":"1097","time":1737729632504,"type":"ORDER_DEAL"},"SERVER":"V2","type":"assetUpdate","TS":"2025-01-24T22:40:32.504"}
  218. BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737729632504, "balance": {"asset": "lbk", "free": 17.732, "locked": 1097, "update_time": 1737729632504}}
  219. [Thread 0x7fffd7400640 (LWP 208737) exited]
  220. _feed_process: {"data":{"asset":"22.616696","assetCode":"usdt","free":"22.616696","freeze":"0","time":1737729632504,"type":"ORDER_DEAL"},"SERVER":"V2","type":"assetUpdate","TS":"2025-01-24T22:40:32.754"}
  221. BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737729632504, "balance": {"asset": "usdt", "free": 22.6167, "locked": 0, "update_time": 1737729632504}}
  222. upd balance cd: {"asset": "usdt", "free": 21.6295, "locked": 0, "update_time": 0}
  223. upd balance cd: {"asset": "lbk", "free": 1153.73, "locked": 0, "update_time": 0}
  224. 1737729632896 volunerable ping: {"ping": "0ca8f854-7ba7-4341-9d86-d3327e52804e", "action": "ping"}
  225. {"ts": "1737729633278", "error_code": "10014", "result": "false", "msg": "Currency is not enough"}
  226. [Thread 0x7fffe2e00640 (LWP 208417) exited]
  227. [New Thread 0x7ffff6a00640 (LWP 208776)]
  228. upd balance cd: {"asset": "usdt", "free": 22.6167, "locked": 0, "update_time": 0}
  229. upd balance cd: {"asset": "lbk", "free": 17.732, "locked": 1097, "update_time": 0}
  230. 1737729647896 volunerable ping: {"ping": "0ca8f854-7ba7-4341-9d86-d3327e52804e", "action": "ping"}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement