Advertisement
den4ik2003

Untitled

Jul 3rd, 2024
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.37 KB | None | 0 0
  1. ubuntu@ip-172-31-31-23:~/dmm_strat/solutions/test$ ./test mm_launch.config
  2. api keys: 2403047dac883ff20b6cb32cc56b2a17a8bcbb0d 292b4e5ce79770c283786adf3107a2e896ec0a3bfe4767a080a634961edfac30
  3. API 0x653ab57cd8c0
  4. run forever balance 0x653ab57cd8c0
  5. {"type": "SPOT", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "LAI", "free": 717, "locked": 0, "wallet": 0, "update_time": 0}, {"asset": "USDT", "free": 16.4557, "locked": 65.8228, "wallet": 0, "update_time": 0}, {"asset": "CHAT", "free": 0, "locked": 0, "wallet": 0, "update_time": 0}, {"asset": "ALGO", "free": 0.000221, "locked": 0, "wallet": 0, "update_time": 0}]}
  6. get balance indicator 0x653ab57cda50
  7. balance indicator: 0x653ab57cd060 0x653ab57cd8c0
  8. {"asset": "LAI", "free": 717, "locked": 0, "wallet": 0, "update_time": 0}
  9. {"asset": "USDT", "free": 16.4557, "locked": 65.8228, "wallet": 0, "update_time": 0}
  10. {"asset": "CHAT", "free": 0, "locked": 0, "wallet": 0, "update_time": 0}
  11. {"asset": "ALGO", "free": 0.000221, "locked": 0, "wallet": 0, "update_time": 0}
  12. [ 1720028844298 ] MESSAGE: Target exchange provided: MEXC_SPOT
  13. BITMART_SPOT {"symbol": "LAI_USDT", "base": "LAI", "quote": "USDT", "price_step": 0.000001, "price_precision": 6, "quntity_step": 0.100000, "quantity_precision": 1, "min_notional": 5, "max_notional": 1e+09, "maker_commission": 0, "taker_commission": 0}
  14. {"symbols": [{"symbol": "LAI_USDT", "market": "BITMART_SPOT", "account": "MM_BOT"}], "upnl_bound": "5", "name": "MARKET_MAKING_MANAGER", "rpnl_bound": "100", "max_position": "52", "cooldown": "6000"}
  15. {"op": "login", "args": ["2403047dac883ff20b6cb32cc56b2a17a8bcbb0d", "1720028844452", "0289f6eef14d7daf8fa993c3b0b91cbf4541054801783d524090ecd57e110197"]}
  16. {"op": "login", "args": ["2403047dac883ff20b6cb32cc56b2a17a8bcbb0d", "1720028844468", "b0028c4013f2fbb56ad782058c623359c886229598e6038bb6ccd60c1644f3a4"]}
  17. {"args": ["spot/depth50:LAI_USDT", "spot/depth50:LAI_USDT"], "op": "subscribe"}
  18. {"args": ["spot/depth50:LAI_USDT", "spot/depth50:LAI_USDT"], "op": "subscribe"}
  19. {"op": "subscribe", "args": ["spot/user/balance:BALANCE_UPDATE", "spot/user/order:LAI_USDT"]}
  20. {"op": "subscribe", "args": ["spot/user/balance:BALANCE_UPDATE", "spot/user/order:LAI_USDT"]}
  21. ping
  22. [ 1720028845138 ] MESSAGE: Market event from BITMART_SPOT
  23. [ 1720028845138 ] MESSAGE: mm _process
  24. [ 1720028845138 ] MESSAGE: update uniswap price
  25. [ 1720028845513 ] MESSAGE: Target exchange price from uniswap = 0.000021
  26. [ 1720028845513 ] MESSAGE: mid price not changed
  27. [ 1720028845513 ] MESSAGE: calculate orders mid price = 0.000021
  28. [ 1720028845513 ] MESSAGE: position quote: 0.000000max pos: 52.000000
  29. [ 1720028845513 ] MESSAGE: max pos is not exceeded
  30. [ 1720028845513 ] MESSAGE: get_timestamp() - last_upd > cooldown: upd = 1720028845513
  31. [ 2024-07-03-17-47-25 ] DEBUG overall risk checker res: OrderEvent: delta=1.7199e+11, symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.015547, 286.8); (0.015548, 286.8); ], bids: [(2.1e-05, 1.56721e+06); (2e-05, 1.64557e+06); ]
  32. [ 2024-07-03-17-47-25 ] INFO : OrderEvent: delta=1.7199e+11, symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.015547, 286.8); (0.015548, 286.8); ], bids: [(2.1e-05, 1.56721e+06); (2e-05, 1.64557e+06); ]
  33. [ 1720028845514 ] MESSAGE: LIMIT GRID
  34. [ 2024-07-03-17-47-25 ] DEBUG in _process_limit_grid: 0.015547
  35. [ 2024-07-03-17-47-25 ] DEBUG in _process_limit_grid: 286.8
  36. [ 2024-07-03-17-47-25 ] DEBUG in _process_limit_grid: 0.015548
  37. [ 2024-07-03-17-47-25 ] DEBUG in _process_limit_grid: 286.8
  38. [ 2024-07-03-17-47-25 ] DEBUG in _process_limit_grid: 2.1e-05
  39. [ 2024-07-03-17-47-25 ] DEBUG in _process_limit_grid: 1.56721e+06
  40. [ 2024-07-03-17-47-25 ] DEBUG in _process_limit_grid: 2e-05
  41. [ 2024-07-03-17-47-25 ] DEBUG in _process_limit_grid: 1.64557e+06
  42. [ 2024-07-03-17-47-25 ] DEBUG @#*&* : {"symbol": "LAI_USDT", "price": 0.000020, "quantity": 1645569.900000, "type": "LIMIT", "side": "BUY"}
  43. [ 2024-07-03-17-47-25 ] DEBUG @#*&* : {"symbol": "LAI_USDT", "price": 0.000021, "quantity": 1567209.400000, "type": "LIMIT", "side": "BUY"}
  44. [ 2024-07-03-17-47-25 ] DEBUG @#*&* : {"symbol": "LAI_USDT", "price": 0.015548, "quantity": 286.800000, "type": "LIMIT", "side": "SELL"}
  45. [ 2024-07-03-17-47-25 ] DEBUG @#*&* : {"symbol": "LAI_USDT", "price": 0.015547, "quantity": 286.800000, "type": "LIMIT", "side": "SELL"}
  46. [ 1720028845515 ] MESSAGE: csize: 2
  47. [ 2024-07-03-17-47-25 ] DEBUG ! cancel: {"symbol": "LAI_USDT", "coid": 1720028755033, "order_id": "621239779544016384", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.000021, "quantity": 1567209.000000, "filled_quantity": 0.000000, "update_time": 1720028776398}
  48. [ 2024-07-03-17-47-25 ] DEBUG ! cancel: {"symbol": "LAI_USDT", "coid": 1720028755034, "order_id": "621239779581898240", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.000020, "quantity": 1645569.000000, "filled_quantity": 0.000000, "update_time": 1720028776400}
  49. [ 2024-07-03-17-47-25 ] DEBUG ? cancel: empty order
  50. [ 2024-07-03-17-47-25 ] DEBUG ? cancel: empty order
  51. [ 2024-07-03-17-47-25 ] DEBUG ! new: {"symbol": "LAI_USDT", "price": 0.000020, "quantity": 1645569.900000, "client_order_id": 1720028844160, "type": "LIMIT", "side": "BUY"}
  52. [ 2024-07-03-17-47-25 ] DEBUG ! new: {"symbol": "LAI_USDT", "price": 0.015548, "quantity": 286.800000, "client_order_id": 1720028844162, "type": "LIMIT", "side": "SELL"}
  53. [ [ 1720028845616 ] MESSAGE: Market event from BITMART_SPOT
  54. [ 1720028845616 ] MESSAGE: mm _process
  55. [ 1720028845616 ] MESSAGE: Target exchange price from uniswap = 0.000021
  56. [ 1720028845616 ] MESSAGE: mid price not changed
  57. [ 1720028845616 ] MESSAGE: calculate orders mid price = 0.000021
  58. 2024-07-03-17-47-25 ] DEBUG[ 1720028845616 ] MESSAGE: position quote: 0.000000max pos: 52.000000
  59. [ 1720028845616 ] MESSAGE: max pos is not exceeded
  60. ! new: [ 1720028845616 ] MESSAGE: cooldown is not exceeded
  61. {"symbol": "LAI_USDT", "price": 0.000021, "quantity": 1567209.400000, "client_order_id": 1720028844161, "type": "LIMIT", "side": "BUY"}
  62. [ 2024-07-03-17-47-25 ] DEBUG ! new: {"symbol": "LAI_USDT", "price": 0.015547, "quantity": 286.800000, "client_order_id": 1720028844163, "type": "LIMIT", "side": "SELL"}
  63. ping
  64. [ 1720028845618 ] MESSAGE: Market event from BITMART_SPOT
  65. [ 1720028845618 ] MESSAGE: mm _process
  66. [ 1720028845618 ] MESSAGE: Target exchange price from uniswap = 0.000021
  67. [ 1720028845618 ] MESSAGE: mid price not changed
  68. [ 1720028845618 ] MESSAGE: calculate orders mid price = 0.000021
  69. [ 1720028845618 ] MESSAGE: position quote: 0.000000max pos: 52.000000
  70. [ 1720028845618 ] MESSAGE: max pos is not exceeded
  71. [ 1720028845618 ] MESSAGE: cooldown is not exceeded
  72. [ 1720028845619 ] MESSAGE: Market event from BITMART_SPOT
  73. [ 1720028845619 ] MESSAGE: mm _process
  74. [ 1720028845619 ] MESSAGE: Target exchange price from uniswap = 0.000021
  75. [ 1720028845619 ] MESSAGE: mid price not changed
  76. [ 1720028845619 ] MESSAGE: calculate orders mid price = 0.000021
  77. [ 1720028845619 ] MESSAGE: position quote: 0.000000max pos: 52.000000
  78. [ 1720028845619 ] MESSAGE: max pos is not exceeded
  79. [ 1720028845619 ] MESSAGE: cooldown is not exceeded
  80. [ 2024-07-03-17-47-25 ] INFO : WebSocketEvent: delta=1.72003e+11, event_time=1720028845619", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 645, "order": {"symbol": "LAI_USDT", "coid": 1720028755033, "order_id": "621239779544016384", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 0.000021, "quantity": 1567209.000000, "filled_quantity": 0.000000, "update_time": 1720028845575}}
  81. [ 1720028845620 ] MESSAGE: limit
  82. [ 2024-07-03-17-47-25 ] DEBUG Event order: : {"symbol": "LAI_USDT", "coid": 1720028755033, "order_id": "621239779544016384", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 0.000021, "quantity": 1567209.000000, "filled_quantity": 0.000000, "update_time": 1720028845575}
  83. [ 2024-07-03-17-47-25 ] DEBUG old order: : {"symbol": "LAI_USDT", "coid": 1720028755033, "order_id": "621239779544016384", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.000021, "quantity": 1567209.000000, "filled_quantity": 0.000000, "update_time": 1720028776398}
  84. [ 1720028845620 ] MESSAGE: erase
  85. [ 1720028845621 ] MESSAGE: in market making strategy fill process
  86. [ 1720028845621 ] MESSAGE: ! LAI_USDT
  87. [ 2024-07-03-17-47-25 ] INFO : WebSocketEvent: delta=1.72003e+11, event_time=1720028845621", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 645, "order": {"symbol": "LAI_USDT", "coid": 1720028755034, "order_id": "621239779581898240", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 0.000020, "quantity": 1645569.000000, "filled_quantity": 0.000000, "update_time": 1720028845582}}
  88. [ 1720028845622 ] MESSAGE: limit
  89. [ 2024-07-03-17-47-25 ] DEBUG Event order: : {"symbol": "LAI_USDT", "coid": 1720028755034, "order_id": "621239779581898240", "type": "LIMIT", "side": "BUY", "status": "CANCELED", "price": 0.000020, "quantity": 1645569.000000, "filled_quantity": 0.000000, "update_time": 1720028845582}
  90. [ 2024-07-03-17-47-25 ] DEBUG old order: : {"symbol": "LAI_USDT", "coid": 1720028755034, "order_id": "621239779581898240", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.000020, "quantity": 1645569.000000, "filled_quantity": 0.000000, "update_time": 1720028776400}
  91. [ 1720028845622 ] MESSAGE: erase
  92. [ 1720028845623 ] MESSAGE: in market making strategy fill process
  93. [ 1720028845623 ] MESSAGE: ! LAI_USDT
  94. {"trace": "36050f68b8a243848d98b22516f8eb33.95.17200288456518387", "data": {}, "code": "51011", "message": "param not match : size * price >=5"}
  95. [ 2024-07-03-17-47-25 ] DEBUG ? new: UNKNOWN_ERROR (BITMART_SPOT: Unknown error)
  96. [ 2024-07-03-17-47-25 ] ERROR new order error: request={"symbol": "LAI_USDT", "price": 0.015548, "quantity": 286.800000, "client_order_id": 1720028844162, "type": "LIMIT", "side": "SELL"}: UNKNOWN_ERROR (BITMART_SPOT: Unknown error)
  97. {"trace": "66ff38f98af34e28b27c1d4a4ab10ac1.99.17200288456684721", "data": {}, "code": "51011", "message": "param not match : size * price >=5"}
  98. [ 2024-07-03-17-47-25 ] DEBUG ? new: UNKNOWN_ERROR (BITMART_SPOT: Unknown error)
  99. [ 2024-07-03-17-47-25 ] ERROR new order error: request={"symbol": "LAI_USDT", "price": 0.015547, "quantity": 286.800000, "client_order_id": 1720028844163, "type": "LIMIT", "side": "SELL"}: UNKNOWN_ERROR (BITMART_SPOT: Unknown error)
  100. [ 2024-07-03-17-47-25 ] INFO : WebSocketEvent: delta=1.72003e+11, event_time=1720028845719", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 556, "order": {"symbol": "LAI_USDT", "coid": 1720028844161, "order_id": "621240942175460864", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.000021, "quantity": 1567209.000000, "filled_quantity": 0.000000, "update_time": 1720028845678}}
  101. [ 1720028845719 ] MESSAGE: limit
  102. [ 2024-07-03-17-47-25 ] DEBUG Event order: : {"symbol": "LAI_USDT", "coid": 1720028844161, "order_id": "621240942175460864", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.000021, "quantity": 1567209.000000, "filled_quantity": 0.000000, "update_time": 1720028845678}
  103. [ 2024-07-03-17-47-25 ] DEBUG old order: : {"symbol": "LAI_USDT", "coid": 1720028844161, "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 0.000021, "quantity": 1567209.400000, "update_time": 0}
  104. [ 1720028845720 ] MESSAGE: in market making strategy fill process
  105. [ 1720028845720 ] MESSAGE: ! LAI_USDT
  106. [ 2024-07-03-17-47-25 ] INFO : WebSocketEvent: delta=1.72003e+11, event_time=1720028845720", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 556, "order": {"symbol": "LAI_USDT", "coid": 1720028844160, "order_id": "621240942158421248", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.000020, "quantity": 1645569.000000, "filled_quantity": 0.000000, "update_time": 1720028845677}}
  107. [ 1720028845721 ] MESSAGE: limit
  108. [ 2024-07-03-17-47-25 ] DEBUG Event order: : {"symbol": "LAI_USDT", "coid": 1720028844160, "order_id": "621240942158421248", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.000020, "quantity": 1645569.000000, "filled_quantity": 0.000000, "update_time": 1720028845677}
  109. [ 2024-07-03-17-47-25 ] DEBUG old order: : {"symbol": "LAI_USDT", "coid": 1720028844160, "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 0.000020, "quantity": 1645569.900000, "update_time": 0}
  110. [ 1720028845721 ] MESSAGE: in market making strategy fill process
  111. [ 1720028845721 ] MESSAGE: ! LAI_USDT
  112. [ 2024-07-03-17-47-25 ] DEBUG ? new: {"symbol": "LAI_USDT", "coid": 1720028844163, "order_id": "621240942158421248", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.015547, "quantity": 286.800000, "update_time": 1720028845722}
  113. [ 2024-07-03-17-47-25 ] DEBUG ? new: {"symbol": "LAI_USDT", "coid": 1720028844163, "order_id": "621240942175460864", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.015547, "quantity": 286.800000, "update_time": 1720028845722}
  114. [ 1720028847789 ] MESSAGE: Market event from BITMART_SPOT
  115. [ 1720028847789 ] MESSAGE: mm _process
  116. [ 1720028847789 ] MESSAGE: update uniswap price
  117. [ 1720028847811 ] MESSAGE: Target exchange price from uniswap = 0.000021
  118. [ 1720028847811 ] MESSAGE: mid price not changed
  119. [ 1720028847811 ] MESSAGE: calculate orders mid price = 0.000021
  120. [ 1720028847811 ] MESSAGE: position quote: 0.000000max pos: 52.000000
  121. [ 1720028847811 ] MESSAGE: max pos is not exceeded
  122. [ 1720028847812 ] MESSAGE: cooldown is not exceeded
  123. [ 1720028847812 ] MESSAGE: Market event from BITMART_SPOT
  124. [ 1720028847812 ] MESSAGE: mm _process
  125. [ 1720028847812 ] MESSAGE: Target exchange price from uniswap = 0.000021
  126. [ 1720028847812 ] MESSAGE: mid price not changed
  127. [ 1720028847812 ] MESSAGE: calculate orders mid price = 0.000021
  128. [ 1720028847812 ] MESSAGE: position quote: 0.000000max pos: 52.000000
  129. [ 1720028847812 ] MESSAGE: max pos is not exceeded
  130. [ 1720028847812 ] MESSAGE: cooldown is not exceeded
  131. [ 1720028848796 ] MESSAGE: Market event from BITMART_SPOT
  132. [ 1720028848796 ] MESSAGE: mm _process
  133. [ 1720028848796 ] MESSAGE: Target exchange price from uniswap = 0.000021
  134. [ 1720028848796 ] MESSAGE: mid price not changed
  135. [ 1720028848796 ] MESSAGE: calculate orders mid price = 0.000021
  136. [ 1720028848796 ] MESSAGE: position quote: 0.000000max pos: 52.000000
  137. [ 1720028848796 ] MESSAGE: max pos is not exceeded
  138. [ 1720028848796 ] MESSAGE: cooldown is not exceeded
  139. [ 1720028848797 ] MESSAGE: Market event from BITMART_SPOT
  140. [ 1720028848797 ] MESSAGE: mm _process
  141. [ 1720028848797 ] MESSAGE: Target exchange price from uniswap = 0.000021
  142. [ 1720028848797 ] MESSAGE: mid price not changed
  143. [ 1720028848797 ] MESSAGE: calculate orders mid price = 0.000021
  144. [ 1720028848797 ] MESSAGE: position quote: 0.000000max pos: 52.000000
  145. [ 1720028848797 ] MESSAGE: max pos is not exceeded
  146. [ 1720028848797 ] MESSAGE: cooldown is not exceeded
  147. [ 1720028849882 ] MESSAGE: Market event from BITMART_SPOT
  148. [ 1720028849882 ] MESSAGE: mm _process
  149. [ 1720028849882 ] MESSAGE: update uniswap price
  150. [ 1720028849899 ] MESSAGE: Target exchange price from uniswap = 0.000021
  151. [ 1720028849899 ] MESSAGE: mid price not changed
  152. [ 1720028849899 ] MESSAGE: calculate orders mid price = 0.000021
  153. [ 1720028849899 ] MESSAGE: position quote: 0.000000max pos: 52.000000
  154. [ 1720028849899 ] MESSAGE: max pos is not exceeded
  155. [ 1720028849899 ] MESSAGE: cooldown is not exceeded
  156. [ 1720028849899 ] MESSAGE: Market event from BITMART_SPOT
  157. [ 1720028849899 ] MESSAGE: mm _process
  158. [ 1720028849899 ] MESSAGE: Target exchange price from uniswap = 0.000021
  159. [ 1720028849899 ] MESSAGE: mid price not changed
  160. [ 1720028849899 ] MESSAGE: calculate orders mid price = 0.000021
  161. [ 1720028849899 ] MESSAGE: position quote: 0.000000max pos: 52.000000
  162. [ 1720028849899 ] MESSAGE: max pos is not exceeded
  163. [ 1720028849899 ] MESSAGE: cooldown is not exceeded
  164. [ 1720028850798 ] MESSAGE: Market event from BITMART_SPOT
  165. [ 1720028850798 ] MESSAGE: mm _process
  166. [ 1720028850798 ] MESSAGE: Target exchange price from uniswap = 0.000021
  167. [ 1720028850798 ] MESSAGE: mid price not changed
  168. [ 1720028850798 ] MESSAGE: calculate orders mid price = 0.000021
  169. [ 1720028850798 ] MESSAGE: position quote: 0.000000max pos: 52.000000
  170. [ 1720028850798 ] MESSAGE: max pos is not exceeded
  171. [ 1720028850798 ] MESSAGE: cooldown is not exceeded
  172. [ 1720028850798 ] MESSAGE: Market event from BITMART_SPOT
  173. [ 1720028850799 ] MESSAGE: mm _process
  174. [ 1720028850799 ] MESSAGE: Target exchange price from uniswap = 0.000021
  175. [ 1720028850799 ] MESSAGE: mid price not changed
  176. [ 1720028850799 ] MESSAGE: calculate orders mid price = 0.000021
  177. [ 1720028850799 ] MESSAGE: position quote: 0.000000max pos: 52.000000
  178. [ 1720028850799 ] MESSAGE: max pos is not exceeded
  179. [ 1720028850799 ] MESSAGE: cooldown is not exceeded
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement