Advertisement
den4ik2003

Untitled

Mar 20th, 2024
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.85 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": "4702.12","frozen": "0","update_time": 0}
  18. USDT balance: {"asset": "USDT","free": "68.9721","frozen": "0","update_time": 0}
  19.  
  20. 1710960115997 Placing orders.
  21. Mid price: 0.013771, spread ticks: 137
  22. Calculate pnl price!
  23. {"code":"200 OK","data":{"listenKey":"47e610e3ccebed74dce4be605ffab6de618163757d1ac64cf87d51afe8b48459"}}
  24. {"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"}
  25. 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"}
  26.  
  27. 1710960116160 Orders posted.
  28. Account order event
  29. !{"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}
  30.  
  31. 1710960131185 Previous mid price: 0.013771
  32.  
  33. 1710960131185 Posting...
  34.  
  35. 1710960131185 Placing orders.
  36. Mid price: 0.013772, spread ticks: 137
  37. Calculate pnl price!
  38. Account order event
  39. !{"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}
  40. Account order event
  41. !{"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}
  42. Account order event
  43. !{"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}
  44. Account order event
  45. !{"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}
  46. Account order event
  47. !{"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}
  48. Account order event
  49. !{"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}
  50. Account order event
  51. !{"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}
  52.  
  53. 1710960131320 Orders posted.
  54. Account order event
  55. !{"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}
  56. Account order event
  57. !{"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}
  58.  
  59. Account trade!
  60. {"price": "0.013978","quantity": "463.330000","side": "SELL","symbol": "0x563ac0aa26c8"}
  61. Open position: {"price": "0.013978","quantity": "463.330000","side": "SELL","symbol": "0x563ac0aa26c8"}!
  62. position = -6.47643; qty = -463.33; entry_price = 0.013978
  63.  
  64. Position bigger than max position. Cancel orders.
  65. Account order event
  66. !{"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}
  67. Account order event
  68. !{"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}
  69.  
  70. 1710960138925 Previous mid price: 0.013909
  71.  
  72. 1710960138925 Posting...
  73.  
  74. 1710960138925 Placing orders.
  75. Mid price: 0.013875, spread ticks: 138
  76. Calculate pnl price!
  77. qty<0: calculated pnl price = 0.0122943; just mid price = 0.013875
  78. Account order event
  79. !{"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}
  80. Account order event
  81. !{"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}
  82. Account order event
  83. !{"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}
  84. Account order event
  85. !{"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}
  86. Account order event
  87. !{"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}
  88. Account order event
  89. !{"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}
  90.  
  91. 1710960139213 Orders posted.
  92.  
  93.  
  94. --- BALANCES ---
  95. base balance: {"asset": "LOTT","free": "2543.29","frozen": "1695.5","update_time": 1710960139154}
  96. quote balance: {"asset": "USDT","free": "45.2351","frozen": "30.207","update_time": 1710960139183}
  97.  
  98.  
  99. 1710960154242 Previous mid price: 0.013875
  100.  
  101. 1710960154242 Posting...
  102.  
  103. 1710960154242 Placing orders.
  104. Mid price: 0.013137, spread ticks: 131
  105. Calculate pnl price!
  106. qty<0: calculated pnl price = 0.0122895; just mid price = 0.013268
  107. Account order event
  108. !{"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}
  109. Account order event
  110. !{"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}
  111. Account order event
  112. !{"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}
  113. Account order event
  114. !{"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}
  115. Account order event
  116. !{"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}
  117. Account order event
  118. !{"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}
  119. Account order event
  120. !{"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}
  121.  
  122. 1710960154385 Orders posted.
  123. Account order event
  124. !{"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}
  125.  
  126. 1710960169408 Previous mid price: 0.013268
  127.  
  128. 1710960169408 Posting...
  129.  
  130. 1710960169408 Placing orders.
  131. Mid price: 0.012466, spread ticks: 124
  132. Calculate pnl price!
  133. qty<0: calculated pnl price = 0.012284; just mid price = 0.012714
  134. Account order event
  135. !{"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}
  136. Account order event
  137. !{"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}
  138. Account order event
  139. !{"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}
  140. Account order event
  141. !{"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}
  142. Account order event
  143. !{"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}
  144. Account order event
  145. !{"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}
  146. Account order event
  147. !{"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}
  148.  
  149. 1710960169526 Orders posted.
  150. Account order event
  151. !{"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}
  152. ^CThe interrupt signal is (2).
  153. Orders cancelled!
  154.  
  155. sigcanel
  156. Account order event
  157. !{"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}
  158. Account order event
  159. !{"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}
  160. Account order event
  161. !{"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}
  162. Account order event
  163. !{"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}
  164. base balance: {"asset": "LOTT","free": "4238.79","frozen": "0","update_time": 1710960172471}
  165. quote balance: {"asset": "USDT","free": "75.4421","frozen": "0","update_time": 1710960172402}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement