Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ubuntu@ip-172-31-31-23:~/connector_demo/main$ ./test LOTTUSDT_taker
- file name -> LOTTUSDT_taker.config
- logger is empty
- call_back portfolio 1
- {"asset": "LOTT", "free": 4491.11, "locked": 0, "update_time": 126918967946000}
- {"asset": "RSR", "free": 465.15, "locked": 0, "update_time": 126918967946000}
- {"asset": "USDT", "free": 8.4771, "locked": 0, "update_time": 126918967946000}
- {"params":["spot@private.account.v3.api","spot@public.limit.depth.v3.api@LOTTUSDT@20","spot@private.orders.v3.api"],"method":"SUBSCRIPTION"}
- starts taker test!
- result: OrderEvent: delta=1.71703e+11, symbol="LOTTUSDT", type="TAKER_SELL", quantity: 775.194
- taker test completed!
- [ 2024-05-31-12-53-32 ] INFO : OrderEvent: delta=1.71703e+11, symbol="LOTTUSDT", type="TAKER_SELL", quantity: 775.194
- [ 2024-05-31-12-53-32 ] DEBUG ! new: {"symbol": "LOTTUSDT", "quantity": 775.190000, "client_order_id": 1717160012501, "type": MARKET", "side": SELL"}
- callback
- WebSocketEvent: delta=1.71716e+11, event_time=1717160012873", type="ACCOUNT_UPDATE", event: {"stream": ACCOUNT_UPDATE, "event_time": 126918700416080, "balance": {"asset": "LOTT", "free": 3715.92, "locked": 775.19, "update_time": 1717160012867}}
- callback
- WebSocketEvent: delta=1.71716e+11, event_time=1717160012885", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 126919050456216, "order": {"symbol": "LOTTUSDT", "coid": 1717160012501, "type": MARKET, "side": SELL, "status": "FILLED", "price": 0.012900, "quantity": 775.190000, "filled_quantity": 775.190000, "update_time": 126918700403472}}
- [ 2024-05-31-12-53-32 ] INFO : WebSocketEvent: delta=1.71716e+11, event_time=1717160012885", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 126919050456216, "order": {"symbol": "LOTTUSDT", "coid": 1717160012501, "type": MARKET, "side": SELL, "status": "FILLED", "price": 0.012900, "quantity": 775.190000, "filled_quantity": 775.190000, "update_time": 126918700403472}}
- market
- [ 2024-05-31-12-53-32 ] DEBUG Event order: : {"symbol": "LOTTUSDT", "coid": 1717160012501, "type": MARKET, "side": SELL, "status": "FILLED", "price": 0.012900, "quantity": 775.190000, "filled_quantity": 775.190000, "update_time": 126918700403472}
- [ 2024-05-31-12-53-32 ] DEBUG old order: : {"symbol": "LOTTUSDT", "coid": 1717160012501, "type": MARKET, "side": SELL, "status": "PENDING", "quantity": 775.190000, "update_time": 126918700421600}
- [ 2024-05-31-12-53-32 ] INFO Open position: : {"symbol": "LOTTUSDT", "price": 0.012900, "quantity": 775.190000, "trade_side": SELL, "trade_time": 0}
- [ 2024-05-31-12-53-32 ] INFO new position: {"symbol": "LOTTUSDT", "entry_price": 0.0129, "quantity": -775.19, "position_quote": -9.99995}
- Erase
- limit/market orders size: 0
- ! LOTTUSDT
- [ 2024-05-31-12-53-32 ] DEBUG ? new: {"symbol": "LOTTUSDT", "coid": 1717160012501, "type": MARKET, "side": SELL, "status": "NEW", "quantity": 775.190000, "update_time": 1717160012864}
- callback
- WebSocketEvent: delta=1.71716e+11, event_time=1717160012925", type="ACCOUNT_UPDATE", event: {"stream": ACCOUNT_UPDATE, "event_time": 126918700434640, "balance": {"asset": "LOTT", "free": 3715.92, "locked": 0, "update_time": 1717160012921}}
- callback
- WebSocketEvent: delta=1.71716e+11, event_time=1717160012927", type="ACCOUNT_UPDATE", event: {"stream": ACCOUNT_UPDATE, "event_time": 126918700435184, "balance": {"asset": "USDT", "free": 18.4671, "locked": 0, "update_time": 1717160012921}}
- {"asset": "LOTT", "free": 3715.92, "locked": 0, "update_time": 126918967946000}
- {"asset": "RSR", "free": 465.15, "locked": 0, "update_time": 126918967946000}
- {"asset": "USDT", "free": 18.4671, "locked": 0, "update_time": 126918967946000}
- ^C
- ubuntu@ip-172-31-31-23:~/connector_demo/main$ ./test LOTTUSDT_taker
- file name -> LOTTUSDT_taker.config
- logger is empty
- {"asset": "LOTT", "free": 3715.92, "locked": 0, "update_time": 134571905501968}
- {"asset": "RSR", "free": 465.15, "locked": 0, "update_time": 134571905501968}
- {"asset": "USDT", "free": 18.4671, "locked": 0, "update_time": 134571905501968}
- call_back portfolio 1
- {"params":["spot@private.account.v3.api","spot@public.limit.depth.v3.api@LOTTUSDT@20","spot@private.orders.v3.api"],"method":"SUBSCRIPTION"}
- starts taker test!
- result: OrderEvent: delta=1.71703e+11, symbol="LOTTUSDT", type="TAKER_BUY", amount: 16
- taker test completed!
- [ 2024-05-31-13-05-14 ] INFO : OrderEvent: delta=1.71703e+11, symbol="LOTTUSDT", type="TAKER_BUY", amount: 16
- [ 2024-05-31-13-05-14 ] DEBUG ! new: {"symbol": "LOTTUSDT", "amount": 16, "client_order_id": 1717160713904, "type": MARKET", "side": BUY"}
- [ 2024-05-31-13-05-14 ] DEBUG ? new: {"symbol": "LOTTUSDT", "coid": 1717160713904, "type": MARKET, "side": BUY, "status": "NEW", "quantity": 1127.550000, "update_time": 1717160714396}
- callback
- WebSocketEvent: delta=1.71716e+11, event_time=1717160714402", type="ACCOUNT_UPDATE", event: {"stream": ACCOUNT_UPDATE, "event_time": 134571593965888, "balance": {"asset": "USDT", "free": 2.45112, "locked": 16.0159, "update_time": 1717160714398}}
- callback
- WebSocketEvent: delta=1.71716e+11, event_time=1717160714422", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 134571914620056, "order": {"symbol": "LOTTUSDT", "coid": 1717160713904, "type": MARKET, "side": BUY, "status": "PARTIALLY_FILLED", "price": 0.013292, "quantity": 1127.550000, "filled_quantity": 674.160000, "update_time": 134571593925232}}
- [ 2024-05-31-13-05-14 ] INFO : WebSocketEvent: delta=1.71716e+11, event_time=1717160714422", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 134571914620056, "order": {"symbol": "LOTTUSDT", "coid": 1717160713904, "type": MARKET, "side": BUY, "status": "PARTIALLY_FILLED", "price": 0.013292, "quantity": 1127.550000, "filled_quantity": 674.160000, "update_time": 134571593925232}}
- market
- [ 2024-05-31-13-05-14 ] DEBUG Event order: : {"symbol": "LOTTUSDT", "coid": 1717160713904, "type": MARKET, "side": BUY, "status": "PARTIALLY_FILLED", "price": 0.013292, "quantity": 1127.550000, "filled_quantity": 674.160000, "update_time": 134571593925232}
- [ 2024-05-31-13-05-14 ] DEBUG old order: : {"symbol": "LOTTUSDT", "coid": 1717160713904, "type": MARKET, "side": BUY, "status": "PENDING", "update_time": 134571593973920}
- [ 2024-05-31-13-05-14 ] INFO Open position: : {"symbol": "LOTTUSDT", "price": 0.013292, "quantity": 674.160000, "trade_side": BUY, "trade_time": 0}
- [ 2024-05-31-13-05-14 ] INFO new position: {"symbol": "LOTTUSDT", "entry_price": 0.013292, "quantity": 674.16, "position_quote": 8.96093}
- limit/market orders size: 1
- ! LOTTUSDT
- callback
- WebSocketEvent: delta=1.71716e+11, event_time=1717160714422", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 134571914620056, "order": {"symbol": "LOTTUSDT", "coid": 1717160713904, "type": MARKET, "side": BUY, "status": "FILLED", "price": 0.013292, "quantity": 1127.550000, "filled_quantity": 1127.550000, "update_time": 134571593927872}}
- [ 2024-05-31-13-05-14 ] INFO : WebSocketEvent: delta=1.71716e+11, event_time=1717160714422", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 134571914620056, "order": {"symbol": "LOTTUSDT", "coid": 1717160713904, "type": MARKET, "side": BUY, "status": "FILLED", "price": 0.013292, "quantity": 1127.550000, "filled_quantity": 1127.550000, "update_time": 134571593927872}}
- market
- [ 2024-05-31-13-05-14 ] DEBUG Event order: : {"symbol": "LOTTUSDT", "coid": 1717160713904, "type": MARKET, "side": BUY, "status": "FILLED", "price": 0.013292, "quantity": 1127.550000, "filled_quantity": 1127.550000, "update_time": 134571593927872}
- [ 2024-05-31-13-05-14 ] DEBUG old order: : {"symbol": "LOTTUSDT", "coid": 1717160713904, "type": MARKET, "side": BUY, "status": "PARTIALLY_FILLED", "price": 0.013292, "quantity": 1127.550000, "filled_quantity": 674.160000, "update_time": 134571593925232}
- [ 2024-05-31-13-05-14 ] INFO Open position: : {"symbol": "LOTTUSDT", "price": 0.013292, "quantity": 453.390000, "trade_side": BUY, "trade_time": 0}
- [ 2024-05-31-13-05-14 ] INFO new position: {"symbol": "LOTTUSDT", "entry_price": 0.013292, "quantity": 1127.55, "position_quote": 14.9874}
- Erase
- limit/market orders size: 0
- ! LOTTUSDT
- callback
- WebSocketEvent: delta=1.71716e+11, event_time=1717160714467", type="ACCOUNT_UPDATE", event: {"stream": ACCOUNT_UPDATE, "event_time": 134571593958768, "balance": {"asset": "LOTT", "free": 4390.08, "locked": 0, "update_time": 1717160714461}}
- callback
- WebSocketEvent: delta=1.71716e+11, event_time=1717160714467", type="ACCOUNT_UPDATE", event: {"stream": ACCOUNT_UPDATE, "event_time": 134571593940208, "balance": {"asset": "USDT", "free": 2.45112, "locked": 7.04604, "update_time": 1717160714461}}
- callback
- WebSocketEvent: delta=1.71716e+11, event_time=1717160714474", type="ACCOUNT_UPDATE", event: {"stream": ACCOUNT_UPDATE, "event_time": 134571593959312, "balance": {"asset": "LOTT", "free": 4843.47, "locked": 0, "update_time": 1717160714471}}
- callback
- WebSocketEvent: delta=1.71716e+11, event_time=1717160714474", type="ACCOUNT_UPDATE", event: {"stream": ACCOUNT_UPDATE, "event_time": 134571593940880, "balance": {"asset": "USDT", "free": 3.46422, "locked": 0, "update_time": 1717160714471}}
- {"asset": "LOTT", "free": 4843.47, "locked": 0, "update_time": 134571905501968}
- {"asset": "RSR", "free": 465.15, "locked": 0, "update_time": 134571905501968}
- {"asset": "USDT", "free": 3.46422, "locked": 0, "update_time": 134571905501968}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement