Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- market: BITMART_SPOT
- market: MEXC_SPOT
- market: MFS_DEX
- {"params": [{"quote_refund_fond": "10", "offset_base": "21610", "offset_quote": "56.5031", "zero_base": "21678", "zones": [{"side": "BUY", "quantity_step": "0", "total": "15", "protection": "false", "n_levels": "2", "bound": "200"}, {"side": "SELL", "quantity_step": "0", "total": "2000", "protection": "false", "n_levels": "2", "bound": "200"}], "price_step": "500", "zero_quote": "104.1822", "spread_size": "100"}], "target_price": "0.0082", "target_exchange": {"market": "MEXC_SPOT", "is_external_market": "false"}, "pricing_mode": "by_mid_price", "cooldown": "10000", "init_spread_size": "200"}
- converts_ size: 3
- api keys: mx0vglRsnmcTEgpmkD ef47dd75fb8b41eebf145056dc98032fthis = 0x555555958e40
- [New Thread 0x7ffff6800640 (LWP 1979509)]
- [New Thread 0x7ffff6400640 (LWP 1979517)]
- API 0x555555958e40
- run forever balance 0x555555958e40
- SIGN https://api.mexc.com/api/v3/account?recvWindow=5000×tamp=1734434937801&signature=aee5b7a2b7cb9199e8a9a698ea59de650c7399b05695f568546cded49b8f0809
- {"type": "SPOT", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "PNK", "free": 0.02, "locked": 0, "wallet": 0, "update_time": 0}, {"asset": "ORDITT", "free": 288.29, "locked": 0, "wallet": 0, "update_time": 0}, {"asset": "LAI", "free": 7061.78, "locked": 0, "wallet": 0, "update_time": 0}, {"asset": "MCC", "free": 54153.6, "locked": 0, "wallet": 0, "update_time": 0}, {"asset": "LOTT", "free": 18382, "locked": 3228, "wallet": 0, "update_time": 0}, {"asset": "ABDS", "free": 110, "locked": 0, "wallet": 0, "update_time": 0}, {"asset": "USDT", "free": 51.5649, "locked": 14.9382, "wallet": 0, "update_time": 0}]}
- [New Thread 0x7ffff6000640 (LWP 1979518)]
- SIGN https://api.mexc.com/api/v3/account?recvWindow=5000×tamp=1734434937836&signature=3b6d68258ae5cf8b206fa47765ef38b4277209a6fa85ddba9af3c4cd2e0f071a
- get balance indicator 0x555555958fe0
- trader {"symbol": "LOTTUSDT", "account": "TEST_1", "market": "MEXC_SPOT", "logger": {"severity_level": "DEBUG"}, "execution": {"print_ws_events": "1", "cancel_on_start": "0"}, "data": {"print_ws_events": "0", "use_part_depth": "true", "events": ["ORDER_BOOK"]}}
- >:)
- {"asset": "PNK", "free": 0.02, "locked": 0, "wallet": 0, "update_time": 0}
- {"asset": "ORDITT", "free": 288.29, "locked": 0, "wallet": 0, "update_time": 0}
- {"asset": "LAI", "free": 7061.78, "locked": 0, "wallet": 0, "update_time": 0}
- {"asset": "MCC", "free": 54153.6, "locked": 0, "wallet": 0, "update_time": 0}
- {"asset": "LOTT", "free": 18382, "locked": 3228, "wallet": 0, "update_time": 0}
- {"asset": "ABDS", "free": 110, "locked": 0, "wallet": 0, "update_time": 0}
- {"asset": "USDT", "free": 51.5649, "locked": 14.9382, "wallet": 0, "update_time": 0}
- SIGN https://api.mexc.com/api/v3/openOrders?recvWindow=5000&symbol=LOTTUSDT×tamp=1734434937891&signature=d54465959b9c58c359ff7036986904d67d013bfa9fc5b2c7f97d2bc84d38881a
- already opened {"symbol": "LOTTUSDT", "coid": 1734434700370, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008323, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 1734434937914}
- already opened {"symbol": "LOTTUSDT", "coid": 1734434700367, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.008043, "quantity": 928.000000, "filled_quantity": 0.000000, "update_time": 1734434937914}
- already opened {"symbol": "LOTTUSDT", "coid": 1734434700369, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008241, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 1734434937915}
- already opened {"symbol": "LOTTUSDT", "coid": 1734434700366, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.008125, "quantity": 919.000000, "filled_quantity": 0.000000, "update_time": 1734434937915}
- already opened {"symbol": "LOTTUSDT", "coid": 1734434700368, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008126, "quantity": 1230.000000, "filled_quantity": 0.000000, "update_time": 1734434937915}
- [New Thread 0x7ffff5600640 (LWP 1979519)]
- Execution was constructed
- Trader was created
- found target exchange symbol: 0x555556b0f478
- zone with bound: 200
- zone side: SELL
- quantity 0 : 1000
- quantity 1 : 1000
- price offset 0 : 50
- price offset 1 : 150
- zone with bound: 200
- zone side: BUY
- quantity 0 : 7.5
- quantity 1 : 7.5
- price offset 0 : 50
- price offset 1 : 150
- market ask zones: 1
- market bid zones: 1
- init mid price = 0.0081255
- params size: 1
- ok
- [New Thread 0x7ffff4c00640 (LWP 1979520)]
- [New Thread 0x7fffefe00640 (LWP 1979521)]
- SIGN https://api.mexc.com/api/v3/userDataStream?recvWindow=5000×tamp=1734434937916&signature=04e8242f3b2c8b92a7494fe815a18ea6139a59d344baf01062f1abd3c97ecb23
- [New Thread 0x7fffef400640 (LWP 1979522)]
- {"params": ["spot@private.account.v3.api", "spot@public.limit.depth.v3.api@LOTTUSDT@20", "spot@private.orders.v3.api", "spot@private.deals.v3.api"], "method": "SUBSCRIPTION"}
- Market: MEXC_SPOT
- refund_remain_quote: 10
- refund_remain_base: 0
- [ 2024-12-17-11-29-01 ] DEBUG base balance: {"asset": "LOTT", "free": 18382, "locked": 3228, "wallet": 0, "update_time": 0}
- [ 2024-12-17-11-29-01 ] DEBUG quote balance: {"asset": "USDT", "free": 51.5649, "locked": 14.9382, "wallet": 0, "update_time": 0}
- config.zero_quote - quote_balance: 47.6791
- base_balance - config.zero_base: -68.05
- ask_bound: 0.0082
- bid_bound: 0.0082
- quote_position: 47.6791
- config.offset_quote - quote_balance: -1.47222e-05
- BUY usage coeff = 1
- base_position: 68.05
- config.offset_base - base_balance: 0.05
- SELL usage coeff = 0.999975
- [ 2024-12-17-11-29-01 ] DEBUG strategy calculated orders: OrderEvent: delta=1.73434e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.008323, 999.975); (0.008241, 999.975); ], bids: [(0.008077, 928.563); (0.008159, 919.23); ]
- MEXC_SPOT book {"ask_price": 0.008126, "ask_quantity": 4492.92, "bid_price": 0.008124, "bid_quantity": 0}
- MEXC_SPOT grid OrderEvent: delta=1.73434e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.008323, 999.975); (0.008241, 999.975); ], bids: [(0.008077, 928.563); (0.008159, 919.23); ]
- min_bid: 0.008126
- max_ask: 0
- MEXC_SPOT grid before OrderEvent: delta=1.73434e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.008323, 999.975); (0.008241, 999.975); ], bids: [(0.008077, 928.563); (0.008159, 919.23); ]
- MEXC_SPOT grid after OrderEvent: delta=1.73434e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.008323, 999.975); (0.008241, 999.975); ], bids: [(0.008043, 928.563); (0.008125, 919.23); (0.008126, 1230.62); ]
- MEXC_SPOT new order OrderEvent: delta=1.73429e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.008323, 999.975); (0.008241, 999.975); ], bids: [(0.008043, 928.563); (0.008125, 919.23); (0.008126, 1230.62); ]
- Vector size: 1
- single res OrderEvent: delta=1.73429e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.008323, 999.975); (0.008241, 999.975); ], bids: [(0.008043, 928.563); (0.008125, 919.23); (0.008126, 1230.62); ]
- [ 2024-12-17-11-29-01 ] INFO portfolio: OrderEvent: delta=1.73429e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.008323, 999.975); (0.008241, 999.975); ], bids: [(0.008043, 928.563); (0.008125, 919.23); (0.008126, 1230.62); ]
- [ 2024-12-17-11-29-01 ] INFO execution order event process: OrderEvent: delta=1.73429e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.008323, 999.975); (0.008241, 999.975); ], bids: [(0.008043, 928.563); (0.008125, 919.23); (0.008126, 1230.62); ]
- [ 2024-12-17-11-29-01 ] MESSAGE: LIMIT GRID
- [ 2024-12-17-11-29-01 ] DEBUG in _process_limit_grid: 0.008323
- [ 2024-12-17-11-29-01 ] DEBUG in _process_limit_grid: 999.975
- [ 2024-12-17-11-29-01 ] DEBUG in _process_limit_grid: 0.008241
- [ 2024-12-17-11-29-01 ] DEBUG in _process_limit_grid: 999.975
- [ 2024-12-17-11-29-01 ] DEBUG in _process_limit_grid: 0.008043
- [ 2024-12-17-11-29-01 ] DEBUG in _process_limit_grid: 928.563
- [ 2024-12-17-11-29-01 ] DEBUG in _process_limit_grid: 0.008125
- [ 2024-12-17-11-29-01 ] DEBUG in _process_limit_grid: 919.23
- [ 2024-12-17-11-29-01 ] DEBUG in _process_limit_grid: 0.008126
- [ 2024-12-17-11-29-01 ] DEBUG in _process_limit_grid: 1230.62
- execution to cancel: id: 1734434700368 dex id = 0 p = 0.008126 q = 1230.000000
- execution to cancel: id: 1734434700366 dex id = 0 p = 0.008125 q = 919.000000
- execution to cancel: id: 1734434700369 dex id = 0 p = 0.008241 q = 999.000000
- execution to cancel: id: 1734434700367 dex id = 0 p = 0.008043 q = 928.000000
- execution to cancel: id: 1734434700370 dex id = 0 p = 0.008323 q = 999.000000
- [ 2024-12-17-11-29-01 ] DEBUG @#*&* : {"symbol": "LOTTUSDT", "price": 0.008126, "quantity": 1230.620000, "type": "LIMIT", "side": "BUY"}
- [ 2024-12-17-11-29-01 ] DEBUG @#*&* : {"symbol": "LOTTUSDT", "price": 0.008125, "quantity": 919.230000, "type": "LIMIT", "side": "BUY"}
- [ 2024-12-17-11-29-01 ] DEBUG @#*&* : {"symbol": "LOTTUSDT", "price": 0.008043, "quantity": 928.560000, "type": "LIMIT", "side": "BUY"}
- [ 2024-12-17-11-29-01 ] DEBUG @#*&* : {"symbol": "LOTTUSDT", "price": 0.008241, "quantity": 999.980000, "type": "LIMIT", "side": "SELL"}
- [ 2024-12-17-11-29-01 ] DEBUG @#*&* : {"symbol": "LOTTUSDT", "price": 0.008323, "quantity": 999.980000, "type": "LIMIT", "side": "SELL"}
- [ 2024-12-17-11-29-01 ] MESSAGE: csize: 5
- [New Thread 0x7fffeea00640 (LWP 1979530)]
- [ 2024-12-17-11-29-01 ] DEBUG ! cancel: {"symbol": "LOTTUSDT", "coid": 1734434700368, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008126[New Thread 0x7fffee000640 (LWP 1979531)]
- , "quantity": 1230.000000, "filled_quantity": 0.000000, "update_time": 1734434937915}
- 1734434941049
- delete mexc execute: {"timestamp": "1734434941049", "recvWindow": "5000", "origClientOrderId": "1734434700368", "symbol": "LOTTUSDT"}
- [ 2024-12-17-11-29-01 ] DEBUG ! cancel: {"symbol": "LOTTUSDT", "coid": 1734434700366, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.008125, "quantity": 919.000000, "filled_quantity": 0.000000SIGN [New Thread 0x7fffed600640 (LWP 1979532)]
- , https://api.mexc.com/api/v3/order?origClientOrderId=1734434700368&recvWindow=5000&symbol=LOTTUSDT×tamp=1734434941049&signature=9708d9f1d7ea87b9591d31332ed6b063846670f2739f7b8478527796f4e28bb2"update_time":
- 1734434937915}
- 1734434941049
- delete mexc execute: {"timestamp": "1734434941049", "recvWindow": "5000", "origClientOrderId": "1734434700366", "symbol": "LOTTUSDT"}
- [ 2024-12-17-11-29-01 ] DEBUG ! cancel: {"symbol": "LOTTUSDT", "coid": 1734434700369, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008241, "quantity": 999.000000, "filled_quantity": SIGN 0.000000https://api.mexc.com, /api/v3/order"update_time": ?1734434937915origClientOrderId=1734434700366&recvWindow=5000&symbol=LOTTUSDT×tamp=1734434941049&signature=4cc558a987fef2154c57a8ad8cb9514b521c05605bd46e4423cb6ad07cb165aa}
- 1734434941050
- delete mexc execute: {"timestamp": "1734434941050", "recvWindow": "5000", "origClientOrderId": "1734434700369", "symbol": "LOTTUSDT"}
- SIGN https://api.mexc.com/api/v3/order?origClientOrderId=1734434700369&recvWindow=5000&symbol=LOTTUSDT×tamp=1734434941050&signature=0cb87ca0746f53d59ab2dd77e40c79505fcab7ae9353d827ec55104d0f094ed1
- [New Thread 0x7fffecc00640 (LWP 1979533)]
- [New Thread 0x7fffe3e00640 (LWP 1979534)]
- [ 2024-12-17-11-29-01 ] DEBUG ! cancel: {"symbol": "LOTTUSDT", "coid": 1734434700367, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.008043, "quantity": 928.000000, "filled_quantity": 0.000000, "update_time": 1734434937914}
- 1734434941050
- delete mexc execute: {"timestamp": "1734434941050", "recvWindow": "5000", "origClientOrderId": "1734434700367", "symbol": "LOTTUSDT"}
- SIGN https://api.mexc.com/api/v3/order?origClientOrderId=1734434700367&recvWindow=5000&symbol=LOTTUSDT×tamp=1734434941050&signature=833531c516bd4403cae38058f1509b394f4067ed358c24479aa2f16a789c75aa
- [ 2024-12-17-11-29-01 ] DEBUG ! cancel: {"symbol": "LOTTUSDT", "coid": 1734434700370, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008323, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 1734434937914}
- 1734434941051
- delete mexc execute: {"timestamp": "1734434941051", "recvWindow": "5000", "origClientOrderId": "1734434700370", "symbol": "LOTTUSDT"}[New Thread 0x7fffe3400640 (LWP 1979535)]
- [New Thread 0x7fffe2a00640 (LWP 1979536)]
- SIGN https://api.mexc.com/api/v3/order?origClientOrderId=1734434700370&recvWindow=5000&symbol=LOTTUSDT×tamp=1734434941051&signature=750ef900725e18d98c94d1185860fa843dc21dd3c44e604b25e0d7865ba52e36
- [ 2024-12-17-11-29-01 ] DEBUG ! new: {"symbol": "LOTTUSDT", "price": 0.008126, "quantity": 1230.620000, "client_order_id": 1734434937892, "type": "LIMIT", "side": "BUY"}
- ! new api API 0x555555958e40
- new request mexc: {"newClientOrderId": "1734434937892", "quantity": "1230", "price": "0.008126", "side": "BUY", "type": "LIMIT", "symbol": "LOTTUSDT"}
- 1734434941052
- post mexc execute: {"timestamp": "1734434941052", "recvWindow": "5000", "newClientOrderId": "1734434937892", "quantity": "1230", "price": "0.008126", "side": "BUY", "type": "LIMIT", "symbol": "LOTTUSDT"}
- SIGN https://api.mexc.com/api/v3/order?newClientOrderId=1734434937892&price=0.008126&quantity=1230&recvWindow=5000&side=BUY&symbol=LOTTUSDT×tamp=1734434941052&type=LIMIT&signature=03eba439a22d910b35ed0ea2fdc805285db66469cc9d0cd4c9350209e5195829[New Thread 0x7fffe2600640 (LWP 1979537)]
- [ 2024-12-17-11-29-01 ] DEBUG ! new: [New Thread 0x7fffe1c00640 (LWP 1979538)]
- {"symbol": "LOTTUSDT", "price": 0.008125, "quantity": 919.230000, "client_order_id": 1734434937893, "type": "LIMIT", "side": "BUY"}
- ! new api API 0x555555958e40
- new request mexc: {"newClientOrderId": "1734434937893", "quantity": "919", "price": "0.008125", "side": "BUY", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
- 1734434941053
- post mexc execute: [New Thread 0x7fffe1200640 (LWP 1979539)]
- {"timestamp": "1734434941053", "recvWindow": "5000", "newClientOrderId": "1734434937893", "quantity": "919", "price": "0.008125", "side": "BUY", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
- [ 2024-12-17-11-29-01 ] DEBUG ! new: {"symbol": "LOTTUSDT", "price": 0.008043, "quantity": 928.560000, "client_order_id": 1734434937894, "type": "LIMIT", "side": "BUY"}
- ! new api API 0x555555958e40
- new request mexc: SIGN https://api.mexc.com/api/v3/order?newClientOrderId=1734434937893&price=0.008125&quantity=919&recvWindow=5000&side=BUY&symbol=LOTTUSDT×tamp=1734434941053&type=LIMIT_MAKER&signature=823c31a6c830f0d99df5eecd189ff5e5095afed1213d2ee366758eb495ffe6d1{"newClientOrderId": "1734434937894", "quantity": "928", "price": "0.008043", "side": "BUY", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
- 1734434941053
- post mexc execute: {"timestamp": "1734434941053", "recvWindow": "5000", "newClientOrderId": "1734434937894", "quantity": "928", "price": "0.008043", "side": "BUY", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
- SIGN https://api.mexc.com/api/v3/order?newClientOrderId=1734434937894&price=0.008043&quantity=928&recvWindow=5000&side=BUY&symbol=LOTTUSDT×tamp=1734434941053&type=LIMIT_MAKER&signature=8ab81ab8ee4de2778e9622ec1232675f2e43c989de74f4199d5d0d410998f3e1
- [New Thread 0x7fffe0e00640 (LWP 1979540)]
- [ 2024-12-17-11-29-01 ] DEBUG ! new: {"symbol": "LOTTUSDT", "price": 0.008241, "quantity": 999.980000, "client_order_id": 1734434937895, "type": "LIMIT", "side": "SELL"}
- ! new api API 0x555555958e40
- new request mexc: {"newClientOrderId": "1734434937895", "quantity": "999", "price": "0.008241", "side": "SELL", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
- 1734434941054
- post mexc execute: {"timestamp": "1734434941054", "recvWindow": "5000", "newClientOrderId": "1734434937895", "quantity": "999", "price": "0.008241", "side": "SELL", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
- [New Thread 0x7fffd7e00640 (LWP 1979541)]
- SIGN https://api.mexc.com/api/v3/order?newClientOrderId=1734434937895&price=0.008241&quantity=999&recvWindow=5000&side=SELL&symbol=LOTTUSDT×tamp=1734434941054&type=LIMIT_MAKER&signature=4259e5c85de5621d211fea60312d6721c6029361de47b6cfcb1bf0e9b105d818
- [New Thread 0x7fffe0400640 (LWP 1979542)]
- [ 2024-12-17-11-29-01 ] DEBUG ! new: {"symbol": "LOTTUSDT", "price": 0.008323, "quantity": 999.980000, "client_order_id": 1734434937896, "type": "LIMIT", "side": "SELL"}
- ! new api API 0x555555958e40
- new request mexc: {"newClientOrderId": "1734434937896", "quantity": "999", "price": "0.008323", "side": "SELL", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
- 1734434941056
- post mexc execute: {"timestamp": "1734434941056", "recvWindow": "5000", "newClientOrderId": "1734434937896", "quantity": "999", "price": "0.008323", "side": "SELL", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
- SIGN https://api.mexc.com/api/v3/order?newClientOrderId=1734434937896&price=0.008323&quantity=999&recvWindow=5000&side=SELL&symbol=LOTTUSDT×tamp=1734434941056&type=LIMIT_MAKER&signature=6921395f06fe83763013e5f318acda377da20c5fb24acdec23b7ec96f9d2b41e
- [ 2024-12-17-11-29-01 ] MESSAGE: cancel order delta: 31
- [ 2024-12-17-11-29-01 ] DEBUG ? cancel: {"symbol": "LOTTUSDT", "coid": 1734434700366, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.008125, "quantity": 919.000000, "filled_quantity": 0.000000, "update_time": 0}
- [Thread 0x7fffee000640 (LWP 1979531) exited]
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734434941082", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434700366, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 0.008125, "quantity": 919.000000, "filled_quantity": 0.000000, "update_time": 0}}
- [ 2024-12-17-11-29-01 ] INFO Execution::_process: WebSocketEvent: delta=1.73443e+11, event_time=1734434941082", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434700366, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 0.008125, "quantity": 919.000000, "filled_quantity": 0.000000, "update_time": 0}}
- [ 2024-12-17-11-29-01 ] MESSAGE: limit
- [ 2024-12-17-11-29-01 ] DEBUG Event order: : {"symbol": "LOTTUSDT", "coid": 1734434700366, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 0.008125, "quantity": 919.000000, "filled_quantity": 0.000000, "update_time": 0}
- old_it != cur_storage.end()
- [ 2024-12-17-11-29-01 ] DEBUG old order: : {"symbol": "LOTTUSDT", "coid": 1734434700366, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.008125, "quantity": 919.000000, "filled_quantity": 0.000000, "update_time": 1734434937915}
- [ 2024-12-17-11-29-01 ] MESSAGE: erase
- [ 2024-12-17-11-29-01 ] MESSAGE: ! LOTTUSDT
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734434941093", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434700370, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.008323, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}}
- [ 2024-12-17-11-29-01 ] INFO Execution::_process: WebSocketEvent: delta=1.73443e+11, event_time=1734434941093", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434700370, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.008323, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}}
- [ 2024-12-17-11-29-01 ] MESSAGE: limit
- [ 2024-12-17-11-29-01 ] DEBUG Event order: : {"symbol": "LOTTUSDT", "coid": 1734434700370, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.008323, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}
- old_it != cur_storage.end()
- [ 2024-12-17-11-29-01 ] DEBUG old order: : {"symbol": "LOTTUSDT", "coid": 1734434700370, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008323, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 1734434937914}
- [ 2024-12-17-11-29-01 ] MESSAGE: erase
- [ 2024-12-17-11-29-01 ] MESSAGE: ! LOTTUSDT
- [ 2024-12-17-11-29-01 ] MESSAGE: cancel order delta: 53
- [ 2024-12-17-11-29-01 ] DEBUG ? cancel: {"symbol": "LOTTUSDT", "coid": 1734434700367, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.008043, "quantity": 928.000000, "filled_quantity": 0.000000, "update_time": 0}
- [Thread 0x7fffecc00640 (LWP 1979533) exited]
- [ 2024-12-17-11-29-01 ] MESSAGE: cancel order delta: 53
- [ 2024-12-17-11-29-01 ] DEBUG ? cancel: {"symbol": "LOTTUSDT", "coid": 1734434700370, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008323, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}
- [Thread 0x7fffe3e00640 (LWP 1979534) exited]
- [ 2024-12-17-11-29-01 ] MESSAGE: cancel order delta: 55
- [ 2024-12-17-11-29-01 ] DEBUG ? cancel: {"symbol": "LOTTUSDT", "coid": 1734434700369, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008241, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}
- [Thread 0x7fffed600640 (LWP 1979532) exited]
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734434941096", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434700368, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.008126, "quantity": 1230.000000, "filled_quantity": 0.000000, "update_time": 0}}
- [ 2024-12-17-11-29-01 ] INFO Execution::_process: WebSocketEvent: delta=1.73443e+11, event_time=1734434941096", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434700368, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.008126, "quantity": 1230.000000, "filled_quantity": 0.000000, "update_time": 0}}
- [ 2024-12-17-11-29-01 ] MESSAGE: limit
- [ 2024-12-17-11-29-01 ] DEBUG Event order: : {"symbol": "LOTTUSDT", "coid": 1734434700368, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.008126, "quantity": 1230.000000, "filled_quantity": 0.000000, "update_time": 0}
- old_it != cur_storage.end()
- [ 2024-12-17-11-29-01 ] DEBUG old order: : {"symbol": "LOTTUSDT", "coid": 1734434700368, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008126, "quantity": 1230.000000, "filled_quantity": 0.000000, "update_time": 1734434937915}
- [ 2024-12-17-11-29-01 ] MESSAGE: erase
- [ 2024-12-17-11-29-01 ] MESSAGE: ! LOTTUSDT
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734434941101", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434700367, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 0.008043, "quantity": 928.000000, "filled_quantity": 0.000000, "update_time": 0}}
- [ 2024-12-17-11-29-01 ] INFO Execution::_process: WebSocketEvent: delta=1.73443e+11, event_time=1734434941101", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434700367, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 0.008043, "quantity": 928.000000, "filled_quantity": 0.000000, "update_time": 0}}
- [ 2024-12-17-11-29-01 ] MESSAGE: limit
- [ 2024-12-17-11-29-01 ] DEBUG Event order: : {"symbol": "LOTTUSDT", "coid": 1734434700367, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 0.008043, "quantity": 928.000000, "filled_quantity": 0.000000, "update_time": 0}
- old_it != cur_storage.end()
- [ 2024-12-17-11-29-01 ] DEBUG old order: : {"symbol": "LOTTUSDT", "coid": 1734434700367, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.008043, "quantity": 928.000000, "filled_quantity": 0.000000, "update_time": 1734434937914}
- [ 2024-12-17-11-29-01 ] MESSAGE: erase
- [ 2024-12-17-11-29-01 ] MESSAGE: ! LOTTUSDT
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734434941102", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434700369, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.008241, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}}
- [ 2024-12-17-11-29-01 ] INFO Execution::_process: WebSocketEvent: delta=1.73443e+11, event_time=1734434941102", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434700369, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.008241, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}}
- [ 2024-12-17-11-29-01 ] MESSAGE: limit
- [ 2024-12-17-11-29-01 ] DEBUG Event order: : {"symbol": "LOTTUSDT", "coid": 1734434700369, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.008241, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}
- old_it != cur_storage.end()
- [ 2024-12-17-11-29-01 ] DEBUG old order: : {"symbol": "LOTTUSDT", "coid": 1734434700369, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008241, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 1734434937915}
- [ 2024-12-17-11-29-01 ] MESSAGE: erase
- [ 2024-12-17-11-29-01 ] MESSAGE: ! LOTTUSDT
- [ 2024-12-17-11-29-01 ] MESSAGE: cancel order delta: 72
- [ 2024-12-17-11-29-01 ] DEBUG ? cancel: {"symbol": "LOTTUSDT", "coid": 1734434700368, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008126, "quantity": 1230.000000, "filled_quantity": 0.000000, "update_time": 0}
- [ 2024-12-17-11-29-01 ] MESSAGE: new order delta: 70
- [ 2024-12-17-11-29-01 ] DEBUG ? new: {"symbol": "LOTTUSDT", "coid": 1734434937896, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "[Thread 0x7fffeea00640 (LWP 1979530) exited]
- NEW", "quantity": 1230.000000, "update_time": 1734434941102}
- [Thread 0x7fffe3400640 (LWP 1979535) exited]
- [ 2024-12-17-11-29-01 ] MESSAGE: new order delta: 70
- [ 2024-12-17-11-29-01 ] DEBUG ? new: {"symbol": "LOTTUSDT", "coid": 1734434937896, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "quantity": 999.000000, "update_time": 1734434941108}
- [Thread 0x7fffd7e00640 (LWP 1979541) exited]
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734434941125", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434937892, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "FILLED", "price": 0.008126, "quantity": 1230.000000, "filled_quantity": 1230.000000, "update_time": 0}}
- [ 2024-12-17-11-29-01 ] INFO Execution::_process: WebSocketEvent: delta=1.73443e+11, event_time=1734434941125", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434937892, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "FILLED", "price": 0.008126, "quantity": 1230.000000, "filled_quantity": 1230.000000, "update_time": 0}}
- [ 2024-12-17-11-29-01 ] MESSAGE: limit
- [ 2024-12-17-11-29-01 ] DEBUG Event order: : {"symbol": "LOTTUSDT", "coid": 1734434937892, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "FILLED", "price": 0.008126, "quantity": 1230.000000, "filled_quantity": 1230.000000, "update_time": 0}
- old_it != cur_storage.end()
- [ 2024-12-17-11-29-01 ] DEBUG old order: : {"symbol": "LOTTUSDT", "coid": 1734434937892, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 0.008126, "quantity": 1230.620000, "update_time": 0}
- [ 2024-12-17-11-29-01 ] MESSAGE: (execution) filled quantity is not initialized
- $$$ {"symbol": "LOTTUSDT", "price": 0.008126, "quantity": 1230.000000, "trade_side": BUY, "trade_time": 0}
- open_position for order
- [ 2024-12-17-11-29-01 ] INFO Open position: : {"symbol": "LOTTUSDT", "price": 0.008126, "quantity": 1230.000000, "trade_side": BUY, "trade_time": 0}
- [ 2024-12-17-11-29-01 ] INFO new position: {"symbol": "LOTTUSDT", "entry_price": 0.008126, "quantity": 1230, "position_quote": 9.99498}
- [ 2024-12-17-11-29-01 ] MESSAGE: erase
- [ 2024-12-17-11-29-01 ] MESSAGE: ! LOTTUSDT
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734434941129", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434937893, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.008125, "quantity": 919.000000, "filled_quantity": 0.000000, "update_time": 0}}
- [ 2024-12-17-11-29-01 ] INFO Execution::_process: WebSocketEvent: delta=1.73443e+11, event_time=1734434941129", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434937893, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.008125, "quantity": 919.000000, "filled_quantity": 0.000000, "update_time": 0}}
- [ 2024-12-17-11-29-01 ] MESSAGE: limit
- [ 2024-12-17-11-29-01 ] DEBUG Event order: : {"symbol": "LOTTUSDT", "coid": 1734434937893, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.008125, "quantity": 919.000000, "filled_quantity": 0.000000, "update_time": 0}
- old_it != cur_storage.end()
- [ 2024-12-17-11-29-01 ] DEBUG old order: : {"symbol": "LOTTUSDT", "coid": 1734434937893, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 0.008125, "quantity": 919.230000, "update_time": 0}
- [ 2024-12-17-11-29-01 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-12-17-11-29-01 ] MESSAGE: ! LOTTUSDT
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734434941130", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434937896, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008323, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}}
- [ 2024-12-17-11-29-01 ] INFO Execution::_process: WebSocketEvent: delta=1.73443e+11, event_time=1734434941130", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434937896, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008323, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}}
- [ 2024-12-17-11-29-01 ] MESSAGE: limit
- [ 2024-12-17-11-29-01 ] DEBUG Event order: : {"symbol": "LOTTUSDT", "coid": 1734434937896, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008323, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}
- old_it != cur_storage.end()
- [ 2024-12-17-11-29-01 ] DEBUG old order: : {"symbol": "LOTTUSDT", "coid": 1734434937896, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": 0.008323, "quantity": 999.980000, "update_time": 0}
- [ 2024-12-17-11-29-01 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-12-17-11-29-01 ] MESSAGE: ! LOTTUSDT
- [ 2024-12-17-11-29-01 ] MESSAGE: new order delta: 88
- [ 2024-12-17-11-29-01 ] DEBUG ? new: {"symbol": "LOTTUSDT", "coid": 1734434937896, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "quantity": 999.000000, "update_time": 1734434941108}
- [Thread 0x7fffe0e00640 (LWP 1979540) exited]
- [ 2024-12-17-11-29-01 ] MESSAGE: new order delta: 89
- [ 2024-12-17-11-29-01 ] DEBUG ? new: {"symbol": "LOTTUSDT", "coid": 1734434937896, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "quantity": 928.000000, "update_time": 1734434941114}
- [Thread 0x7fffe1c00640 (LWP 1979538) exited]
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734434941133", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434937894, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.008043, "quantity": 928.000000, "filled_quantity": 0.000000, "update_time": 0}}
- [ 2024-12-17-11-29-01 ] INFO Execution::_process: WebSocketEvent: delta=1.73443e+11, event_time=1734434941133", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434937894, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.008043, "quantity": 928.000000, "filled_quantity": 0.000000, "update_time": 0}}
- [ 2024-12-17-11-29-01 ] MESSAGE: limit
- [ 2024-12-17-11-29-01 ] DEBUG Event order: : {"symbol": "LOTTUSDT", "coid": 1734434937894, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.008043, "quantity": 928.000000, "filled_quantity": 0.000000, "update_time": 0}
- old_it != cur_storage.end()
- [ 2024-12-17-11-29-01 ] DEBUG old order: : {"symbol": "LOTTUSDT", "coid": 1734434937894, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 0.008043, "quantity": 928.560000, "update_time": 0}
- [ 2024-12-17-11-29-01 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-12-17-11-29-01 ] MESSAGE: ! LOTTUSDT
- [ 2024-12-17-11-29-01 ] MESSAGE: new order delta: 93
- [ 2024-12-17-11-29-01 ] DEBUG ? new: {"symbol": "LOTTUSDT", "coid": 1734434937896, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "quantity": 919.000000, "update_time": 1734434941106}
- [Thread 0x7fffe2600640 (LWP 1979537) exited]
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734434941141", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434937895, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008241, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}}
- [ 2024-12-17-11-29-01 ] INFO Execution::_process: WebSocketEvent: delta=1.73443e+11, event_time=1734434941141", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434937895, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008241, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}}
- [ 2024-12-17-11-29-01 ] MESSAGE: limit
- [ 2024-12-17-11-29-01 ] DEBUG Event order: : {"symbol": "LOTTUSDT", "coid": 1734434937895, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008241, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}
- old_it != cur_storage.end()
- [ 2024-12-17-11-29-01 ] DEBUG old order: : {"symbol": "LOTTUSDT", "coid": 1734434937895, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": 0.008241, "quantity": 999.980000, "update_time": 0}
- [ 2024-12-17-11-29-01 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-12-17-11-29-01 ] MESSAGE: ! LOTTUSDT
- stream == e_stream::ACCOUNT_TRADE
- WebSocketEvent: delta=1.73443e+11, event_time=1734434941123", type="ACCOUNT_TRADE", event: {"stream": ACCOUNT_TRADE, "event_time": 140737337095104, "is_maker": false, "is_self_trade": false, "client_order_id": 1734434937892, "commission": {"asset": "USDT", "fee": 0.00499749}, "trade": {"symbol": "LOTTUSDT", "price": 0.008126, "quantity": 1230.000000, "trade_side": BUY, "trade_time": 1734434941123}}
- [ 2024-12-17-11-29-01 ] INFO Execution::_process: WebSocketEvent: delta=1.73443e+11, event_time=1734434941123", type="ACCOUNT_TRADE", event: {"stream": ACCOUNT_TRADE, "event_time": 140737337095104, "is_maker": false, "is_self_trade": false, "client_order_id": 1734434937892, "commission": {"asset": "USDT", "fee": 0.00499749}, "trade": {"symbol": "LOTTUSDT", "price": 0.008126, "quantity": 1230.000000, "trade_side": BUY, "trade_time": 1734434941123}}
- $$$ {"symbol": "LOTTUSDT", "price": 0.008126, "quantity": 1230.000000, "trade_side": SELL, "trade_time": 1734434941123}
- open_position for trade
- [ 2024-12-17-11-29-01 ] INFO Open position: : {"symbol": "LOTTUSDT", "price": 0.008126, "quantity": 1230.000000, "trade_side": SELL, "trade_time": 1734434941123}
- [ 2024-12-17-11-29-01 ] INFO new position: {"symbol": "LOTTUSDT", "entry_price": 0.008126, "quantity": -1230, "position_quote": -9.99498}
- update_available_refund_fond piece: 9.99498
- sell new fond: -9.99498
- [ 2024-12-17-11-29-01 ] MESSAGE: ! LOTTUSDT
- SIGN https://api.mexc.com/api/v3/account?recvWindow=5000×tamp=1734434947868&signature=54d4809eb89ba63e191ffd4aff9b5aff959ac5c2cf1c4bfcb9534b97a9c2f7b7
- {"asset": "PNK", "free": 0.02, "locked": 0, "wallet": 0, "update_time": 0}
- {"asset": "ORDITT", "free": 288.29, "locked": 0, "wallet": 0, "update_time": 0}
- {"asset": "LAI", "free": 7061.78, "locked": 0, "wallet": 0, "update_time": 0}
- {"asset": "MCC", "free": 54153.6, "locked": 0, "wallet": 0, "update_time": 0}
- {"asset": "LOTT", "free": 20842, "locked": 1998, "wallet": 0, "update_time": 0}
- {"asset": "ABDS", "free": 110, "locked": 0, "wallet": 0, "update_time": 0}
- {"asset": "USDT", "free": 41.5649, "locked": 14.9382, "wallet": 0, "update_time": 0}
- [Thread 0x7ffff6400640 (LWP 1979517) exited]
- [Thread 0x7fffe0400640 (LWP 1979542) exited]
- [Thread 0x7fffe2a00640 (LWP 1979536) exited]
- [Thread 0x7fffe1200640 (LWP 1979539) exited]
- Market: MEXC_SPOT
- refund_remain_quote: 10
- refund_remain_base: -9.99498
- [ 2024-12-17-11-29-11 ] DEBUG base balance: {"asset": "LOTT", "free": 20842, "locked": 1998, "wallet": 0, "update_time": 0}
- [ 2024-12-17-11-29-11 ] DEBUG quote balance: {"asset": "USDT", "free": 41.5649, "locked": 14.9382, "wallet": 0, "update_time": 0}
- config.zero_quote - quote_balance: 57.6791
- base_balance - config.zero_base: 1171.94
- base_balance > config.zero_base + 1 / mid_price
- ask_bound: 0.0492165
- bid_bound: 0.0082
- quote_position: 57.6791
- config.offset_quote - quote_balance: 9.99996
- BUY usage coeff = 0.333336
- base_position: 0
- config.offset_base - base_balance: -1239.94
- SELL usage coeff = 1
- [ 2024-12-17-11-29-11 ] DEBUG strategy calculated orders: OrderEvent: delta=1.73434e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.0492985, 1000); (0.0492165, 1000); ], bids: [(0.008077, 309.523); (0.008159, 306.412); ]
- MEXC_SPOT book {"ask_price": 0.008126, "ask_quantity": 3262.92, "bid_price": 0.008124, "bid_quantity": 0}
- MEXC_SPOT grid OrderEvent: delta=1.73434e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.0492985, 1000); (0.0492165, 1000); ], bids: [(0.008077, 309.523); (0.008159, 306.412); ]
- min_bid: 0.008126
- max_ask: 0
- MEXC_SPOT grid before OrderEvent: delta=1.73434e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.0492985, 1000); (0.0492165, 1000); ], bids: [(0.008077, 309.523); (0.008159, 306.412); ]
- MEXC_SPOT grid after OrderEvent: delta=1.73434e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.0492985, 1000); (0.0492165, 1000); ], bids: [(0.008043, 309.523); (0.008125, 306.412); (0.008126, 1230.62); ]
- MEXC_SPOT new order OrderEvent: delta=1.73429e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.0492985, 1000); (0.0492165, 1000); ], bids: [(0.008043, 309.523); (0.008125, 306.412); (0.008126, 1230.62); ]
- Vector size: 1
- single res OrderEvent: delta=1.73429e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.0492985, 1000); (0.0492165, 1000); ], bids: [(0.008043, 309.523); (0.008125, 306.412); (0.008126, 1230.62); ]
- [ 2024-12-17-11-29-11 ] INFO portfolio: OrderEvent: delta=1.73429e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.0492985, 1000); (0.0492165, 1000); ], bids: [(0.008043, 309.523); (0.008125, 306.412); (0.008126, 1230.62); ]
- [ 2024-12-17-11-29-11 ] INFO execution order event process: OrderEvent: delta=1.73429e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.0492985, 1000); (0.0492165, 1000); ], bids: [(0.008043, 309.523); (0.008125, 306.412); (0.008126, 1230.62); ]
- [ 2024-12-17-11-29-11 ] MESSAGE: LIMIT GRID
- [ 2024-12-17-11-29-11 ] DEBUG in _process_limit_grid: 0.0492985
- [ 2024-12-17-11-29-11 ] DEBUG in _process_limit_grid: 1000
- [ 2024-12-17-11-29-11 ] DEBUG in _process_limit_grid: 0.0492165
- [ 2024-12-17-11-29-11 ] DEBUG in _process_limit_grid: 1000
- [ 2024-12-17-11-29-11 ] DEBUG in _process_limit_grid: 0.008043
- [ 2024-12-17-11-29-11 ] DEBUG in _process_limit_grid: 309.523
- [ 2024-12-17-11-29-11 ] DEBUG in _process_limit_grid: 0.008125
- [ 2024-12-17-11-29-11 ] DEBUG in _process_limit_grid: 306.412
- [ 2024-12-17-11-29-11 ] DEBUG in _process_limit_grid: 0.008126
- [ 2024-12-17-11-29-11 ] DEBUG in _process_limit_grid: 1230.62
- execution to cancel: id: 1734434937896 dex id = 0 p = 0.008323 q = 999.000000
- execution to cancel: id: 1734434937895 dex id = 0 p = 0.008241 q = 999.000000
- execution to cancel: id: 1734434937894 dex id = 0 p = 0.008043 q = 928.000000
- execution to cancel: id: 1734434937893 dex id = 0 p = 0.008125 q = 919.000000
- [ 2024-12-17-11-29-11 ] DEBUG @#*&* : {"symbol": "LOTTUSDT", "price": 0.008126, "quantity": 1230.620000, "type": "LIMIT", "side": "BUY"}
- [ 2024-12-17-11-29-11 ] DEBUG @#*&* : {"symbol": "LOTTUSDT", "price": 0.008125, "quantity": 306.410000, "type": "LIMIT", "side": "BUY"}
- [ 2024-12-17-11-29-11 ] DEBUG @#*&* : {"symbol": "LOTTUSDT", "price": 0.008043, "quantity": 309.520000, "type": "LIMIT", "side": "BUY"}
- [ 2024-12-17-11-29-11 ] DEBUG @#*&* : {"symbol": "LOTTUSDT", "price": 0.049217, "quantity": 1000.000000, "type": "LIMIT", "side": "SELL"}
- [ 2024-12-17-11-29-11 ] DEBUG @#*&* : {"symbol": "LOTTUSDT", "price": 0.049299, "quantity": 1000.000000, "type": "LIMIT", "side": "SELL"}
- [ 2024-12-17-11-29-11 ] MESSAGE: csize: 4
- [New Thread 0x7fffe2600640 (LWP 1979594)]
- [ 2024-12-17-11-29-11 ] DEBUG ! cancel: {"symbol": "LOTTUSDT", "coid": 1734434937896, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008323[New Thread 0x7fffe1c00640 (LWP 1979595)]
- , "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}
- [ 2024-12-17-11-29-11 ] DEBUG ! cancel: {"symbol": "LOTTUSDT", "coid": 1734434937895, {"dex_order_id": "0", 1734434951551
- delete mexc execute: {"timestamp": "1734434951551", "recvWindow": "5000", "origClientOrderId": "1734434937896", "symbol": "LOTTUSDT"}
- "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008241, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0[New Thread 0x7fffe0e00640 (LWP 1979596)]
- }
- 1734434951551
- delete mexc execute: {"timestamp": "1734434951551", "recvWindow": "5000", "origClientOrderId": "1734434937895", "symbol": "LOTTUSDT"}SIGN
- https://api.mexc.com/api/v3/order?origClientOrderId=1734434937896&recvWindow=5000&symbol=LOTTUSDT×tamp=1734434951551&signature=4ed61061b6f8ce7ef92cc0b0c0abb0d03c0a364f2bbd10edf3f711e38d64ced0
- [ 2024-12-17-11-29-11 ] DEBUG ! cancel: {"symbol": "LOTTUSDT", "coid": 1734434937894, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", SIGN "price": https://api.mexc.com0.008043/api/v3/order, ?"quantity": origClientOrderId=1734434937895&recvWindow=5000&symbol=LOTTUSDT×tamp=1734434951551&signature=fc59822398b4f6b145e870d61bae7c8ea2e996322dc1db9bfda3e482d3ace168928.000000
- , "filled_quantity": 0.000000, "update_time": 0}
- 1734434951551
- delete mexc execute: {"timestamp": "1734434951551", "recvWindow": "5000", "origClientOrderId": "1734434937894", "symbol": "LOTTUSDT"}
- SIGN https://api.mexc.com/api/v3/order?origClientOrderId=1734434937894&recvWindow=5000&symbol=LOTTUSDT×tamp=1734434951551&signature=6306242e89471959017176cd3b7ced5c7f27d877716c1d2a3ee7c726be3b674a
- [New Thread 0x7fffd7e00640 (LWP 1979597)]
- [ 2024-12-17-11-29-11 ] DEBUG ! cancel: {"symbol": "LOTTUSDT", "coid": 1734434937893, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.008125, "quantity": 919.000000, "filled_quantity": 0.000000, "update_time": 0}
- 1734434951552
- delete mexc execute: {"timestamp": "1734434951552", "recvWindow": "5000", "origClientOrderId": "1734434937893", "symbol": "LOTTUSDT"}
- SIGN https://api.mexc.com[New Thread 0x7fffeea00640 (LWP 1979598)]
- /api/v3/order?origClientOrderId=1734434937893&recvWindow=5000&symbol=LOTTUSDT×tamp=1734434951552&signature=a1fa7c958afa3d8c86a09446ba84568393108161f2cc3cd850cfa2bb22701fe4
- [ 2024-12-17-11-29-11 ] DEBUG ! new: {"symbol": "LOTTUSDT", "price": 0.008126, "quantity": 1230.620000, "client_order_id": 1734434937897, "type": "LIMIT", "side": "BUY"}
- ! new api API 0x555555958e40
- [New Thread 0x7fffee000640 (LWP 1979599)]
- new request mexc: {"newClientOrderId": "1734434937897", "quantity": "1230", "price": "0.008126", "side": "BUY", "type": "LIMIT", "symbol": "LOTTUSDT"}
- 1734434951553
- post mexc execute: {"timestamp": "1734434951553", "recvWindow": "5000", "newClientOrderId": "1734434937897", "quantity": "1230", "price": "0.008126", "side": "BUY", "type": "LIMIT", "symbol": "LOTTUSDT"}
- [ 2024-12-17-11-29-11 ] DEBUG ! new: {"symbol": "LOTTUSDT", "price": 0.008125, "quantity": 306.410000, "client_order_id": 1734434937898, "type": "LIMIT", "side": "BUY"}
- ! new api API 0x555555958e40
- new request mexc: {"newClientOrderId": "1734434937898", "quantity": "306", "price": "0.008125", "side": "BUY", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
- 1734434951553
- post mexc execute: SIGN https://api.mexc.com/api/v3/order?[New Thread 0x7fffed600640 (LWP 1979600)]
- newClientOrderId=1734434937897&price=0.008126&quantity=1230&recvWindow=5000&side=BUY&symbol=LOTTUSDT×tamp=1734434951553&type=LIMIT&signature=f2c4fda7cd97532ac51a8425e15f2747adc9776b843d134fa7b94576122a85c6
- {"timestamp": "1734434951553", "recvWindow": "5000", "newClientOrderId": "1734434937898", "quantity": "306", "price": "0.008125", "side": "BUY", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
- [ 2024-12-17-11-29-11 ] DEBUG ! new: {"symbol": "LOTTUSDT", "price": 0.008043, "quantity": 309.520000, "client_order_id": 1734434937899, "type": "LIMIT", "side": "BUY"}
- ! new api API 0x555555958e40
- new request mexc: {"newClientOrderId": "1734434937899", "quantity": "309", "price": "0.008043", "side": "BUY", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
- SIGN https://api.mexc.com/api/v3/order?newClientOrderId=1734434937898&price=0.008125&quantity=306&recvWindow=5000&side=BUY&symbol=LOTTUSDT×tamp=1734434951553&type=LIMIT_MAKER&signature=5c021bff168cc574ff084c0e7764367ace9538b72f22d9d12a122539886039031734434951553
- post mexc execute: {"timestamp": "1734434951553", "recvWindow": "5000", "newClientOrderId": "1734434937899", "quantity": "309", "price": "0.008043", "side": "BUY", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
- SIGN https://api.mexc.com/api/v3/order?newClientOrderId=1734434937899&price=0.008043&quantity=309&recvWindow=5000&side=BUY&symbol=LOTTUSDT×tamp=1734434951553&type=LIMIT_MAKER&signature=4bd24e55cf6fd8937fb405ac82f013b453f2bd3bf872ceb73139d22d42ee6517
- [New Thread 0x7fffecc00640 (LWP 1979601)]
- [ 2024-12-17-11-29-11 ] [New Thread 0x7fffe3e00640 (LWP 1979602)]
- DEBUG ! new: {"symbol": "LOTTUSDT", "price": 0.049217, "quantity": 1000.000000, "client_order_id": 1734434937900, "type": "LIMIT", "side": "SELL"}
- ! new api API 0x555555958e40
- new request mexc: [ 2024-12-17-11-29-11 ] DEBUG ! new: {"symbol": "LOTTUSDT", "price": 0.049299, "quantity": 1000.000000, "client_order_id": 1734434937901, "type": "LIMIT", "side": "SELL"}
- ! new api API 0x555555958e40
- {"newClientOrderId": "1734434937900", "quantity": "1000", "price": "0.049217", "side": "SELL", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
- 1734434951554
- post mexc execute: new request mexc: {"timestamp": "1734434951554", "recvWindow": "5000", "newClientOrderId": "1734434937900", "quantity": "1000", "price": "0.049217", "side": "SELL", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
- {"newClientOrderId": "1734434937901", "quantity": "1000", "price": "0.049299", "side": "SELL", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
- 1734434951554
- post mexc execute: {"timestamp": "1734434951554", "recvWindow": "5000", "newClientOrderId": "1734434937901", "quantity": "1000", "price": "0.049299", "side": "SELL", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
- SIGN https://api.mexc.com/api/v3/order?newClientOrderId=1734434937900&price=0.049217&quantity=1000&recvWindow=5000&side=SELL&symbol=LOTTUSDT×tamp=1734434951554&type=LIMIT_MAKER&signature=2a808ed1871de9d56c1346818ea22a3eb4642c8f6313f693d4a8d199abce2797
- SIGN https://api.mexc.com/api/v3/order?newClientOrderId=1734434937901&price=0.049299&quantity=1000&recvWindow=5000&side=SELL&symbol=LOTTUSDT×tamp=1734434951554&type=LIMIT_MAKER&signature=9beeb77b7a30cb9a98c344c2797d51eb3da9715a7b0f6d4494baefa67d7e6d3f
- [ 2024-12-17-11-29-11 ] MESSAGE: cancel order delta: 45
- [ 2024-12-17-11-29-11 ] DEBUG ? cancel: {"symbol": "LOTTUSDT", "coid": 1734434937894, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.008043, "quantity": 928.000000, "filled_quantity": 0.000000, "update_time": 0}
- [Thread 0x7fffe0e00640 (LWP 1979596) exited]
- [ 2024-12-17-11-29-11 ] MESSAGE: cancel order delta: 53
- [ 2024-12-17-11-29-11 ] DEBUG ? cancel: {"symbol": "LOTTUSDT", "coid": 1734434937895, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008241, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}
- [Thread 0x7fffe1c00640 (LWP 1979595) exited]
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734434951584", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434937895, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.008241, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}}
- [ 2024-12-17-11-29-11 ] INFO Execution::_process: WebSocketEvent: delta=1.73443e+11, event_time=1734434951584", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434937895, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.008241, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}}
- [ 2024-12-17-11-29-11 ] MESSAGE: limit
- [ 2024-12-17-11-29-11 ] DEBUG Event order: : {"symbol": "LOTTUSDT", "coid": 1734434937895, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.008241, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}
- old_it != cur_storage.end()
- [ 2024-12-17-11-29-11 ] DEBUG old order: : {"symbol": "LOTTUSDT", "coid": 1734434937895, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008241, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}
- [ 2024-12-17-11-29-11 ] MESSAGE: erase
- [ 2024-12-17-11-29-11 ] MESSAGE: ! LOTTUSDT
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734434951594", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434937894, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 0.008043, "quantity": 928.000000, "filled_quantity": 0.000000, "update_time": 0}}
- [ 2024-12-17-11-29-11 ] INFO Execution::_process: WebSocketEvent: delta=1.73443e+11, event_time=1734434951594", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434937894, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 0.008043, "quantity": 928.000000, "filled_quantity": 0.000000, "update_time": 0}}
- [ 2024-12-17-11-29-11 ] MESSAGE: limit
- [ 2024-12-17-11-29-11 ] DEBUG Event order: : {"symbol": "LOTTUSDT", "coid": 1734434937894, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 0.008043, "quantity": 928.000000, "filled_quantity": 0.000000, "update_time": 0}
- old_it != cur_storage.end()
- [ 2024-12-17-11-29-11 ] DEBUG old order: : {"symbol": "LOTTUSDT", "coid": 1734434937894, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.008043, "quantity": 928.000000, "filled_quantity": 0.000000, "update_time": 0}
- [ 2024-12-17-11-29-11 ] MESSAGE: erase
- [ 2024-12-17-11-29-11 ] MESSAGE: ! LOTTUSDT
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734434951598", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434937896, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.008323, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}}
- [ 2024-12-17-11-29-11 ] INFO Execution::_process: WebSocketEvent: delta=1.73443e+11, event_time=1734434951598", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434937896, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.008323, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}}
- [ 2024-12-17-11-29-11 ] MESSAGE: limit
- [ 2024-12-17-11-29-11 ] DEBUG Event order: : {"symbol": "LOTTUSDT", "coid": 1734434937896, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.008323, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}
- old_it != cur_storage.end()
- [ 2024-12-17-11-29-11 ] DEBUG old order: : {"symbol": "LOTTUSDT", "coid": 1734434937896, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008323, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}
- [ 2024-12-17-11-29-11 ] MESSAGE: erase
- [ 2024-12-17-11-29-11 ] MESSAGE: ! LOTTUSDT
- [ 2024-12-17-11-29-11 ] MESSAGE: cancel order delta: 62
- [ 2024-12-17-11-29-11 ] DEBUG ? cancel: {"symbol": "LOTTUSDT", "coid": 1734434937896, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008323, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}
- [Thread 0x7fffe2600640 (LWP 1979594) exited]
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734434951602", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434937893, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 0.008125, "quantity": 919.000000, "filled_quantity": 0.000000, "update_time": 0}}
- [ 2024-12-17-11-29-11 ] INFO Execution::_process: WebSocketEvent: delta=1.73443e+11, event_time=1734434951602", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434937893, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 0.008125, "quantity": 919.000000, "filled_quantity": 0.000000, "update_time": 0}}
- [ 2024-12-17-11-29-11 ] MESSAGE: limit
- [ 2024-12-17-11-29-11 ] DEBUG Event order: : {"symbol": "LOTTUSDT", "coid": 1734434937893, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 0.008125, "quantity": 919.000000, "filled_quantity": 0.000000, "update_time": 0}
- old_it != cur_storage.end()
- [ 2024-12-17-11-29-11 ] DEBUG old order: : {"symbol": "LOTTUSDT", "coid": 1734434937893, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.008125, "quantity": 919.000000, "filled_quantity": 0.000000, "update_time": 0}
- [ 2024-12-17-11-29-11 ] MESSAGE: erase
- [ 2024-12-17-11-29-11 ] MESSAGE: ! LOTTUSDT
- [ 2024-12-17-11-29-11 ] MESSAGE: new order delta: 66
- [ 2024-12-17-11-29-11 ] DEBUG ? new: {"symbol": "LOTTUSDT", "coid": 1734434937901, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "quantity": 309.000000, "update_time": 1734434951588}
- [Thread 0x7fffed600640 (LWP 1979600) exited]
- [ 2024-12-17-11-29-11 ] MESSAGE: cancel order delta: 71
- [ 2024-12-17-11-29-11 ] DEBUG ? cancel: {"symbol": "LOTTUSDT", "coid": 1734434937893, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.008125, "quantity": 919.000000, "filled_quantity": 0.000000, "update_time": 0}
- [ 2024-12-17-11-29-11 ] MESSAGE: new order delta: 71
- [Thread 0x7fffd7e00640 (LWP 1979597) exited]
- [ 2024-12-17-11-29-11 ] DEBUG ? new: {"symbol": "LOTTUSDT", "coid": 1734434937901, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "quantity": 306.000000, "update_time": 1734434951582}
- [Thread 0x7fffee000640 (LWP 1979599) exited]
- [ 2024-12-17-11-29-11 ] MESSAGE: new order delta: 70
- [ 2024-12-17-11-29-11 ] DEBUG ? new: {"symbol": "LOTTUSDT", "coid": 1734434937901, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "quantity": 1000.000000, "update_time": 1734434951576}
- [Thread 0x7fffecc00640 (LWP 1979601) exited]
- [ 2024-12-17-11-29-11 ] MESSAGE: new order delta: 75
- [ 2024-12-17-11-29-11 ] DEBUG ? new: {"symbol": "LOTTUSDT", "coid": 1734434937901, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "quantity": 1230.000000, "update_time": 1734434951578}
- [Thread 0x7fffeea00640 (LWP 1979598) exited]
- [ 2024-12-17-11-29-11 ] MESSAGE: new order delta: 86
- [ 2024-12-17-11-29-11 ] DEBUG ? new: {"symbol": "LOTTUSDT", "coid": 1734434937901, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "quantity": 1000.000000, "update_time": 1734434951622}
- [Thread 0x7fffe3e00640 (LWP 1979602) exited]
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734434951678", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434937900, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.049217, "quantity": 1000.000000, "filled_quantity": 0.000000, "update_time": 0}}
- [ 2024-12-17-11-29-11 ] INFO Execution::_process: WebSocketEvent: delta=1.73443e+11, event_time=1734434951678", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434937900, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.049217, "quantity": 1000.000000, "filled_quantity": 0.000000, "update_time": 0}}
- [ 2024-12-17-11-29-11 ] MESSAGE: limit
- [ 2024-12-17-11-29-11 ] DEBUG Event order: : {"symbol": "LOTTUSDT", "coid": 1734434937900, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.049217, "quantity": 1000.000000, "filled_quantity": 0.000000, "update_time": 0}
- old_it != cur_storage.end()
- [ 2024-12-17-11-29-11 ] DEBUG old order: : {"symbol": "LOTTUSDT", "coid": 1734434937900, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": 0.049217, "quantity": 1000.000000, "update_time": 0}
- [ 2024-12-17-11-29-11 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-12-17-11-29-11 ] MESSAGE: ! LOTTUSDT
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734434951678", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434937898, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.008125, "quantity": 306.000000, "filled_quantity": 0.000000, "update_time": 0}}
- [ 2024-12-17-11-29-11 ] INFO Execution::_process: WebSocketEvent: delta=1.73443e+11, event_time=1734434951678", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434937898, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.008125, "quantity": 306.000000, "filled_quantity": 0.000000, "update_time": 0}}
- [ 2024-12-17-11-29-11 ] MESSAGE: limit
- [ 2024-12-17-11-29-11 ] DEBUG Event order: : {"symbol": "LOTTUSDT", "coid": 1734434937898, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.008125, "quantity": 306.000000, "filled_quantity": 0.000000, "update_time": 0}
- old_it != cur_storage.end()
- [ 2024-12-17-11-29-11 ] DEBUG old order: : {"symbol": "LOTTUSDT", "coid": 1734434937898, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 0.008125, "quantity": 306.410000, "update_time": 0}
- [ 2024-12-17-11-29-11 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-12-17-11-29-11 ] MESSAGE: ! LOTTUSDT
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734434951678", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434937897, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "FILLED", "price": 0.008126, "quantity": 1230.000000, "filled_quantity": 1230.000000, "update_time": 0}}
- [ 2024-12-17-11-29-11 ] INFO Execution::_process: WebSocketEvent: delta=1.73443e+11, event_time=1734434951678", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434937897, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "FILLED", "price": 0.008126, "quantity": 1230.000000, "filled_quantity": 1230.000000, "update_time": 0}}
- [ 2024-12-17-11-29-11 ] MESSAGE: limit
- [ 2024-12-17-11-29-11 ] DEBUG Event order: : {"symbol": "LOTTUSDT", "coid": 1734434937897, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "FILLED", "price": 0.008126, "quantity": 1230.000000, "filled_quantity": 1230.000000, "update_time": 0}
- old_it != cur_storage.end()
- [ 2024-12-17-11-29-11 ] DEBUG old order: : {"symbol": "LOTTUSDT", "coid": 1734434937897, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 0.008126, "quantity": 1230.620000, "update_time": 0}
- [ 2024-12-17-11-29-11 ] MESSAGE: (execution) filled quantity is not initialized
- $$$ {"symbol": "LOTTUSDT", "price": 0.008126, "quantity": 1230.000000, "trade_side": BUY, "trade_time": 0}
- open_position for order
- [ 2024-12-17-11-29-11 ] INFO Open position: : {"symbol": "LOTTUSDT", "price": 0.008126, "quantity": 1230.000000, "trade_side": BUY, "trade_time": 0}
- [ 2024-12-17-11-29-11 ] INFO new position: {"symbol": "LOTTUSDT", "entry_price": 0.008126, "quantity": 2460, "position_quote": 19.99}
- [ 2024-12-17-11-29-11 ] MESSAGE: erase
- [ 2024-12-17-11-29-11 ] MESSAGE: ! LOTTUSDT
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734434951678", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434937899, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.008043, "quantity": 309.000000, "filled_quantity": 0.000000, "update_time": 0}}
- [ 2024-12-17-11-29-11 ] INFO Execution::_process: WebSocketEvent: delta=1.73443e+11, event_time=1734434951678", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434937899, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.008043, "quantity": 309.000000, "filled_quantity": 0.000000, "update_time": 0}}
- [ 2024-12-17-11-29-11 ] MESSAGE: limit
- [ 2024-12-17-11-29-11 ] DEBUG Event order: : {"symbol": "LOTTUSDT", "coid": 1734434937899, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.008043, "quantity": 309.000000, "filled_quantity": 0.000000, "update_time": 0}
- old_it != cur_storage.end()
- [ 2024-12-17-11-29-11 ] DEBUG old order: : {"symbol": "LOTTUSDT", "coid": 1734434937899, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 0.008043, "quantity": 309.520000, "update_time": 0}
- [ 2024-12-17-11-29-11 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-12-17-11-29-11 ] MESSAGE: ! LOTTUSDT
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734434951685", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434937901, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.049299, "quantity": 1000.000000, "filled_quantity": 0.000000, "update_time": 0}}
- [ 2024-12-17-11-29-11 ] INFO Execution::_process: WebSocketEvent: delta=1.73443e+11, event_time=1734434951685", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734434937901, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.049299, "quantity": 1000.000000, "filled_quantity": 0.000000, "update_time": 0}}
- [ 2024-12-17-11-29-11 ] MESSAGE: limit
- [ 2024-12-17-11-29-11 ] DEBUG Event order: : {"symbol": "LOTTUSDT", "coid": 1734434937901, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.049299, "quantity": 1000.000000, "filled_quantity": 0.000000, "update_time": 0}
- old_it != cur_storage.end()
- [ 2024-12-17-11-29-11 ] DEBUG old order: : {"symbol": "LOTTUSDT", "coid": 1734434937901, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": 0.049299, "quantity": 1000.000000, "update_time": 0}
- [ 2024-12-17-11-29-11 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-12-17-11-29-11 ] MESSAGE: ! LOTTUSDT
- stream == e_stream::ACCOUNT_TRADE
- WebSocketEvent: delta=1.73443e+11, event_time=1734434951677", type="ACCOUNT_TRADE", event: {"stream": ACCOUNT_TRADE, "event_time": 140737337095104, "is_maker": false, "is_self_trade": false, "client_order_id": 1734434937897, "commission": {"asset": "USDT", "fee": 0.00499749}, "trade": {"symbol": "LOTTUSDT", "price": 0.008126, "quantity": 1230.000000, "trade_side": BUY, "trade_time": 1734434951677}}
- [ 2024-12-17-11-29-11 ] INFO Execution::_process: WebSocketEvent: delta=1.73443e+11, event_time=1734434951677", type="ACCOUNT_TRADE", event: {"stream": ACCOUNT_TRADE, "event_time": 140737337095104, "is_maker": false, "is_self_trade": false, "client_order_id": 1734434937897, "commission": {"asset": "USDT", "fee": 0.00499749}, "trade": {"symbol": "LOTTUSDT", "price": 0.008126, "quantity": 1230.000000, "trade_side": BUY, "trade_time": 1734434951677}}
- $$$ {"symbol": "LOTTUSDT", "price": 0.008126, "quantity": 1230.000000, "trade_side": SELL, "trade_time": 1734434951677}
- open_position for trade
- [ 2024-12-17-11-29-11 ] INFO Open position: : {"symbol": "LOTTUSDT", "price": 0.008126, "quantity": 1230.000000, "trade_side": SELL, "trade_time": 1734434951677}
- [ 2024-12-17-11-29-11 ] INFO new position: {"symbol": "LOTTUSDT", "entry_price": 0.008126, "quantity": -2460, "position_quote": -19.99}
- update_available_refund_fond piece: 9.99498
- sell new fond: -19.99
- [ 2024-12-17-11-29-11 ] MESSAGE: ! LOTTUSDT
- SIGN https://api.mexc.com/api/v3/account?recvWindow=5000×tamp=1734434957888&signature=345b47a6e67704644f6be51c38ea3ac7f0002f83c4c965412b587ee3d81ad43a
- {"asset": "PNK", "free": 0.02, "locked": 0, "wallet": 0, "update_time": 0}
- {"asset": "ORDITT", "free": 288.29, "locked": 0, "wallet": 0, "update_time": 0}
- {"asset": "LAI", "free": 7061.78, "locked": 0, "wallet": 0, "update_time": 0}
- {"asset": "MCC", "free": 54153.6, "locked": 0, "wallet": 0, "update_time": 0}
- {"asset": "LOTT", "free": 22070, "locked": 2000, "wallet": 0, "update_time": 0}
- {"asset": "ABDS", "free": 110, "locked": 0, "wallet": 0, "update_time": 0}
- {"asset": "USDT", "free": 41.5291, "locked": 4.97402, "wallet": 0, "update_time": 0}
- ^C
- Thread 1 "test" received signal SIGINT, Interrupt.
- __futex_abstimed_wait_common64 (private=128, cancel=true, abstime=0x0, op=265, expected=1979520, futex_word=0x7ffff4c00910) at ./nptl/futex-internal.c:57
- 57 ./nptl/futex-internal.c: No such file or directory.
- (gdb)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement