Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ubuntu@ip-172-31-31-23:~/dmm_strat/solutions/test$ ./test taker_launch.config
- api keys: 2403047dac883ff20b6cb32cc56b2a17a8bcbb0d 292b4e5ce79770c283786adf3107a2e896ec0a3bfe4767a080a634961edfac30
- API 0x640bbfc5a600
- run forever balance 0x640bbfc5a600
- {"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}]}
- get balance indicator 0x640bbfc5a790
- balance indicator: 0x640bbfc5ea70 0x640bbfc5a600
- {"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}
- {"symbols": [{"symbol": "LAI_USDT", "market": "BITMART_SPOT", "account": "TAKER"}], "name": "VANILLA"}
- {"op": "login", "args": ["2403047dac883ff20b6cb32cc56b2a17a8bcbb0d", "1720107706156", "f022e95546fcd5ac5158f6dbabffb30d79f3d24b9f3e00a1cc6ee4d2805bd4e8"]}
- {"op": "login", "args": ["2403047dac883ff20b6cb32cc56b2a17a8bcbb0d", "1720107706165", "385e041b2356b87dbb52713ec8427f3bd70247c53663b8269a964dfa0209b65d"]}
- {"args": ["spot/depth50:LAI_USDT", "spot/depth50:LAI_USDT"], "op": "subscribe"}
- {"args": ["spot/depth50:LAI_USDT", "spot/depth50:LAI_USDT"], "op": "subscribe"}
- {"op": "subscribe", "args": ["spot/user/balance:BALANCE_UPDATE", "spot/user/order:LAI_USDT"]}
- {"op": "subscribe", "args": ["spot/user/balance:BALANCE_UPDATE", "spot/user/order:LAI_USDT"]}
- ping
- ping
- [ 1720107706850 ] MESSAGE: starts taker test!
- [ 2024-07-04-15-41-46 ] DEBUG taker test completed: OrderEvent: delta=1.71998e+11, symbol="LAI_USDT", type="TAKER_BUY", amount: 6
- [ 2024-07-04-15-41-46 ] INFO : OrderEvent: delta=1.71998e+11, symbol="LAI_USDT", type="TAKER_BUY", amount: 6
- [ 2024-07-04-15-41-46 ] DEBUG ! new: {"symbol": "LAI_USDT", "amount": 6, "client_order_id": 1720107705894, "type": "MARKET", "side": "BUY"}
- [ 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}
- {"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"}
- [ 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}}
- [ 1720107707001 ] MESSAGE: market
- [ 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}
- [ 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}
- [ 1720107707002 ] MESSAGE: (execution) filled quantity is not initialized
- [ 1720107707002 ] MESSAGE: (execution) price is not initialized
- [ 1720107707002 ] MESSAGE: ! LAI_USDT
- {"event_type": "TRANSACTION_COMPLETED", "event_time": "1720107706987", "balance_details": [{"fz_bal": "0.000000000000000000000000000000", "ccy": "LAI", "av_bal": "3896.000000000000000000000000000000"}]}
- {"event_type": "TRANSACTION_COMPLETED", "event_time": "1720107706988", "balance_details": [{"fz_bal": "0.007038960000000000000000000000", "ccy": "USDT", "av_bal": "5.110597466700000000000000000000"}]}
- {"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"}
- [ 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}}
- [ 1720107707026 ] MESSAGE: market
- [ 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}
- [ 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}
- [ 1720107707026 ] MESSAGE: ! LAI_USDT
- {"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"}
- [ 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}}
- [ 1720107708031 ] MESSAGE: market
- [ 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}
- [ 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}
- [ 1720107708032 ] MESSAGE: erase
- [ 1720107708032 ] MESSAGE: ! LAI_USDT
- balance indicator: 0x640bbfc5ea70 0x640bbfc5a600
- {"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}
- ping
- ^C
- ubuntu@ip-172-31-31-23:~/dmm_strat/solutions/test$ cmake --build .
- Consolidate compiler generated dependencies of target test
- [ 2%] Building CXX object CMakeFiles/test.dir/home/ubuntu/connector_debug/parsing/bitmart_spot/src/api.cpp.o
- /home/ubuntu/connector_debug/parsing/bitmart_spot/src/api.cpp:492:26: warning: multi-character character constant [-Wmultichar]
- 492 | std::cout << '\n\n' << res.order.price << '\n\n';
- | ^~~~~~
- /home/ubuntu/connector_debug/parsing/bitmart_spot/src/api.cpp:492:55: warning: multi-character character constant [-Wmultichar]
- 492 | std::cout << '\n\n' << res.order.price << '\n\n';
- | ^~~~~~
- /home/ubuntu/connector_debug/parsing/bitmart_spot/src/api.cpp:494:26: warning: character constant too long for its type
- 494 | std::cout << '\n\n after ' << res.order.price << '\n\n';
- | ^~~~~~~~~~~~~
- /home/ubuntu/connector_debug/parsing/bitmart_spot/src/api.cpp:494:62: warning: multi-character character constant [-Wmultichar]
- 494 | std::cout << '\n\n after ' << res.order.price << '\n\n';
- | ^~~~~~
- [ 5%] Linking CXX executable test
- [100%] Built target test
- ubuntu@ip-172-31-31-23:~/dmm_strat/solutions/test$ ./test taker_launch.config
- api keys: 2403047dac883ff20b6cb32cc56b2a17a8bcbb0d 292b4e5ce79770c283786adf3107a2e896ec0a3bfe4767a080a634961edfac30
- API 0x5a6ce8406600
- run forever balance 0x5a6ce8406600
- {"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}]}
- get balance indicator 0x5a6ce8406790
- balance indicator: 0x5a6ce840aa70 0x5a6ce8406600
- {"symbols": [{"symbol": "LAI_USDT", "market": "BITMART_SPOT", "account": "TAKER"}], "name": "VANILLA"}
- {"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}
- {"op": "login", "args": ["2403047dac883ff20b6cb32cc56b2a17a8bcbb0d", "1720108457213", "39e852fc3fa0a659861998afb54e186f8501b56e4929c6347fef1480fcba4049"]}
- {"op": "login", "args": ["2403047dac883ff20b6cb32cc56b2a17a8bcbb0d", "1720108457249", "48bde9b1050535fffa0168e8fbd0b2f20198916e8cc71b274003d519042495d2"]}
- {"args": ["spot/depth50:LAI_USDT", "spot/depth50:LAI_USDT"], "op": "subscribe"}
- {"args": ["spot/depth50:LAI_USDT", "spot/depth50:LAI_USDT"], "op": "subscribe"}
- {"op": "subscribe", "args": ["spot/user/balance:BALANCE_UPDATE", "spot/user/order:LAI_USDT"]}
- {"op": "subscribe", "args": ["spot/user/balance:BALANCE_UPDATE", "spot/user/order:LAI_USDT"]}
- ping
- [ 1720108457898 ] MESSAGE: starts taker test!
- [ 2024-07-04-15-54-17 ] DEBUG taker test completed: OrderEvent: delta=1.71998e+11, symbol="LAI_USDT", type="TAKER_SELL", quantity: 430.509
- [ 2024-07-04-15-54-17 ] INFO : OrderEvent: delta=1.71998e+11, symbol="LAI_USDT", type="TAKER_SELL", quantity: 430.509
- [ 2024-07-04-15-54-17 ] DEBUG ! new: {"symbol": "LAI_USDT", "quantity": 430.500000, "client_order_id": 1720108456974, "type": "MARKET", "side": "SELL"}
- ping
- [ 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}
- {"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"}
- [ 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}}
- [ 1720108458042 ] MESSAGE: market
- [ 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}
- [ 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}
- [ 1720108458043 ] MESSAGE: (execution) filled quantity is not initialized
- [ 1720108458043 ] MESSAGE: (execution) price is not initialized
- [ 1720108458043 ] MESSAGE: ! LAI_USDT
- {"event_type": "TRANSACTION_COMPLETED", "event_time": "1720108458038", "balance_details": [{"fz_bal": "0.000000000000000000000000000000", "ccy": "LAI", "av_bal": "3466.000000000000000000000000000000"}]}
- {"event_type": "TRANSACTION_COMPLETED", "event_time": "1720108458038", "balance_details": [{"fz_bal": "0.000000000000000000000000000000", "ccy": "USDT", "av_bal": "11.094277376700000000000000000000"}]}
- {"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"}
- 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}}
- [ 1720108458080 ] MESSAGE: market
- [ 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}
- [ 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}
- $$$ {"symbol": "LAI_USDT", "price": 0.013934, "quantity": 430.000000, "trade_side": SELL, "trade_time": 1720108458043}
- [ 2024-07-04-15-54-18 ] INFO Open position: : {"symbol": "LAI_USDT", "price": 0.013934, "quantity": 430.000000, "trade_side": SELL, "trade_time": 1720108458043}
- [ 2024-07-04-15-54-18 ] INFO new position: {"symbol": "LAI_USDT", "entry_price": 0.013934, "quantity": -430, "position_quote": -5.99162}
- [ 1720108458081 ] MESSAGE: erase
- [ 1720108458081 ] MESSAGE: ! LAI_USDT
- ^C
- ubuntu@ip-172-31-31-23:~/dmm_strat/solutions/test$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement