Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ubuntu@ip-172-31-31-23:~/dmm_strat/solutions/test$ ./test mm_launch.config
- api keys: 2403047dac883ff20b6cb32cc56b2a17a8bcbb0d 292b4e5ce79770c283786adf3107a2e896ec0a3bfe4767a080a634961edfac30
- API 0x653ab57cd8c0
- run forever balance 0x653ab57cd8c0
- {"type": "SPOT", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "LAI", "free": 717, "locked": 0, "wallet": 0, "update_time": 0}, {"asset": "USDT", "free": 16.4557, "locked": 65.8228, "wallet": 0, "update_time": 0}, {"asset": "CHAT", "free": 0, "locked": 0, "wallet": 0, "update_time": 0}, {"asset": "ALGO", "free": 0.000221, "locked": 0, "wallet": 0, "update_time": 0}]}
- get balance indicator 0x653ab57cda50
- balance indicator: 0x653ab57cd060 0x653ab57cd8c0
- {"asset": "LAI", "free": 717, "locked": 0, "wallet": 0, "update_time": 0}
- {"asset": "USDT", "free": 16.4557, "locked": 65.8228, "wallet": 0, "update_time": 0}
- {"asset": "CHAT", "free": 0, "locked": 0, "wallet": 0, "update_time": 0}
- {"asset": "ALGO", "free": 0.000221, "locked": 0, "wallet": 0, "update_time": 0}
- [ 1720028844298 ] MESSAGE: Target exchange provided: MEXC_SPOT
- BITMART_SPOT {"symbol": "LAI_USDT", "base": "LAI", "quote": "USDT", "price_step": 0.000001, "price_precision": 6, "quntity_step": 0.100000, "quantity_precision": 1, "min_notional": 5, "max_notional": 1e+09, "maker_commission": 0, "taker_commission": 0}
- {"symbols": [{"symbol": "LAI_USDT", "market": "BITMART_SPOT", "account": "MM_BOT"}], "upnl_bound": "5", "name": "MARKET_MAKING_MANAGER", "rpnl_bound": "100", "max_position": "52", "cooldown": "6000"}
- {"op": "login", "args": ["2403047dac883ff20b6cb32cc56b2a17a8bcbb0d", "1720028844452", "0289f6eef14d7daf8fa993c3b0b91cbf4541054801783d524090ecd57e110197"]}
- {"op": "login", "args": ["2403047dac883ff20b6cb32cc56b2a17a8bcbb0d", "1720028844468", "b0028c4013f2fbb56ad782058c623359c886229598e6038bb6ccd60c1644f3a4"]}
- {"args": ["spot/depth50:LAI_USDT", "spot/depth50:LAI_USDT"], "op": "subscribe"}
- {"args": ["spot/depth50:LAI_USDT", "spot/depth50:LAI_USDT"], "op": "subscribe"}
- {"op": "subscribe", "args": ["spot/user/balance:BALANCE_UPDATE", "spot/user/order:LAI_USDT"]}
- {"op": "subscribe", "args": ["spot/user/balance:BALANCE_UPDATE", "spot/user/order:LAI_USDT"]}
- ping
- [ 1720028845138 ] MESSAGE: Market event from BITMART_SPOT
- [ 1720028845138 ] MESSAGE: mm _process
- [ 1720028845138 ] MESSAGE: update uniswap price
- [ 1720028845513 ] MESSAGE: Target exchange price from uniswap = 0.000021
- [ 1720028845513 ] MESSAGE: mid price not changed
- [ 1720028845513 ] MESSAGE: calculate orders mid price = 0.000021
- [ 1720028845513 ] MESSAGE: position quote: 0.000000max pos: 52.000000
- [ 1720028845513 ] MESSAGE: max pos is not exceeded
- [ 1720028845513 ] MESSAGE: get_timestamp() - last_upd > cooldown: upd = 1720028845513
- [ 2024-07-03-17-47-25 ] DEBUG overall risk checker res: OrderEvent: delta=1.7199e+11, symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.015547, 286.8); (0.015548, 286.8); ], bids: [(2.1e-05, 1.56721e+06); (2e-05, 1.64557e+06); ]
- [ 2024-07-03-17-47-25 ] INFO : OrderEvent: delta=1.7199e+11, symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.015547, 286.8); (0.015548, 286.8); ], bids: [(2.1e-05, 1.56721e+06); (2e-05, 1.64557e+06); ]
- [ 1720028845514 ] MESSAGE: LIMIT GRID
- [ 2024-07-03-17-47-25 ] DEBUG in _process_limit_grid: 0.015547
- [ 2024-07-03-17-47-25 ] DEBUG in _process_limit_grid: 286.8
- [ 2024-07-03-17-47-25 ] DEBUG in _process_limit_grid: 0.015548
- [ 2024-07-03-17-47-25 ] DEBUG in _process_limit_grid: 286.8
- [ 2024-07-03-17-47-25 ] DEBUG in _process_limit_grid: 2.1e-05
- [ 2024-07-03-17-47-25 ] DEBUG in _process_limit_grid: 1.56721e+06
- [ 2024-07-03-17-47-25 ] DEBUG in _process_limit_grid: 2e-05
- [ 2024-07-03-17-47-25 ] DEBUG in _process_limit_grid: 1.64557e+06
- [ 2024-07-03-17-47-25 ] DEBUG @#*&* : {"symbol": "LAI_USDT", "price": 0.000020, "quantity": 1645569.900000, "type": "LIMIT", "side": "BUY"}
- [ 2024-07-03-17-47-25 ] DEBUG @#*&* : {"symbol": "LAI_USDT", "price": 0.000021, "quantity": 1567209.400000, "type": "LIMIT", "side": "BUY"}
- [ 2024-07-03-17-47-25 ] DEBUG @#*&* : {"symbol": "LAI_USDT", "price": 0.015548, "quantity": 286.800000, "type": "LIMIT", "side": "SELL"}
- [ 2024-07-03-17-47-25 ] DEBUG @#*&* : {"symbol": "LAI_USDT", "price": 0.015547, "quantity": 286.800000, "type": "LIMIT", "side": "SELL"}
- [ 1720028845515 ] MESSAGE: csize: 2
- [ 2024-07-03-17-47-25 ] DEBUG ! cancel: {"symbol": "LAI_USDT", "coid": 1720028755033, "order_id": "621239779544016384", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.000021, "quantity": 1567209.000000, "filled_quantity": 0.000000, "update_time": 1720028776398}
- [ 2024-07-03-17-47-25 ] DEBUG ! cancel: {"symbol": "LAI_USDT", "coid": 1720028755034, "order_id": "621239779581898240", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.000020, "quantity": 1645569.000000, "filled_quantity": 0.000000, "update_time": 1720028776400}
- [ 2024-07-03-17-47-25 ] DEBUG ? cancel: empty order
- [ 2024-07-03-17-47-25 ] DEBUG ? cancel: empty order
- [ 2024-07-03-17-47-25 ] DEBUG ! new: {"symbol": "LAI_USDT", "price": 0.000020, "quantity": 1645569.900000, "client_order_id": 1720028844160, "type": "LIMIT", "side": "BUY"}
- [ 2024-07-03-17-47-25 ] DEBUG ! new: {"symbol": "LAI_USDT", "price": 0.015548, "quantity": 286.800000, "client_order_id": 1720028844162, "type": "LIMIT", "side": "SELL"}
- [ [ 1720028845616 ] MESSAGE: Market event from BITMART_SPOT
- [ 1720028845616 ] MESSAGE: mm _process
- [ 1720028845616 ] MESSAGE: Target exchange price from uniswap = 0.000021
- [ 1720028845616 ] MESSAGE: mid price not changed
- [ 1720028845616 ] MESSAGE: calculate orders mid price = 0.000021
- 2024-07-03-17-47-25 ] DEBUG[ 1720028845616 ] MESSAGE: position quote: 0.000000max pos: 52.000000
- [ 1720028845616 ] MESSAGE: max pos is not exceeded
- ! new: [ 1720028845616 ] MESSAGE: cooldown is not exceeded
- {"symbol": "LAI_USDT", "price": 0.000021, "quantity": 1567209.400000, "client_order_id": 1720028844161, "type": "LIMIT", "side": "BUY"}
- [ 2024-07-03-17-47-25 ] DEBUG ! new: {"symbol": "LAI_USDT", "price": 0.015547, "quantity": 286.800000, "client_order_id": 1720028844163, "type": "LIMIT", "side": "SELL"}
- ping
- [ 1720028845618 ] MESSAGE: Market event from BITMART_SPOT
- [ 1720028845618 ] MESSAGE: mm _process
- [ 1720028845618 ] MESSAGE: Target exchange price from uniswap = 0.000021
- [ 1720028845618 ] MESSAGE: mid price not changed
- [ 1720028845618 ] MESSAGE: calculate orders mid price = 0.000021
- [ 1720028845618 ] MESSAGE: position quote: 0.000000max pos: 52.000000
- [ 1720028845618 ] MESSAGE: max pos is not exceeded
- [ 1720028845618 ] MESSAGE: cooldown is not exceeded
- [ 1720028845619 ] MESSAGE: Market event from BITMART_SPOT
- [ 1720028845619 ] MESSAGE: mm _process
- [ 1720028845619 ] MESSAGE: Target exchange price from uniswap = 0.000021
- [ 1720028845619 ] MESSAGE: mid price not changed
- [ 1720028845619 ] MESSAGE: calculate orders mid price = 0.000021
- [ 1720028845619 ] MESSAGE: position quote: 0.000000max pos: 52.000000
- [ 1720028845619 ] MESSAGE: max pos is not exceeded
- [ 1720028845619 ] MESSAGE: cooldown is not exceeded
- [ 2024-07-03-17-47-25 ] INFO : WebSocketEvent: delta=1.72003e+11, event_time=1720028845619", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 645, "order": {"symbol": "LAI_USDT", "coid": 1720028755033, "order_id": "621239779544016384", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 0.000021, "quantity": 1567209.000000, "filled_quantity": 0.000000, "update_time": 1720028845575}}
- [ 1720028845620 ] MESSAGE: limit
- [ 2024-07-03-17-47-25 ] DEBUG Event order: : {"symbol": "LAI_USDT", "coid": 1720028755033, "order_id": "621239779544016384", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 0.000021, "quantity": 1567209.000000, "filled_quantity": 0.000000, "update_time": 1720028845575}
- [ 2024-07-03-17-47-25 ] DEBUG old order: : {"symbol": "LAI_USDT", "coid": 1720028755033, "order_id": "621239779544016384", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.000021, "quantity": 1567209.000000, "filled_quantity": 0.000000, "update_time": 1720028776398}
- [ 1720028845620 ] MESSAGE: erase
- [ 1720028845621 ] MESSAGE: in market making strategy fill process
- [ 1720028845621 ] MESSAGE: ! LAI_USDT
- [ 2024-07-03-17-47-25 ] INFO : WebSocketEvent: delta=1.72003e+11, event_time=1720028845621", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 645, "order": {"symbol": "LAI_USDT", "coid": 1720028755034, "order_id": "621239779581898240", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 0.000020, "quantity": 1645569.000000, "filled_quantity": 0.000000, "update_time": 1720028845582}}
- [ 1720028845622 ] MESSAGE: limit
- [ 2024-07-03-17-47-25 ] DEBUG Event order: : {"symbol": "LAI_USDT", "coid": 1720028755034, "order_id": "621239779581898240", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 0.000020, "quantity": 1645569.000000, "filled_quantity": 0.000000, "update_time": 1720028845582}
- [ 2024-07-03-17-47-25 ] DEBUG old order: : {"symbol": "LAI_USDT", "coid": 1720028755034, "order_id": "621239779581898240", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.000020, "quantity": 1645569.000000, "filled_quantity": 0.000000, "update_time": 1720028776400}
- [ 1720028845622 ] MESSAGE: erase
- [ 1720028845623 ] MESSAGE: in market making strategy fill process
- [ 1720028845623 ] MESSAGE: ! LAI_USDT
- {"trace": "36050f68b8a243848d98b22516f8eb33.95.17200288456518387", "data": {}, "code": "51011", "message": "param not match : size * price >=5"}
- [ 2024-07-03-17-47-25 ] DEBUG ? new: UNKNOWN_ERROR (BITMART_SPOT: Unknown error)
- [ 2024-07-03-17-47-25 ] ERROR new order error: request={"symbol": "LAI_USDT", "price": 0.015548, "quantity": 286.800000, "client_order_id": 1720028844162, "type": "LIMIT", "side": "SELL"}: UNKNOWN_ERROR (BITMART_SPOT: Unknown error)
- {"trace": "66ff38f98af34e28b27c1d4a4ab10ac1.99.17200288456684721", "data": {}, "code": "51011", "message": "param not match : size * price >=5"}
- [ 2024-07-03-17-47-25 ] DEBUG ? new: UNKNOWN_ERROR (BITMART_SPOT: Unknown error)
- [ 2024-07-03-17-47-25 ] ERROR new order error: request={"symbol": "LAI_USDT", "price": 0.015547, "quantity": 286.800000, "client_order_id": 1720028844163, "type": "LIMIT", "side": "SELL"}: UNKNOWN_ERROR (BITMART_SPOT: Unknown error)
- [ 2024-07-03-17-47-25 ] INFO : WebSocketEvent: delta=1.72003e+11, event_time=1720028845719", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 556, "order": {"symbol": "LAI_USDT", "coid": 1720028844161, "order_id": "621240942175460864", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.000021, "quantity": 1567209.000000, "filled_quantity": 0.000000, "update_time": 1720028845678}}
- [ 1720028845719 ] MESSAGE: limit
- [ 2024-07-03-17-47-25 ] DEBUG Event order: : {"symbol": "LAI_USDT", "coid": 1720028844161, "order_id": "621240942175460864", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.000021, "quantity": 1567209.000000, "filled_quantity": 0.000000, "update_time": 1720028845678}
- [ 2024-07-03-17-47-25 ] DEBUG old order: : {"symbol": "LAI_USDT", "coid": 1720028844161, "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 0.000021, "quantity": 1567209.400000, "update_time": 0}
- [ 1720028845720 ] MESSAGE: in market making strategy fill process
- [ 1720028845720 ] MESSAGE: ! LAI_USDT
- [ 2024-07-03-17-47-25 ] INFO : WebSocketEvent: delta=1.72003e+11, event_time=1720028845720", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 556, "order": {"symbol": "LAI_USDT", "coid": 1720028844160, "order_id": "621240942158421248", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.000020, "quantity": 1645569.000000, "filled_quantity": 0.000000, "update_time": 1720028845677}}
- [ 1720028845721 ] MESSAGE: limit
- [ 2024-07-03-17-47-25 ] DEBUG Event order: : {"symbol": "LAI_USDT", "coid": 1720028844160, "order_id": "621240942158421248", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.000020, "quantity": 1645569.000000, "filled_quantity": 0.000000, "update_time": 1720028845677}
- [ 2024-07-03-17-47-25 ] DEBUG old order: : {"symbol": "LAI_USDT", "coid": 1720028844160, "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 0.000020, "quantity": 1645569.900000, "update_time": 0}
- [ 1720028845721 ] MESSAGE: in market making strategy fill process
- [ 1720028845721 ] MESSAGE: ! LAI_USDT
- [ 2024-07-03-17-47-25 ] DEBUG ? new: {"symbol": "LAI_USDT", "coid": 1720028844163, "order_id": "621240942158421248", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.015547, "quantity": 286.800000, "update_time": 1720028845722}
- [ 2024-07-03-17-47-25 ] DEBUG ? new: {"symbol": "LAI_USDT", "coid": 1720028844163, "order_id": "621240942175460864", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.015547, "quantity": 286.800000, "update_time": 1720028845722}
- [ 1720028847789 ] MESSAGE: Market event from BITMART_SPOT
- [ 1720028847789 ] MESSAGE: mm _process
- [ 1720028847789 ] MESSAGE: update uniswap price
- [ 1720028847811 ] MESSAGE: Target exchange price from uniswap = 0.000021
- [ 1720028847811 ] MESSAGE: mid price not changed
- [ 1720028847811 ] MESSAGE: calculate orders mid price = 0.000021
- [ 1720028847811 ] MESSAGE: position quote: 0.000000max pos: 52.000000
- [ 1720028847811 ] MESSAGE: max pos is not exceeded
- [ 1720028847812 ] MESSAGE: cooldown is not exceeded
- [ 1720028847812 ] MESSAGE: Market event from BITMART_SPOT
- [ 1720028847812 ] MESSAGE: mm _process
- [ 1720028847812 ] MESSAGE: Target exchange price from uniswap = 0.000021
- [ 1720028847812 ] MESSAGE: mid price not changed
- [ 1720028847812 ] MESSAGE: calculate orders mid price = 0.000021
- [ 1720028847812 ] MESSAGE: position quote: 0.000000max pos: 52.000000
- [ 1720028847812 ] MESSAGE: max pos is not exceeded
- [ 1720028847812 ] MESSAGE: cooldown is not exceeded
- [ 1720028848796 ] MESSAGE: Market event from BITMART_SPOT
- [ 1720028848796 ] MESSAGE: mm _process
- [ 1720028848796 ] MESSAGE: Target exchange price from uniswap = 0.000021
- [ 1720028848796 ] MESSAGE: mid price not changed
- [ 1720028848796 ] MESSAGE: calculate orders mid price = 0.000021
- [ 1720028848796 ] MESSAGE: position quote: 0.000000max pos: 52.000000
- [ 1720028848796 ] MESSAGE: max pos is not exceeded
- [ 1720028848796 ] MESSAGE: cooldown is not exceeded
- [ 1720028848797 ] MESSAGE: Market event from BITMART_SPOT
- [ 1720028848797 ] MESSAGE: mm _process
- [ 1720028848797 ] MESSAGE: Target exchange price from uniswap = 0.000021
- [ 1720028848797 ] MESSAGE: mid price not changed
- [ 1720028848797 ] MESSAGE: calculate orders mid price = 0.000021
- [ 1720028848797 ] MESSAGE: position quote: 0.000000max pos: 52.000000
- [ 1720028848797 ] MESSAGE: max pos is not exceeded
- [ 1720028848797 ] MESSAGE: cooldown is not exceeded
- [ 1720028849882 ] MESSAGE: Market event from BITMART_SPOT
- [ 1720028849882 ] MESSAGE: mm _process
- [ 1720028849882 ] MESSAGE: update uniswap price
- [ 1720028849899 ] MESSAGE: Target exchange price from uniswap = 0.000021
- [ 1720028849899 ] MESSAGE: mid price not changed
- [ 1720028849899 ] MESSAGE: calculate orders mid price = 0.000021
- [ 1720028849899 ] MESSAGE: position quote: 0.000000max pos: 52.000000
- [ 1720028849899 ] MESSAGE: max pos is not exceeded
- [ 1720028849899 ] MESSAGE: cooldown is not exceeded
- [ 1720028849899 ] MESSAGE: Market event from BITMART_SPOT
- [ 1720028849899 ] MESSAGE: mm _process
- [ 1720028849899 ] MESSAGE: Target exchange price from uniswap = 0.000021
- [ 1720028849899 ] MESSAGE: mid price not changed
- [ 1720028849899 ] MESSAGE: calculate orders mid price = 0.000021
- [ 1720028849899 ] MESSAGE: position quote: 0.000000max pos: 52.000000
- [ 1720028849899 ] MESSAGE: max pos is not exceeded
- [ 1720028849899 ] MESSAGE: cooldown is not exceeded
- [ 1720028850798 ] MESSAGE: Market event from BITMART_SPOT
- [ 1720028850798 ] MESSAGE: mm _process
- [ 1720028850798 ] MESSAGE: Target exchange price from uniswap = 0.000021
- [ 1720028850798 ] MESSAGE: mid price not changed
- [ 1720028850798 ] MESSAGE: calculate orders mid price = 0.000021
- [ 1720028850798 ] MESSAGE: position quote: 0.000000max pos: 52.000000
- [ 1720028850798 ] MESSAGE: max pos is not exceeded
- [ 1720028850798 ] MESSAGE: cooldown is not exceeded
- [ 1720028850798 ] MESSAGE: Market event from BITMART_SPOT
- [ 1720028850799 ] MESSAGE: mm _process
- [ 1720028850799 ] MESSAGE: Target exchange price from uniswap = 0.000021
- [ 1720028850799 ] MESSAGE: mid price not changed
- [ 1720028850799 ] MESSAGE: calculate orders mid price = 0.000021
- [ 1720028850799 ] MESSAGE: position quote: 0.000000max pos: 52.000000
- [ 1720028850799 ] MESSAGE: max pos is not exceeded
- [ 1720028850799 ] MESSAGE: cooldown is not exceeded
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement