Advertisement
den4ik2003

Untitled

Mar 20th, 2024
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.34 KB | None | 0 0
  1. ubuntu@ip-172-31-31-23:~/mira_updated/market_making/mexc_spot$ python3 launch.py LOTTUSDT
  2. ./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
  3. --api=mx0vglRsnmcTEgpmkD
  4. --available_balance_to_total=0.9
  5. --base_size_to_total=1.0
  6. --cancel_on_signal=1
  7. --cooldown=15000
  8. --first_order_size=0.4
  9. --n_base=2
  10. --n_lvl=2
  11. --secret=ef47dd75fb8b41eebf145056dc98032f
  12. --spread_size=0.01
  13. --symbol=LOTTUSDT
  14. --enable_batch_orders=0
  15. --enable_risk_checker=1
  16. --use_grid=0
  17. LOTT balance: {"asset": "LOTT","free": "4238.79","frozen": "0","update_time": 0}
  18. USDT balance: {"asset": "USDT","free": "75.4421","frozen": "0","update_time": 0}
  19.  
  20. 1710964393376 Placing orders.
  21. Mid price: 0.013771, spread ticks: 137
  22. Calculate pnl price!
  23. {"code":"200 OK","data":{"listenKey":"2681f7000f26d58b9f6fb424cb164537c142aac1f60224744f6f9bfaba7c6ba9"}}
  24.  
  25. 1710964393515 Orders posted.
  26. {"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"}
  27. 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"}
  28.  
  29. 1710964408537 Previous mid price: 0.013771
  30.  
  31. 1710964408537 Posting...
  32.  
  33. 1710964408537 Placing orders.
  34. Mid price: 0.013772, spread ticks: 137
  35. Calculate pnl price!
  36. Account order event
  37. !{"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}
  38. Account order event
  39. !{"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}
  40. Account order event
  41. !{"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}
  42. Account order event
  43. !{"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}
  44. Account order event
  45. !{"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}
  46. Account order event
  47. !{"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}
  48. Account order event
  49. !{"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}
  50.  
  51. 1710964408663 Orders posted.
  52. Account order event
  53. !{"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}
  54. Account order event
  55. !{"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}
  56.  
  57. Account trade!
  58. {"price": "0.013978","quantity": "455.260000","side": "SELL","symbol": "0x55b53f35d6c8"}
  59. Open position: {"price": "0.013978","quantity": "455.260000","side": "SELL","symbol": "0x55b53f35d6c8"}!
  60. position = -6.36362; qty = -455.26; entry_price = 0.013978
  61.  
  62. Position bigger than max position. Cancel orders.
  63.  
  64. 1710964416470 Previous mid price: 0.013909
  65.  
  66. 1710964416470 Posting...
  67.  
  68. 1710964416470 Placing orders.
  69. Mid price: 0.013875, spread ticks: 138
  70. Calculate pnl price!
  71. qty<0: calculated pnl price = 0.0123893; just mid price = 0.014151
  72. Account order event
  73. !{"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}
  74. Account order event
  75. !{"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}
  76. Account order event
  77. !{"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}
  78. Account order event
  79. !{"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}
  80. Account order event
  81. !{"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}
  82.  
  83. 1710964416529 Orders posted.
  84. Account order event
  85. !{"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}
  86.  
  87.  
  88. --- BALANCES ---
  89. base balance: {"asset": "LOTT","free": "3783.53","frozen": "0","update_time": 1710964416485}
  90. quote balance: {"asset": "USDT","free": "49.047","frozen": "32.7523","update_time": 1710964416522}
  91.  
  92.  
  93. 1710964431549 Previous mid price: 0.014151
  94.  
  95. 1710964431549 Posting...
  96.  
  97. 1710964431549 Placing orders.
  98. Mid price: 0.013771, spread ticks: 137
  99. Calculate pnl price!
  100. qty<0: calculated pnl price = 0.0123886; just mid price = 0.013908
  101. Account order event
  102. !{"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}
  103. Account order event
  104. !{"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}
  105. Account order event
  106. !{"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}
  107.  
  108. 1710964431606 Orders posted.
  109. Account order event
  110. !{"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}
  111.  
  112. 1710964446626 Previous mid price: 0.013908
  113.  
  114. 1710964446626 Posting...
  115.  
  116. 1710964446626 Placing orders.
  117. Mid price: 0.013771, spread ticks: 137
  118. Calculate pnl price!
  119. qty<0: calculated pnl price = 0.0123886; just mid price = 0.014045
  120. Account order event
  121. !{"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}
  122. Account order event
  123. !{"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}
  124. Account order event
  125. !{"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}
  126.  
  127. 1710964446672 Orders posted.
  128. Account order event
  129. !{"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}
  130.  
  131.  
  132. --- BALANCES ---
  133. base balance: {"asset": "LOTT","free": "3783.53","frozen": "0","update_time": 1710964416485}
  134. quote balance: {"asset": "USDT","free": "49.047","frozen": "32.7523","update_time": 1710964446667}
  135.  
  136.  
  137. 1710964461692 Previous mid price: 0.014045
  138.  
  139. 1710964461692 Posting...
  140.  
  141. 1710964461692 Placing orders.
  142. Mid price: 0.013771, spread ticks: 137
  143. Calculate pnl price!
  144. qty<0: calculated pnl price = 0.0123886; just mid price = 0.014182
  145. Account order event
  146. !{"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}
  147. Account order event
  148. !{"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}
  149. Account order event
  150. !{"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}
  151.  
  152. 1710964461747 Orders posted.
  153. Account order event
  154. !{"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}
  155. ^CThe interrupt signal is (2).
  156. Orders cancelled!
  157.  
  158. sigcanel
  159. Account order event
  160. !{"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}
  161. Account order event
  162. !{"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}
  163. base balance: {"asset": "LOTT","free": "3783.53","frozen": "0","update_time": 1710964416485}
  164. quote balance: {"asset": "USDT","free": "81.7993","frozen": "0","update_time": 1710964469518}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement