Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1710958055184 Placing orders.
- Mid price: 0.011684, spread ticks: 350
- Calculate pnl price!
- {"code":"200 OK","data":{"listenKey":"c27bf93b2c18c34feec30439514a27a9071308ad0d044c58f90f88ad3b66e4f4"}}
- {"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"}
- Account order event
- !{"amount": "9.672240","average_price": "0.000000","client_order_id": 1710958054425,"create_time": 1710958055341,"is_maker": false,"status": "NEW","price": "0.011508","quantity": "840.480000","filled_quantity": "0.000000","side": "BUY","symbol": "0x56272d68b6c8","type": "LIMIT_MAKER""update_time": 1710958055353}
- Account order event
- !{"amount": "9.013880","average_price": "0.000000","client_order_id": 1710958054426,"create_time": 1710958055383,"is_maker": false,"status": "NEW","price": "0.011861","quantity": "759.960000","filled_quantity": "0.000000","side": "SELL","symbol": "0x56272d68b6c8","type": "LIMIT_MAKER""update_time": 1710958055395}
- 1710958055430 Orders posted.
- Account order event
- !{"amount": "12.090400","average_price": "0.000000","client_order_id": 1710958054427,"create_time": 1710958055421,"is_maker": false,"status": "NEW","price": "0.011507","quantity": "1050.700000","filled_quantity": "0.000000","side": "BUY","symbol": "0x56272d68b6c8","type": "LIMIT_MAKER""update_time": 1710958055435}
- Account order event
- !{"amount": "5.407460","average_price": "0.011859","client_order_id": 1710958054422,"create_time": 1710958055226,"is_maker": true,"status": "FILLED","price": "0.011859","quantity": "455.980000","filled_quantity": "0.000000","side": "SELL","symbol": "0x56272d68b6c8","type": "LIMIT_MAKER""update_time": 1710958060825}
- Account order event
- !{"amount": "7.210520","average_price": "0.011860","client_order_id": 1710958054424,"create_time": 1710958055303,"is_maker": true,"status": "PARTIALLY_FILLED","price": "0.011860","quantity": "607.970000","filled_quantity": "0.000000","side": "SELL","symbol": "0x56272d68b6c8","type": "LIMIT_MAKER""update_time": 1710958060826}
- Account trade!
- {"price": "0.011859","quantity": "455.980000","side": "SELL","symbol": "0x56272d68b6c8"}
- Open position: {"price": "0.011859","quantity": "455.980000","side": "SELL","symbol": "0x56272d68b6c8"}!
- position = 4.59253; qty = -455.98; entry_price = -0.0100718
- Account trade!
- {"price": "0.011860","quantity": "10.850000","side": "SELL","symbol": "0x56272d68b6c8"}
- Open position: {"price": "0.011860","quantity": "10.850000","side": "SELL","symbol": "0x56272d68b6c8"}!
- position = 4.46385; qty = -466.83; entry_price = -0.00956205
- 1710958060918 Previous mid price: 0.011684
- 1710958060918 Posting...
- 1710958060918 Placing orders.
- Mid price: 0.011685, spread ticks: 350
- Calculate pnl price!
- qty<0: calculated pnl price = -0.00476733; just mid price = 0.012035
- Account order event
- !{"amount": "12.090400","average_price": "0.000000","client_order_id": 1710958054427,"create_time": 1710958055421,"is_maker": false,"status": "CANCELED","price": "0.011507","quantity": "1050.700000","filled_quantity": "0.000000","side": "BUY","symbol": "0x56272d68b6c8","type": "LIMIT_MAKER""update_time": 1710958060921}
- Account order event
- !{"amount": "9.013880","average_price": "0.000000","client_order_id": 1710958054426,"create_time": 1710958055383,"is_maker": false,"status": "CANCELED","price": "0.011861","quantity": "759.960000","filled_quantity": "0.000000","side": "SELL","symbol": "0x56272d68b6c8","type": "LIMIT_MAKER""update_time": 1710958060923}
- Account order event
- !{"amount": "9.672240","average_price": "0.000000","client_order_id": 1710958054425,"create_time": 1710958055341,"is_maker": false,"status": "CANCELED","price": "0.011508","quantity": "840.480000","filled_quantity": "0.000000","side": "BUY","symbol": "0x56272d68b6c8","type": "LIMIT_MAKER""update_time": 1710958060923}
- Account order event
- !{"amount": "7.210520","average_price": "0.011860","client_order_id": 1710958054424,"create_time": 1710958055303,"is_maker": false,"status": "CANCELED","price": "0.011860","quantity": "607.970000","filled_quantity": "0.000000","side": "SELL","symbol": "0x56272d68b6c8","type": "LIMIT_MAKER""update_time": 1710958060923}
- Account order event
- !{"amount": "7.254230","average_price": "0.000000","client_order_id": 1710958054423,"create_time": 1710958055267,"is_maker": false,"status": "CANCELED","price": "0.011509","quantity": "630.300000","filled_quantity": "0.000000","side": "BUY","symbol": "0x56272d68b6c8","type": "LIMIT_MAKER""update_time": 1710958060923}
- [Error] new_order: OK(http error: 400), with request: {"timestamp":"1710958060919","recvWindow":"5000","price":"0.011685","newClientOrderId":"1710958054428","quantity":"409.290000","type":"LIMIT_MAKER","side":"SELL","symbol":"LOTTUSDT"}
- [Error] new_order: OK(http error: 400), with request: {"timestamp":"1710958060944","recvWindow":"5000","price":"-0.004942","newClientOrderId":"1710958054429","quantity":"-1579.780000","type":"LIMIT_MAKER","side":"BUY","symbol":"LOTTUSDT"}
- Account order event
- !{"amount": "6.377400","average_price": "0.000000","client_order_id": 1710958054430,"create_time": 1710958061021,"is_maker": false,"status": "NEW","price": "0.011686","quantity": "545.730000","filled_quantity": "0.000000","side": "SELL","symbol": "0x56272d68b6c8","type": "LIMIT_MAKER""update_time": 1710958061031}
- [Error] new_order: OK(http error: 400), with request: {"timestamp":"1710958061036","recvWindow":"5000","price":"-0.004943","newClientOrderId":"1710958054431","quantity":"-2105.950000","type":"LIMIT_MAKER","side":"BUY","symbol":"LOTTUSDT"}
- Account order event
- !{"amount": "7.972400","average_price": "0.000000","client_order_id": 1710958054432,"create_time": 1710958061099,"is_maker": false,"status": "NEW","price": "0.011687","quantity": "682.160000","filled_quantity": "0.000000","side": "SELL","symbol": "0x56272d68b6c8","type": "LIMIT_MAKER""update_time": 1710958061110}
- [Error] new_order: OK(http error: 400), with request: {"timestamp":"1710958061108","recvWindow":"5000","price":"-0.004944","newClientOrderId":"1710958054433","quantity":"-2631.910000","type":"LIMIT_MAKER","side":"BUY","symbol":"LOTTUSDT"}
- 1710958061125 Orders posted.
- 1710958062161 Previous mid price: 0.012035
- 1710958062161 Posting...
- 1710958062161 Placing orders.
- Mid price: 0.011248, spread ticks: 337
- Calculate pnl price!
- qty<0: calculated pnl price = -0.0047668; just mid price = 0.011922
- Account order event
- !{"amount": "7.972400","average_price": "0.000000","client_order_id": 1710958054432,"create_time": 1710958061099,"is_maker": false,"status": "CANCELED","price": "0.011687","quantity": "682.160000","filled_quantity": "0.000000","side": "SELL","symbol": "0x56272d68b6c8","type": "LIMIT_MAKER""update_time": 1710958062164}
- Account order event
- !{"amount": "6.377400","average_price": "0.000000","client_order_id": 1710958054430,"create_time": 1710958061021,"is_maker": false,"status": "CANCELED","price": "0.011686","quantity": "545.730000","filled_quantity": "0.000000","side": "SELL","symbol": "0x56272d68b6c8","type": "LIMIT_MAKER""update_time": 1710958062164}
- [Error] new_order: OK(http error: 400), with request: {"timestamp":"1710958062162","recvWindow":"5000","price":"0.010979","newClientOrderId":"1710958054434","quantity":"409.290000","type":"LIMIT_MAKER","side":"SELL","symbol":"LOTTUSDT"}
- [Error] new_order: OK(http error: 400), with request: {"timestamp":"1710958062182","recvWindow":"5000","price":"-0.004934","newClientOrderId":"1710958054435","quantity":"-1582.350000","type":"LIMIT_MAKER","side":"BUY","symbol":"LOTTUSDT"}
- Account order event
- !{"amount": "5.992110","average_price": "0.000000","client_order_id": 1710958054436,"create_time": 1710958062255,"is_maker": false,"status": "NEW","price": "0.010980","quantity": "545.730000","filled_quantity": "0.000000","side": "SELL","symbol": "0x56272d68b6c8","type": "LIMIT_MAKER""update_time": 1710958062269}
- [Error] new_order: OK(http error: 400), with request: {"timestamp":"1710958062266","recvWindow":"5000","price":"-0.004935","newClientOrderId":"1710958054437","quantity":"-2109.370000","type":"LIMIT_MAKER","side":"BUY","symbol":"LOTTUSDT"}
- Account order event
- !{"amount": "7.490790","average_price": "0.000000","client_order_id": 1710958054438,"create_time": 1710958062317,"is_maker": false,"status": "NEW","price": "0.010981","quantity": "682.160000","filled_quantity": "0.000000","side": "SELL","symbol": "0x56272d68b6c8","type": "LIMIT_MAKER""update_time": 1710958062328}
- [Error] new_order: OK(http error: 400), with request: {"timestamp":"1710958062331","recvWindow":"5000","price":"-0.004936","newClientOrderId":"1710958054439","quantity":"-2636.180000","type":"LIMIT_MAKER","side":"BUY","symbol":"LOTTUSDT"}
- 1710958062369 Orders posted.
- 1710958077408 Previous mid price: 0.011922
- 1710958077408 Posting...
- 1710958077408 Placing orders.
- Mid price: 0.011683, spread ticks: 350
- Calculate pnl price!
- qty<0: calculated pnl price = -0.00476733; just mid price = 0.012733
- Account order event
- !{"amount": "7.490790","average_price": "0.000000","client_order_id": 1710958054438,"create_time": 1710958062317,"is_maker": false,"status": "CANCELED","price": "0.010981","quantity": "682.160000","filled_quantity": "0.000000","side": "SELL","symbol": "0x56272d68b6c8","type": "LIMIT_MAKER""update_time": 1710958077408}
- [Error] new_order: OK(http error: 400), with request: {"timestamp":"1710958077409","recvWindow":"5000","price":"0.010985","newClientOrderId":"1710958054440","quantity":"409.290000","type":"LIMIT_MAKER","side":"SELL","symbol":"LOTTUSDT"}
- Account order event
- !{"amount": "5.992110","average_price": "0.000000","client_order_id": 1710958054436,"create_time": 1710958062255,"is_maker": false,"status": "CANCELED","price": "0.010980","quantity": "545.730000","filled_quantity": "0.000000","side": "SELL","symbol": "0x56272d68b6c8","type": "LIMIT_MAKER""update_time": 1710958077411}
- [Error] new_order: OK(http error: 400), with request: {"timestamp":"1710958077427","recvWindow":"5000","price":"-0.004942","newClientOrderId":"1710958054441","quantity":"-1579.780000","type":"LIMIT_MAKER","side":"BUY","symbol":"LOTTUSDT"}
- Account order event
- !{"amount": "5.995380","average_price": "0.000000","client_order_id": 1710958054442,"create_time": 1710958077503,"is_maker": false,"status": "NEW","price": "0.010986","quantity": "545.730000","filled_quantity": "0.000000","side": "SELL","symbol": "0x56272d68b6c8","type": "LIMIT_MAKER""update_time": 1710958077514}
- [Error] new_order: OK(http error: 400), with request: {"timestamp":"1710958077511","recvWindow":"5000","price":"-0.004943","newClientOrderId":"1710958054443","quantity":"-2105.950000","type":"LIMIT_MAKER","side":"BUY","symbol":"LOTTUSDT"}
- Account order event
- !{"amount": "7.494890","average_price": "0.000000","client_order_id": 1710958054444,"create_time": 1710958077589,"is_maker": false,"status": "NEW","price": "0.010987","quantity": "682.160000","filled_quantity": "0.000000","side": "SELL","symbol": "0x56272d68b6c8","type": "LIMIT_MAKER""update_time": 1710958077599}
- [Error] new_order: OK(http error: 400), with request: {"timestamp":"1710958077598","recvWindow":"5000","price":"-0.004944","newClientOrderId":"1710958054445","quantity":"-2631.910000","type":"LIMIT_MAKER","side":"BUY","symbol":"LOTTUSDT"}
- 1710958077617 Orders posted.
- --- BALANCES ---
- base balance: {"asset": "LOTT","free": "2865.1","frozen": "1227.89","update_time": 1710958077591}
- quote balance: {"asset": "USDT","free": "78.0733","frozen": "0","update_time": 1710958060996}
- ^CThe interrupt signal is (2).
- Account order event
- !{"amount": "7.494890","average_price": "0.000000","client_order_id": 1710958054444,"create_time": 1710958077589,"is_maker": false,"status": "CANCELED","price": "0.010987","quantity": "682.160000","filled_quantity": "0.000000","side": "SELL","symbol": "0x56272d68b6c8","type": "LIMIT_MAKER""update_time": 1710958087708}
- Account order event
- !{"amount": "5.995380","average_price": "0.000000","client_order_id": 1710958054442,"create_time": 1710958077503,"is_maker": false,"status": "CANCELED","price": "0.010986","quantity": "545.730000","filled_quantity": "0.000000","side": "SELL","symbol": "0x56272d68b6c8","type": "LIMIT_MAKER""update_time": 1710958087708}
- Orders cancelled!
- sigcanel
- base balance: {"asset": "LOTT","free": "4092.99","frozen": "0","update_time": 1710958087814}
- quote balance: {"asset": "USDT","free": "78.0733","frozen": "0","update_time": 1710958060996}
- 2
- ubuntu@ip-172-31-31-23:~/mira_updated/market_making/mexc_spot$ CalculatePN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement