Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ubuntu@ip-172-31-31-23:~/mira_updated/market_making/mexc_spot$ python3 launch.py LOTTUSDT
- ./market_making --api=mx0vglRsnmcTEgpmkD --available_balance_to_total=0.9 --base_size_to_total=1.0 --cancel_on_signal=1 --cooldown=7000 --first_order_size=0.25 --n_base=3 --n_lvl=3 --secret=ef47dd75fb8b41eebf145056dc98032f --spread_size=0.1 --symbol=LOTTUSDT --enable_batch_orders=0 --enable_risk_checker=0 --use_grid=1
- --api=mx0vglRsnmcTEgpmkD
- --available_balance_to_total=0.9
- --base_size_to_total=1.0
- --cancel_on_signal=1
- --cooldown=7000
- --first_order_size=0.25
- --n_base=3
- --n_lvl=3
- --secret=ef47dd75fb8b41eebf145056dc98032f
- --spread_size=0.1
- --symbol=LOTTUSDT
- --enable_batch_orders=0
- --enable_risk_checker=0
- --use_grid=1
- LOTT balance: {"asset": "LOTT","free": "4263.16","frozen": "0","update_time": 0}
- USDT balance: {"asset": "USDT","free": "71.975","frozen": "0","update_time": 0}
- 1711006973335 Placing orders.
- Mid price: 0.014212, spread ticks: 1421
- In MakeNewOrdersWithGrid
- In MakeNewOrdersWithGrid get grid
- After grid!
- 0.014923
- check_add_if_not_present: id = 1711006972726 , price = 14923
- {"code":"200 OK","data":{"listenKey":"1b4a8acd4faaef7b63d5163a833d4691923f343ca45edabbe6ad5067a99752ce"}}
- Complete
- 0.013502
- check_add_if_not_present: id = 1711006972727 , price = 13502
- {"params":["spot@private.orders.v3.api","spot@private.deals.v3.api","spot@private.account.v3.api","spot@public.limit.depth.v3.api@LOTTUSDT@20"],"method":"SUBSCRIPTION"}
- no "c" parameter: {"code":"0","msg":"spot@private.deals.v3.api,spot@public.limit.depth.v3.api@LOTTUSDT@20,spot@private.orders.v3.api,spot@private.account.v3.api","id":"0"}
- Complete
- 0.014924
- check_add_if_not_present: id = 1711006972728 , price = 14924
- Account order event
- !{"amount": "8.483100","average_price": "0.000000","client_order_id": 1711006972728,"create_time": 1711006973568,"is_maker": false,"status": "NEW","price": "0.014924","quantity": "568.410000","filled_quantity": "0.000000","side": "SELL","symbol": "0x55a4916a4578","type": "LIMIT_MAKER""update_time": 1711006973672}
- Complete
- 0.013501
- check_add_if_not_present: id = 1711006972729 , price = 13501
- Complete
- 0.014925
- check_add_if_not_present: id = 1711006972730 , price = 14925
- Account order event
- !{"amount": "9.596640","average_price": "0.000000","client_order_id": 1711006972729,"create_time": 1711006973722,"is_maker": false,"status": "NEW","price": "0.013501","quantity": "710.810000","filled_quantity": "0.000000","side": "BUY","symbol": "0x55a4916a4578","type": "LIMIT_MAKER""update_time": 1711006973731}
- Complete
- 0.013500
- check_add_if_not_present: id = 1711006972731 , price = 13500
- Account order event
- !{"amount": "10.604510","average_price": "0.000000","client_order_id": 1711006972730,"create_time": 1711006973769,"is_maker": false,"status": "NEW","price": "0.014925","quantity": "710.520000","filled_quantity": "0.000000","side": "SELL","symbol": "0x55a4916a4578","type": "LIMIT_MAKER""update_time": 1711006973821}
- Account order event
- !{"amount": "11.995830","average_price": "0.000000","client_order_id": 1711006972731,"create_time": 1711006973812,"is_maker": false,"status": "NEW","price": "0.013500","quantity": "888.580000","filled_quantity": "0.000000","side": "BUY","symbol": "0x55a4916a4578","type": "LIMIT_MAKER""update_time": 1711006973823}
- Complete
- 1711006973847 Orders posted.
- 1711006980848 Previous mid price: 0.014212
- 1711006980848 Posting...
- 1711006980848 Placing orders.
- Mid price: 0.014213, spread ticks: 1421
- In MakeNewOrdersWithGrid
- In MakeNewOrdersWithGrid get grid
- In grid!scaled price = 14923 scaled_qty = 42631
- grid 0.016345
- grid 0.014212
- grid 0.016346
- grid 0.014211
- grid 0.016347
- grid 0.014210
- Was not found
- id = 1711006972726
- In grid!scaled price = 13502 scaled_qty = 53306
- grid 0.016345
- grid 0.014212
- grid 0.016346
- grid 0.014211
- grid 0.016347
- grid 0.014210
- Was not found
- id = 1711006972727
- Account order event
- !{"amount": "6.361820","average_price": "0.000000","client_order_id": 1711006972726,"create_time": 1711006973379,"is_maker": false,"status": "CANCELED","price": "0.014923","quantity": "426.310000","filled_quantity": "0.000000","side": "SELL","symbol": "0x55a4916a4578","type": "LIMIT_MAKER""update_time": 1711006980874}
- In grid!scaled price = 14924 scaled_qty = 56841
- grid 0.016345
- grid 0.014212
- grid 0.016346
- grid 0.014211
- grid 0.016347
- grid 0.014210
- Was not found
- id = 1711006972728
- Account order event
- !{"amount": "7.197370","average_price": "0.000000","client_order_id": 1711006972727,"create_time": 1711006973431,"is_maker": false,"status": "CANCELED","price": "0.013502","quantity": "533.050000","filled_quantity": "0.000000","side": "BUY","symbol": "0x55a4916a4578","type": "LIMIT_MAKER""update_time": 1711006980896}
- In grid!scaled price = 13501 scaled_qty = 71081
- grid 0.016345
- grid 0.014212
- grid 0.016346
- grid 0.014211
- grid 0.016347
- grid 0.014210
- Was not found
- id = 1711006972729
- Account order event
- !{"amount": "8.483100","average_price": "0.000000","client_order_id": 1711006972728,"create_time": 1711006973568,"is_maker": false,"status": "CANCELED","price": "0.014924","quantity": "568.410000","filled_quantity": "0.000000","side": "SELL","symbol": "0x55a4916a4578","type": "LIMIT_MAKER""update_time": 1711006980917}
- In grid!scaled price = 14925 scaled_qty = 71052
- grid 0.016345
- grid 0.014212
- grid 0.016346
- grid 0.014211
- grid 0.016347
- grid 0.014210
- Was not found
- id = 1711006972730
- Account order event
- !{"amount": "9.596640","average_price": "0.000000","client_order_id": 1711006972729,"create_time": 1711006973722,"is_maker": false,"status": "CANCELED","price": "0.013501","quantity": "710.810000","filled_quantity": "0.000000","side": "BUY","symbol": "0x55a4916a4578","type": "LIMIT_MAKER""update_time": 1711006980938}
- In grid!scaled price = 13500 scaled_qty = 88858
- grid 0.016345
- grid 0.014212
- grid 0.016346
- grid 0.014211
- grid 0.016347
- grid 0.014210
- Was not found
- id = 1711006972731
- Account order event
- !{"amount": "10.604510","average_price": "0.000000","client_order_id": 1711006972730,"create_time": 1711006973769,"is_maker": false,"status": "CANCELED","price": "0.014925","quantity": "710.520000","filled_quantity": "0.000000","side": "SELL","symbol": "0x55a4916a4578","type": "LIMIT_MAKER""update_time": 1711006980959}
- After grid!
- 0.016345
- check_add_if_not_present: id = 1711006972732 , price = 16345
- Account order event
- !{"amount": "11.995830","average_price": "0.000000","client_order_id": 1711006972731,"create_time": 1711006973812,"is_maker": false,"status": "CANCELED","price": "0.013500","quantity": "888.580000","filled_quantity": "0.000000","side": "BUY","symbol": "0x55a4916a4578","type": "LIMIT_MAKER""update_time": 1711006980979}
- Complete
- 0.014212
- check_add_if_not_present: id = 1711006972733 , price = 14212
- Complete
- 0.016346
- check_add_if_not_present: id = 1711006972734 , price = 16346
- try_add: id = 1711006972732 , price = 16344
- Account order event
- !{"amount": "6.968030","average_price": "0.000000","client_order_id": 1711006972732,"create_time": 1711006981000,"is_maker": false,"status": "NEW","price": "0.016344","quantity": "426.310000","filled_quantity": "0.000000","side": "SELL","symbol": "0x55a4916a4578","type": "LIMIT_MAKER""update_time": 1711006981015}
- Account order event
- !{"amount": "7.197380","average_price": "0.000000","client_order_id": 1711006972733,"create_time": 1711006981031,"is_maker": false,"status": "NEW","price": "0.014212","quantity": "506.430000","filled_quantity": "0.000000","side": "BUY","symbol": "0x55a4916a4578","type": "LIMIT_MAKER""update_time": 1711006981042}
- Complete
- 0.014211
- check_add_if_not_present: id = 1711006972735 , price = 14211
- Account order event
- !{"amount": "9.291390","average_price": "0.000000","client_order_id": 1711006972734,"create_time": 1711006981063,"is_maker": false,"status": "NEW","price": "0.016346","quantity": "568.410000","filled_quantity": "0.000000","side": "SELL","symbol": "0x55a4916a4578","type": "LIMIT_MAKER""update_time": 1711006981074}
- Complete
- 0.016347
- check_add_if_not_present: id = 1711006972736 , price = 16347
- Account order event
- !{"amount": "9.596540","average_price": "0.000000","client_order_id": 1711006972735,"create_time": 1711006981101,"is_maker": false,"status": "NEW","price": "0.014211","quantity": "675.290000","filled_quantity": "0.000000","side": "BUY","symbol": "0x55a4916a4578","type": "LIMIT_MAKER""update_time": 1711006981112}
- Complete
- 0.014210
- check_add_if_not_present: id = 1711006972737 , price = 14210
- Account order event
- !{"amount": "11.614870","average_price": "0.000000","client_order_id": 1711006972736,"create_time": 1711006981126,"is_maker": false,"status": "NEW","price": "0.016347","quantity": "710.520000","filled_quantity": "0.000000","side": "SELL","symbol": "0x55a4916a4578","type": "LIMIT_MAKER""update_time": 1711006981137}
- Complete
- 1711006981166 Orders posted.
- Account order event
- !{"amount": "11.995790","average_price": "0.000000","client_order_id": 1711006972737,"create_time": 1711006981156,"is_maker": false,"status": "NEW","price": "0.014210","quantity": "844.180000","filled_quantity": "0.000000","side": "BUY","symbol": "0x55a4916a4578","type": "LIMIT_MAKER""update_time": 1711006981167}
- ^CThe interrupt signal is (2).
- Orders cancelled!
- sigcanel
- Account order event
- !{"amount": "11.995790","average_price": "0.000000","client_order_id": 1711006972737,"create_time": 1711006981156,"is_maker": false,"status": "CANCELED","price": "0.014210","quantity": "844.180000","filled_quantity": "0.000000","side": "BUY","symbol": "0x55a4916a4578","type": "LIMIT_MAKER""update_time": 1711006988055}
- Account order event
- !{"amount": "11.614870","average_price": "0.000000","client_order_id": 1711006972736,"create_time": 1711006981126,"is_maker": false,"status": "CANCELED","price": "0.016347","quantity": "710.520000","filled_quantity": "0.000000","side": "SELL","symbol": "0x55a4916a4578","type": "LIMIT_MAKER""update_time": 1711006988055}
- Account order event
- !{"amount": "9.596540","average_price": "0.000000","client_order_id": 1711006972735,"create_time": 1711006981101,"is_maker": false,"status": "CANCELED","price": "0.014211","quantity": "675.290000","filled_quantity": "0.000000","side": "BUY","symbol": "0x55a4916a4578","type": "LIMIT_MAKER""update_time": 1711006988056}
- Account order event
- !{"amount": "9.291390","average_price": "0.000000","client_order_id": 1711006972734,"create_time": 1711006981063,"is_maker": false,"status": "CANCELED","price": "0.016346","quantity": "568.410000","filled_quantity": "0.000000","side": "SELL","symbol": "0x55a4916a4578","type": "LIMIT_MAKER""update_time": 1711006988056}
- Account order event
- !{"amount": "7.197380","average_price": "0.000000","client_order_id": 1711006972733,"create_time": 1711006981031,"is_maker": false,"status": "CANCELED","price": "0.014212","quantity": "506.430000","filled_quantity": "0.000000","side": "BUY","symbol": "0x55a4916a4578","type": "LIMIT_MAKER""update_time": 1711006988056}
- Account order event
- !{"amount": "6.968030","average_price": "0.000000","client_order_id": 1711006972732,"create_time": 1711006981000,"is_maker": false,"status": "CANCELED","price": "0.016344","quantity": "426.310000","filled_quantity": "0.000000","side": "SELL","symbol": "0x55a4916a4578","type": "LIMIT_MAKER""update_time": 1711006988056}
- base balance: {"asset": "LOTT","free": "4263.16","frozen": "0","update_time": 1711006988077}
- quote balance: {"asset": "USDT","free": "55.1643","frozen": "16.8107","update_time": 1711006988068}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement