Advertisement
den4ik2003

Untitled

Jul 4th, 2024
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.57 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 0x5cf82ebf0600
  4. run forever balance 0x5cf82ebf0600
  5. {"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}]}
  6. get balance indicator 0x5cf82ebf0790
  7. balance indicator: 0x5cf82ebf4a70 0x5cf82ebf0600
  8. {"asset": "LAI", "free": 3466, "locked": 0, "wallet": 0, "update_time": 0}
  9. {"asset": "STONKS", "free": 0, "locked": 0, "wallet": 0, "update_time": 0}
  10. {"asset": "USDT", "free": 11.0943, "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", "1720109716752", "48e110c23ecd76683181daabff50b7cd0d882770b6ac3ec226f3253216446852"]}
  15. {"op": "login", "args": ["2403047dac883ff20b6cb32cc56b2a17a8bcbb0d", "1720109716754", "5777420fa90439e577f337bf9f1c6f3248f095dd87da0f671046724ea47cfae1"]}
  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. [ 1720109717437 ] MESSAGE: starts taker test!
  22. [ 2024-07-04-16-15-17 ] DEBUG taker test completed: OrderEvent: delta=1.71999e+11, symbol="LAI_USDT", type="TAKER_SELL", quantity: 428.327
  23. [ 2024-07-04-16-15-17 ] INFO : OrderEvent: delta=1.71999e+11, symbol="LAI_USDT", type="TAKER_SELL", quantity: 428.327
  24. [ 2024-07-04-16-15-17 ] DEBUG ! new: {"symbol": "LAI_USDT", "quantity": 428.300000, "client_order_id": 1720109716504, "type": "MARKET", "side": "SELL"}
  25. ping
  26. {"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"}
  27. [ 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}}
  28. [ 1720109717536 ] MESSAGE: market
  29. [ 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}
  30. [ 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}
  31. [ 1720109717537 ] MESSAGE: (execution) filled quantity is not initialized
  32. [ 1720109717537 ] MESSAGE: (execution) price is not initialized
  33. [ 1720109717537 ] MESSAGE: ! LAI_USDT
  34. [ 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}
  35. {"event_type": "TRANSACTION_COMPLETED", "event_time": "1720109717537", "balance_details": [{"fz_bal": "0.000000000000000000000000000000", "ccy": "LAI", "av_bal": "3038.000000000000000000000000000000"}]}
  36. {"event_type": "TRANSACTION_COMPLETED", "event_time": "1720109717537", "balance_details": [{"fz_bal": "0.000000000000000000000000000000", "ccy": "USDT", "av_bal": "17.074712816700000000000000000000"}]}
  37. {"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"}
  38. [ 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}}
  39. [ 1720109717578 ] MESSAGE: market
  40. [ 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}
  41. [ 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}
  42. $$$ {"symbol": "LAI_USDT", "price": 0.014008, "quantity": 428.000000, "trade_side": SELL, "trade_time": 1720109717542}
  43. [ 2024-07-04-16-15-17 ] INFO Open position: : {"symbol": "LAI_USDT", "price": 0.014008, "quantity": 428.000000, "trade_side": SELL, "trade_time": 1720109717542}
  44. [ 2024-07-04-16-15-17 ] INFO new position: {"symbol": "LAI_USDT", "entry_price": 0.014008, "quantity": -428, "position_quote": -5.99542}
  45. [ 1720109717580 ] MESSAGE: erase
  46. [ 1720109717580 ] MESSAGE: ! LAI_USDT
  47. ^C
  48. ubuntu@ip-172-31-31-23:~/dmm_strat/solutions/test$ ./test taker_launch.config
  49. api keys: 2403047dac883ff20b6cb32cc56b2a17a8bcbb0d 292b4e5ce79770c283786adf3107a2e896ec0a3bfe4767a080a634961edfac30
  50. API 0x5e06daa0a600
  51. run forever balance 0x5e06daa0a600
  52. {"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}]}
  53. get balance indicator 0x5e06daa0a790
  54. balance indicator: 0x5e06daa0ea70 0x5e06daa0a600
  55. {"asset": "LAI", "free": 3038, "locked": 0, "wallet": 0, "update_time": 0}
  56. {"asset": "STONKS", "free": 0, "locked": 0, "wallet": 0, "update_time": 0}
  57. {"asset": "USDT", "free": 17.0747, "locked": 0, "wallet": 0, "update_time": 0}
  58. {"asset": "CHAT", "free": 0, "locked": 0, "wallet": 0, "update_time": 0}
  59. {"asset": "ALGO", "free": 0.000221, "locked": 0, "wallet": 0, "update_time": 0}
  60. {"symbols": [{"symbol": "LAI_USDT", "market": "BITMART_SPOT", "account": "TAKER"}], "name": "VANILLA"}
  61. {"op": "login", "args": ["2403047dac883ff20b6cb32cc56b2a17a8bcbb0d", "1720109777039", "3ba75ec0840e0ad2a4b205f706ac2c6798c4ec0f8ec104840e5b08662b399ef3"]}
  62. {"op": "login", "args": ["2403047dac883ff20b6cb32cc56b2a17a8bcbb0d", "1720109777040", "6e0cadc8df8fee0eae268ff22123ca3a12e157377bff75af80ab2b284914277c"]}
  63. {"args": ["spot/depth50:LAI_USDT", "spot/depth50:LAI_USDT"], "op": "subscribe"}
  64. {"args": ["spot/depth50:LAI_USDT", "spot/depth50:LAI_USDT"], "op": "subscribe"}
  65. {"op": "subscribe", "args": ["spot/user/balance:BALANCE_UPDATE", "spot/user/order:LAI_USDT"]}
  66. {"op": "subscribe", "args": ["spot/user/balance:BALANCE_UPDATE", "spot/user/order:LAI_USDT"]}
  67. ping
  68. [ 1720109777725 ] MESSAGE: starts taker test!
  69. [ 2024-07-04-16-16-17 ] DEBUG taker test completed: OrderEvent: delta=1.71998e+11, symbol="LAI_USDT", type="TAKER_BUY", amount: 6
  70. [ 2024-07-04-16-16-17 ] INFO : OrderEvent: delta=1.71998e+11, symbol="LAI_USDT", type="TAKER_BUY", amount: 6
  71. [ 2024-07-04-16-16-17 ] DEBUG ! new: {"symbol": "LAI_USDT", "amount": 6, "client_order_id": 1720109776807, "type": "MARKET", "side": "BUY"}
  72. ping
  73. [ 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}
  74. {"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"}
  75. [ 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}}
  76. [ 1720109777821 ] MESSAGE: market
  77. [ 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}
  78. [ 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}
  79. [ 1720109777822 ] MESSAGE: (execution) filled quantity is not initialized
  80. [ 1720109777822 ] MESSAGE: (execution) price is not initialized
  81. [ 1720109777822 ] MESSAGE: ! LAI_USDT
  82. {"event_type": "TRANSACTION_COMPLETED", "event_time": "1720109777819", "balance_details": [{"fz_bal": "0.001706662500000000000000000000", "ccy": "USDT", "av_bal": "11.074712816700000000000000000000"}]}
  83. {"event_type": "TRANSACTION_COMPLETED", "event_time": "1720109777819", "balance_details": [{"fz_bal": "0.000000000000000000000000000000", "ccy": "LAI", "av_bal": "3461.000000000000000000000000000000"}]}
  84. {"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"}
  85. [ 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}}
  86. [ 1720109777860 ] MESSAGE: market
  87. [ 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}
  88. [ 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}
  89. $$$ {"symbol": "LAI_USDT", "price": 0.014145, "quantity": 423.000000, "trade_side": BUY, "trade_time": 1720109777825}
  90. [ 2024-07-04-16-16-17 ] INFO Open position: : {"symbol": "LAI_USDT", "price": 0.014145, "quantity": 423.000000, "trade_side": BUY, "trade_time": 1720109777825}
  91. [ 2024-07-04-16-16-17 ] INFO new position: {"symbol": "LAI_USDT", "entry_price": 0.014145, "quantity": 423, "position_quote": 5.98333}
  92. [ 1720109777861 ] MESSAGE: ! LAI_USDT
  93. {"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"}
  94. [ 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}}
  95. [ 1720109778874 ] MESSAGE: market
  96. [ 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}
  97. [ 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}
  98. $$$ {"symbol": "LAI_USDT", "price": 0.000000, "quantity": 0.000000, "trade_side": BUY, "trade_time": 1720109778844}
  99. [ 2024-07-04-16-16-18 ] INFO Open position: : {"symbol": "LAI_USDT", "price": 0.000000, "quantity": 0.000000, "trade_side": BUY, "trade_time": 1720109778844}
  100. [ 2024-07-04-16-16-18 ] INFO new position: {"symbol": "LAI_USDT", "entry_price": 0.014145, "quantity": 423, "position_quote": 5.98333}
  101. [ 1720109778875 ] MESSAGE: erase
  102. [ 1720109778875 ] MESSAGE: ! LAI_USD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement