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": "4238.79","frozen": "0","update_time": 0}
- USDT balance: {"asset": "USDT","free": "75.4421","frozen": "0","update_time": 0}
- 1710964393376 Placing orders.
- Mid price: 0.013771, spread ticks: 137
- Calculate pnl price!
- {"code":"200 OK","data":{"listenKey":"2681f7000f26d58b9f6fb424cb164537c142aac1f60224744f6f9bfaba7c6ba9"}}
- 1710964393515 Orders posted.
- {"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"}
- 1710964408537 Previous mid price: 0.013771
- 1710964408537 Posting...
- 1710964408537 Placing orders.
- Mid price: 0.013772, spread ticks: 137
- Calculate pnl price!
- Account order event
- !{"amount": "18.105950","average_price": "0.000000","client_order_id": 1710964392734,"create_time": 1710964393501,"is_maker": false,"status": "CANCELED","price": "0.013702","quantity": "1321.410000","filled_quantity": "0.000000","side": "BUY","symbol": "0x55b53f35d6c8","type": "LIMIT_MAKER""update_time": 1710964408537}
- Account order event
- !{"amount": "14.080440","average_price": "0.000000","client_order_id": 1710964392733,"create_time": 1710964393476,"is_maker": false,"status": "CANCELED","price": "0.013841","quantity": "1017.300000","filled_quantity": "0.000000","side": "SELL","symbol": "0x55b53f35d6c8","type": "LIMIT_MAKER""update_time": 1710964408539}
- Account order event
- !{"amount": "12.070690","average_price": "0.000000","client_order_id": 1710964392732,"create_time": 1710964393435,"is_maker": false,"status": "CANCELED","price": "0.013703","quantity": "880.880000","filled_quantity": "0.000000","side": "BUY","symbol": "0x55b53f35d6c8","type": "LIMIT_MAKER""update_time": 1710964408539}
- Account order event
- !{"amount": "9.386280","average_price": "0.000000","client_order_id": 1710964392731,"create_time": 1710964393415,"is_maker": false,"status": "CANCELED","price": "0.013840","quantity": "678.200000","filled_quantity": "0.000000","side": "SELL","symbol": "0x55b53f35d6c8","type": "LIMIT_MAKER""update_time": 1710964408539}
- Account order event
- !{"amount": "9.479870","average_price": "0.000000","client_order_id": 1710964392735,"create_time": 1710964408564,"is_maker": false,"status": "NEW","price": "0.013978","quantity": "678.200000","filled_quantity": "0.000000","side": "SELL","symbol": "0x55b53f35d6c8","type": "LIMIT_MAKER""update_time": 1710964408575}
- Account order event
- !{"amount": "12.070690","average_price": "0.000000","client_order_id": 1710964392736,"create_time": 1710964408590,"is_maker": false,"status": "NEW","price": "0.013771","quantity": "876.530000","filled_quantity": "0.000000","side": "BUY","symbol": "0x55b53f35d6c8","type": "LIMIT_MAKER""update_time": 1710964408600}
- Account order event
- !{"amount": "14.220830","average_price": "0.000000","client_order_id": 1710964392737,"create_time": 1710964408629,"is_maker": false,"status": "NEW","price": "0.013979","quantity": "1017.300000","filled_quantity": "0.000000","side": "SELL","symbol": "0x55b53f35d6c8","type": "LIMIT_MAKER""update_time": 1710964408639}
- 1710964408663 Orders posted.
- Account order event
- !{"amount": "18.106030","average_price": "0.000000","client_order_id": 1710964392738,"create_time": 1710964408653,"is_maker": false,"status": "NEW","price": "0.013770","quantity": "1314.890000","filled_quantity": "0.000000","side": "BUY","symbol": "0x55b53f35d6c8","type": "LIMIT_MAKER""update_time": 1710964408663}
- Account order event
- !{"amount": "9.479870","average_price": "0.013978","client_order_id": 1710964392735,"create_time": 1710964408564,"is_maker": true,"status": "PARTIALLY_FILLED","price": "0.013978","quantity": "678.200000","filled_quantity": "0.000000","side": "SELL","symbol": "0x55b53f35d6c8","type": "LIMIT_MAKER""update_time": 1710964416328}
- Account trade!
- {"price": "0.013978","quantity": "455.260000","side": "SELL","symbol": "0x55b53f35d6c8"}
- Open position: {"price": "0.013978","quantity": "455.260000","side": "SELL","symbol": "0x55b53f35d6c8"}!
- position = -6.36362; qty = -455.26; entry_price = 0.013978
- Position bigger than max position. Cancel orders.
- 1710964416470 Previous mid price: 0.013909
- 1710964416470 Posting...
- 1710964416470 Placing orders.
- Mid price: 0.013875, spread ticks: 138
- Calculate pnl price!
- qty<0: calculated pnl price = 0.0123893; just mid price = 0.014151
- Account order event
- !{"amount": "14.220830","average_price": "0.000000","client_order_id": 1710964392737,"create_time": 1710964408629,"is_maker": false,"status": "CANCELED","price": "0.013979","quantity": "1017.300000","filled_quantity": "0.000000","side": "SELL","symbol": "0x55b53f35d6c8","type": "LIMIT_MAKER""update_time": 1710964416460}
- Account order event
- !{"amount": "9.479870","average_price": "0.013978","client_order_id": 1710964392735,"create_time": 1710964408564,"is_maker": false,"status": "CANCELED","price": "0.013978","quantity": "678.200000","filled_quantity": "0.000000","side": "SELL","symbol": "0x55b53f35d6c8","type": "LIMIT_MAKER""update_time": 1710964416460}
- Account order event
- !{"amount": "18.106030","average_price": "0.000000","client_order_id": 1710964392738,"create_time": 1710964408653,"is_maker": false,"status": "CANCELED","price": "0.013770","quantity": "1314.890000","filled_quantity": "0.000000","side": "BUY","symbol": "0x55b53f35d6c8","type": "LIMIT_MAKER""update_time": 1710964416470}
- Account order event
- !{"amount": "12.070690","average_price": "0.000000","client_order_id": 1710964392736,"create_time": 1710964408590,"is_maker": false,"status": "CANCELED","price": "0.013771","quantity": "876.530000","filled_quantity": "0.000000","side": "BUY","symbol": "0x55b53f35d6c8","type": "LIMIT_MAKER""update_time": 1710964416474}
- Account order event
- !{"amount": "13.087780","average_price": "0.000000","client_order_id": 1710964392739,"create_time": 1710964416493,"is_maker": false,"status": "NEW","price": "0.012320","quantity": "1062.320000","filled_quantity": "0.000000","side": "BUY","symbol": "0x55b53f35d6c8","type": "LIMIT_MAKER""update_time": 1710964416504}
- 1710964416529 Orders posted.
- Account order event
- !{"amount": "19.631800","average_price": "0.000000","client_order_id": 1710964392740,"create_time": 1710964416520,"is_maker": false,"status": "NEW","price": "0.012319","quantity": "1593.620000","filled_quantity": "0.000000","side": "BUY","symbol": "0x55b53f35d6c8","type": "LIMIT_MAKER""update_time": 1710964416534}
- --- BALANCES ---
- base balance: {"asset": "LOTT","free": "3783.53","frozen": "0","update_time": 1710964416485}
- quote balance: {"asset": "USDT","free": "49.047","frozen": "32.7523","update_time": 1710964416522}
- 1710964431549 Previous mid price: 0.014151
- 1710964431549 Posting...
- 1710964431549 Placing orders.
- Mid price: 0.013771, spread ticks: 137
- Calculate pnl price!
- qty<0: calculated pnl price = 0.0123886; just mid price = 0.013908
- Account order event
- !{"amount": "19.631800","average_price": "0.000000","client_order_id": 1710964392740,"create_time": 1710964416520,"is_maker": false,"status": "CANCELED","price": "0.012319","quantity": "1593.620000","filled_quantity": "0.000000","side": "BUY","symbol": "0x55b53f35d6c8","type": "LIMIT_MAKER""update_time": 1710964431548}
- Account order event
- !{"amount": "13.087780","average_price": "0.000000","client_order_id": 1710964392739,"create_time": 1710964416493,"is_maker": false,"status": "CANCELED","price": "0.012320","quantity": "1062.320000","filled_quantity": "0.000000","side": "BUY","symbol": "0x55b53f35d6c8","type": "LIMIT_MAKER""update_time": 1710964431548}
- Account order event
- !{"amount": "13.087780","average_price": "0.000000","client_order_id": 1710964392741,"create_time": 1710964431564,"is_maker": false,"status": "NEW","price": "0.012320","quantity": "1062.320000","filled_quantity": "0.000000","side": "BUY","symbol": "0x55b53f35d6c8","type": "LIMIT_MAKER""update_time": 1710964431575}
- 1710964431606 Orders posted.
- Account order event
- !{"amount": "19.631800","average_price": "0.000000","client_order_id": 1710964392742,"create_time": 1710964431597,"is_maker": false,"status": "NEW","price": "0.012319","quantity": "1593.620000","filled_quantity": "0.000000","side": "BUY","symbol": "0x55b53f35d6c8","type": "LIMIT_MAKER""update_time": 1710964431607}
- 1710964446626 Previous mid price: 0.013908
- 1710964446626 Posting...
- 1710964446626 Placing orders.
- Mid price: 0.013771, spread ticks: 137
- Calculate pnl price!
- qty<0: calculated pnl price = 0.0123886; just mid price = 0.014045
- Account order event
- !{"amount": "19.631800","average_price": "0.000000","client_order_id": 1710964392742,"create_time": 1710964431597,"is_maker": false,"status": "CANCELED","price": "0.012319","quantity": "1593.620000","filled_quantity": "0.000000","side": "BUY","symbol": "0x55b53f35d6c8","type": "LIMIT_MAKER""update_time": 1710964446624}
- Account order event
- !{"amount": "13.087780","average_price": "0.000000","client_order_id": 1710964392741,"create_time": 1710964431564,"is_maker": false,"status": "CANCELED","price": "0.012320","quantity": "1062.320000","filled_quantity": "0.000000","side": "BUY","symbol": "0x55b53f35d6c8","type": "LIMIT_MAKER""update_time": 1710964446626}
- Account order event
- !{"amount": "13.087780","average_price": "0.000000","client_order_id": 1710964392743,"create_time": 1710964446640,"is_maker": false,"status": "NEW","price": "0.012320","quantity": "1062.320000","filled_quantity": "0.000000","side": "BUY","symbol": "0x55b53f35d6c8","type": "LIMIT_MAKER""update_time": 1710964446652}
- 1710964446672 Orders posted.
- Account order event
- !{"amount": "19.631800","average_price": "0.000000","client_order_id": 1710964392744,"create_time": 1710964446664,"is_maker": false,"status": "NEW","price": "0.012319","quantity": "1593.620000","filled_quantity": "0.000000","side": "BUY","symbol": "0x55b53f35d6c8","type": "LIMIT_MAKER""update_time": 1710964446676}
- --- BALANCES ---
- base balance: {"asset": "LOTT","free": "3783.53","frozen": "0","update_time": 1710964416485}
- quote balance: {"asset": "USDT","free": "49.047","frozen": "32.7523","update_time": 1710964446667}
- 1710964461692 Previous mid price: 0.014045
- 1710964461692 Posting...
- 1710964461692 Placing orders.
- Mid price: 0.013771, spread ticks: 137
- Calculate pnl price!
- qty<0: calculated pnl price = 0.0123886; just mid price = 0.014182
- Account order event
- !{"amount": "19.631800","average_price": "0.000000","client_order_id": 1710964392744,"create_time": 1710964446664,"is_maker": false,"status": "CANCELED","price": "0.012319","quantity": "1593.620000","filled_quantity": "0.000000","side": "BUY","symbol": "0x55b53f35d6c8","type": "LIMIT_MAKER""update_time": 1710964461692}
- Account order event
- !{"amount": "13.087780","average_price": "0.000000","client_order_id": 1710964392743,"create_time": 1710964446640,"is_maker": false,"status": "CANCELED","price": "0.012320","quantity": "1062.320000","filled_quantity": "0.000000","side": "BUY","symbol": "0x55b53f35d6c8","type": "LIMIT_MAKER""update_time": 1710964461694}
- Account order event
- !{"amount": "13.087780","average_price": "0.000000","client_order_id": 1710964392745,"create_time": 1710964461709,"is_maker": false,"status": "NEW","price": "0.012320","quantity": "1062.320000","filled_quantity": "0.000000","side": "BUY","symbol": "0x55b53f35d6c8","type": "LIMIT_MAKER""update_time": 1710964461720}
- 1710964461747 Orders posted.
- Account order event
- !{"amount": "19.631800","average_price": "0.000000","client_order_id": 1710964392746,"create_time": 1710964461736,"is_maker": false,"status": "NEW","price": "0.012319","quantity": "1593.620000","filled_quantity": "0.000000","side": "BUY","symbol": "0x55b53f35d6c8","type": "LIMIT_MAKER""update_time": 1710964461748}
- ^CThe interrupt signal is (2).
- Orders cancelled!
- sigcanel
- Account order event
- !{"amount": "19.631800","average_price": "0.000000","client_order_id": 1710964392746,"create_time": 1710964461736,"is_maker": false,"status": "CANCELED","price": "0.012319","quantity": "1593.620000","filled_quantity": "0.000000","side": "BUY","symbol": "0x55b53f35d6c8","type": "LIMIT_MAKER""update_time": 1710964469496}
- Account order event
- !{"amount": "13.087780","average_price": "0.000000","client_order_id": 1710964392745,"create_time": 1710964461709,"is_maker": false,"status": "CANCELED","price": "0.012320","quantity": "1062.320000","filled_quantity": "0.000000","side": "BUY","symbol": "0x55b53f35d6c8","type": "LIMIT_MAKER""update_time": 1710964469496}
- base balance: {"asset": "LOTT","free": "3783.53","frozen": "0","update_time": 1710964416485}
- quote balance: {"asset": "USDT","free": "81.7993","frozen": "0","update_time": 1710964469518}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement