Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Copyright (C) 2022 Free Software Foundation, Inc.
- License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
- This is free software: you are free to change and redistribute it.
- There is NO WARRANTY, to the extent permitted by law.
- Type "show copying" and "show warranty" for details.
- This GDB was configured as "x86_64-linux-gnu".
- Type "show configuration" for configuration details.
- For bug reporting instructions, please see:
- <https://www.gnu.org/software/gdb/bugs/>.
- Find the GDB manual and other documentation resources online at:
- <http://www.gnu.org/software/gdb/documentation/>.
- For help, type "help".
- Type "apropos word" to search for commands related to "word"...
- Reading symbols from ./test...
- (gdb) run mm/launch.config
- Starting program: /home/ubuntu/dmm_strat/solutions/test/test mm/launch.config
- [Thread debugging using libthread_db enabled]
- Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
- market: BITMART_SPOT
- market: MEXC_SPOT
- market: MFS_DEX
- {"params": [{"target_price": "0.0082", "quote_refund_fond": "10", "offset_base": "21610", "offset_quote": "56.5031", "zero_base": "21678", "zones": [{"side": "BUY", "quantity_step": "0", "total": "15", "protection": "false", "n_levels": "2", "bound": "200"}, {"side": "SELL", "quantity_step": "0", "total": "2000", "protection": "false", "n_levels": "2", "bound": "200"}], "price_step": "500", "zero_quote": "104.1822", "spread_size": "100"}], "target_exchange": {"market": "MEXC_SPOT", "is_external_market": "false"}, "pricing_mode": "by_mid_price", "cooldown": "10000", "init_spread_size": "200"}
- converts_ size: 3
- api keys: mx0vglRsnmcTEgpmkD ef47dd75fb8b41eebf145056dc98032fthis = 0x555555958930
- [New Thread 0x7ffff6800640 (LWP 1967161)]
- [New Thread 0x7ffff6400640 (LWP 1967162)]
- API 0x555555958930
- run forever balance 0x555555958930
- SIGN https://api.mexc.com/api/v3/account?recvWindow=5000×tamp=1734430573989&signature=23ccc5597b615daa50ceaf31829bf010dc056305fe68392e8ad526530d0287e8
- {"type": "SPOT", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "PNK", "free": 0.02, "locked": 0, "wallet": 0, "update_time": 0}, {"asset": "ORDITT", "free": 288.29, "locked": 0, "wallet": 0, "update_time": 0}, {"asset": "LAI", "free": 7061.78, "locked": 0, "wallet": 0, "update_time": 0}, {"asset": "MCC", "free": 54153.6, "locked": 0, "wallet": 0, "update_time": 0}, {"asset": "LOTT", "free": 19612, "locked": 1998, "wallet": 0, "update_time": 0}, {"asset": "ABDS", "free": 110, "locked": 0, "wallet": 0, "update_time": 0}, {"asset": "USDT", "free": 51.5007, "locked": 15.0025, "wallet": 0, "update_time": 0}]}
- [New Thread 0x7ffff6000640 (LWP 1967163)]
- SIGN https://api.mexc.com/api/v3/account?recvWindow=5000×tamp=1734430574043&signature=7534bb6ea8e89629ab45a4a503251234544d6b1d2400a57a19cff751aa961f52
- get balance indicator 0x555555958ad0
- ***
- /mnt/logs/MEXC_SPOT-LOTTUSDT-NEW_MM_TRADER-2024-12-17-10-16-14.log
- ***
- trader {"symbol": "LOTTUSDT", "account": "TEST_1", "market": "MEXC_SPOT", "logger": {"log_file": "NEW_MM_TRADER", "severity_level": "DEBUG"}, "execution": {"print_ws_events": "1", "cancel_on_start": "0"}, "data": {"print_ws_events": "0", "use_part_depth": "true", "events": ["ORDER_BOOK"]}}
- >:)
- {"asset": "PNK", "free": 0.02, "locked": 0, "wallet": 0, "update_time": 0}
- {"asset": "ORDITT", "free": 288.29, "locked": 0, "wallet": 0, "update_time": 0}
- {"asset": "LAI", "free": 7061.78, "locked": 0, "wallet": 0, "update_time": 0}
- {"asset": "MCC", "free": 54153.6, "locked": 0, "wallet": 0, "update_time": 0}
- {"asset": "LOTT", "free": 19612, "locked": 1998, "wallet": 0, "update_time": 0}
- {"asset": "ABDS", "free": 110, "locked": 0, "wallet": 0, "update_time": 0}
- {"asset": "USDT", "free": 51.5007, "locked": 15.0025, "wallet": 0, "update_time": 0}
- SIGN https://api.mexc.com/api/v3/openOrders?recvWindow=5000&symbol=LOTTUSDT×tamp=1734430574113&signature=1c162e3f4f26bdb200e7b4226d585af3accb74ca900e52fc464415bd213fa90b
- already opened {"symbol": "LOTTUSDT", "coid": 1734424892946, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008230, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 1734430574170}
- already opened {"symbol": "LOTTUSDT", "coid": 1734424892944, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.007987, "quantity": 939.000000, "filled_quantity": 0.000000, "update_time": 1734430574170}
- already opened {"symbol": "LOTTUSDT", "coid": 1734424892943, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.008068, "quantity": 929.000000, "filled_quantity": 0.000000, "update_time": 1734430574170}
- already opened {"symbol": "LOTTUSDT", "coid": 1734424892945, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008149, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 1734430574171}
- [New Thread 0x7ffff5600640 (LWP 1967165)]
- Execution was constructed
- Trader was created
- found target exchange symbol: 0x555555be31f8
- 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.0081085
- params size: 1
- ok
- [New Thread 0x7ffff4c00640 (LWP 1967166)]
- [New Thread 0x7fffefe00640 (LWP 1967167)]
- SIGN https://api.mexc.com/api/v3/userDataStream?recvWindow=5000×tamp=1734430574173&signature=1bb67beff43f646e8361ab1785abee753f52f6554c0ebdd1c0fa29d24852a308
- [New Thread 0x7fffef400640 (LWP 1967174)]
- {"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-10-16-17 ] DEBUG base balance: {"asset": "LOTT", "free": 19612, "locked": 1998, "wallet": 0, "update_time": 0}
- [ 2024-12-17-10-16-17 ] DEBUG quote balance: {"asset": "USDT", "free": 51.5007, "locked": 15.0025, "wallet": 0, "update_time": 0}
- config.zero_quote - quote_balance: 47.6791
- base_balance - config.zero_base: -68.05
- ask_bound: 0.0081085
- bid_bound: 0.0081085
- 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-10-16-17 ] DEBUG strategy calculated orders: OrderEvent: delta=1.73434e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.00823013, 999.975); (0.00814904, 999.975); ], bids: [(0.00798687, 939.041); (0.00806796, 929.603); ]
- MEXC_SPOT book {"ask_price": 0.008126, "ask_quantity": 4492.92, "bid_price": 0, "bid_quantity": 0}
- MEXC_SPOT grid OrderEvent: delta=1.73434e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.00823013, 999.975); (0.00814904, 999.975); ], bids: [(0.00798687, 939.041); (0.00806796, 929.603); ]
- min_bid: 1e+09
- max_ask: 0
- MEXC_SPOT grid before OrderEvent: delta=1.73434e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.00823013, 999.975); (0.00814904, 999.975); ], bids: [(0.00798687, 939.041); (0.00806796, 929.603); ]
- MEXC_SPOT grid after OrderEvent: delta=1.73434e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.00823013, 999.975); (0.00814904, 999.975); ], bids: [(0.00798687, 939.041); (0.00806796, 929.603); ]
- MEXC_SPOT new order OrderEvent: delta=1.73429e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.00823013, 999.975); (0.00814904, 999.975); ], bids: [(0.00798687, 939.041); (0.00806796, 929.603); ]
- Vector size: 1
- single res OrderEvent: delta=1.73429e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.00823013, 999.975); (0.00814904, 999.975); ], bids: [(0.00798687, 939.041); (0.00806796, 929.603); ]
- [ 2024-12-17-10-16-17 ] INFO portfolio: OrderEvent: delta=1.73429e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.00823013, 999.975); (0.00814904, 999.975); ], bids: [(0.00798687, 939.041); (0.00806796, 929.603); ]
- execution to cancel: id: 1734424892945 dex id = 0 p = 0.008149 q = 999.000000
- execution to cancel: id: 1734424892943 dex id = 0 p = 0.008068 q = 929.000000
- execution to cancel: id: 1734424892944 dex id = 0 p = 0.007987 q = 939.000000
- execution to cancel: id: 1734424892946 dex id = 0 p = 0.008230 q = 999.000000
- [New Thread 0x7fffeea00640 (LWP 1967199)]
- 1734430577547
- delete mexc execute: {"timestamp": "1734430577547", "recvWindow": "5000", "origClientOrderId": "1734424892945", "symbol": "LOTTUSDT"}
- [New Thread 0x7fffee000640 (LWP 1967200)]
- SIGN https://api.mexc.com/api/v3/order?origClientOrderId=1734424892945&recvWindow=5000&symbol=LOTTUSDT×tamp=1734430577547&signature=cd35269599c2190521a96283ecb222c8e44f3ad11f2b9b780205ed26f23ea07c
- 1734430577547
- delete mexc execute: {"timestamp": "1734430577547", "recvWindow": "5000", "origClientOrderId": "1734424892943", "symbol": "LOTTUSDT"}
- [New Thread 0x7fffed600640 (LWP 1967201)]
- SIGN https://api.mexc.com/api/v3/order?origClientOrderId=1734424892943&recvWindow=5000&symbol=LOTTUSDT×tamp=1734430577547&signature=de4726fdc148435b4e151a42f931a60039b08f220f25d407bd0e087b5c9adc33
- 1734430577547
- delete mexc execute: {"timestamp": "1734430577547", "recvWindow": "5000", "origClientOrderId": "1734424892944", "symbol": "LOTTUSDT"}
- SIGN [New Thread 0x7fffecc00640 (LWP 1967202)]
- https://api.mexc.com/api/v3/order?origClientOrderId=1734424892944&recvWindow=5000&symbol=LOTTUSDT×tamp=1734430577547&signature=1946d4a4ce572a15017737e39f4fc89685ff2ac11068cbb4de9454092a597ed3
- 1734430577548
- delete mexc execute: {"timestamp": "1734430577548", "recvWindow": "5000", "origClientOrderId": "1734424892946", "symbol": "LOTTUSDT"}
- SIGN https://api.mexc.com/api/v3/order[New Thread 0x7fffe3e00640 (LWP 1967203)]
- ?origClientOrderId=1734424892946&recvWindow=5000&symbol=LOTTUSDT×tamp=1734430577548&signature=aa112cb5cf0c06b32999e92cb27eedf2d6519374ac5805d05a83ef4911db8e13
- ! new api API 0x555555958930
- new request mexc: {"newClientOrderId": "1734430574114", "quantity": "929", "price": "0.008068", "side": "BUY", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
- [New Thread 0x7fffe3400640 (LWP 1967204)]
- 1734430577548
- post mexc execute: {"timestamp": "1734430577548", "recvWindow": "5000", "newClientOrderId": "1734430574114", "quantity": "929", "price": "0.008068", "side": "BUY", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
- ! new api API 0x555555958930
- new request mexc: {"newClientOrderId": "1734430574115", "quantity": "939", "price": "0.007987", "side": "BUY", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
- SIGN https://api.mexc.com/api/v3/order?1734430577548
- post mexc execute: newClientOrderId=1734430574114&price=0.008068&quantity=929&recvWindow=5000&side=BUY&symbol=LOTTUSDT×tamp=1734430577548&type=LIMIT_MAKER&signature=dabf1704a6af7e18c95dd6563a7ab91f008b4615e28d32034a1300953f01d79a
- {"timestamp": "1734430577548", "recvWindow": "5000", "newClientOrderId": "1734430574115", "quantity": "939", "price": "0.007987", "side": "BUY", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
- SIGN https://api.mexc.com/api/v3/order?newClientOrderId=1734430574115&price=0.007987&quantity=939&recvWindow=5000&side=BUY&symbol=LOTTUSDT×tamp=1734430577548&type=LIMIT_MAKER&signature=8bc27dcb6464f58732dd6f61d6e045aa91843cdc2b84e50bcd157fd0a4a2a03a
- [New Thread 0x7fffe2600640 (LWP 1967206)]
- [New Thread 0x7fffe2a00640 (LWP 1967205)]
- ! new api API 0x555555958930
- new request mexc: {"newClientOrderId": "1734430574116", "quantity": "999", "price": "0.008149", "side": "SELL", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
- 1734430577549
- post mexc execute: {"timestamp": "1734430577549", "recvWindow": "5000", "newClientOrderId": "1734430574116", "quantity": "999", "price": "0.008149", "side": "SELL", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
- [New Thread 0x7fffe1c00640 (LWP 1967207)]
- [New Thread 0x7fffe1200640 (LWP 1967208)]
- SIGN https://api.mexc.com/api/v3/order?newClientOrderId=1734430574116&price=0.008149&quantity=999&recvWindow=5000&side=SELL&symbol=LOTTUSDT×tamp=1734430577549&type=LIMIT_MAKER&signature=70fc49a22b86da60e7cf1daf6714daa73380aaac1cc85c0d09b88ee2f533dae6
- ! new api API 0x555555958930
- new request mexc: {"newClientOrderId": "1734430574117", "quantity": "999", "price": "0.008230", "side": "SELL", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
- 1734430577550
- post mexc execute: [New Thread 0x7fffe0e00640 (LWP 1967209)]
- {"timestamp": "1734430577550", "recvWindow": "5000", "newClientOrderId": "1734430574117", "quantity": "999", "price": "0.008230", "side": "SELL", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
- SIGN https://api.mexc.com/api/v3/order?newClientOrderId=1734430574117&price=0.008230&quantity=999&recvWindow=5000&side=SELL&symbol=LOTTUSDT×tamp=1734430577550&type=LIMIT_MAKER&signature=47c87bbf8f6c25ced76e0dbb13a7951adabfa23a045a635595a5cab056496fd4
- [New Thread 0x7fffe0a00640 (LWP 1967210)]
- [New Thread 0x7fffe0600640 (LWP 1967211)]
- [Thread 0x7fffeea00640 (LWP 1967199) exited]
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734430577574", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734424892945, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.008149, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}}
- old_it != cur_storage.end()
- [ 2024-12-17-10-16-17 ] MESSAGE: ! LOTTUSDT
- [Thread 0x7fffecc00640 (LWP 1967202) exited]
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734430577578", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734424892943, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 0.008068, "quantity": 929.000000, "filled_quantity": 0.000000, "update_time": 0}}
- old_it != cur_storage.end()
- [ 2024-12-17-10-16-17 ] MESSAGE: ! LOTTUSDT
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734430577590", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734424892946, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.008230, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}}
- old_it != cur_storage.end()
- [ 2024-12-17-10-16-17 ] MESSAGE: ! LOTTUSDT
- [Thread 0x7fffed600640 (LWP 1967201) exited]
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734430577599", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734424892944, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 0.007987, "quantity": 939.000000, "filled_quantity": 0.000000, "update_time": 0}}
- old_it != cur_storage.end()
- [ 2024-12-17-10-16-17 ] MESSAGE: ! LOTTUSDT
- [Thread 0x7fffee000640 (LWP 1967200) exited]
- [Thread 0x7fffe2600640 (LWP 1967206) exited]
- [Thread 0x7fffe1c00640 (LWP 1967207) exited]
- [Thread 0x7fffe3400640 (LWP 1967204) exited]
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734430577635", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734430574115, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.007987, "quantity": 939.000000, "filled_quantity": 0.000000, "update_time": 0}}
- old_it != cur_storage.end()
- [ 2024-12-17-10-16-17 ] MESSAGE: ! LOTTUSDT
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734430577635", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734430574117, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008230, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}}
- old_it != cur_storage.end()
- [ 2024-12-17-10-16-17 ] MESSAGE: ! LOTTUSDT
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734430577635", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734430574116, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008149, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}}
- old_it != cur_storage.end()
- [ 2024-12-17-10-16-17 ] MESSAGE: ! LOTTUSDT
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734430577641", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734430574114, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.008068, "quantity": 929.000000, "filled_quantity": 0.000000, "update_time": 0}}
- old_it != cur_storage.end()
- [ 2024-12-17-10-16-17 ] MESSAGE: ! LOTTUSDT
- [Thread 0x7fffe3e00640 (LWP 1967203) exited]
- SIGN https://api.mexc.com/api/v3/account?recvWindow=5000×tamp=1734430584074&signature=aa4c272bb0d35e2688eab56748033dd22c7e7938a157c61a1101221bec761c22
- {"asset": "PNK", "free": 0.02, "locked": 0, "wallet": 0, "update_time": 0}
- {"asset": "ORDITT", "free": 288.29, "locked": 0, "wallet": 0, "update_time": 0}
- {"asset": "LAI", "free": 7061.78, "locked": 0, "wallet": 0, "update_time": 0}
- {"asset": "MCC", "free": 54153.6, "locked": 0, "wallet": 0, "update_time": 0}
- {"asset": "LOTT", "free": 19612, "locked": 1998, "wallet": 0, "update_time": 0}
- {"asset": "ABDS", "free": 110, "locked": 0, "wallet": 0, "update_time": 0}
- {"asset": "USDT", "free": 51.5007, "locked": 15.0025, "wallet": 0, "update_time": 0}
- [Thread 0x7fffe0600640 (LWP 1967211) exited]
- [Thread 0x7fffe2a00640 (LWP 1967205) exited]
- [Thread 0x7fffe0e00640 (LWP 1967209) exited]
- [Thread 0x7fffe1200640 (LWP 1967208) exited]
- [Thread 0x7fffe0a00640 (LWP 1967210) exited]
- [Thread 0x7ffff6400640 (LWP 1967162) exited]
- Market: MEXC_SPOT
- refund_remain_quote: 10
- refund_remain_base: 0
- [ 2024-12-17-10-16-28 ] DEBUG base balance: {"asset": "LOTT", "free": 19612, "locked": 1998, "wallet": 0, "update_time": 0}
- [ 2024-12-17-10-16-28 ] DEBUG quote balance: {"asset": "USDT", "free": 51.5007, "locked": 15.0025, "wallet": 0, "update_time": 0}
- config.zero_quote - quote_balance: 47.6791
- base_balance - config.zero_base: -68.05
- ask_bound: 0.0081085
- bid_bound: 0.0081085
- 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-10-16-28 ] DEBUG strategy calculated orders: OrderEvent: delta=1.73434e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.00823013, 999.975); (0.00814904, 999.975); ], bids: [(0.00798687, 939.041); (0.00806796, 929.603); ]
- MEXC_SPOT book {"ask_price": 0.008126, "ask_quantity": 4492.92, "bid_price": 0, "bid_quantity": 0}
- MEXC_SPOT grid OrderEvent: delta=1.73434e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.00823013, 999.975); (0.00814904, 999.975); ], bids: [(0.00798687, 939.041); (0.00806796, 929.603); ]
- min_bid: 1e+09
- max_ask: 0
- MEXC_SPOT grid before OrderEvent: delta=1.73434e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.00823013, 999.975); (0.00814904, 999.975); ], bids: [(0.00798687, 939.041); (0.00806796, 929.603); ]
- MEXC_SPOT grid after OrderEvent: delta=1.73434e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.00823013, 999.975); (0.00814904, 999.975); ], bids: [(0.00798687, 939.041); (0.00806796, 929.603); ]
- MEXC_SPOT new order OrderEvent: delta=1.73429e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.00823013, 999.975); (0.00814904, 999.975); ], bids: [(0.00798687, 939.041); (0.00806796, 929.603); ]
- Vector size: 1
- single res OrderEvent: delta=1.73429e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.00823013, 999.975); (0.00814904, 999.975); ], bids: [(0.00798687, 939.041); (0.00806796, 929.603); ]
- [ 2024-12-17-10-16-28 ] INFO portfolio: OrderEvent: delta=1.73429e+11, symbol="LOTTUSDT", type="LIMIT_GRID", priority=default, asks: [(0.00823013, 999.975); (0.00814904, 999.975); ], bids: [(0.00798687, 939.041); (0.00806796, 929.603); ]
- execution to cancel: id: 1734430574117 dex id = 0 p = 0.008230 q = 999.000000
- execution to cancel: id: 1734430574116 dex id = 0 p = 0.008149 q = 999.000000
- execution to cancel: id: 1734430574114 dex id = 0 p = 0.008068 q = 929.000000
- execution to cancel: id: 1734430574115 dex id = 0 p = 0.007987 q = 939.000000
- [New Thread 0x7fffe3e00640 (LWP 1967273)]
- 1734430588059
- delete mexc execute: {"timestamp": "1734430588059", "recvWindow": "5000", "origClientOrderId": "1734430574117", "symbol": "LOTTUSDT"}
- [New Thread 0x7fffe3400640 (LWP 1967274)]
- SIGN https://api.mexc.com/api/v3/order?origClientOrderId=1734430574117&recvWindow=5000&symbol=LOTTUSDT×tamp=1734430588059&signature=a2e269fb76a8e423394a54c4d20f6acbee5c99eb7487fde9c62238feccfb4990
- 1734430588060
- delete mexc execute: {"timestamp": "1734430588060", "recvWindow": "5000", "origClientOrderId": "1734430574116", "symbol": "LOTTUSDT"}
- [New Thread 0x7fffe1c00640 (LWP 1967275)]
- SIGN https://api.mexc.com/api/v3/order?origClientOrderId=1734430574116&recvWindow=5000&symbol=LOTTUSDT×tamp=1734430588060&signature=38506e9a9e3140153a05151914dd8737f0cf4262c130cc701e1754620d505bb6
- [New Thread 0x7fffeea00640 (LWP 1967276)]
- 1734430588060
- delete mexc execute: {"timestamp": "1734430588060", "recvWindow": "5000", "origClientOrderId": "1734430574114", "symbol": "LOTTUSDT"}
- SIGN https://api.mexc.com/api/v3/order?origClientOrderId=1734430574114&recvWindow=5000&symbol=LOTTUSDT×tamp=1734430588060&signature=e9ca663229b47f484568befd8d3754b29ad28fefebd9fcd1262b6bc48cdec547
- 1734430588060
- delete mexc execute: {"timestamp": "1734430588060", "recvWindow": "5000", "origClientOrderId": "1734430574115", "symbol": "LOTTUSDT"}
- [New Thread 0x7fffee000640 (LWP 1967277)]
- SIGN https://api.mexc.com/api/v3/order?origClientOrderId=1734430574115&recvWindow=5000&symbol=LOTTUSDT×tamp=1734430588060&signature=590196fc53500beb1649e0491eae57d376aacfa47ec2ceaa38d1ae3a93aec849
- ! new api API 0x555555958930
- new request mexc: {"newClientOrderId": "1734430574118", "quantity": "929", "price": "0.008068", "side": "BUY", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
- 1734430588060
- post mexc execute: {"timestamp": "1734430588060", "recvWindow": "5000", "newClientOrderId": "1734430574118", "quantity": "929", "price": "0.008068", "side": "BUY", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
- SIGN https://api.mexc.com/api/v3/order?newClientOrderId=1734430574118&price=0.008068&quantity=929&recvWindow=5000&side=BUY&symbol=LOTTUSDT×tamp=1734430588060&type=LIMIT_MAKER&signature=16842b09844b639bbdfa7f697c70a7caf9fb5ec9cd1328bafd5a00285a676bdc
- [New Thread 0x7fffed600640 (LWP 1967278)]
- ! new api API 0x555555958930
- new request mexc: {"newClientOrderId": "1734430574119", "quantity": "939", "price": "0.007987", "side": "BUY", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
- 1734430588061
- post mexc execute: {"timestamp": "1734430588061", "recvWindow": "5000", "newClientOrderId": "1734430574119", "quantity": "939", "price": "0.007987", "side": "BUY", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
- [New Thread 0x7fffecc00640 (LWP 1967279)]
- ! new api API 0x555555958930
- SIGN new request mexc: https://api.mexc.com/api/v3/order?newClientOrderId=1734430574119&price=0.007987&quantity=939&recvWindow=5000&side=BUY&symbol=LOTTUSDT×tamp=1734430588061&type=LIMIT_MAKER&signature=3b28ad0f5e527bece8f2cfd6d8663573d623d4abcdb6248bc08a49288e83429e{"newClientOrderId": "1734430574120", "quantity": "999", "price": "0.008149", "side": "SELL", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
- 1734430588061
- post mexc execute: {"timestamp": "1734430588061", "recvWindow": "5000", "newClientOrderId": "1734430574120", "quantity": "999", "price": "0.008149", "side": "SELL", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}[New Thread 0x7fffe2600640 (LWP 1967280)]
- ! new api API 0x555555958930
- new request mexc: SIGN https://api.mexc.com/api/v3/order?newClientOrderId=1734430574120&price=0.008149&quantity=999&recvWindow=5000&side=SELL&symbol=LOTTUSDT×tamp=1734430588061&type=LIMIT_MAKER&signature=c905a7bd2d66414a10cbc057e92f1592440384ec8fe526d41dc97c5f2e93ff27
- {"newClientOrderId": "1734430574121", "quantity": "999", "price": "0.008230", "side": "SELL", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
- 1734430588062
- post mexc execute: {"timestamp": "1734430588062", "recvWindow": "5000", "newClientOrderId": "1734430574121", "quantity": "999", "price": "0.008230", "side": "SELL", "type": "LIMIT_MAKER", "symbol": "LOTTUSDT"}
- SIGN https://api.mexc.com/api/v3/order?newClientOrderId=1734430574121&price=0.008230&quantity=999&recvWindow=5000&side=SELL&symbol=LOTTUSDT×tamp=1734430588062&type=LIMIT_MAKER&signature=eb6964475e78984313912bed7f5773d4bd052635032acdf3a8e80803d6a5a1b5
- [Thread 0x7fffeea00640 (LWP 1967276) exited]
- [Thread 0x7fffe1c00640 (LWP 1967275) exited]
- [Thread 0x7fffe3e00640 (LWP 1967273) exited]
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734430588090", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734430574114, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 0.008068, "quantity": 929.000000, "filled_quantity": 0.000000, "update_time": 0}}
- old_it != cur_storage.end()
- [ 2024-12-17-10-16-28 ] MESSAGE: ! LOTTUSDT
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734430588091", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734430574115, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 0.007987, "quantity": 939.000000, "filled_quantity": 0.000000, "update_time": 0}}
- old_it != cur_storage.end()
- [ 2024-12-17-10-16-28 ] MESSAGE: ! LOTTUSDT
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734430588095", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734430574117, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.008230, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}}
- old_it != cur_storage.end()
- [ 2024-12-17-10-16-28 ] MESSAGE: ! LOTTUSDT
- [Thread 0x7fffed600640 (LWP 1967278) exited]
- [Thread 0x7fffe3400640 (LWP 1967274) exited]
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734430588102", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734430574116, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.008149, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}}
- old_it != cur_storage.end()
- [ 2024-12-17-10-16-28 ] MESSAGE: ! LOTTUSDT
- [Thread 0x7fffee000640 (LWP 1967277) exited]
- [Thread 0x7fffe2600640 (LWP 1967280) exited]
- [Thread 0x7fffecc00640 (LWP 1967279) exited]
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734430588115", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734430574119, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.007987, "quantity": 939.000000, "filled_quantity": 0.000000, "update_time": 0}}
- old_it != cur_storage.end()
- [ 2024-12-17-10-16-28 ] MESSAGE: ! LOTTUSDT
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734430588120", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734430574121, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008230, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}}
- old_it != cur_storage.end()
- [ 2024-12-17-10-16-28 ] MESSAGE: ! LOTTUSDT
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734430588130", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734430574118, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.008068, "quantity": 929.000000, "filled_quantity": 0.000000, "update_time": 0}}
- old_it != cur_storage.end()
- [ 2024-12-17-10-16-28 ] MESSAGE: ! LOTTUSDT
- stream == e_stream::ACCOUNT_ORDER
- WebSocketEvent: delta=1.73443e+11, event_time=1734430588130", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337095104, "order": {"symbol": "LOTTUSDT", "coid": 1734430574120, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.008149, "quantity": 999.000000, "filled_quantity": 0.000000, "update_time": 0}}
- old_it != cur_storage.end()
- [ 2024-12-17-10-16-28 ] MESSAGE: ! LOTTUSDT
- ^C
- Thread 1 "test" received signal SIGINT, Interrupt.
- __futex_abstimed_wait_common64 (private=128, cancel=true, abstime=0x0, op=265, expected=1967166, 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