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=15000 --first_order_size=0.4 --n_base=2 --n_lvl=2 --secret=ef47dd75fb8b41eebf145056dc98032f --spread_size=0.01 --symbol=LOTTUSDT --enable_batch_orders=0 --enable_risk_checker=1 --use_grid=0
- --api=mx0vglRsnmcTEgpmkD
- --available_balance_to_total=0.9
- --base_size_to_total=1.0
- --cancel_on_signal=1
- --cooldown=15000
- --first_order_size=0.4
- --n_base=2
- --n_lvl=2
- --secret=ef47dd75fb8b41eebf145056dc98032f
- --spread_size=0.01
- --symbol=LOTTUSDT
- --enable_batch_orders=0
- --enable_risk_checker=1
- --use_grid=0
- LOTT balance: {"asset": "LOTT","free": "4702.12","frozen": "0","update_time": 0}
- USDT balance: {"asset": "USDT","free": "68.9721","frozen": "0","update_time": 0}
- 1710960115997 Placing orders.
- Mid price: 0.013771, spread ticks: 137
- Calculate pnl price!
- {"code":"200 OK","data":{"listenKey":"47e610e3ccebed74dce4be605ffab6de618163757d1ac64cf87d51afe8b48459"}}
- {"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"}
- 1710960116160 Orders posted.
- Account order event
- !{"amount": "16.553240","average_price": "0.000000","client_order_id": 1710960115298,"create_time": 1710960116151,"is_maker": false,"status": "NEW","price": "0.013702","quantity": "1208.080000","filled_quantity": "0.000000","side": "BUY","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960116160}
- 1710960131185 Previous mid price: 0.013771
- 1710960131185 Posting...
- 1710960131185 Placing orders.
- Mid price: 0.013772, spread ticks: 137
- Calculate pnl price!
- Account order event
- !{"amount": "16.553240","average_price": "0.000000","client_order_id": 1710960115298,"create_time": 1710960116151,"is_maker": false,"status": "CANCELED","price": "0.013702","quantity": "1208.080000","filled_quantity": "0.000000","side": "BUY","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960131187}
- Account order event
- !{"amount": "15.619560","average_price": "0.000000","client_order_id": 1710960115297,"create_time": 1710960116110,"is_maker": false,"status": "CANCELED","price": "0.013841","quantity": "1128.500000","filled_quantity": "0.000000","side": "SELL","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960131188}
- Account order event
- !{"amount": "11.035430","average_price": "0.000000","client_order_id": 1710960115296,"create_time": 1710960116080,"is_maker": false,"status": "CANCELED","price": "0.013703","quantity": "805.330000","filled_quantity": "0.000000","side": "BUY","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960131188}
- Account order event
- !{"amount": "10.412240","average_price": "0.000000","client_order_id": 1710960115295,"create_time": 1710960116038,"is_maker": false,"status": "CANCELED","price": "0.013840","quantity": "752.330000","filled_quantity": "0.000000","side": "SELL","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960131188}
- Account order event
- !{"amount": "10.516060","average_price": "0.000000","client_order_id": 1710960115299,"create_time": 1710960131218,"is_maker": false,"status": "NEW","price": "0.013978","quantity": "752.330000","filled_quantity": "0.000000","side": "SELL","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960131230}
- Account order event
- !{"amount": "11.035520","average_price": "0.000000","client_order_id": 1710960115300,"create_time": 1710960131245,"is_maker": false,"status": "NEW","price": "0.013771","quantity": "801.360000","filled_quantity": "0.000000","side": "BUY","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960131254}
- Account order event
- !{"amount": "15.775300","average_price": "0.000000","client_order_id": 1710960115301,"create_time": 1710960131267,"is_maker": false,"status": "NEW","price": "0.013979","quantity": "1128.500000","filled_quantity": "0.000000","side": "SELL","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960131278}
- 1710960131320 Orders posted.
- Account order event
- !{"amount": "16.553190","average_price": "0.000000","client_order_id": 1710960115302,"create_time": 1710960131311,"is_maker": false,"status": "NEW","price": "0.013770","quantity": "1202.110000","filled_quantity": "0.000000","side": "BUY","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960131322}
- Account order event
- !{"amount": "10.516060","average_price": "0.013978","client_order_id": 1710960115299,"create_time": 1710960131218,"is_maker": true,"status": "PARTIALLY_FILLED","price": "0.013978","quantity": "752.330000","filled_quantity": "0.000000","side": "SELL","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960138766}
- Account trade!
- {"price": "0.013978","quantity": "463.330000","side": "SELL","symbol": "0x563ac0aa26c8"}
- Open position: {"price": "0.013978","quantity": "463.330000","side": "SELL","symbol": "0x563ac0aa26c8"}!
- position = -6.47643; qty = -463.33; entry_price = 0.013978
- Position bigger than max position. Cancel orders.
- Account order event
- !{"amount": "15.775300","average_price": "0.000000","client_order_id": 1710960115301,"create_time": 1710960131267,"is_maker": false,"status": "CANCELED","price": "0.013979","quantity": "1128.500000","filled_quantity": "0.000000","side": "SELL","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960138878}
- Account order event
- !{"amount": "10.516060","average_price": "0.013978","client_order_id": 1710960115299,"create_time": 1710960131218,"is_maker": false,"status": "CANCELED","price": "0.013978","quantity": "752.330000","filled_quantity": "0.000000","side": "SELL","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960138902}
- 1710960138925 Previous mid price: 0.013909
- 1710960138925 Posting...
- 1710960138925 Placing orders.
- Mid price: 0.013875, spread ticks: 138
- Calculate pnl price!
- qty<0: calculated pnl price = 0.0122943; just mid price = 0.013875
- Account order event
- !{"amount": "16.553190","average_price": "0.000000","client_order_id": 1710960115302,"create_time": 1710960131311,"is_maker": false,"status": "CANCELED","price": "0.013770","quantity": "1202.110000","filled_quantity": "0.000000","side": "BUY","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960138927}
- Account order event
- !{"amount": "11.035520","average_price": "0.000000","client_order_id": 1710960115300,"create_time": 1710960131245,"is_maker": false,"status": "CANCELED","price": "0.013771","quantity": "801.360000","filled_quantity": "0.000000","side": "BUY","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960138927}
- Account order event
- !{"amount": "9.386960","average_price": "0.000000","client_order_id": 1710960115303,"create_time": 1710960138941,"is_maker": false,"status": "NEW","price": "0.013841","quantity": "678.200000","filled_quantity": "0.000000","side": "SELL","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960138950}
- Account order event
- !{"amount": "12.070720","average_price": "0.000000","client_order_id": 1710960115304,"create_time": 1710960138963,"is_maker": false,"status": "NEW","price": "0.012225","quantity": "987.380000","filled_quantity": "0.000000","side": "BUY","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960138973}
- Account order event
- !{"amount": "14.081460","average_price": "0.000000","client_order_id": 1710960115305,"create_time": 1710960138987,"is_maker": false,"status": "NEW","price": "0.013842","quantity": "1017.300000","filled_quantity": "0.000000","side": "SELL","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960139165}
- Account order event
- !{"amount": "18.106060","average_price": "0.000000","client_order_id": 1710960115306,"create_time": 1710960139180,"is_maker": false,"status": "NEW","price": "0.012224","quantity": "1481.190000","filled_quantity": "0.000000","side": "BUY","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960139195}
- 1710960139213 Orders posted.
- --- BALANCES ---
- base balance: {"asset": "LOTT","free": "2543.29","frozen": "1695.5","update_time": 1710960139154}
- quote balance: {"asset": "USDT","free": "45.2351","frozen": "30.207","update_time": 1710960139183}
- 1710960154242 Previous mid price: 0.013875
- 1710960154242 Posting...
- 1710960154242 Placing orders.
- Mid price: 0.013137, spread ticks: 131
- Calculate pnl price!
- qty<0: calculated pnl price = 0.0122895; just mid price = 0.013268
- Account order event
- !{"amount": "18.106060","average_price": "0.000000","client_order_id": 1710960115306,"create_time": 1710960139180,"is_maker": false,"status": "CANCELED","price": "0.012224","quantity": "1481.190000","filled_quantity": "0.000000","side": "BUY","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960154247}
- Account order event
- !{"amount": "14.081460","average_price": "0.000000","client_order_id": 1710960115305,"create_time": 1710960138987,"is_maker": false,"status": "CANCELED","price": "0.013842","quantity": "1017.300000","filled_quantity": "0.000000","side": "SELL","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960154247}
- Account order event
- !{"amount": "12.070720","average_price": "0.000000","client_order_id": 1710960115304,"create_time": 1710960138963,"is_maker": false,"status": "CANCELED","price": "0.012225","quantity": "987.380000","filled_quantity": "0.000000","side": "BUY","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960154247}
- Account order event
- !{"amount": "9.386960","average_price": "0.000000","client_order_id": 1710960115303,"create_time": 1710960138941,"is_maker": false,"status": "CANCELED","price": "0.013841","quantity": "678.200000","filled_quantity": "0.000000","side": "SELL","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960154247}
- Account order event
- !{"amount": "8.476820","average_price": "0.000000","client_order_id": 1710960115307,"create_time": 1710960154263,"is_maker": false,"status": "NEW","price": "0.012499","quantity": "678.200000","filled_quantity": "0.000000","side": "SELL","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960154276}
- Account order event
- !{"amount": "12.070710","average_price": "0.000000","client_order_id": 1710960115308,"create_time": 1710960154309,"is_maker": false,"status": "NEW","price": "0.012224","quantity": "987.460000","filled_quantity": "0.000000","side": "BUY","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960154321}
- Account order event
- !{"amount": "12.716250","average_price": "0.000000","client_order_id": 1710960115309,"create_time": 1710960154331,"is_maker": false,"status": "NEW","price": "0.012500","quantity": "1017.300000","filled_quantity": "0.000000","side": "SELL","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960154340}
- 1710960154385 Orders posted.
- Account order event
- !{"amount": "18.106050","average_price": "0.000000","client_order_id": 1710960115310,"create_time": 1710960154373,"is_maker": false,"status": "NEW","price": "0.012223","quantity": "1481.310000","filled_quantity": "0.000000","side": "BUY","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960154385}
- 1710960169408 Previous mid price: 0.013268
- 1710960169408 Posting...
- 1710960169408 Placing orders.
- Mid price: 0.012466, spread ticks: 124
- Calculate pnl price!
- qty<0: calculated pnl price = 0.012284; just mid price = 0.012714
- Account order event
- !{"amount": "18.106050","average_price": "0.000000","client_order_id": 1710960115310,"create_time": 1710960154373,"is_maker": false,"status": "CANCELED","price": "0.012223","quantity": "1481.310000","filled_quantity": "0.000000","side": "BUY","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960169409}
- Account order event
- !{"amount": "12.716250","average_price": "0.000000","client_order_id": 1710960115309,"create_time": 1710960154331,"is_maker": false,"status": "CANCELED","price": "0.012500","quantity": "1017.300000","filled_quantity": "0.000000","side": "SELL","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960169409}
- Account order event
- !{"amount": "12.070710","average_price": "0.000000","client_order_id": 1710960115308,"create_time": 1710960154309,"is_maker": false,"status": "CANCELED","price": "0.012224","quantity": "987.460000","filled_quantity": "0.000000","side": "BUY","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960169409}
- Account order event
- !{"amount": "8.476820","average_price": "0.000000","client_order_id": 1710960115307,"create_time": 1710960154263,"is_maker": false,"status": "CANCELED","price": "0.012499","quantity": "678.200000","filled_quantity": "0.000000","side": "SELL","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960169409}
- Account order event
- !{"amount": "8.474100","average_price": "0.000000","client_order_id": 1710960115311,"create_time": 1710960169430,"is_maker": false,"status": "NEW","price": "0.012495","quantity": "678.200000","filled_quantity": "0.000000","side": "SELL","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960169443}
- Account order event
- !{"amount": "12.070690","average_price": "0.000000","client_order_id": 1710960115312,"create_time": 1710960169452,"is_maker": false,"status": "NEW","price": "0.012222","quantity": "987.620000","filled_quantity": "0.000000","side": "BUY","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960169465}
- Account order event
- !{"amount": "12.712180","average_price": "0.000000","client_order_id": 1710960115313,"create_time": 1710960169488,"is_maker": false,"status": "NEW","price": "0.012496","quantity": "1017.300000","filled_quantity": "0.000000","side": "SELL","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960169500}
- 1710960169526 Orders posted.
- Account order event
- !{"amount": "18.106020","average_price": "0.000000","client_order_id": 1710960115314,"create_time": 1710960169518,"is_maker": false,"status": "NEW","price": "0.012221","quantity": "1481.550000","filled_quantity": "0.000000","side": "BUY","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960169529}
- ^CThe interrupt signal is (2).
- Orders cancelled!
- sigcanel
- Account order event
- !{"amount": "18.106020","average_price": "0.000000","client_order_id": 1710960115314,"create_time": 1710960169518,"is_maker": false,"status": "CANCELED","price": "0.012221","quantity": "1481.550000","filled_quantity": "0.000000","side": "BUY","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960172376}
- Account order event
- !{"amount": "12.712180","average_price": "0.000000","client_order_id": 1710960115313,"create_time": 1710960169488,"is_maker": false,"status": "CANCELED","price": "0.012496","quantity": "1017.300000","filled_quantity": "0.000000","side": "SELL","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960172376}
- Account order event
- !{"amount": "12.070690","average_price": "0.000000","client_order_id": 1710960115312,"create_time": 1710960169452,"is_maker": false,"status": "CANCELED","price": "0.012222","quantity": "987.620000","filled_quantity": "0.000000","side": "BUY","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960172378}
- Account order event
- !{"amount": "8.474100","average_price": "0.000000","client_order_id": 1710960115311,"create_time": 1710960169430,"is_maker": false,"status": "CANCELED","price": "0.012495","quantity": "678.200000","filled_quantity": "0.000000","side": "SELL","symbol": "0x563ac0aa26c8","type": "LIMIT_MAKER""update_time": 1710960172378}
- base balance: {"asset": "LOTT","free": "4238.79","frozen": "0","update_time": 1710960172471}
- quote balance: {"asset": "USDT","free": "75.4421","frozen": "0","update_time": 1710960172402}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement