Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_parser: BINANCE_FUTURES
- add_parser: BITMART_SPOT
- add_parser: LBANK_SPOT
- add_parser: MEXC_SPOT
- /home/ubuntu/keys//lbank_spot/mm.account
- shared_parser: LBANK_SPOT
- has: BINANCE_FUTURES
- has: BITMART_SPOT
- has: LBANK_SPOT
- has: MEXC_SPOT
- [New Thread 0x7fffe2200640 (LWP 462674)]
- run forever balance 0x5555556a4e50
- {"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}]}
- [New Thread 0x7fffe1e00640 (LWP 462705)]
- Initializing orderbook
- [New Thread 0x7fffe1400640 (LWP 462706)]
- {"symbol": "lbk_usdt", "market": "LBANK_SPOT", "account": "MM"}
- prev zero position: 2047.95 51.2306
- prev offset: 2047.95 51.2306
- zero position: 2047.95 51.2306
- offset: 2047.95 51.2306
- zone with bound: 200
- zone side: SELL
- quantity 0 : 800
- price offset 0 : 1000
- zone with bound: 1000
- zone side: SELL
- quantity 0 : 500
- quantity 1 : 500
- price offset 0 : 1200
- price offset 1 : 1600
- zone with bound: 200
- zone side: BUY
- quantity 0 : 20
- price offset 0 : 1000
- zone with bound: 1000
- zone side: BUY
- quantity 0 : 15
- quantity 1 : 15
- price offset 0 : 1200
- price offset 1 : 1600
- market ask zones: 2
- market bid zones: 2
- params size: 1
- ok
- {"name": "VANILLA", "labels": ["0"], "symbols": [{"account": "MM", "market": "LBANK_SPOT", "symbol": "lbk_usdt"}]}
- members_.channels[i].stream: ACCOUNT_BALANCE
- members_.channels[i].stream: PART_DEPTH
- members_.channels[i].stream: TRADE
- members_.channels[i].stream: ACCOUNT_ORDER
- {"subscribe": "assetUpdate", "action": "subscribe"}
- {"depth": "50", "pair": "lbk_usdt", "subscribe": "depth", "action": "subscribe"}
- {"pair": "lbk_usdt", "subscribe": "trade", "action": "subscribe"}
- {"pair": "lbk_usdt", "subscribe": "orderUpdate", "action": "subscribe"}
- [New Thread 0x7fffe0a00640 (LWP 462707)]
- [New Thread 0x7fffd7e00640 (LWP 462708)]
- {"ok": "1"}
- subscription_channel.serialize(): {"subscribeKey": "23fe429766156bf36d5011093d2c16af5339782fe9b0aff2f0c6d167a132a83a", "subscribe": "assetUpdate", "action": "subscribe"}
- subscription_channel.serialize(): {"depth": "50", "pair": "lbk_usdt", "subscribe": "depth", "action": "subscribe"}
- subscription_channel.serialize(): {"pair": "lbk_usdt", "subscribe": "trade", "action": "subscribe"}
- subscription_channel.serialize(): {"subscribeKey": "23fe429766156bf36d5011093d2c16af5339782fe9b0aff2f0c6d167a132a83a", "pair": "lbk_usdt", "subscribe": "orderUpdate", "action": "subscribe"}
- _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"}
- rust now: 1737984148504220
- rust cycle latency: 110
- websocket depth latency: 139
- rust now: 1737984149343612
- rust cycle latency: 369
- upd balance cd: {"asset": "usdt", "free": 6.23637, "locked": 44.9943, "update_time": 1737984139541}
- upd balance cd: {"asset": "lbk", "free": 247.95, "locked": 1800, "update_time": 1737984139541}
- websocket depth latency: 60
- rust now: 1737984150783596
- rust cycle latency: 267
- _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"}
- rust now: 1737984150783885
- rust cycle latency: 87
- websocket depth latency: 69
- rust now: 1737984150930597
- rust cycle latency: 283
- websocket depth latency: 54
- Market: LBANK_SPOT
- [ 2025-01-27-13-22-34 ] DEBUG base balance: {"asset": "lbk", "free": 247.95, "locked": 1800, "update_time": 1737984139541}
- [ 2025-01-27-13-22-34 ] DEBUG quote balance: {"asset": "usdt", "free": 6.23637, "locked": 44.9943, "update_time": 1737984139541}
- config.zero_quote - quote_balance: -5e-05
- base_balance - config.zero_base: 0
- ask_bound: 0.0230395
- bid_bound: 0.0230395
- quote_position: -5e-05
- config.offset_quote - quote_balance: -5e-05
- BUY usage coeff = 1
- base_position: 0
- config.offset_base - base_balance: 0
- SELL usage coeff = 1
- [ 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); ]
- [ 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); ]
- [ 2025-01-27-13-22-34 ] DEBUG ask in _process_limit_grid: 0.0267258
- [ 2025-01-27-13-22-34 ] DEBUG ask in _process_limit_grid: 500
- [ 2025-01-27-13-22-34 ] DEBUG ask in _process_limit_grid: 0.0258042
- [ 2025-01-27-13-22-34 ] DEBUG ask in _process_limit_grid: 500
- [ 2025-01-27-13-22-34 ] DEBUG ask in _process_limit_grid: 0.0253435
- [ 2025-01-27-13-22-34 ] DEBUG ask in _process_limit_grid: 800
- [ 2025-01-27-13-22-34 ] DEBUG bid in _process_limit_grid: 0.0193532
- [ 2025-01-27-13-22-34 ] DEBUG bid in _process_limit_grid: 775.066
- [ 2025-01-27-13-22-34 ] DEBUG bid in _process_limit_grid: 0.0202748
- [ 2025-01-27-13-22-34 ] DEBUG bid in _process_limit_grid: 739.836
- [ 2025-01-27-13-22-34 ] DEBUG bid in _process_limit_grid: 0.0207356
- [ 2025-01-27-13-22-34 ] DEBUG bid in _process_limit_grid: 964.527
- [ 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}
- [ 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}
- [ 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}
- [ 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}
- [ 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}
- [ 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}
- [New Thread 0x7fffd7400640 (LWP 462746)]
- [New Thread 0x7fffd6a00640 (LWP 462747)]
- [New Thread 0x7fffd6000640 (LWP 462748)]
- [New Thread 0x7fffd5600640 (LWP 462749)]
- [New Thread 0x7fffd4c00640 (LWP 462750)]
- [New Thread 0x7fffcbe00640 (LWP 462751)]
- [ 2025-01-27-13-22-34 ] DEBUG csize: 6
- [New Thread 0x7fffcb400640 (LWP 462752)]
- [New Thread 0x7fffcaa00640 (LWP 462753)]
- [New Thread 0x7fffca000640 (LWP 462754)]
- [New Thread 0x7fffc9600640 (LWP 462755)]
- [New Thread 0x7fffc8c00640 (LWP 462756)]
- [New Thread 0x7fffbfe00640 (LWP 462757)]
- rust now: 1737984154737594
- rust cycle latency: 11008
- _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"}
- rust now: 1737984154748621
- rust cycle latency: 52
- {"ts": "1737984154780", "error_code": "10016", "result": "false", "msg": "Currency is not enough"}
- {"ts": "1737984154784", "error_code": "10016", "result": "false", "msg": "Currency is not enough"}
- {"ts": "1737984154785", "error_code": "10016", "result": "false", "msg": "Currency is not enough"}
- {"ts": "1737984154785", "error_code": "10014", "result": "false", "msg": "Currency is not enough"}
- [Thread 0x7fffcaa00640 (LWP 462753) exited]
- _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"}
- [ 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}}
- rust now: 1737984154898887
- rust cycle latency: 256
- [Thread 0x7fffbfe00640 (LWP 462757) exited]
- _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"}
- [ 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}}
- rust now: 1737984154899638
- rust cycle latency: 321
- _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"}
- [ 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}}
- rust now: 1737984154901018
- rust cycle latency: 285
- _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"}
- [ 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}}
- rust now: 1737984154906866
- rust cycle latency: 161
- _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"}
- get balance indicator 0x5555556a4f78
- AccountOrderFail
- BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737984154876, "balance": {"asset": "usdt", "free": 36.2369, "locked": 14.9938, "update_time": 1737984154876}}
- $ tlm_usdt
- rust now: 1737984154913277
- rust cycle latency: 182
- _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"}
- [ 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}}
- rust now: 1737984154913637
- rust cycle latency: 118
- _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"}
- AccountOrderFail
- BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737984154877, "balance": {"asset": "lbk", "free": 847.95, "locked": 1200, "update_time": 1737984154877}}
- $ tlm_lbk
- rust now: 1737984154913765
- rust cycle latency: 121
- _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"}
- [ 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}}
- rust now: 1737984154913896
- rust cycle latency: 189
- _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"}
- AccountOrderFail
- BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737984154878, "balance": {"asset": "usdt", "free": 36.2369, "locked": 14.9938, "update_time": 1737984154878}}
- rust now: 1737984154914101
- rust cycle latency: 67
- [Thread 0x7fffcb400640 (LWP 462752) exited]
- [Thread 0x7fffca000640 (LWP 462754) exited]
- [Thread 0x7fffc9600640 (LWP 462755) exited]
- [Thread 0x7fffc8c00640 (LWP 462756) exited]
- {"ts": "1737984154915", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
- {"ts": "1737984154917", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
- [Thread 0x7fffd7400640 (LWP 462746) exited]
- [Thread 0x7fffd6a00640 (LWP 462747) exited]
- [Thread 0x7fffd6000640 (LWP 462748) exited]
- [Thread 0x7fffd5600640 (LWP 462749) exited]
- {"ts": "1737984154931", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
- {"ts": "1737984154934", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
- {"ts": "1737984154935", "error_code": "10037", "result": "false", "msg": "The order has been cancelled or completed"}
- {"ts": "1737984154941", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
- _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"}
- [ 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}}
- rust now: 1737984154968061
- rust cycle latency: 257
- _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"}
- [ 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}}
- rust now: 1737984154968347
- rust cycle latency: 213
- _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"}
- AccountOrderFail
- AccountOrderFail
- BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737984154919, "balance": {"asset": "lbk", "free": 1447.95, "locked": 600, "update_time": 1737984154919}}
- rust now: 1737984154968583
- rust cycle latency: 139
- _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"}
- [ 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}}
- rust now: 1737984154968749
- rust cycle latency: 113
- _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"}
- AccountOrderFail
- BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737984154937, "balance": {"asset": "lbk", "free": 947.95, "locked": 1100, "update_time": 1737984154937}}
- rust now: 1737984154968870
- rust cycle latency: 122
- _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"}
- [ 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}}
- rust now: 1737984154971303
- rust cycle latency: 231
- _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"}
- BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737984154941, "balance": {"asset": "lbk", "free": 1047.95, "locked": 1000, "update_time": 1737984154941}}
- rust now: 1737984154971599
- rust cycle latency: 108
- _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"}
- BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737984154941, "balance": {"asset": "usdt", "free": 51.2306, "locked": 0, "update_time": 1737984154941}}
- rust now: 1737984154971720
- rust cycle latency: 59
- _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"}
- [ 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}}
- rust now: 1737984154971787
- rust cycle latency: 107
- {"ts": "1737984154943", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
- _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"}
- BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737984154942, "balance": {"asset": "lbk", "free": 1047.95, "locked": 1000, "update_time": 1737984154942}}
- rust now: 1737984154973488
- rust cycle latency: 109
- _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"}
- [ 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}}
- rust now: 1737984154973639
- rust cycle latency: 116
- _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"}
- [ 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}}
- rust now: 1737984154973801
- rust cycle latency: 331
- {"ts": "1737984154951", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
- {"ts": "1737984154959", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
- {"ts": "1737984154970", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
- {"ts": "1737984154971", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
- {"ts": "1737984154968", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
- {"ts": "1737984154973", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
- {"ts": "1737984154980", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
- {"ts": "1737984154992", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
- {"ts": "1737984154995", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
- {"ts": "1737984154998", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
- {"ts": "1737984155004", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
- {"ts": "1737984155004", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
- {"ts": "1737984155007", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
- {"ts": "1737984155010", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
- {"ts": "1737984155019", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
- {"ts": "1737984155029", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
- {"ts": "1737984155029", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
- {"ts": "1737984155032", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
- [Thread 0x7fffd4c00640 (LWP 462750) exited]
- [Thread 0x7fffcbe00640 (LWP 462751) exited]
- _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"}
- [ 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}}
- rust now: 1737984155178566
- rust cycle latency: 235
- {"ts": "1737984154991", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
- {"ts": "1737984154999", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
- {"ts": "1737984155267", "error_code": "10036", "result": "false", "msg": "Duplicate custom_id"}
- {"ts": "1737984155269", "error_code": "10036", "result": "false", "msg": "Duplicate custom_id"}
- websocket depth latency: 42
- rust now: 1737984155326094
- rust cycle latency: 299
- _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"}
- rust now: 1737984155340222
- rust cycle latency: 86
- {"ts": "1737984154997", "error_code": "10026", "result": "false", "msg": "the order had bean canceled"}
- websocket depth latency: 31
- rust now: 1737984156411249
- rust cycle latency: 290
- _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"}
- rust now: 1737984156414122
- rust cycle latency: 63
- websocket depth latency: 138
- rust now: 1737984156956177
- rust cycle latency: 269
- websocket depth latency: 68
- Market: LBANK_SPOT
- [ 2025-01-27-13-22-38 ] DEBUG base balance: {"asset": "lbk", "free": 1047.95, "locked": 1000, "update_time": 1737984154942}
- [ 2025-01-27-13-22-38 ] DEBUG quote balance: {"asset": "usdt", "free": 51.2306, "locked": 0, "update_time": 1737984154941}
- config.zero_quote - quote_balance: -5e-05
- base_balance - config.zero_base: 0
- ask_bound: 0.0230725
- bid_bound: 0.0230725
- quote_position: -5e-05
- config.offset_quote - quote_balance: -5e-05
- BUY usage coeff = 1
- base_position: 0
- config.offset_base - base_balance: 0
- SELL usage coeff = 1
- [ 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); ]
- [ 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); ]
- [ 2025-01-27-13-22-38 ] DEBUG ask in _process_limit_grid: 0.0267258
- [ 2025-01-27-13-22-38 ] DEBUG ask in _process_limit_grid: 500
- [ 2025-01-27-13-22-38 ] DEBUG ask in _process_limit_grid: 0.0258042
- [ 2025-01-27-13-22-38 ] DEBUG ask in _process_limit_grid: 500
- [ 2025-01-27-13-22-38 ] DEBUG ask in _process_limit_grid: 0.0253435
- [ 2025-01-27-13-22-38 ] DEBUG ask in _process_limit_grid: 800
- [ 2025-01-27-13-22-38 ] DEBUG bid in _process_limit_grid: 0.0193532
- [ 2025-01-27-13-22-38 ] DEBUG bid in _process_limit_grid: 775.066
- [ 2025-01-27-13-22-38 ] DEBUG bid in _process_limit_grid: 0.0202748
- [ 2025-01-27-13-22-38 ] DEBUG bid in _process_limit_grid: 739.836
- [ 2025-01-27-13-22-38 ] DEBUG bid in _process_limit_grid: 0.0207356
- [ 2025-01-27-13-22-38 ] DEBUG bid in _process_limit_grid: 964.527
- [ 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}
- [ 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}
- [New Thread 0x7fffcbe00640 (LWP 462758)]
- [New Thread 0x7fffd4c00640 (LWP 462759)]
- [New Thread 0x7fffd5600640 (LWP 462760)]
- [New Thread 0x7fffd6000640 (LWP 462761)]
- [ 2025-01-27-13-22-38 ] DEBUG csize: 0
- rust now: 1737984158312839
- rust cycle latency: 7453
- _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"}
- rust now: 1737984158320315
- rust cycle latency: 56
- _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"}
- [ 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}}
- rust now: 1737984158482831
- rust cycle latency: 288
- _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"}
- AccountOrderFail
- AccountOrderFail
- BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737984158445, "balance": {"asset": "usdt", "free": 1.21833, "locked": 50.0123, "update_time": 1737984158445}}
- rust now: 1737984158483145
- rust cycle latency: 145
- _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"}
- [ 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}}
- rust now: 1737984158483304
- rust cycle latency: 116
- _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"}
- BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737984158447, "balance": {"asset": "usdt", "free": 1.21833, "locked": 50.0123, "update_time": 1737984158447}}
- rust now: 1737984158483428
- rust cycle latency: 127
- [Thread 0x7fffd4c00640 (LWP 462759) exited]
- [Thread 0x7fffd6000640 (LWP 462761) exited]
- _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"}
- [ 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}}
- rust now: 1737984158553033
- rust cycle latency: 251
- _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"}
- BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737984158523, "balance": {"asset": "usdt", "free": 1.21833, "locked": 50.0123, "update_time": 1737984158523}}
- rust now: 1737984158553596
- rust cycle latency: 124
- {"ts": "1737984158555", "error_code": "10016", "result": "false", "msg": "Currency is not enough"}
- _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"}
- [ 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}}
- rust now: 1737984158585996
- rust cycle latency: 292
- _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"}
- BALANCE UPDATE: {"stream": ACCOUNT_BALANCE, "event_time": 1737984158554, "balance": {"asset": "lbk", "free": 247.95, "locked": 1800, "update_time": 1737984158554}}
- rust now: 1737984158586382
- rust cycle latency: 131
- [Thread 0x7fffcbe00640 (LWP 462758) exited]
- [Thread 0x7fffd5600640 (LWP 462760) exited]
- {"ts": "1737984158555", "error_code": "10014", "result": "false", "msg": "Currency is not enough"}
- websocket depth latency: 182
- rust now: 1737984159357752
- rust cycle latency: 327
- websocket depth latency: 79
- rust now: 1737984159358120
- rust cycle latency: 310
- _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"}
- rust now: 1737984159358453
- rust cycle latency: 59
- websocket depth latency: 456
- Market: LBANK_SPOT
- [ 2025-01-27-13-22-41 ] DEBUG base balance: {"asset": "lbk", "free": 247.95, "locked": 1800, "update_time": 1737984158554}
- [ 2025-01-27-13-22-41 ] DEBUG quote balance: {"asset": "usdt", "free": 1.21833, "locked": 50.0123, "update_time": 1737984158523}
- config.zero_quote - quote_balance: -5e-05
- base_balance - config.zero_base: 0
- ask_bound: 0.0230515
- bid_bound: 0.0230515
- quote_position: -5e-05
- config.offset_quote - quote_balance: -5e-05
- BUY usage coeff = 1
- base_position: 0
- config.offset_base - base_balance: 0
- SELL usage coeff = 1
- [ 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); ]
- [ 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); ]
- [ 2025-01-27-13-22-41 ] DEBUG ask in _process_limit_grid: 0.0267258
- [ 2025-01-27-13-22-41 ] DEBUG ask in _process_limit_grid: 500
- [ 2025-01-27-13-22-41 ] DEBUG ask in _process_limit_grid: 0.0258042
- [ 2025-01-27-13-22-41 ] DEBUG ask in _process_limit_grid: 500
- [ 2025-01-27-13-22-41 ] DEBUG ask in _process_limit_grid: 0.0253435
- [ 2025-01-27-13-22-41 ] DEBUG ask in _process_limit_grid: 800
- [ 2025-01-27-13-22-41 ] DEBUG bid in _process_limit_grid: 0.0193532
- [ 2025-01-27-13-22-41 ] DEBUG bid in _process_limit_grid: 775.066
- [ 2025-01-27-13-22-41 ] DEBUG bid in _process_limit_grid: 0.0202748
- [ 2025-01-27-13-22-41 ] DEBUG bid in _process_limit_grid: 739.836
- [ 2025-01-27-13-22-41 ] DEBUG bid in _process_limit_grid: 0.0207356
- [ 2025-01-27-13-22-41 ] DEBUG bid in _process_limit_grid: 964.527
- [ 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}
- [ 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}
- [ 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}
- [ 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}
- [ 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}
- [ 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}
- [ 2025-01-27-13-22-41 ] DEBUG csize: 0
- rust now: 1737984161383294
- rust cycle latency: 6952
- _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"}
- rust now: 1737984161390272
- rust cycle latency: 64
- 1737984163334 volunerable ping: {"ping": "0ca8f854-7ba7-4341-9d86-d3327e52804e", "action": "ping"}
- _feed_process PONG: {"pong": "0ca8f854-7ba7-4341-9d86-d3327e52804e", "action": "pong"}
- rust now: 1737984163559574
- rust cycle latency: 52
- websocket depth latency: 65
- rust now: 1737984163559635
- rust cycle latency: 341
- _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"}
- rust now: 1737984163559999
- rust cycle latency: 48
- _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"}
- Market: LBANK_SPOT
- [ 2025-01-27-13-22-44 ] DEBUG base balance: {"asset": "lbk", "free": 247.95, "locked": 1800, "update_time": 1737984158554}
- [ 2025-01-27-13-22-44 ] DEBUG quote balance: {"asset": "usdt", "free": 1.21833, "locked": 50.0123, "update_time": 1737984158523}
- config.zero_quote - quote_balance: -5e-05
- base_balance - config.zero_base: 0
- ask_bound: 0.0230285
- bid_bound: 0.0230285
- quote_position: -5e-05
- config.offset_quote - quote_balance: -5e-05
- BUY usage coeff = 1
- base_position: 0
- config.offset_base - base_balance: 0
- SELL usage coeff = 1
- [ 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); ]
- [ 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); ]
- [ 2025-01-27-13-22-44 ] DEBUG ask in _process_limit_grid: 0.0267258
- [ 2025-01-27-13-22-44 ] DEBUG ask in _process_limit_grid: 500
- [ 2025-01-27-13-22-44 ] DEBUG ask in _process_limit_grid: 0.0258042
- [ 2025-01-27-13-22-44 ] DEBUG ask in _process_limit_grid: 500
- [ 2025-01-27-13-22-44 ] DEBUG ask in _process_limit_grid: 0.0253435
- [ 2025-01-27-13-22-44 ] DEBUG ask in _process_limit_grid: 800
- [ 2025-01-27-13-22-44 ] DEBUG bid in _process_limit_grid: 0.0193532
- [ 2025-01-27-13-22-44 ] DEBUG bid in _process_limit_grid: 775.066
- [ 2025-01-27-13-22-44 ] DEBUG bid in _process_limit_grid: 0.0202748
- [ 2025-01-27-13-22-44 ] DEBUG bid in _process_limit_grid: 739.836
- [ 2025-01-27-13-22-44 ] DEBUG bid in _process_limit_grid: 0.0207356
- [ 2025-01-27-13-22-44 ] DEBUG bid in _process_limit_grid: 964.527
- [ 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}
- [ 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}
- [ 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}
- [ 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}
- [ 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}
- [ 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}
- [ 2025-01-27-13-22-44 ] DEBUG csize: 0
- rust now: 1737984164882871
- rust cycle latency: 5838
- _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"}
- rust now: 1737984165849416
- rust cycle latency: 99
- websocket depth latency: 95
- rust now: 1737984165849543
- rust cycle latency: 275
- websocket depth latency: 73
- rust now: 1737984165849854
- rust cycle latency: 286
- websocket depth latency: 44
- rust now: 1737984166306325
- rust cycle latency: 292
- _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"}
- rust now: 1737984166306643
- rust cycle latency: 62
- websocket depth latency: 43
- rust now: 1737984166569440
- rust cycle latency: 281
- websocket depth latency: 29
- Market: LBANK_SPOT
- [ 2025-01-27-13-22-47 ] DEBUG base balance: {"asset": "lbk", "free": 247.95, "locked": 1800, "update_time": 1737984158554}
- [ 2025-01-27-13-22-47 ] DEBUG quote balance: {"asset": "usdt", "free": 1.21833, "locked": 50.0123, "update_time": 1737984158523}
- config.zero_quote - quote_balance: -5e-05
- base_balance - config.zero_base: 0
- ask_bound: 0.0230861
- bid_bound: 0.0230861
- quote_position: -5e-05
- config.offset_quote - quote_balance: -5e-05
- BUY usage coeff = 1
- base_position: 0
- config.offset_base - base_balance: 0
- SELL usage coeff = 1
- [ 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); ]
- [ 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); ]
- [ 2025-01-27-13-22-47 ] DEBUG ask in _process_limit_grid: 0.0267258
- [ 2025-01-27-13-22-47 ] DEBUG ask in _process_limit_grid: 500
- [ 2025-01-27-13-22-47 ] DEBUG ask in _process_limit_grid: 0.0258042
- [ 2025-01-27-13-22-47 ] DEBUG ask in _process_limit_grid: 500
- [ 2025-01-27-13-22-47 ] DEBUG ask in _process_limit_grid: 0.0253435
- [ 2025-01-27-13-22-47 ] DEBUG ask in _process_limit_grid: 800
- [ 2025-01-27-13-22-47 ] DEBUG bid in _process_limit_grid: 0.0193532
- [ 2025-01-27-13-22-47 ] DEBUG bid in _process_limit_grid: 775.066
- [ 2025-01-27-13-22-47 ] DEBUG bid in _process_limit_grid: 0.0202748
- [ 2025-01-27-13-22-47 ] DEBUG bid in _process_limit_grid: 739.836
- [ 2025-01-27-13-22-47 ] DEBUG bid in _process_limit_grid: 0.0207356
- [ 2025-01-27-13-22-47 ] DEBUG bid in _process_limit_grid: 964.527
- [ 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}
- [ 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}
- [ 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}
- [ 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}
- [ 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}
- [ 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}
- [ 2025-01-27-13-22-47 ] DEBUG csize: 0
- rust now: 1737984167951256
- rust cycle latency: 6068
- _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"}
- rust now: 1737984167977077
- rust cycle latency: 78
- websocket depth latency: 180
- rust now: 1737984168544915
- rust cycle latency: 316
- ^C
- Thread 1 "test" received signal SIGINT, Interrupt.
- 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
- 78 ../sysdeps/unix/sysv/linux/clock_nanosleep.c: No such file or directory.
- (gdb)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement