Advertisement
den4ik2003

Untitled

Jul 4th, 2024
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.60 KB | None | 0 0
  1. ubuntu@ip-172-31-31-23:~/dmm_strat/solutions/test$ ./test taker_launch.config
  2. api keys: 2403047dac883ff20b6cb32cc56b2a17a8bcbb0d 292b4e5ce79770c283786adf3107a2e896ec0a3bfe4767a080a634961edfac30
  3. API 0x640bbfc5a600
  4. run forever balance 0x640bbfc5a600
  5. {"type": "SPOT", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "LAI", "free": 3464, "locked": 0, "wallet": 0, "update_time": 0}, {"asset": "STONKS", "free": 0, "locked": 0, "wallet": 0, "update_time": 0}, {"asset": "USDT", "free": 11.1106, "locked": 0, "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 0x640bbfc5a790
  7. balance indicator: 0x640bbfc5ea70 0x640bbfc5a600
  8. {"asset": "LAI", "free": 3464, "locked": 0, "wallet": 0, "update_time": 0}
  9. {"asset": "STONKS", "free": 0, "locked": 0, "wallet": 0, "update_time": 0}
  10. {"asset": "USDT", "free": 11.1106, "locked": 0, "wallet": 0, "update_time": 0}
  11. {"asset": "CHAT", "free": 0, "locked": 0, "wallet": 0, "update_time": 0}
  12. {"asset": "ALGO", "free": 0.000221, "locked": 0, "wallet": 0, "update_time": 0}
  13. {"symbols": [{"symbol": "LAI_USDT", "market": "BITMART_SPOT", "account": "TAKER"}], "name": "VANILLA"}
  14. {"op": "login", "args": ["2403047dac883ff20b6cb32cc56b2a17a8bcbb0d", "1720107706156", "f022e95546fcd5ac5158f6dbabffb30d79f3d24b9f3e00a1cc6ee4d2805bd4e8"]}
  15. {"op": "login", "args": ["2403047dac883ff20b6cb32cc56b2a17a8bcbb0d", "1720107706165", "385e041b2356b87dbb52713ec8427f3bd70247c53663b8269a964dfa0209b65d"]}
  16. {"args": ["spot/depth50:LAI_USDT", "spot/depth50:LAI_USDT"], "op": "subscribe"}
  17. {"args": ["spot/depth50:LAI_USDT", "spot/depth50:LAI_USDT"], "op": "subscribe"}
  18. {"op": "subscribe", "args": ["spot/user/balance:BALANCE_UPDATE", "spot/user/order:LAI_USDT"]}
  19. {"op": "subscribe", "args": ["spot/user/balance:BALANCE_UPDATE", "spot/user/order:LAI_USDT"]}
  20. ping
  21. ping
  22. [ 1720107706850 ] MESSAGE: starts taker test!
  23. [ 2024-07-04-15-41-46 ] DEBUG taker test completed: OrderEvent: delta=1.71998e+11, symbol="LAI_USDT", type="TAKER_BUY", amount: 6
  24. [ 2024-07-04-15-41-46 ] INFO : OrderEvent: delta=1.71998e+11, symbol="LAI_USDT", type="TAKER_BUY", amount: 6
  25. [ 2024-07-04-15-41-46 ] DEBUG ! new: {"symbol": "LAI_USDT", "amount": 6, "client_order_id": 1720107705894, "type": "MARKET", "side": "BUY"}
  26. [ 2024-07-04-15-41-46 ] DEBUG ? new: {"symbol": "LAI_USDT", "coid": 1720107705894, "order_id": "622564014585426688", "type": "MARKET", "side": "BUY", "status": "NEW", "update_time": 1720107706985}
  27. {"type": "market", "symbol": "LAI_USDT", "state": "4", "price": "0", "size": "0", "order_type": "0", "order_state": "new", "order_mode": "spot", "client_order_id": "1720107705894", "filled_notional": "0", "dealFee": "0", "create_time": "1720107706939", "order_id": "622564014585426688", "update_time": "1720107706939", "entrust_type": "NORMAL", "filled_size": "0", "last_fill_count": "0", "last_fill_price": "0", "side": "buy", "notional": "5.985000000000000000000000000000", "last_fill_time": "0", "ms_t": "1720107706939", "margin_trading": "0"}
  28. [ 2024-07-04-15-41-47 ] INFO : WebSocketEvent: delta=1.72011e+11, event_time=1720107707001", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 538, "order": {"symbol": "LAI_USDT", "coid": 1720107705894, "order_id": "622564014585426688", "type": "MARKET", "side": "BUY", "status": "NEW", "price": 0.000000, "quantity": 0.000000, "filled_quantity": 0.000000, "update_time": 1720107706939}}
  29. [ 1720107707001 ] MESSAGE: market
  30. [ 2024-07-04-15-41-47 ] DEBUG Event order: : {"symbol": "LAI_USDT", "coid": 1720107705894, "order_id": "622564014585426688", "type": "MARKET", "side": "BUY", "status": "NEW", "price": 0.000000, "quantity": 0.000000, "filled_quantity": 0.000000, "update_time": 1720107706939}
  31. [ 2024-07-04-15-41-47 ] DEBUG old order: : {"symbol": "LAI_USDT", "coid": 1720107705894, "order_id": "", "type": "MARKET", "side": "BUY", "status": "PENDING", "update_time": 0}
  32. [ 1720107707002 ] MESSAGE: (execution) filled quantity is not initialized
  33. [ 1720107707002 ] MESSAGE: (execution) price is not initialized
  34. [ 1720107707002 ] MESSAGE: ! LAI_USDT
  35. {"event_type": "TRANSACTION_COMPLETED", "event_time": "1720107706987", "balance_details": [{"fz_bal": "0.000000000000000000000000000000", "ccy": "LAI", "av_bal": "3896.000000000000000000000000000000"}]}
  36. {"event_type": "TRANSACTION_COMPLETED", "event_time": "1720107706988", "balance_details": [{"fz_bal": "0.007038960000000000000000000000", "ccy": "USDT", "av_bal": "5.110597466700000000000000000000"}]}
  37. {"type": "market", "symbol": "LAI_USDT", "state": "5", "price": "0.000000000000000000000000000000", "size": "0.000000000000000000000000000000", "order_type": "0", "order_state": "partially_filled", "order_mode": "spot", "client_order_id": "1720107705894", "filled_notional": "5.978016000000000000000000000000", "order_id": "622564014585426688", "create_time": "1720107706939", "dealFee": "0.0149450400", "detail_id": "622564015150870272", "update_time": "1720107706992", "entrust_type": "NORMAL", "exec_type": "T", "filled_size": "432.000000000000000000000000000000", "last_fill_count": "432", "last_fill_price": "0.013838", "side": "buy", "notional": "", "last_fill_time": "1720107706973", "ms_t": "1720107706939", "margin_trading": "0"}
  38. [ 2024-07-04-15-41-47 ] INFO : WebSocketEvent: delta=1.72011e+11, event_time=1720107707025", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 726, "order": {"symbol": "LAI_USDT", "coid": 1720107705894, "order_id": "622564014585426688", "type": "MARKET", "side": "BUY", "status": "PARTIALLY_FILLED", "price": 0.000000, "quantity": 0.000000, "filled_quantity": 432.000000, "update_time": 1720107706992}}
  39. [ 1720107707026 ] MESSAGE: market
  40. [ 2024-07-04-15-41-47 ] DEBUG Event order: : {"symbol": "LAI_USDT", "coid": 1720107705894, "order_id": "622564014585426688", "type": "MARKET", "side": "BUY", "status": "PARTIALLY_FILLED", "price": 0.000000, "quantity": 0.000000, "filled_quantity": 432.000000, "update_time": 1720107706992}
  41. [ 2024-07-04-15-41-47 ] DEBUG old order: : {"symbol": "LAI_USDT", "coid": 1720107705894, "order_id": "622564014585426688", "type": "MARKET", "side": "BUY", "status": "NEW", "price": 0.000000, "quantity": 0.000000, "filled_quantity": 0.000000, "update_time": 1720107706939}
  42. [ 1720107707026 ] MESSAGE: ! LAI_USDT
  43. {"type": "market", "symbol": "LAI_USDT", "state": "12", "price": "0.000000000000000000000000000000", "size": "0.000000000000000000000000000000", "order_type": "0", "order_state": "partially_canceled", "order_mode": "spot", "client_order_id": "1720107705894", "filled_notional": "5.978016000000000000000000000000", "dealFee": "0", "create_time": "1720107706939", "order_id": "622564014585426688", "update_time": "1720107708004", "entrust_type": "NORMAL", "filled_size": "432.000000000000000000000000000000", "last_fill_count": "0", "last_fill_price": "0", "side": "buy", "notional": "", "last_fill_time": "0", "ms_t": "1720107706939", "margin_trading": "0"}
  44. [ 2024-07-04-15-41-48 ] INFO : WebSocketEvent: delta=1.72011e+11, event_time=1720107708031", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 648, "order": {"symbol": "LAI_USDT", "coid": 1720107705894, "order_id": "622564014585426688", "type": "MARKET", "side": "BUY", "status": "CANCELED", "price": 0.000000, "quantity": 0.000000, "filled_quantity": 432.000000, "update_time": 1720107708004}}
  45. [ 1720107708031 ] MESSAGE: market
  46. [ 2024-07-04-15-41-48 ] DEBUG Event order: : {"symbol": "LAI_USDT", "coid": 1720107705894, "order_id": "622564014585426688", "type": "MARKET", "side": "BUY", "status": "CANCELED", "price": 0.000000, "quantity": 0.000000, "filled_quantity": 432.000000, "update_time": 1720107708004}
  47. [ 2024-07-04-15-41-48 ] DEBUG old order: : {"symbol": "LAI_USDT", "coid": 1720107705894, "order_id": "622564014585426688", "type": "MARKET", "side": "BUY", "status": "PARTIALLY_FILLED", "price": 0.000000, "quantity": 0.000000, "filled_quantity": 432.000000, "update_time": 1720107706992}
  48. [ 1720107708032 ] MESSAGE: erase
  49. [ 1720107708032 ] MESSAGE: ! LAI_USDT
  50. balance indicator: 0x640bbfc5ea70 0x640bbfc5a600
  51. {"asset": "LAI", "free": 3896, "locked": 0, "wallet": 0, "update_time": 0}
  52. {"asset": "STONKS", "free": 0, "locked": 0, "wallet": 0, "update_time": 0}
  53. {"asset": "USDT", "free": 5.11764, "locked": 0, "wallet": 0, "update_time": 0}
  54. {"asset": "CHAT", "free": 0, "locked": 0, "wallet": 0, "update_time": 0}
  55. {"asset": "ALGO", "free": 0.000221, "locked": 0, "wallet": 0, "update_time": 0}
  56. ping
  57. ^C
  58. ubuntu@ip-172-31-31-23:~/dmm_strat/solutions/test$ cmake --build .
  59. Consolidate compiler generated dependencies of target test
  60. [ 2%] Building CXX object CMakeFiles/test.dir/home/ubuntu/connector_debug/parsing/bitmart_spot/src/api.cpp.o
  61. /home/ubuntu/connector_debug/parsing/bitmart_spot/src/api.cpp:492:26: warning: multi-character character constant [-Wmultichar]
  62. 492 | std::cout << '\n\n' << res.order.price << '\n\n';
  63. | ^~~~~~
  64. /home/ubuntu/connector_debug/parsing/bitmart_spot/src/api.cpp:492:55: warning: multi-character character constant [-Wmultichar]
  65. 492 | std::cout << '\n\n' << res.order.price << '\n\n';
  66. | ^~~~~~
  67. /home/ubuntu/connector_debug/parsing/bitmart_spot/src/api.cpp:494:26: warning: character constant too long for its type
  68. 494 | std::cout << '\n\n after ' << res.order.price << '\n\n';
  69. | ^~~~~~~~~~~~~
  70. /home/ubuntu/connector_debug/parsing/bitmart_spot/src/api.cpp:494:62: warning: multi-character character constant [-Wmultichar]
  71. 494 | std::cout << '\n\n after ' << res.order.price << '\n\n';
  72. | ^~~~~~
  73. [ 5%] Linking CXX executable test
  74. [100%] Built target test
  75. ubuntu@ip-172-31-31-23:~/dmm_strat/solutions/test$ ./test taker_launch.config
  76. api keys: 2403047dac883ff20b6cb32cc56b2a17a8bcbb0d 292b4e5ce79770c283786adf3107a2e896ec0a3bfe4767a080a634961edfac30
  77. API 0x5a6ce8406600
  78. run forever balance 0x5a6ce8406600
  79. {"type": "SPOT", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "LAI", "free": 3896, "locked": 0, "wallet": 0, "update_time": 0}, {"asset": "STONKS", "free": 0, "locked": 0, "wallet": 0, "update_time": 0}, {"asset": "USDT", "free": 5.11764, "locked": 0, "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}]}
  80. get balance indicator 0x5a6ce8406790
  81. balance indicator: 0x5a6ce840aa70 0x5a6ce8406600
  82. {"symbols": [{"symbol": "LAI_USDT", "market": "BITMART_SPOT", "account": "TAKER"}], "name": "VANILLA"}
  83. {"asset": "LAI", "free": 3896, "locked": 0, "wallet": 0, "update_time": 0}
  84. {"asset": "STONKS", "free": 0, "locked": 0, "wallet": 0, "update_time": 0}
  85. {"asset": "USDT", "free": 5.11764, "locked": 0, "wallet": 0, "update_time": 0}
  86. {"asset": "CHAT", "free": 0, "locked": 0, "wallet": 0, "update_time": 0}
  87. {"asset": "ALGO", "free": 0.000221, "locked": 0, "wallet": 0, "update_time": 0}
  88. {"op": "login", "args": ["2403047dac883ff20b6cb32cc56b2a17a8bcbb0d", "1720108457213", "39e852fc3fa0a659861998afb54e186f8501b56e4929c6347fef1480fcba4049"]}
  89. {"op": "login", "args": ["2403047dac883ff20b6cb32cc56b2a17a8bcbb0d", "1720108457249", "48bde9b1050535fffa0168e8fbd0b2f20198916e8cc71b274003d519042495d2"]}
  90. {"args": ["spot/depth50:LAI_USDT", "spot/depth50:LAI_USDT"], "op": "subscribe"}
  91. {"args": ["spot/depth50:LAI_USDT", "spot/depth50:LAI_USDT"], "op": "subscribe"}
  92. {"op": "subscribe", "args": ["spot/user/balance:BALANCE_UPDATE", "spot/user/order:LAI_USDT"]}
  93. {"op": "subscribe", "args": ["spot/user/balance:BALANCE_UPDATE", "spot/user/order:LAI_USDT"]}
  94. ping
  95. [ 1720108457898 ] MESSAGE: starts taker test!
  96. [ 2024-07-04-15-54-17 ] DEBUG taker test completed: OrderEvent: delta=1.71998e+11, symbol="LAI_USDT", type="TAKER_SELL", quantity: 430.509
  97. [ 2024-07-04-15-54-17 ] INFO : OrderEvent: delta=1.71998e+11, symbol="LAI_USDT", type="TAKER_SELL", quantity: 430.509
  98. [ 2024-07-04-15-54-17 ] DEBUG ! new: {"symbol": "LAI_USDT", "quantity": 430.500000, "client_order_id": 1720108456974, "type": "MARKET", "side": "SELL"}
  99. ping
  100. [ 2024-07-04-15-54-18 ] DEBUG ? new: {"symbol": "LAI_USDT", "coid": 1720108456974, "order_id": "622576614744012033", "type": "MARKET", "side": "SELL", "status": "NEW", "quantity": 430.500000, "update_time": 1720108458040}
  101. {"type": "market", "symbol": "LAI_USDT", "state": "4", "price": "0", "size": "430", "order_type": "0", "order_state": "new", "order_mode": "spot", "client_order_id": "1720108456974", "filled_notional": "0", "dealFee": "0", "create_time": "1720108457967", "order_id": "622576614744012033", "update_time": "1720108457967", "entrust_type": "NORMAL", "filled_size": "0", "last_fill_count": "0", "last_fill_price": "0", "side": "sell", "notional": "0", "last_fill_time": "0", "ms_t": "1720108457967", "margin_trading": "0"}
  102. [ 2024-07-04-15-54-18 ] INFO : WebSocketEvent: delta=1.72011e+11, event_time=1720108458042", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 510, "order": {"symbol": "LAI_USDT", "coid": 1720108456974, "order_id": "622576614744012033", "type": "MARKET", "side": "SELL", "status": "NEW", "price": 0.000000, "quantity": 430.000000, "filled_quantity": 0.000000, "update_time": 1720108457967}}
  103. [ 1720108458042 ] MESSAGE: market
  104. [ 2024-07-04-15-54-18 ] DEBUG Event order: : {"symbol": "LAI_USDT", "coid": 1720108456974, "order_id": "622576614744012033", "type": "MARKET", "side": "SELL", "status": "NEW", "price": 0.000000, "quantity": 430.000000, "filled_quantity": 0.000000, "update_time": 1720108457967}
  105. [ 2024-07-04-15-54-18 ] DEBUG old order: : {"symbol": "LAI_USDT", "coid": 1720108456974, "order_id": "", "type": "MARKET", "side": "SELL", "status": "PENDING", "quantity": 430.500000, "update_time": 0}
  106. [ 1720108458043 ] MESSAGE: (execution) filled quantity is not initialized
  107. [ 1720108458043 ] MESSAGE: (execution) price is not initialized
  108. [ 1720108458043 ] MESSAGE: ! LAI_USDT
  109. {"event_type": "TRANSACTION_COMPLETED", "event_time": "1720108458038", "balance_details": [{"fz_bal": "0.000000000000000000000000000000", "ccy": "LAI", "av_bal": "3466.000000000000000000000000000000"}]}
  110. {"event_type": "TRANSACTION_COMPLETED", "event_time": "1720108458038", "balance_details": [{"fz_bal": "0.000000000000000000000000000000", "ccy": "USDT", "av_bal": "11.094277376700000000000000000000"}]}
  111. {"type": "market", "symbol": "LAI_USDT", "state": "6", "price": "0.000000000000000000000000000000", "size": "430.000000000000000000000000000000", "order_type": "0", "order_state": "filled", "order_mode": "spot", "client_order_id": "1720108456974", "filled_notional": "5.991620000000000000000000000000", "order_id": "622576614744012033", "create_time": "1720108457967", "dealFee": "0.0149790500", "detail_id": "622576615700967168", "update_time": "1720108458043", "entrust_type": "NORMAL", "exec_type": "T", "filled_size": "430.000000000000000000000000000000", "last_fill_count": "430", "last_fill_price": "0.013934", "side": "sell", "notional": "", "last_fill_time": "1720108458024", "ms_t": "1720108457967", "margin_trading": "0"}
  112. 25700.000000257019528054080.0139342570[ 2024-07-04-15-54-18 ] INFO : WebSocketEvent: delta=1.72011e+11, event_time=1720108458079", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 719, "order": {"symbol": "LAI_USDT", "coid": 1720108456974, "order_id": "622576614744012033", "type": "MARKET", "side": "SELL", "status": "FILLED", "price": 0.013934, "quantity": 430.000000, "filled_quantity": 430.000000, "update_time": 1720108458043}}
  113. [ 1720108458080 ] MESSAGE: market
  114. [ 2024-07-04-15-54-18 ] DEBUG Event order: : {"symbol": "LAI_USDT", "coid": 1720108456974, "order_id": "622576614744012033", "type": "MARKET", "side": "SELL", "status": "FILLED", "price": 0.013934, "quantity": 430.000000, "filled_quantity": 430.000000, "update_time": 1720108458043}
  115. [ 2024-07-04-15-54-18 ] DEBUG old order: : {"symbol": "LAI_USDT", "coid": 1720108456974, "order_id": "622576614744012033", "type": "MARKET", "side": "SELL", "status": "NEW", "price": 0.000000, "quantity": 430.000000, "filled_quantity": 0.000000, "update_time": 1720108457967}
  116. $$$ {"symbol": "LAI_USDT", "price": 0.013934, "quantity": 430.000000, "trade_side": SELL, "trade_time": 1720108458043}
  117. [ 2024-07-04-15-54-18 ] INFO Open position: : {"symbol": "LAI_USDT", "price": 0.013934, "quantity": 430.000000, "trade_side": SELL, "trade_time": 1720108458043}
  118. [ 2024-07-04-15-54-18 ] INFO new position: {"symbol": "LAI_USDT", "entry_price": 0.013934, "quantity": -430, "position_quote": -5.99162}
  119. [ 1720108458081 ] MESSAGE: erase
  120. [ 1720108458081 ] MESSAGE: ! LAI_USDT
  121. ^C
  122. ubuntu@ip-172-31-31-23:~/dmm_strat/solutions/test$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement