Advertisement
den4ik2003

Untitled

Oct 30th, 2024
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.41 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 355844)]
  6. api keys: 2403047dac883ff20b6cb32cc56b2a17a8bcbb0d 292b4e5ce79770c283786adf3107a2e896ec0a3bfe4767a080a634961edfac30
  7. BalanceIndicator constructor
  8. API 0x555555f95dc0
  9. tdir /mnt/telemetry
  10. run forever balance 0x555555f95dc0
  11. hash: 5562581342570010103
  12. hash: 5562581342570010103
  13. hash: 5562581342570010103
  14. get balance indicator 0x555555f96250
  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. $ /mnt/telemetry/bitmart_spot/tlm_test_1_USDT
  29. Telemetry logger constructor: /mnt/telemetry/bitmart_spot/tlm_test_1_USDT
  30. {"asset": "CHAT_Delist", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}
  31. $ /mnt/telemetry/bitmart_spot/tlm_test_1_CHAT_Delist
  32. Telemetry logger constructor: /mnt/telemetry/bitmart_spot/tlm_test_1_CHAT_Delist
  33. {"asset": "BTC", "free": 5e-05, "locked": 0, "wallet": 0, "update_time_micro": 0}
  34. $ /mnt/telemetry/bitmart_spot/tlm_test_1_BTC
  35. Telemetry logger constructor: /mnt/telemetry/bitmart_spot/tlm_test_1_BTC
  36. {"asset": "ALGO", "free": 0.000221, "locked": 0, "wallet": 0, "update_time_micro": 0}
  37. $ /mnt/telemetry/bitmart_spot/tlm_test_1_ALGO
  38. Telemetry logger constructor: /mnt/telemetry/bitmart_spot/tlm_test_1_ALGO
  39. TMP SIZE 2000
  40. calculate_init_balance_position = false, but SPOT
  41. position_controller successfully calculate spot balance
  42. init_base_balance = 9904
  43. init_quote_balance = 20.9806
  44. hash: 5562581342570010103
  45. {"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"}]}
  46. [New Thread 0x7fffe6600640 (LWP 355845)]
  47. [New Thread 0x7fffe5c00640 (LWP 355846)]
  48. [New Thread 0x7fffe5200640 (LWP 355847)]
  49. [New Thread 0x7fffe4e00640 (LWP 355848)]
  50. NO WRITER
  51. NO WRITER
  52. hash: 5562581342570010103
  53. PublicReconnect: {"ok": "1"}
  54. PrivateReconnect: {"ok": "1"}
  55. Telemetry logger constructor: /mnt/telemetry//bitmart_spot/tlm_test_1_LAI_USDT
  56. [ 1730319216798 ] MESSAGE: cooldown OK -> _common_process pass follow
  57. [ 1730319216798 ] MESSAGE: calculate orders mid price = 0.014263
  58. [ 2024-10-30-20-13-36 ] DEBUG base balance: {"asset": "LAI", "free": 991, "locked": 8913, "wallet": 0, "update_time_micro": 0}
  59. [ 2024-10-30-20-13-36 ] DEBUG quote balance: {"asset": "USDT", "free": 20.9806, "locked": 0, "wallet": 0, "update_time_micro": 0}
  60. [ 2024-10-30-20-13-36 ] DEBUG strategy result: OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0146196, 8913.6); ], bids: [(0.0139064, 1323.88); ]
  61. {"ask_price": 0.016441, "ask_quantity": 2359, "bid_price": 0.012086, "bid_quantity": 579, "update_time_micro": 1730319203536000}
  62. [ 1730319216799 ] MESSAGE: MarketMakingManager::pnl_price_checker
  63. [ 2024-10-30-20-13-36 ] DEBUG overall risk checker res: OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0146196, 8913.6); ], bids: [(0.0139064, 1323.88); ]
  64. [ 2024-10-30-20-13-36 ] INFO Execution::_process(order_event): OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0146196, 8913.6); ], bids: [(0.0139064, 1323.88); ]
  65. [ 1730319216799 ] MESSAGE: Execution::_process_limit_grid() to_cancel size: 0
  66. update_order(): 142467807569053 NEW
  67. [ 2024-10-30-20-13-36 ] INFO Execution::_process(ws_event): WebSocketEvent: , event_time_micro=1730319216885345", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time_micro": 140737079404480, "order": {"symbol": "LAI_USDT", "coid": 142467807569053, "order_id": "793884721942797568", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.013906, "quantity": 1323.0, "filled_quantity": 0.0, "update_time_micro": 1730319216844000}}
  68. [{"symbol": "LAI_USDT", "coid": 142467807569053, "order_id": "793884721942797568", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 0.013906, "quantity": 1323.0, "filled_quantity": 0.0, "update_time_micro": 1730319216844000}
  69. update_order(): 142467807569053 FEED
  70. update_order(): 142467807569054 NEW
  71. [ 2024-10-30-20-13-36 ] INFO Execution::_process(ws_event): WebSocketEvent: , event_time_micro=1730319216895062", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time_micro": 140737083598784, "order": {"symbol": "LAI_USDT", "coid": 142467807569054, "order_id": "793884722031343872", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.014620, "quantity": 8913.0, "filled_quantity": 0.0, "update_time_micro": 1730319216849000}}
  72. [{"symbol": "LAI_USDT", "coid": 142467807569054, "order_id": "793884722031343872", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.014620, "quantity": 8913.0, "filled_quantity": 0.0, "update_time_micro": 1730319216849000}
  73. update_order(): 142467807569054 FEED
  74. BalanceIndicator::_process(ws_event): ACCOUNT_BALANCE
  75. BalanceIndicator::_process(ws_event): ACCOUNT_BALANCE
  76. [ 2024-10-30-20-13-37 ] INFO Execution::_process(ws_event): WebSocketEvent: , event_time_micro=1730319217074861", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time_micro": 140737083598784, "order": {"symbol": "LAI_USDT", "coid": 142467807569053, "order_id": "793884721942797568", "type": "LIMIT", "side": "BUY", "status": "FILLED", "price": 0.013906, "quantity": 1323.0, "filled_quantity": 1323.0, "update_time_micro": 1730319217030000}}
  77. [{"symbol": "LAI_USDT", "coid": 142467807569053, "order_id": "793884721942797568", "type": "LIMIT", "side": "BUY", "status": "FILLED", "price": 0.013906, "quantity": 1323.0, "filled_quantity": 1323.0, "update_time_micro": 1730319217030000}
  78. update_order(): 142467807569053 FEED
  79. {"type": "SPOT", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "LAI", "free": 2314, "locked": 8913, "wallet": 0, "update_time_micro": 0}, {"asset": "STONKS", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}, {"asset": "USDT", "free": 2.53695, "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}]}
  80. {"asset": "LAI", "free": 2314, "locked": 8913, "wallet": 0, "update_time_micro": 0}
  81. {"asset": "STONKS", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}
  82. {"asset": "USDT", "free": 2.53695, "locked": 0, "wallet": 0, "update_time_micro": 0}
  83. {"asset": "CHAT_Delist", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}
  84. {"asset": "BTC", "free": 5e-05, "locked": 0, "wallet": 0, "update_time_micro": 0}
  85. {"asset": "ALGO", "free": 0.000221, "locked": 0, "wallet": 0, "update_time_micro": 0}
  86. [ 1730319226799 ] MESSAGE: cooldown OK -> _common_process pass follow
  87. [ 1730319226800 ] MESSAGE: calculate orders mid price = 0.013353
  88. [ 2024-10-30-20-13-46 ] DEBUG base balance: {"asset": "LAI", "free": 2314, "locked": 8913, "wallet": 0, "update_time_micro": 0}
  89. [ 2024-10-30-20-13-46 ] DEBUG quote balance: {"asset": "USDT", "free": 2.53695, "locked": 0, "wallet": 0, "update_time_micro": 0}
  90. [ 2024-10-30-20-13-46 ] DEBUG strategy result: OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0136868, 10104.3); ], bids: [(0.0130192, 170.992); ]
  91. {"ask_price": 0.01462, "ask_quantity": 8913, "bid_price": 0.012086, "bid_quantity": 579, "update_time_micro": 1730319219196000}
  92. [ 1730319226800 ] MESSAGE: MarketMakingManager::pnl_price_checker
  93. [ 1730319226800 ] MESSAGE: realised pnl = 0.000000 & upnl = -2.453854
  94. [ 1730319226800 ] MESSAGE: position base quantity = 1323.000000 pnl price = -0.741917
  95. [ 2024-10-30-20-13-46 ] DEBUG pnl risk checker result (case where price have not been adjusted): OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0136868, 10104.3); ], bids: [(0.0130192, 170.992); ]
  96. [ 2024-10-30-20-13-46 ] DEBUG overall risk checker res: OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0136868, 10104.3); ], bids: [(0.0130192, 170.992); ]
  97. [ 2024-10-30-20-13-46 ] INFO Execution::_process(order_event): OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0136868, 10104.3); ], bids: [(0.0130192, 170.992); ]
  98. [ 1730319226801 ] MESSAGE: Execution::_process_limit_grid() to_cancel size: 1
  99. {"trace": "5ca6c783416e4ed3bcef5a4dc0a92ed5.82.17303192268352236", "data": {}, "code": "51011", "message": "param not match : size * price >=5"}
  100. update_order(): 142467807569055 NEW
  101. {"trace": "e24320d83f494aa7acf93d86c347cf29.71.17303192268352639", "data": {}, "code": "50020", "message": "Balance not enough"}
  102. update_order(): 142467807569056 NEW
  103. update_order(): 142467807569054 CANCEL
  104. [ 2024-10-30-20-13-46 ] INFO Execution::_process(ws_event): WebSocketEvent: , event_time_micro=1730319226892217", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time_micro": 140737037461440, "order": {"symbol": "LAI_USDT", "coid": 142467807569054, "order_id": "793884722031343872", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.014620, "quantity": 8913.0, "filled_quantity": 0.0, "update_time_micro": 1730319226864000}}
  105. [{"symbol": "LAI_USDT", "coid": 142467807569054, "order_id": "793884722031343872", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.014620, "quantity": 8913.0, "filled_quantity": 0.0, "update_time_micro": 1730319226864000}
  106. update_order(): 142467807569054 FEED
  107. {"trace": "b90a3babd0614984a5d7845117a92c07.70.17303192268657853", "data": {}, "code": "50030", "message": "Order is already canceled"}
  108. update_order(): 142467807569054 CANCEL
  109. {"trace": "2e9a44db5eb347d7a11f0436c05a13b3.65.17303192268982998", "data": {}, "code": "50030", "message": "Order is already canceled"}
  110. update_order(): 142467807569054 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": 11227, "locked": 0, "wallet": 0, "update_time_micro": 0}, {"asset": "STONKS", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}, {"asset": "USDT", "free": 2.53695, "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": 11227, "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": 2.53695, "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. [ 1730319236801 ] MESSAGE: cooldown OK -> _common_process pass follow
  121. [ 1730319236801 ] MESSAGE: calculate orders mid price = 0.013352
  122. [ 2024-10-30-20-13-56 ] DEBUG base balance: {"asset": "LAI", "free": 11227, "locked": 0, "wallet": 0, "update_time_micro": 0}
  123. [ 2024-10-30-20-13-56 ] DEBUG quote balance: {"asset": "USDT", "free": 2.53695, "locked": 0, "wallet": 0, "update_time_micro": 0}
  124. [ 2024-10-30-20-13-56 ] DEBUG strategy result: OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0136858, 10104.3); ], bids: [(0.0130182, 171.005); ]
  125. {"ask_price": 0.014619, "ask_quantity": 10508, "bid_price": 0.012086, "bid_quantity": 579, "update_time_micro": 1730319227803000}
  126. [ 1730319236801 ] MESSAGE: MarketMakingManager::pnl_price_checker
  127. [ 1730319236801 ] MESSAGE: realised pnl = 0.000000 & upnl = -2.453854
  128. [ 1730319236801 ] MESSAGE: position base quantity = 1323.000000 pnl price = -0.741917
  129. [ 2024-10-30-20-13-56 ] DEBUG pnl risk checker result (case where price have not been adjusted): OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0136858, 10104.3); ], bids: [(0.0130182, 171.005); ]
  130. [ 2024-10-30-20-13-56 ] DEBUG overall risk checker res: OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0136858, 10104.3); ], bids: [(0.0130182, 171.005); ]
  131. [ 2024-10-30-20-13-56 ] INFO Execution::_process(order_event): OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0136858, 10104.3); ], bids: [(0.0130182, 171.005); ]
  132. [ 1730319236802 ] MESSAGE: Execution::_process_limit_grid() to_cancel size: 2
  133. {"trace": "2e9a44db5eb347d7a11f0436c05a13b3.77.17303192368331341", "data": {}, "code": "50032", "message": "Order does not exist"}
  134. update_order(): 142467807569055 CANCEL
  135. {"trace": "2256121ca4cd4a7fa0c797dd25b7dcbe.68.17303192368354577", "data": {}, "code": "50032", "message": "Order does not exist"}
  136. update_order(): 142467807569056 CANCEL
  137. {"trace": "457a7e2cf0e6420594f57fe1c372c7df.65.17303192368380525", "data": {}, "code": "51011", "message": "param not match : size * price >=5"}
  138. update_order(): 142467807569057 NEW
  139. [ 2024-10-30-20-13-56 ] INFO Execution::_process(ws_event): WebSocketEvent: , event_time_micro=1730319236890243", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time_micro": 140737079404480, "order": {"symbol": "LAI_USDT", "coid": 142467807569058, "order_id": "793885057542174464", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.013686, "quantity": 10104.0, "filled_quantity": 0.0, "update_time_micro": 1730319236847000}}
  140. [{"symbol": "LAI_USDT", "coid": 142467807569058, "order_id": "793885057542174464", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 0.013686, "quantity": 10104.0, "filled_quantity": 0.0, "update_time_micro": 1730319236847000}
  141. update_order(): 142467807569058 FEED
  142. update_order(): 142467807569058 NEW
  143. {"trace": "e24320d83f494aa7acf93d86c347cf29.81.17303192368710060", "data": {}, "code": "50032", "message": "Order does not exist"}
  144. update_order(): 142467807569055 CANCEL
  145. {"trace": "b90a3babd0614984a5d7845117a92c07.68.17303192368702547", "data": {}, "code": "50032", "message": "Order does not exist"}
  146. update_order(): 142467807569056 CANCEL
  147. {"trace": "c184e56786b04631bc185deb4b7e4881.85.17303192368961507", "data": {}, "code": "50032", "message": "Order does not exist"}
  148. update_order(): 142467807569055 CANCEL
  149. {"trace": "2256121ca4cd4a7fa0c797dd25b7dcbe.64.17303192368989347", "data": {}, "code": "50032", "message": "Order does not exist"}
  150. update_order(): 142467807569056 CANCEL
  151. {"type": "SPOT", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "LAI", "free": 1123, "locked": 10104, "wallet": 0, "update_time_micro": 0}, {"asset": "STONKS", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}, {"asset": "USDT", "free": 2.53695, "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}]}
  152. {"asset": "LAI", "free": 1123, "locked": 10104, "wallet": 0, "update_time_micro": 0}
  153. {"asset": "STONKS", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}
  154. {"asset": "USDT", "free": 2.53695, "locked": 0, "wallet": 0, "update_time_micro": 0}
  155. {"asset": "CHAT_Delist", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}
  156. {"asset": "BTC", "free": 5e-05, "locked": 0, "wallet": 0, "update_time_micro": 0}
  157. {"asset": "ALGO", "free": 0.000221, "locked": 0, "wallet": 0, "update_time_micro": 0}
  158. basic_api::start_streams catch: raw string: pong
  159. basic_api::start_streams catch: raw string: pong
  160. [ 1730319246802 ] MESSAGE: cooldown OK -> _common_process pass follow
  161. [ 1730319246802 ] MESSAGE: calculate orders mid price = 0.012885
  162. [ 2024-10-30-20-14-06 ] DEBUG base balance: {"asset": "LAI", "free": 1123, "locked": 10104, "wallet": 0, "update_time_micro": 0}
  163. [ 2024-10-30-20-14-06 ] DEBUG quote balance: {"asset": "USDT", "free": 2.53695, "locked": 0, "wallet": 0, "update_time_micro": 0}
  164. [ 2024-10-30-20-14-06 ] DEBUG strategy result: OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0132071, 10104.3); ], bids: [(0.0125629, 177.202); ]
  165. {"ask_price": 0.013685, "ask_quantity": 10508, "bid_price": 0.012086, "bid_quantity": 579, "update_time_micro": 1730319246651000}
  166. [ 1730319246802 ] MESSAGE: MarketMakingManager::pnl_price_checker
  167. [ 1730319246802 ] MESSAGE: realised pnl = 0.000000 & upnl = -2.453854
  168. [ 1730319246802 ] MESSAGE: position base quantity = 1323.000000 pnl price = -0.741917
  169. [ 2024-10-30-20-14-06 ] DEBUG pnl risk checker result (case where price have not been adjusted): OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0132071, 10104.3); ], bids: [(0.0125629, 177.202); ]
  170. [ 2024-10-30-20-14-06 ] DEBUG overall risk checker res: OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0132071, 10104.3); ], bids: [(0.0125629, 177.202); ]
  171. [ 2024-10-30-20-14-06 ] INFO Execution::_process(order_event): OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0132071, 10104.3); ], bids: [(0.0125629, 177.202); ]
  172. [ 1730319246803 ] MESSAGE: Execution::_process_limit_grid() to_cancel size: 4
  173. {"trace": "b90a3babd0614984a5d7845117a92c07.75.17303192468432867", "data": {}, "code": "50032", "message": "Order does not exist"}
  174. update_order(): 142467807569055 CANCEL
  175. {"trace": "bee630817aeb4a73a1d66b6d7d171e1d.79.17303192468439145", "data": {}, "code": "50032", "message": "Order does not exist"}
  176. update_order(): 142467807569057 CANCEL
  177. {"trace": "5badf4265d7a48b09b297320b8f7b130.84.17303192468469885", "data": {}, "code": "50032", "message": "Order does not exist"}
  178. update_order(): 142467807569056 CANCEL
  179. update_order(): 142467807569058 CANCEL
  180. {"trace": "c184e56786b04631bc185deb4b7e4881.73.17303192468437135", "data": {}, "code": "50020", "message": "Balance not enough"}
  181. update_order(): 142467807569060 NEW
  182. {"trace": "2e9a44db5eb347d7a11f0436c05a13b3.71.17303192468530791", "data": {}, "code": "51011", "message": "param not match : size * price >=5"}
  183. update_order(): 142467807569059 NEW
  184. {"trace": "e17b23bdff6d490bbb8850abdd2c3d29.71.17303192468721006", "data": {}, "code": "50030", "message": "Order is already canceled"}
  185. update_order(): 142467807569058 CANCEL
  186. {"trace": "bee630817aeb4a73a1d66b6d7d171e1d.79.17303192468739153", "data": {}, "code": "50032", "message": "Order does not exist"}
  187. update_order(): 142467807569055 CANCEL
  188. {"trace": "bee630817aeb4a73a1d66b6d7d171e1d.82.17303192468722072", "data": {}, "code": "50032", "message": "Order does not exist"}
  189. update_order(): 142467807569057 CANCEL
  190. {"trace": "b90a3babd0614984a5d7845117a92c07.68.17303192468743879", "data": {}, "code": "50032", "message": "Order does not exist"}
  191. update_order(): 142467807569056 CANCEL
  192. [ 2024-10-30-20-14-06 ] INFO Execution::_process(ws_event): WebSocketEvent: , event_time_micro=1730319246907129", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time_micro": 140737037461440, "order": {"symbol": "LAI_USDT", "coid": 142467807569058, "order_id": "793885057542174464", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.013686, "quantity": 10104.0, "filled_quantity": 0.0, "update_time_micro": 1730319246878000}}
  193. [{"symbol": "LAI_USDT", "coid": 142467807569058, "order_id": "793885057542174464", "type": "LIMIT", "side": "SELL", "status": "CANCELED", "price": 0.013686, "quantity": 10104.0, "filled_quantity": 0.0, "update_time_micro": 1730319246878000}
  194. update_order(): 142467807569058 FEED
  195. {"trace": "457a7e2cf0e6420594f57fe1c372c7df.68.17303192468975098", "data": {}, "code": "50032", "message": "Order does not exist"}
  196. update_order(): 142467807569057 CANCEL
  197. {"trace": "afd21ae56bf8430fad92f7e642d961ad.84.17303192468982073", "data": {}, "code": "50032", "message": "Order does not exist"}
  198. update_order(): 142467807569055 CANCEL
  199. {"trace": "2e9a44db5eb347d7a11f0436c05a13b3.80.17303192469001390", "data": {}, "code": "50030", "message": "Order is already canceled"}
  200. update_order(): 142467807569058 CANCEL
  201. {"trace": "2256121ca4cd4a7fa0c797dd25b7dcbe.71.17303192469009719", "data": {}, "code": "50032", "message": "Order does not exist"}
  202. update_order(): 142467807569056 CANCEL
  203. {"type": "SPOT", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "LAI", "free": 11227, "locked": 0, "wallet": 0, "update_time_micro": 0}, {"asset": "STONKS", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}, {"asset": "USDT", "free": 2.53695, "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}]}
  204. {"asset": "LAI", "free": 11227, "locked": 0, "wallet": 0, "update_time_micro": 0}
  205. {"asset": "STONKS", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}
  206. {"asset": "USDT", "free": 2.53695, "locked": 0, "wallet": 0, "update_time_micro": 0}
  207. {"asset": "CHAT_Delist", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}
  208. {"asset": "BTC", "free": 5e-05, "locked": 0, "wallet": 0, "update_time_micro": 0}
  209. {"asset": "ALGO", "free": 0.000221, "locked": 0, "wallet": 0, "update_time_micro": 0}
  210. [ 1730319256803 ] MESSAGE: cooldown OK -> _common_process pass follow
  211. [ 1730319256803 ] MESSAGE: calculate orders mid price = 0.012885
  212. [ 2024-10-30-20-14-16 ] DEBUG base balance: {"asset": "LAI", "free": 11227, "locked": 0, "wallet": 0, "update_time_micro": 0}
  213. [ 2024-10-30-20-14-16 ] DEBUG quote balance: {"asset": "USDT", "free": 2.53695, "locked": 0, "wallet": 0, "update_time_micro": 0}
  214. [ 2024-10-30-20-14-16 ] DEBUG strategy result: OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0132071, 10104.3); ], bids: [(0.0125629, 177.202); ]
  215. {"ask_price": 0.013685, "ask_quantity": 26283, "bid_price": 0.012086, "bid_quantity": 579, "update_time_micro": 1730319255233000}
  216. [ 1730319256803 ] MESSAGE: MarketMakingManager::pnl_price_checker
  217. [ 1730319256803 ] MESSAGE: realised pnl = 0.000000 & upnl = -2.453854
  218. [ 1730319256803 ] MESSAGE: position base quantity = 1323.000000 pnl price = -0.741917
  219. [ 2024-10-30-20-14-16 ] DEBUG pnl risk checker result (case where price have not been adjusted): OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0132071, 10104.3); ], bids: [(0.0125629, 177.202); ]
  220. [ 2024-10-30-20-14-16 ] DEBUG overall risk checker res: OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0132071, 10104.3); ], bids: [(0.0125629, 177.202); ]
  221. [ 2024-10-30-20-14-16 ] INFO Execution::_process(order_event): OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0132071, 10104.3); ], bids: [(0.0125629, 177.202); ]
  222. [ 1730319256804 ] MESSAGE: Execution::_process_limit_grid() to_cancel size: 3
  223. {"trace": "c184e56786b04631bc185deb4b7e4881.72.17303192568368802", "data": {}, "code": "50032", "message": "Order does not exist"}
  224. update_order(): 142467807569057 CANCEL
  225. {"trace": "5ca6c783416e4ed3bcef5a4dc0a92ed5.84.17303192568388454", "data": {}, "code": "50032", "message": "Order does not exist"}
  226. update_order(): 142467807569055 CANCEL
  227. {"trace": "457a7e2cf0e6420594f57fe1c372c7df.82.17303192568380698", "data": {}, "code": "50032", "message": "Order does not exist"}
  228. update_order(): 142467807569056 CANCEL
  229. {"trace": "e17b23bdff6d490bbb8850abdd2c3d29.60.17303192568691989", "data": {}, "code": "50032", "message": "Order does not exist"}
  230. update_order(): 142467807569056 CANCEL
  231. {"trace": "afd21ae56bf8430fad92f7e642d961ad.65.17303192568715015", "data": {}, "code": "50032", "message": "Order does not exist"}
  232. update_order(): 142467807569055 CANCEL
  233. {"trace": "b90a3babd0614984a5d7845117a92c07.64.17303192568700621", "data": {}, "code": "50032", "message": "Order does not exist"}
  234. update_order(): 142467807569057 CANCEL
  235. {"trace": "2256121ca4cd4a7fa0c797dd25b7dcbe.71.17303192568991277", "data": {}, "code": "50032", "message": "Order does not exist"}
  236. update_order(): 142467807569055 CANCEL
  237. {"trace": "5badf4265d7a48b09b297320b8f7b130.84.17303192568961321", "data": {}, "code": "50032", "message": "Order does not exist"}
  238. update_order(): 142467807569056 CANCEL
  239. {"trace": "bee630817aeb4a73a1d66b6d7d171e1d.86.17303192568996521", "data": {}, "code": "50032", "message": "Order does not exist"}
  240. update_order(): 142467807569057 CANCEL
  241. basic_api::start_streams catch: raw string: pong
  242. basic_api::start_streams catch: raw string: pong
  243. {"type": "SPOT", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "LAI", "free": 11227, "locked": 0, "wallet": 0, "update_time_micro": 0}, {"asset": "STONKS", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}, {"asset": "USDT", "free": 2.53695, "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}]}
  244. {"asset": "LAI", "free": 11227, "locked": 0, "wallet": 0, "update_time_micro": 0}
  245. {"asset": "STONKS", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}
  246. {"asset": "USDT", "free": 2.53695, "locked": 0, "wallet": 0, "update_time_micro": 0}
  247. {"asset": "CHAT_Delist", "free": 0, "locked": 0, "wallet": 0, "update_time_micro": 0}
  248. {"asset": "BTC", "free": 5e-05, "locked": 0, "wallet": 0, "update_time_micro": 0}
  249. {"asset": "ALGO", "free": 0.000221, "locked": 0, "wallet": 0, "update_time_micro": 0}
  250. [ 1730319266804 ] MESSAGE: cooldown OK -> _common_process pass follow
  251. [ 1730319266804 ] MESSAGE: calculate orders mid price = 0.012885
  252. [ 2024-10-30-20-14-26 ] DEBUG base balance: {"asset": "LAI", "free": 11227, "locked": 0, "wallet": 0, "update_time_micro": 0}
  253. [ 2024-10-30-20-14-26 ] DEBUG quote balance: {"asset": "USDT", "free": 2.53695, "locked": 0, "wallet": 0, "update_time_micro": 0}
  254. [ 2024-10-30-20-14-26 ] DEBUG strategy result: OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0132071, 10104.3); ], bids: [(0.0125629, 177.202); ]
  255. {"ask_price": 0.013685, "ask_quantity": 10508, "bid_price": 0.012086, "bid_quantity": 579, "update_time_micro": 1730319265109000}
  256. [ 1730319266805 ] MESSAGE: MarketMakingManager::pnl_price_checker
  257. [ 1730319266805 ] MESSAGE: realised pnl = 0.000000 & upnl = -2.453854
  258. [ 1730319266805 ] MESSAGE: position base quantity = 1323.000000 pnl price = -0.741917
  259. [ 2024-10-30-20-14-26 ] DEBUG pnl risk checker result (case where price have not been adjusted): OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0132071, 10104.3); ], bids: [(0.0125629, 177.202); ]
  260. [ 2024-10-30-20-14-26 ] DEBUG overall risk checker res: OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0132071, 10104.3); ], bids: [(0.0125629, 177.202); ]
  261. [ 2024-10-30-20-14-26 ] INFO Execution::_process(order_event): OrderEvent: symbol="LAI_USDT", type="LIMIT_GRID", asks: [(0.0132071, 10104.3); ], bids: [(0.0125629, 177.202); ]
  262. [ 1730319266805 ] MESSAGE: Execution::_process_limit_grid() to_cancel size: 3
  263. {"trace": "bee630817aeb4a73a1d66b6d7d171e1d.86.17303192668387449", "data": {}, "code": "50032", "message": "Order does not exist"}
  264. update_order(): 142467807569057 CANCEL
  265. {"trace": "e24320d83f494aa7acf93d86c347cf29.71.17303192668408781", "data": {}, "code": "50032", "message": "Order does not exist"}
  266. update_order(): 142467807569055 CANCEL
  267. {"trace": "bee630817aeb4a73a1d66b6d7d171e1d.64.17303192668402006", "data": {}, "code": "50032", "message": "Order does not exist"}
  268. update_order(): 142467807569056 CANCEL
  269. {"trace": "a89b7cf4118c42e4bf69a4e2ce2d914f.78.17303192668695641", "data": {}, "code": "50032", "message": "Order does not exist"}
  270. update_order(): 142467807569055 CANCEL
  271. {"trace": "b90a3babd0614984a5d7845117a92c07.64.17303192668701687", "data": {}, "code": "50032", "message": "Order does not exist"}
  272. update_order(): 142467807569057 CANCEL
  273. {"trace": "2e9a44db5eb347d7a11f0436c05a13b3.69.17303192668711477", "data": {}, "code": "50032", "message": "Order does not exist"}
  274. update_order(): 142467807569056 CANCEL
  275. {"trace": "5ca6c783416e4ed3bcef5a4dc0a92ed5.74.17303192668998614", "data": {}, "code": "50032", "message": "Order does not exist"}
  276. update_order(): 142467807569055 CANCEL
  277. {"trace": "e24320d83f494aa7acf93d86c347cf29.63.17303192669044073", "data": {}, "code": "50032", "message": "Order does not exist"}
  278. update_order(): 142467807569057 CANCEL
  279. {"trace": "c184e56786b04631bc185deb4b7e4881.78.17303192669028446", "data": {}, "code": "50032", "message": "Order does not exist"}
  280. ^C
  281. Thread 1 "test" received signal SIGINT, Interrupt.
  282. __futex_abstimed_wait_common64 (private=128, cancel=true, abstime=0x0, op=265, expected=355845, futex_word=0x7fffe6600910) at ./nptl/futex-internal.c:57
  283. 57 ./nptl/futex-internal.c: No such file or directory.
  284. (gdb)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement