Advertisement
den4ik2003

Untitled

Mar 20th, 2024
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.54 KB | None | 0 0
  1. 1710958055184 Placing orders.
  2. Mid price: 0.011684, spread ticks: 350
  3. Calculate pnl price!
  4. {"code":"200 OK","data":{"listenKey":"c27bf93b2c18c34feec30439514a27a9071308ad0d044c58f90f88ad3b66e4f4"}}
  5. {"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"}
  6. 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"}
  7. Account order event
  8. !{"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}
  9. Account order event
  10. !{"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}
  11.  
  12. 1710958055430 Orders posted.
  13. Account order event
  14. !{"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}
  15. Account order event
  16. !{"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}
  17. Account order event
  18. !{"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}
  19.  
  20. Account trade!
  21. {"price": "0.011859","quantity": "455.980000","side": "SELL","symbol": "0x56272d68b6c8"}
  22. Open position: {"price": "0.011859","quantity": "455.980000","side": "SELL","symbol": "0x56272d68b6c8"}!
  23. position = 4.59253; qty = -455.98; entry_price = -0.0100718
  24.  
  25. Account trade!
  26. {"price": "0.011860","quantity": "10.850000","side": "SELL","symbol": "0x56272d68b6c8"}
  27. Open position: {"price": "0.011860","quantity": "10.850000","side": "SELL","symbol": "0x56272d68b6c8"}!
  28. position = 4.46385; qty = -466.83; entry_price = -0.00956205
  29.  
  30. 1710958060918 Previous mid price: 0.011684
  31.  
  32. 1710958060918 Posting...
  33.  
  34. 1710958060918 Placing orders.
  35. Mid price: 0.011685, spread ticks: 350
  36. Calculate pnl price!
  37. qty<0: calculated pnl price = -0.00476733; just mid price = 0.012035
  38. Account order event
  39. !{"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}
  40. Account order event
  41. !{"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}
  42. Account order event
  43. !{"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}
  44. Account order event
  45. !{"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}
  46. Account order event
  47. !{"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}
  48. [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"}
  49. [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"}
  50. Account order event
  51. !{"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}
  52. [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"}
  53. Account order event
  54. !{"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}
  55. [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"}
  56.  
  57. 1710958061125 Orders posted.
  58.  
  59. 1710958062161 Previous mid price: 0.012035
  60.  
  61. 1710958062161 Posting...
  62.  
  63. 1710958062161 Placing orders.
  64. Mid price: 0.011248, spread ticks: 337
  65. Calculate pnl price!
  66. qty<0: calculated pnl price = -0.0047668; just mid price = 0.011922
  67. Account order event
  68. !{"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}
  69. Account order event
  70. !{"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}
  71. [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"}
  72. [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"}
  73. Account order event
  74. !{"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}
  75. [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"}
  76. Account order event
  77. !{"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}
  78. [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"}
  79.  
  80. 1710958062369 Orders posted.
  81.  
  82. 1710958077408 Previous mid price: 0.011922
  83.  
  84. 1710958077408 Posting...
  85.  
  86. 1710958077408 Placing orders.
  87. Mid price: 0.011683, spread ticks: 350
  88. Calculate pnl price!
  89. qty<0: calculated pnl price = -0.00476733; just mid price = 0.012733
  90. Account order event
  91. !{"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}
  92. [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"}
  93. Account order event
  94. !{"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}
  95. [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"}
  96. Account order event
  97. !{"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}
  98. [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"}
  99. Account order event
  100. !{"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}
  101. [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"}
  102.  
  103. 1710958077617 Orders posted.
  104.  
  105.  
  106. --- BALANCES ---
  107. base balance: {"asset": "LOTT","free": "2865.1","frozen": "1227.89","update_time": 1710958077591}
  108. quote balance: {"asset": "USDT","free": "78.0733","frozen": "0","update_time": 1710958060996}
  109.  
  110. ^CThe interrupt signal is (2).
  111. Account order event
  112. !{"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}
  113. Account order event
  114. !{"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}
  115. Orders cancelled!
  116.  
  117. sigcanel
  118. base balance: {"asset": "LOTT","free": "4092.99","frozen": "0","update_time": 1710958087814}
  119. quote balance: {"asset": "USDT","free": "78.0733","frozen": "0","update_time": 1710958060996}
  120. 2
  121. ubuntu@ip-172-31-31-23:~/mira_updated/market_making/mexc_spot$ CalculatePN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement