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 0x5cf82ebf0600
- run forever balance 0x5cf82ebf0600
- {"type": "SPOT", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "LAI", "free": 3466, "locked": 0, "wallet": 0, "update_time": 0}, {"asset": "STONKS", "free": 0, "locked": 0, "wallet": 0, "update_time": 0}, {"asset": "USDT", "free": 11.0943, "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 0x5cf82ebf0790
- balance indicator: 0x5cf82ebf4a70 0x5cf82ebf0600
- {"asset": "LAI", "free": 3466, "locked": 0, "wallet": 0, "update_time": 0}
- {"asset": "STONKS", "free": 0, "locked": 0, "wallet": 0, "update_time": 0}
- {"asset": "USDT", "free": 11.0943, "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", "1720109716752", "48e110c23ecd76683181daabff50b7cd0d882770b6ac3ec226f3253216446852"]}
- {"op": "login", "args": ["2403047dac883ff20b6cb32cc56b2a17a8bcbb0d", "1720109716754", "5777420fa90439e577f337bf9f1c6f3248f095dd87da0f671046724ea47cfae1"]}
- {"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
- [ 1720109717437 ] MESSAGE: starts taker test!
- [ 2024-07-04-16-15-17 ] DEBUG taker test completed: OrderEvent: delta=1.71999e+11, symbol="LAI_USDT", type="TAKER_SELL", quantity: 428.327
- [ 2024-07-04-16-15-17 ] INFO : OrderEvent: delta=1.71999e+11, symbol="LAI_USDT", type="TAKER_SELL", quantity: 428.327
- [ 2024-07-04-16-15-17 ] DEBUG ! new: {"symbol": "LAI_USDT", "quantity": 428.300000, "client_order_id": 1720109716504, "type": "MARKET", "side": "SELL"}
- ping
- {"type": "market", "symbol": "LAI_USDT", "state": "4", "price": "0", "size": "428", "order_type": "0", "order_state": "new", "order_mode": "spot", "client_order_id": "1720109716504", "filled_notional": "0", "dealFee": "0", "create_time": "1720109717491", "order_id": "622597746050476806", "update_time": "1720109717491", "entrust_type": "NORMAL", "filled_size": "0", "last_fill_count": "0", "last_fill_price": "0", "side": "sell", "notional": "0", "last_fill_time": "0", "ms_t": "1720109717491", "margin_trading": "0"}
- [ 2024-07-04-16-15-17 ] INFO : WebSocketEvent: delta=1.72011e+11, event_time=1720109717536", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 510, "order": {"symbol": "LAI_USDT", "coid": 1720109716504, "order_id": "622597746050476806", "type": "MARKET", "side": "SELL", "status": "NEW", "price": 0.000000, "quantity": 428.000000, "filled_quantity": 0.000000, "update_time": 1720109717491}}
- [ 1720109717536 ] MESSAGE: market
- [ 2024-07-04-16-15-17 ] DEBUG Event order: : {"symbol": "LAI_USDT", "coid": 1720109716504, "order_id": "622597746050476806", "type": "MARKET", "side": "SELL", "status": "NEW", "price": 0.000000, "quantity": 428.000000, "filled_quantity": 0.000000, "update_time": 1720109717491}
- [ 2024-07-04-16-15-17 ] DEBUG old order: : {"symbol": "LAI_USDT", "coid": 1720109716504, "order_id": "", "type": "MARKET", "side": "SELL", "status": "PENDING", "quantity": 428.300000, "update_time": 0}
- [ 1720109717537 ] MESSAGE: (execution) filled quantity is not initialized
- [ 1720109717537 ] MESSAGE: (execution) price is not initialized
- [ 1720109717537 ] MESSAGE: ! LAI_USDT
- [ 2024-07-04-16-15-17 ] DEBUG ? new: {"symbol": "LAI_USDT", "coid": 1720109716504, "order_id": "622597746050476806", "type": "MARKET", "side": "SELL", "status": "NEW", "quantity": 428.300000, "update_time": 1720109717537}
- {"event_type": "TRANSACTION_COMPLETED", "event_time": "1720109717537", "balance_details": [{"fz_bal": "0.000000000000000000000000000000", "ccy": "LAI", "av_bal": "3038.000000000000000000000000000000"}]}
- {"event_type": "TRANSACTION_COMPLETED", "event_time": "1720109717537", "balance_details": [{"fz_bal": "0.000000000000000000000000000000", "ccy": "USDT", "av_bal": "17.074712816700000000000000000000"}]}
- {"type": "market", "symbol": "LAI_USDT", "state": "6", "price": "0.000000000000000000000000000000", "size": "428.000000000000000000000000000000", "order_type": "0", "order_state": "filled", "order_mode": "spot", "client_order_id": "1720109716504", "filled_notional": "5.995424000000000000000000000000", "order_id": "622597746050476806", "create_time": "1720109717491", "dealFee": "0.0149885600", "detail_id": "622597746517682944", "update_time": "1720109717542", "entrust_type": "NORMAL", "exec_type": "T", "filled_size": "428.000000000000000000000000000000", "last_fill_count": "428", "last_fill_price": "0.014008", "side": "sell", "notional": "", "last_fill_time": "1720109717519", "ms_t": "1720109717491", "margin_trading": "0"}
- [ 2024-07-04-16-15-17 ] INFO : WebSocketEvent: delta=1.72011e+11, event_time=1720109717578", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 719, "order": {"symbol": "LAI_USDT", "coid": 1720109716504, "order_id": "622597746050476806", "type": "MARKET", "side": "SELL", "status": "FILLED", "price": 0.014008, "quantity": 428.000000, "filled_quantity": 428.000000, "update_time": 1720109717542}}
- [ 1720109717578 ] MESSAGE: market
- [ 2024-07-04-16-15-17 ] DEBUG Event order: : {"symbol": "LAI_USDT", "coid": 1720109716504, "order_id": "622597746050476806", "type": "MARKET", "side": "SELL", "status": "FILLED", "price": 0.014008, "quantity": 428.000000, "filled_quantity": 428.000000, "update_time": 1720109717542}
- [ 2024-07-04-16-15-17 ] DEBUG old order: : {"symbol": "LAI_USDT", "coid": 1720109716504, "order_id": "622597746050476806", "type": "MARKET", "side": "SELL", "status": "NEW", "price": 0.000000, "quantity": 428.000000, "filled_quantity": 0.000000, "update_time": 1720109717491}
- $$$ {"symbol": "LAI_USDT", "price": 0.014008, "quantity": 428.000000, "trade_side": SELL, "trade_time": 1720109717542}
- [ 2024-07-04-16-15-17 ] INFO Open position: : {"symbol": "LAI_USDT", "price": 0.014008, "quantity": 428.000000, "trade_side": SELL, "trade_time": 1720109717542}
- [ 2024-07-04-16-15-17 ] INFO new position: {"symbol": "LAI_USDT", "entry_price": 0.014008, "quantity": -428, "position_quote": -5.99542}
- [ 1720109717580 ] MESSAGE: erase
- [ 1720109717580 ] MESSAGE: ! LAI_USDT
- ^C
- ubuntu@ip-172-31-31-23:~/dmm_strat/solutions/test$ ./test taker_launch.config
- api keys: 2403047dac883ff20b6cb32cc56b2a17a8bcbb0d 292b4e5ce79770c283786adf3107a2e896ec0a3bfe4767a080a634961edfac30
- API 0x5e06daa0a600
- run forever balance 0x5e06daa0a600
- {"type": "SPOT", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "LAI", "free": 3038, "locked": 0, "wallet": 0, "update_time": 0}, {"asset": "STONKS", "free": 0, "locked": 0, "wallet": 0, "update_time": 0}, {"asset": "USDT", "free": 17.0747, "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 0x5e06daa0a790
- balance indicator: 0x5e06daa0ea70 0x5e06daa0a600
- {"asset": "LAI", "free": 3038, "locked": 0, "wallet": 0, "update_time": 0}
- {"asset": "STONKS", "free": 0, "locked": 0, "wallet": 0, "update_time": 0}
- {"asset": "USDT", "free": 17.0747, "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", "1720109777039", "3ba75ec0840e0ad2a4b205f706ac2c6798c4ec0f8ec104840e5b08662b399ef3"]}
- {"op": "login", "args": ["2403047dac883ff20b6cb32cc56b2a17a8bcbb0d", "1720109777040", "6e0cadc8df8fee0eae268ff22123ca3a12e157377bff75af80ab2b284914277c"]}
- {"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
- [ 1720109777725 ] MESSAGE: starts taker test!
- [ 2024-07-04-16-16-17 ] DEBUG taker test completed: OrderEvent: delta=1.71998e+11, symbol="LAI_USDT", type="TAKER_BUY", amount: 6
- [ 2024-07-04-16-16-17 ] INFO : OrderEvent: delta=1.71998e+11, symbol="LAI_USDT", type="TAKER_BUY", amount: 6
- [ 2024-07-04-16-16-17 ] DEBUG ! new: {"symbol": "LAI_USDT", "amount": 6, "client_order_id": 1720109776807, "type": "MARKET", "side": "BUY"}
- ping
- [ 2024-07-04-16-16-17 ] DEBUG ? new: {"symbol": "LAI_USDT", "coid": 1720109776807, "order_id": "622598757445550592", "type": "MARKET", "side": "BUY", "status": "NEW", "update_time": 1720109777818}
- {"type": "market", "symbol": "LAI_USDT", "state": "4", "price": "0", "size": "0", "order_type": "0", "order_state": "new", "order_mode": "spot", "client_order_id": "1720109776807", "filled_notional": "0", "dealFee": "0", "create_time": "1720109777775", "order_id": "622598757445550592", "update_time": "1720109777775", "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": "1720109777775", "margin_trading": "0"}
- [ 2024-07-04-16-16-17 ] INFO : WebSocketEvent: delta=1.72011e+11, event_time=1720109777821", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 538, "order": {"symbol": "LAI_USDT", "coid": 1720109776807, "order_id": "622598757445550592", "type": "MARKET", "side": "BUY", "status": "NEW", "price": 0.000000, "quantity": 0.000000, "filled_quantity": 0.000000, "update_time": 1720109777775}}
- [ 1720109777821 ] MESSAGE: market
- [ 2024-07-04-16-16-17 ] DEBUG Event order: : {"symbol": "LAI_USDT", "coid": 1720109776807, "order_id": "622598757445550592", "type": "MARKET", "side": "BUY", "status": "NEW", "price": 0.000000, "quantity": 0.000000, "filled_quantity": 0.000000, "update_time": 1720109777775}
- [ 2024-07-04-16-16-17 ] DEBUG old order: : {"symbol": "LAI_USDT", "coid": 1720109776807, "order_id": "", "type": "MARKET", "side": "BUY", "status": "PENDING", "update_time": 0}
- [ 1720109777822 ] MESSAGE: (execution) filled quantity is not initialized
- [ 1720109777822 ] MESSAGE: (execution) price is not initialized
- [ 1720109777822 ] MESSAGE: ! LAI_USDT
- {"event_type": "TRANSACTION_COMPLETED", "event_time": "1720109777819", "balance_details": [{"fz_bal": "0.001706662500000000000000000000", "ccy": "USDT", "av_bal": "11.074712816700000000000000000000"}]}
- {"event_type": "TRANSACTION_COMPLETED", "event_time": "1720109777819", "balance_details": [{"fz_bal": "0.000000000000000000000000000000", "ccy": "LAI", "av_bal": "3461.000000000000000000000000000000"}]}
- {"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": "1720109776807", "filled_notional": "5.983335000000000000000000000000", "order_id": "622598757445550592", "create_time": "1720109777775", "dealFee": "0.0149583375", "detail_id": "622598757914123008", "update_time": "1720109777825", "entrust_type": "NORMAL", "exec_type": "T", "filled_size": "423.000000000000000000000000000000", "last_fill_count": "423", "last_fill_price": "0.014145", "side": "buy", "notional": "", "last_fill_time": "1720109777803", "ms_t": "1720109777775", "margin_trading": "0"}
- [ 2024-07-04-16-16-17 ] INFO : WebSocketEvent: delta=1.72011e+11, event_time=1720109777859", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 726, "order": {"symbol": "LAI_USDT", "coid": 1720109776807, "order_id": "622598757445550592", "type": "MARKET", "side": "BUY", "status": "PARTIALLY_FILLED", "price": 0.014145, "quantity": 0.000000, "filled_quantity": 423.000000, "update_time": 1720109777825}}
- [ 1720109777860 ] MESSAGE: market
- [ 2024-07-04-16-16-17 ] DEBUG Event order: : {"symbol": "LAI_USDT", "coid": 1720109776807, "order_id": "622598757445550592", "type": "MARKET", "side": "BUY", "status": "PARTIALLY_FILLED", "price": 0.014145, "quantity": 0.000000, "filled_quantity": 423.000000, "update_time": 1720109777825}
- [ 2024-07-04-16-16-17 ] DEBUG old order: : {"symbol": "LAI_USDT", "coid": 1720109776807, "order_id": "622598757445550592", "type": "MARKET", "side": "BUY", "status": "NEW", "price": 0.000000, "quantity": 0.000000, "filled_quantity": 0.000000, "update_time": 1720109777775}
- $$$ {"symbol": "LAI_USDT", "price": 0.014145, "quantity": 423.000000, "trade_side": BUY, "trade_time": 1720109777825}
- [ 2024-07-04-16-16-17 ] INFO Open position: : {"symbol": "LAI_USDT", "price": 0.014145, "quantity": 423.000000, "trade_side": BUY, "trade_time": 1720109777825}
- [ 2024-07-04-16-16-17 ] INFO new position: {"symbol": "LAI_USDT", "entry_price": 0.014145, "quantity": 423, "position_quote": 5.98333}
- [ 1720109777861 ] 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": "1720109776807", "filled_notional": "5.983335000000000000000000000000", "dealFee": "0", "create_time": "1720109777775", "order_id": "622598757445550592", "update_time": "1720109778844", "entrust_type": "NORMAL", "filled_size": "423.000000000000000000000000000000", "last_fill_count": "0", "last_fill_price": "0", "side": "buy", "notional": "", "last_fill_time": "0", "ms_t": "1720109777775", "margin_trading": "0"}
- [ 2024-07-04-16-16-18 ] INFO : WebSocketEvent: delta=1.72011e+11, event_time=1720109778873", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 648, "order": {"symbol": "LAI_USDT", "coid": 1720109776807, "order_id": "622598757445550592", "type": "MARKET", "side": "BUY", "status": "CANCELED", "price": 0.000000, "quantity": 0.000000, "filled_quantity": 423.000000, "update_time": 1720109778844}}
- [ 1720109778874 ] MESSAGE: market
- [ 2024-07-04-16-16-18 ] DEBUG Event order: : {"symbol": "LAI_USDT", "coid": 1720109776807, "order_id": "622598757445550592", "type": "MARKET", "side": "BUY", "status": "CANCELED", "price": 0.000000, "quantity": 0.000000, "filled_quantity": 423.000000, "update_time": 1720109778844}
- [ 2024-07-04-16-16-18 ] DEBUG old order: : {"symbol": "LAI_USDT", "coid": 1720109776807, "order_id": "622598757445550592", "type": "MARKET", "side": "BUY", "status": "PARTIALLY_FILLED", "price": 0.014145, "quantity": 0.000000, "filled_quantity": 423.000000, "update_time": 1720109777825}
- $$$ {"symbol": "LAI_USDT", "price": 0.000000, "quantity": 0.000000, "trade_side": BUY, "trade_time": 1720109778844}
- [ 2024-07-04-16-16-18 ] INFO Open position: : {"symbol": "LAI_USDT", "price": 0.000000, "quantity": 0.000000, "trade_side": BUY, "trade_time": 1720109778844}
- [ 2024-07-04-16-16-18 ] INFO new position: {"symbol": "LAI_USDT", "entry_price": 0.014145, "quantity": 423, "position_quote": 5.98333}
- [ 1720109778875 ] MESSAGE: erase
- [ 1720109778875 ] MESSAGE: ! LAI_USD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement