Advertisement
den4ik2003

Untitled

Oct 30th, 2024
6
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.90 KB | None | 0 0
  1. /home/ubuntu/keys/bitmart_spot/test_1.account
  2. converts_ size: 4
  3. TMP SIZE 2000
  4. bitmart_spot
  5. [New Thread 0x7fffe6a00640 (LWP 352752)]
  6. api keys: 2403047dac883ff20b6cb32cc56b2a17a8bcbb0d 292b4e5ce79770c283786adf3107a2e896ec0a3bfe4767a080a634961edfac30
  7. BalanceIndicator constructor
  8. API 0x555555f95c30
  9. tdir /mnt/telemetry
  10. run forever balance 0x555555f95c30
  11. hash: 5562581342570010103
  12. hash: 5562581342570010103
  13. hash: 5562581342570010103
  14. get balance indicator 0x555555f960c0
  15. hash: 5562581342570010103
  16. hash: 5562581342570010103
  17. >:)
  18. TMP SIZE 2000
  19. TMP SIZE 2000
  20. {"type": "SPOT", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "LAI", "free": 991, "locked": 8913, "wallet": 0, "update_time_micro": 0}, {"asset": "STONKS", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}, {"asset": "USDT", "free": 20.9806, "locked": 0, "wallet": 0, "update_time_micro": 0}, {"asset": "CHAT_Delist", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}, {"asset": "BTC", "free": 5e-05, "locked": 0, "wallet": 0, "update_time_micro": 0}, {"asset": "ALGO", "free": 0.000221, "locked": 0, "wallet": 0, "update_time_micro": 0}]}
  21. {"asset": "LAI", "free": 991, "locked": 8913, "wallet": 0, "update_time_micro": 0}
  22. $ /mnt/telemetry/bitmart_spot/tlm_test_1_LAI
  23. Telemetry logger constructor: /mnt/telemetry/bitmart_spot/tlm_test_1_LAI
  24. {"asset": "STONKS", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}
  25. $ /mnt/telemetry/bitmart_spot/tlm_test_1_STONKS
  26. Telemetry logger constructor: /mnt/telemetry/bitmart_spot/tlm_test_1_STONKS
  27. {"asset": "USDT", "free": 20.9806, "locked": 0, "wallet": 0, "update_time_micro": 0}
  28. TMP SIZE TMP SIZE $ 2000/mnt/telemetry/bitmart_spot/tlm_test_1_USDT
  29.  
  30. Telemetry logger constructor: /mnt/telemetry/bitmart_spot/tlm_test_1_USDT
  31. calculate_init_balance_position = true
  32. init_base_balance = 8244
  33. init_quote_balance = 43.3268
  34. {"asset": "CHAT_Delist", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}
  35. hash: 5562581342570010103
  36. $ /mnt/telemetry/bitmart_spot/tlm_test_1_CHAT_Delist
  37. Telemetry logger constructor: /mnt/telemetry/bitmart_spot/tlm_test_1_CHAT_Delist
  38. {"asset": "BTC", "free": 5e-05, "locked": 0, "wallet": 0, "update_time_micro": 0}
  39. $ $ {"name": "MARKET_MAKING_MANAGER", "rpnl_bound": "1000", "cooldown": "10000", "max_position": "20", "critical_min_balance": "0", "upnl_bound": "1000", "labels": ["52"], "symbols": [{"account": "TEST_1", "market": "BITMART_SPOT", "symbol": "LAI_USDT"}/mnt/telemetry/bitmart_spot/tlm_test_1_BTC$ {"name": "MARKET_MAKING_MANAGER", "rpnl_bound": "1000", "cooldown": "10000", "max_position": "20", "critical_min_balance": "0", "upnl_bound": "1000", "labels": ["52"], "symbols": [{"account": "TEST_1", "market": "BITMART_SPOT", "symbol": "LAI_USDT"}
  40.  
  41. Telemetry logger constructor: /mnt/telemetry/bitmart_spot/tlm_test_1_BTC
  42. hash: 5562581342570010103
  43. {"asset": "ALGO", "free": 0.000221, "locked": 0, "wallet": 0, "update_time_micro": 0}
  44. $ /mnt/telemetry/bitmart_spot/tlm_test_1_ALGO
  45. [New Thread 0x7fffe6600640 (LWP 352759)]
  46. [New Thread 0x7fffe5c00640 (LWP 352760)]
  47. [New Thread 0x7fffe5200640 (LWP 352761)]
  48. [New Thread 0x7fffe4e00640 (LWP 352762)]
  49. NO WRITER
  50. NO WRITER
  51. Telemetry logger constructor: /mnt/telemetry/bitmart_spot/tlm_test_1_ALGO
  52. Telemetry logger constructor: /mnt/telemetry//bitmart_spot/tlm_test_1_LAI_USDT
  53. PrivateReconnect: {"ok": "1"}
  54. PublicReconnect: {"ok": "1"}
  55. [ 1730317932422 ] MESSAGE: cooldown OK -> _common_process pass follow
  56. [ 1730317932422 ] MESSAGE: calculate orders mid price = 0.015670
  57. [ 2024-10-30-19-52-12 ] DEBUG base balance: {"asset": "LAI", "free": 991, "locked": 8913, "wallet": 0, "update_time_micro": 0}
  58. [ 2024-10-30-19-52-12 ] DEBUG quote balance: {"asset": "USDT", "free": 20.9806, "locked": 0, "wallet": 0, "update_time_micro": 0}
  59. [ 2024-10-30-19-52-12 ] DEBUG strategy result: OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0180205, 8913.6); ], bids: [(0.0133195, 1205.01); ]
  60. {"ask_price": 0.018359, "ask_quantity": 10508, "bid_price": 0.012982, "bid_quantity": 539, "update_time_micro": 1730317929963000}
  61. [ 1730317932422 ] MESSAGE: position quote: 22.346220max pos: 20.000000
  62. [ 1730317932422 ] MESSAGE: Too much position
  63. [ 1730317932422 ] MESSAGE: Open orders:
  64. [ 1730317932422 ] MESSAGE: cancel buy
  65. [ 2024-10-30-19-52-12 ] DEBUG max pos risk checker res: OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0180205, 8913.6); ], bids: []
  66. [ 1730317932423 ] MESSAGE: MarketMakingManager::pnl_price_checker
  67. [ 1730317932423 ] MESSAGE: realised pnl = 0.000000 & upnl = -0.796100
  68. [ 1730317932423 ] MESSAGE: position base quantity = 1660.000000 pnl price = -0.588948
  69. [ 2024-10-30-19-52-12 ] DEBUG pnl risk checker result (case where price have not been adjusted): OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0180205, 8913.6); ], bids: []
  70. [ 2024-10-30-19-52-12 ] DEBUG overall risk checker res: OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0180205, 8913.6); ], bids: []
  71. [ 2024-10-30-19-52-12 ] INFO Execution::_process(order_event): OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0180205, 8913.6); ], bids: []
  72. update_order(): 142467806284749 NEW
  73. [ 2024-10-30-19-52-12 ] INFO Execution::_process(ws_event): WebSocketEvent: , event_time_micro=1730317932519836", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time_micro": 140737062627264, "order": {"symbol": "LAI_USDT", "coid": 142467806284749, "order_id": "793863173726322432", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.018021, "quantity": 8913.0, "filled_quantity": 0.0, "update_time_micro": 1730317932470000}}
  74. [{"symbol": "LAI_USDT", "coid": 142467806284749, "order_id": "793863173726322432", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.018021, "quantity": 8913.0, "filled_quantity": 0.0, "update_time_micro": 1730317932470000}
  75. update_order(): 142467806284749 FEED
  76. {"type": "SPOT", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "LAI", "free": 991, "locked": 8913, "wallet": 0, "update_time_micro": 0}, {"asset": "STONKS", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}, {"asset": "USDT", "free": 20.9806, "locked": 0, "wallet": 0, "update_time_micro": 0}, {"asset": "CHAT_Delist", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}, {"asset": "BTC", "free": 5e-05, "locked": 0, "wallet": 0, "update_time_micro": 0}, {"asset": "ALGO", "free": 0.000221, "locked": 0, "wallet": 0, "update_time_micro": 0}]}
  77. {"asset": "LAI", "free": 991, "locked": 8913, "wallet": 0, "update_time_micro": 0}
  78. {"asset": "STONKS", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}
  79. {"asset": "USDT", "free": 20.9806, "locked": 0, "wallet": 0, "update_time_micro": 0}
  80. {"asset": "CHAT_Delist", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}
  81. {"asset": "BTC", "free": 5e-05, "locked": 0, "wallet": 0, "update_time_micro": 0}
  82. {"asset": "ALGO", "free": 0.000221, "locked": 0, "wallet": 0, "update_time_micro": 0}
  83. [ 1730317942423 ] MESSAGE: cooldown OK -> _common_process pass follow
  84. [ 1730317942423 ] MESSAGE: calculate orders mid price = 0.015531
  85. [ 2024-10-30-19-52-22 ] DEBUG base balance: {"asset": "LAI", "free": 991, "locked": 8913, "wallet": 0, "update_time_micro": 0}
  86. [ 2024-10-30-19-52-22 ] DEBUG quote balance: {"asset": "USDT", "free": 20.9806, "locked": 0, "wallet": 0, "update_time_micro": 0}
  87. [ 2024-10-30-19-52-22 ] DEBUG strategy result: OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0178606, 8913.6); ], bids: [(0.0132013, 1215.8); ]
  88. {"ask_price": 0.018018, "ask_quantity": 2359, "bid_price": 0.013045, "bid_quantity": 874, "update_time_micro": 1730317939093000}
  89. [ 1730317942423 ] MESSAGE: position quote: 22.346220max pos: 20.000000
  90. [ 1730317942423 ] MESSAGE: Too much position
  91. [ 1730317942424 ] MESSAGE: Open orders:
  92. [ 1730317942424 ] MESSAGE: ask order: 0.018021 8913.600000
  93. [ 1730317942424 ] MESSAGE: cancel buy
  94. [ 2024-10-30-19-52-22 ] DEBUG max pos risk checker res: OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0178606, 8913.6); ], bids: []
  95. [ 1730317942424 ] MESSAGE: MarketMakingManager::pnl_price_checker
  96. [ 1730317942424 ] MESSAGE: realised pnl = 0.000000 & upnl = -0.691520
  97. [ 1730317942424 ] MESSAGE: position base quantity = 1660.000000 pnl price = -0.588948
  98. [ 2024-10-30-19-52-22 ] DEBUG pnl risk checker result (case where price have not been adjusted): OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0178606, 8913.6); ], bids: []
  99. [ 2024-10-30-19-52-22 ] DEBUG overall risk checker res: OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0178606, 8913.6); ], bids: []
  100. [ 2024-10-30-19-52-22 ] INFO Execution::_process(order_event): OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0178606, 8913.6); ], bids: []
  101. update_order(): 142467806284749 CANCEL
  102. {"trace": "bee630817aeb4a73a1d66b6d7d171e1d.86.17303179424587127", "data": {}, "code": "50020", "message": "Balance not enough"}
  103. update_order(): 142467806284750 NEW
  104. [ 2024-10-30-19-52-22 ] INFO Execution::_process(ws_event): WebSocketEvent: , event_time_micro=1730317942515132", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time_micro": 140737062627264, "order": {"symbol": "LAI_USDT", "coid": 142467806284749, "order_id": "793863173726322432", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.018021, "quantity": 8913.0, "filled_quantity": 0.0, "update_time_micro": 1730317942487000}}
  105. [{"symbol": "LAI_USDT", "coid": 142467806284749, "order_id": "793863173726322432", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.018021, "quantity": 8913.0, "filled_quantity": 0.0, "update_time_micro": 1730317942487000}
  106. update_order(): 142467806284749 FEED
  107. {"trace": "5badf4265d7a48b09b297320b8f7b130.84.17303179424879871", "data": {}, "code": "50030", "message": "Order is already canceled"}
  108. update_order(): 142467806284749 CANCEL
  109. {"trace": "e24320d83f494aa7acf93d86c347cf29.79.17303179425205760", "data": {}, "code": "50030", "message": "Order is already canceled"}
  110. update_order(): 142467806284749 CANCEL
  111. basic_api::start_streams catch: raw string: pong
  112. basic_api::start_streams catch: raw string: pong
  113. {"type": "SPOT", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "LAI", "free": 9904, "locked": 0, "wallet": 0, "update_time_micro": 0}, {"asset": "STONKS", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}, {"asset": "USDT", "free": 20.9806, "locked": 0, "wallet": 0, "update_time_micro": 0}, {"asset": "CHAT_Delist", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}, {"asset": "BTC", "free": 5e-05, "locked": 0, "wallet": 0, "update_time_micro": 0}, {"asset": "ALGO", "free": 0.000221, "locked": 0, "wallet": 0, "update_time_micro": 0}]}
  114. {"asset": "LAI", "free": 9904, "locked": 0, "wallet": 0, "update_time_micro": 0}
  115. {"asset": "STONKS", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}
  116. {"asset": "USDT", "free": 20.9806, "locked": 0, "wallet": 0, "update_time_micro": 0}
  117. {"asset": "CHAT_Delist", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}
  118. {"asset": "BTC", "free": 5e-05, "locked": 0, "wallet": 0, "update_time_micro": 0}
  119. {"asset": "ALGO", "free": 0.000221, "locked": 0, "wallet": 0, "update_time_micro": 0}
  120. [ 1730317952424 ] MESSAGE: cooldown OK -> _common_process pass follow
  121. [ 1730317952424 ] MESSAGE: calculate orders mid price = 0.015499
  122. [ 2024-10-30-19-52-32 ] DEBUG base balance: {"asset": "LAI", "free": 9904, "locked": 0, "wallet": 0, "update_time_micro": 0}
  123. [ 2024-10-30-19-52-32 ] DEBUG quote balance: {"asset": "USDT", "free": 20.9806, "locked": 0, "wallet": 0, "update_time_micro": 0}
  124. [ 2024-10-30-19-52-32 ] DEBUG strategy result: OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0178238, 8913.6); ], bids: [(0.0131741, 1218.31); ]
  125. {"ask_price": 0.018016, "ask_quantity": 2359, "bid_price": 0.012982, "bid_quantity": 539, "update_time_micro": 1730317947662000}
  126. [ 1730317952425 ] MESSAGE: position quote: 22.346220max pos: 20.000000
  127. [ 1730317952425 ] MESSAGE: Too much position
  128. [ 1730317952425 ] MESSAGE: Open orders:
  129. [ 1730317952425 ] MESSAGE: ask order: 0.017861 8913.600000
  130. [ 1730317952425 ] MESSAGE: cancel buy
  131. [ 2024-10-30-19-52-32 ] DEBUG max pos risk checker res: OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0178238, 8913.6); ], bids: []
  132. [ 1730317952425 ] MESSAGE: MarketMakingManager::pnl_price_checker
  133. [ 1730317952425 ] MESSAGE: realised pnl = 0.000000 & upnl = -0.796100
  134. [ 1730317952425 ] MESSAGE: position base quantity = 1660.000000 pnl price = -0.588948
  135. [ 2024-10-30-19-52-32 ] DEBUG pnl risk checker result (case where price have not been adjusted): OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0178238, 8913.6); ], bids: []
  136. [ 2024-10-30-19-52-32 ] DEBUG overall risk checker res: OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0178238, 8913.6); ], bids: []
  137. [ 2024-10-30-19-52-32 ] INFO Execution::_process(order_event): OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0178238, 8913.6); ], bids: []
  138. {"trace": "2e9a44db5eb347d7a11f0436c05a13b3.85.17303179524577142", "data": {}, "code": "50032", "message": "Order does not exist"}
  139. update_order(): 142467806284750 CANCEL
  140. update_order(): 142467806284751 NEW
  141. [ 2024-10-30-19-52-32 ] INFO Execution::_process(ws_event): WebSocketEvent: , event_time_micro=1730317952516016", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time_micro": 140737337354176, "order": {"symbol": "LAI_USDT", "coid": 142467806284751, "order_id": "793863509255422976", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.017824, "quantity": 8913.0, "filled_quantity": 0.0, "update_time_micro": 1730317952469000}}
  142. [{"symbol": "LAI_USDT", "coid": 142467806284751, "order_id": "793863509255422976", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.017824, "quantity": 8913.0, "filled_quantity": 0.0, "update_time_micro": 1730317952469000}
  143. update_order(): 142467806284751 FEED
  144. {"trace": "a89b7cf4118c42e4bf69a4e2ce2d914f.66.17303179524873159", "data": {}, "code": "50032", "message": "Order does not exist"}
  145. update_order(): 142467806284750 CANCEL
  146. {"trace": "a89b7cf4118c42e4bf69a4e2ce2d914f.66.17303179525223175", "data": {}, "code": "50032", "message": "Order does not exist"}
  147. update_order(): 142467806284750 CANCEL
  148. {"type": "SPOT", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "LAI", "free": 991, "locked": 8913, "wallet": 0, "update_time_micro": 0}, {"asset": "STONKS", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}, {"asset": "USDT", "free": 20.9806, "locked": 0, "wallet": 0, "update_time_micro": 0}, {"asset": "CHAT_Delist", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}, {"asset": "BTC", "free": 5e-05, "locked": 0, "wallet": 0, "update_time_micro": 0}, {"asset": "ALGO", "free": 0.000221, "locked": 0, "wallet": 0, "update_time_micro": 0}]}
  149. {"asset": "LAI", "free": 991, "locked": 8913, "wallet": 0, "update_time_micro": 0}
  150. {"asset": "STONKS", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}
  151. {"asset": "USDT", "free": 20.9806, "locked": 0, "wallet": 0, "update_time_micro": 0}
  152. {"asset": "CHAT_Delist", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}
  153. {"asset": "BTC", "free": 5e-05, "locked": 0, "wallet": 0, "update_time_micro": 0}
  154. {"asset": "ALGO", "free": 0.000221, "locked": 0, "wallet": 0, "update_time_micro": 0}
  155. basic_api::start_streams catch: raw string: pong
  156. basic_api::start_streams catch: raw string: pong
  157. [ 1730317962425 ] MESSAGE: cooldown OK -> _common_process pass follow
  158. [ 1730317962425 ] MESSAGE: calculate orders mid price = 0.015402
  159. [ 2024-10-30-19-52-42 ] DEBUG base balance: {"asset": "LAI", "free": 991, "locked": 8913, "wallet": 0, "update_time_micro": 0}
  160. [ 2024-10-30-19-52-42 ] DEBUG quote balance: {"asset": "USDT", "free": 20.9806, "locked": 0, "wallet": 0, "update_time_micro": 0}
  161. [ 2024-10-30-19-52-42 ] DEBUG strategy result: OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0177123, 8913.6); ], bids: [(0.0130917, 1225.98); ]
  162. {"ask_price": 0.017823, "ask_quantity": 2359, "bid_price": 0.012982, "bid_quantity": 539, "update_time_micro": 1730317954898000}
  163. [ 1730317962426 ] MESSAGE: position quote: 22.346220max pos: 20.000000
  164. [ 1730317962426 ] MESSAGE: Too much position
  165. [ 1730317962426 ] MESSAGE: Open orders:
  166. [ 1730317962426 ] MESSAGE: ask order: 0.017861 8913.600000
  167. [ 1730317962426 ] MESSAGE: ask order: 0.017824 8913.600000
  168. [ 1730317962426 ] MESSAGE: cancel buy
  169. [ 2024-10-30-19-52-42 ] DEBUG max pos risk checker res: OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0177123, 8913.6); ], bids: []
  170. [ 1730317962426 ] MESSAGE: MarketMakingManager::pnl_price_checker
  171. [ 1730317962427 ] MESSAGE: realised pnl = 0.000000 & upnl = -0.796100
  172. [ 1730317962427 ] MESSAGE: position base quantity = 1660.000000 pnl price = -0.588948
  173. [ 2024-10-30-19-52-42 ] DEBUG pnl risk checker result (case where price have not been adjusted): OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0177123, 8913.6); ], bids: []
  174. [ 2024-10-30-19-52-42 ] DEBUG overall risk checker res: OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0177123, 8913.6); ], bids: []
  175. [ 2024-10-30-19-52-42 ] INFO Execution::_process(order_event): OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0177123, 8913.6); ], bids: []
  176. {"trace": "a89b7cf4118c42e4bf69a4e2ce2d914f.75.17303179624625048", "data": {}, "code": "50032", "message": "Order does not exist"}
  177. update_order(): 142467806284750 CANCEL
  178. {"trace": "457a7e2cf0e6420594f57fe1c372c7df.81.17303179624606850", "data": {}, "code": "50020", "message": "Balance not enough"}
  179. update_order(): 142467806284752 NEW
  180. update_order(): 142467806284751 CANCEL
  181. [ 2024-10-30-19-52-42 ] INFO Execution::_process(ws_event): WebSocketEvent: , event_time_micro=1730317962517637", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time_micro": 140737337354176, "order": {"symbol": "LAI_USDT", "coid": 142467806284751, "order_id": "793863509255422976", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.017824, "quantity": 8913.0, "filled_quantity": 0.0, "update_time_micro": 1730317962491000}}
  182. [{"symbol": "LAI_USDT", "coid": 142467806284751, "order_id": "793863509255422976", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.017824, "quantity": 8913.0, "filled_quantity": 0.0, "update_time_micro": 1730317962491000}
  183. update_order(): 142467806284751 FEED
  184. {"trace": "e17b23bdff6d490bbb8850abdd2c3d29.74.17303179624933944", "data": {}, "code": "50030", "message": "Order is already canceled"}
  185. update_order(): 142467806284751 CANCEL
  186. {"trace": "5badf4265d7a48b09b297320b8f7b130.69.17303179624947995", "data": {}, "code": "50032", "message": "Order does not exist"}
  187. update_order(): 142467806284750 CANCEL
  188. {"trace": "5ca6c783416e4ed3bcef5a4dc0a92ed5.80.17303179625199213", "data": {}, "code": "50030", "message": "Order is already canceled"}
  189. update_order(): 142467806284751 CANCEL
  190. {"trace": "c184e56786b04631bc185deb4b7e4881.77.17303179625208341", "data": {}, "code": "50032", "message": "Order does not exist"}
  191. update_order(): 142467806284750 CANCEL
  192. {"type": "SPOT", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "LAI", "free": 9904, "locked": 0, "wallet": 0, "update_time_micro": 0}, {"asset": "STONKS", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}, {"asset": "USDT", "free": 20.9806, "locked": 0, "wallet": 0, "update_time_micro": 0}, {"asset": "CHAT_Delist", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}, {"asset": "BTC", "free": 5e-05, "locked": 0, "wallet": 0, "update_time_micro": 0}, {"asset": "ALGO", "free": 0.000221, "locked": 0, "wallet": 0, "update_time_micro": 0}]}
  193. {"asset": "LAI", "free": 9904, "locked": 0, "wallet": 0, "update_time_micro": 0}
  194. {"asset": "STONKS", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}
  195. {"asset": "USDT", "free": 20.9806, "locked": 0, "wallet": 0, "update_time_micro": 0}
  196. {"asset": "CHAT_Delist", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}
  197. {"asset": "BTC", "free": 5e-05, "locked": 0, "wallet": 0, "update_time_micro": 0}
  198. {"asset": "ALGO", "free": 0.000221, "locked": 0, "wallet": 0, "update_time_micro": 0}
  199. [ 1730317972426 ] MESSAGE: cooldown OK -> _common_process pass follow
  200. [ 1730317972426 ] MESSAGE: calculate orders mid price = 0.015401
  201. [ 2024-10-30-19-52-52 ] DEBUG base balance: {"asset": "LAI", "free": 9904, "locked": 0, "wallet": 0, "update_time_micro": 0}
  202. [ 2024-10-30-19-52-52 ] DEBUG quote balance: {"asset": "USDT", "free": 20.9806, "locked": 0, "wallet": 0, "update_time_micro": 0}
  203. [ 2024-10-30-19-52-52 ] DEBUG strategy result: OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0177111, 8913.6); ], bids: [(0.0130908, 1226.06); ]
  204. {"ask_price": 0.01782, "ask_quantity": 10508, "bid_price": 0.012982, "bid_quantity": 539, "update_time_micro": 1730317972061000}
  205. [ 1730317972427 ] MESSAGE: position quote: 22.346220max pos: 20.000000
  206. [ 1730317972427 ] MESSAGE: Too much position
  207. [ 1730317972427 ] MESSAGE: Open orders:
  208. [ 1730317972427 ] MESSAGE: ask order: 0.017861 8913.600000
  209. [ 1730317972427 ] MESSAGE: ask order: 0.017712 8913.600000
  210. [ 1730317972427 ] MESSAGE: cancel buy
  211. [ 2024-10-30-19-52-52 ] DEBUG max pos risk checker res: OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0177111, 8913.6); ], bids: []
  212. [ 1730317972427 ] MESSAGE: MarketMakingManager::pnl_price_checker
  213. [ 1730317972427 ] MESSAGE: realised pnl = 0.000000 & upnl = -0.796100
  214. [ 1730317972427 ] MESSAGE: position base quantity = 1660.000000 pnl price = -0.588948
  215. [ 2024-10-30-19-52-52 ] DEBUG pnl risk checker result (case where price have not been adjusted): OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0177111, 8913.6); ], bids: []
  216. [ 2024-10-30-19-52-52 ] DEBUG overall risk checker res: OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0177111, 8913.6); ], bids: []
  217. [ 2024-10-30-19-52-52 ] INFO Execution::_process(order_event): OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0177111, 8913.6); ], bids: []
  218. {"trace": "457a7e2cf0e6420594f57fe1c372c7df.69.17303179724606034", "data": {}, "code": "50032", "message": "Order does not exist"}
  219. update_order(): 142467806284750 CANCEL
  220. {"trace": "2e9a44db5eb347d7a11f0436c05a13b3.64.17303179724593626", "data": {}, "code": "50032", "message": "Order does not exist"}
  221. update_order(): 142467806284752 CANCEL
  222. update_order(): 142467806284753 NEW
  223. [ 2024-10-30-19-52-52 ] INFO Execution::_process(ws_event): WebSocketEvent: , event_time_micro=1730317972518901", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time_micro": 140737071015872, "order": {"symbol": "LAI_USDT", "coid": 142467806284753, "order_id": "793863844883102976", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.017711, "quantity": 8913.0, "filled_quantity": 0.0, "update_time_micro": 1730317972474000}}
  224. [{"symbol": "LAI_USDT", "coid": 142467806284753, "order_id": "793863844883102976", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.017711, "quantity": 8913.0, "filled_quantity": 0.0, "update_time_micro": 1730317972474000}
  225. update_order(): 142467806284753 FEED
  226. {"trace": "afd21ae56bf8430fad92f7e642d961ad.74.17303179724931346", "data": {}, "code": "50032", "message": "Order does not exist"}
  227. update_order(): 142467806284750 CANCEL
  228. {"trace": "e24320d83f494aa7acf93d86c347cf29.86.17303179725008009", "data": {}, "code": "50032", "message": "Order does not exist"}
  229. update_order(): 142467806284752 CANCEL
  230. {"trace": "2256121ca4cd4a7fa0c797dd25b7dcbe.85.17303179725217547", "data": {}, "code": "50032", "message": "Order does not exist"}
  231. update_order(): 142467806284750 CANCEL
  232. {"trace": "457a7e2cf0e6420594f57fe1c372c7df.66.17303179725227182", "data": {}, "code": "50032", "message": "Order does not exist"}
  233. update_order(): 142467806284752 CANCEL
  234. basic_api::start_streams catch: raw string: pong
  235. basic_api::start_streams catch: raw string: pong
  236. {"type": "SPOT", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "LAI", "free": 991, "locked": 8913, "wallet": 0, "update_time_micro": 0}, {"asset": "STONKS", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}, {"asset": "USDT", "free": 20.9806, "locked": 0, "wallet": 0, "update_time_micro": 0}, {"asset": "CHAT_Delist", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}, {"asset": "BTC", "free": 5e-05, "locked": 0, "wallet": 0, "update_time_micro": 0}, {"asset": "ALGO", "free": 0.000221, "locked": 0, "wallet": 0, "update_time_micro": 0}]}
  237. {"asset": "LAI", "free": 991, "locked": 8913, "wallet": 0, "update_time_micro": 0}
  238. {"asset": "STONKS", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}
  239. {"asset": "USDT", "free": 20.9806, "locked": 0, "wallet": 0, "update_time_micro": 0}
  240. {"asset": "CHAT_Delist", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}
  241. {"asset": "BTC", "free": 5e-05, "locked": 0, "wallet": 0, "update_time_micro": 0}
  242. {"asset": "ALGO", "free": 0.000221, "locked": 0, "wallet": 0, "update_time_micro": 0}
  243. ^C
  244. Thread 1 "test" received signal SIGINT, Interrupt.
  245. __futex_abstimed_wait_common64 (private=128, cancel=true, abstime=0x0, op=265, expected=352759, futex_word=0x7fffe6600910) at ./nptl/futex-internal.c:57
  246. 57 ./nptl/futex-internal.c: No such file or directory.
  247. (gdb)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement