Advertisement
den4ik2003

Untitled

Nov 6th, 2024
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.94 KB | None | 0 0
  1. ubuntu@ip-172-31-31-23:~/dmm_strat/solutions/test$ ./test volume/volume_launch.config
  2. {"narrow_spread_trading": "1", "volume_sigma": "0.16", "sigma": "0.0025", "volume": "135", "time_frequency": "120000"}
  3. C++ 1ffd161f95a641469ef6fb6b7b5cbac3
  4. 2024/11/06 15:28:46 init Nonce: 96
  5. 2024/11/06 15:28:46 bind contract 0x6b965968fbc6ff0d2ed7cb1cb38c1c1bbe0327b4
  6. 2024/11/06 15:28:46 bind contract 0x1a9f5fd1b36f8d1e03f0ff6eabbbb268f053033e
  7. 2024/11/06 15:28:46 bind contract 0x6fcb55c09671bd0d28b5a0e9d303793ac005f19c
  8. 2024/11/06 15:28:46 bind contract 0x762d3d096b9a74f4d3adf2b0824456ef8fce5daa
  9. 2024/11/06 15:28:46 bind contract 0x8f3cf7ad23cd3cadbd9735aff958023239c6a063
  10. {"type": "FORCE_DEX", "txIndex": "0", "name": "HC/DAI", "baseAsset": "0x762d3d096b9a74f4d3adf2b0824456ef8fce5daa", "baseAssetDecimals": "18", "quoteAssetDecimals": "18", "chainId": "matic", "createdAt": "0001-01-01T00:00:00.000Z", "deployedBlock": "59522571", "updatedAt": "2024-11-06T15:28:44.462Z", "txHash": "0x306571d8352b418b85a88243349ea726074e68360603982196c46eeff8dbc9e0", "address": "0x6b965968fbc6ff0d2ed7cb1cb38c1c1bbe0327b4", "lastSyncedBlock": "63959569", "id": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "quoteAsset": "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063", "symbol": "HCDAI"}
  11. {"userId": "1245318", "error": "ok"}
  12. user_id: 1245318
  13. authentification was completed
  14. API 0x56501e176fe0
  15. run forever balance 0x56501e176fe0
  16. {"type": "DEX", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "HC", "free": 63.4407, "locked": 0, "wallet": 0, "update_time": 1730906929227}, {"asset": "DAI", "free": 444.797, "locked": 0, "wallet": 0, "update_time": 1730906929227}]}
  17. get balance indicator 0x56501e177180
  18. trader {"symbol": "HCDAI", "account": "MFS_2", "market": "MFS_DEX", "logger": {"severity_level": "DEBUG"}, "execution": {"print_ws_events": "1", "cancel_on_start": "0", "timeout": "30000"}, "data": {"print_ws_events": "0", "use_part_depth": "true", "events": ["ORDER_BOOK"]}}
  19. >:)
  20. auth token: eyJhbG
  21. {"asset": "HC", "free": 63.4407, "locked": 0, "wallet": 0, "update_time": 1730906929839}
  22. {"asset": "DAI", "free": 444.797, "locked": 0, "wallet": 0, "update_time": 1730906929839}
  23.  
  24. get_open_orders_wrapper::request_filler
  25. auth token: eyJhbG
  26. _fill_order 7620000000000000000/7086600000000000000/BUY 3986861416427041506
  27. already opened {"symbol": "HCDAI", "coid": 3986861416427041506, {"dex_order_id": "907763", "order_id": "b8194f00-bc7e-473e-97b2-f98d80c57bbf", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.620000, "quantity": 7.086600, "filled_quantity": 0.000000, "update_time": 1730906787000}
  28. Execution was constructed
  29. Trader was created
  30. order book {"ask_price": 7.64, "ask_quantity": 56.0242, "bid_price": 7.63, "bid_quantity": 205.938}
  31. [ 2024-11-06-15-28-50 ] MESSAGE: no volume price file
  32. subscription stream: ACCOUNT_BALANCE
  33. no account balance subscription
  34. subscription stream: PART_DEPTH
  35. subscription stream: ACCOUNT_ORDER
  36. subscription stream: ACCOUNT_TRADE
  37. {"payload": {"query": "subscription onForceDexOrdersBookUpdated($pairId: UUID!) { onForceDexOrdersBookUpdated(pairId: $pairId) { lines { direction quantity price __typename } __typename }}", "operationName": "onForceDexOrdersBookUpdated", "extensions": {}, "variables": {"pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e"}}, "type": "subscribe", "id": "1730906930160001"}
  38. feed.at("type").s() != ping{"type": "connection_ack"}
  39. {"payload": {"query": "subscription onMyForceDexOrdersUpdated($userId: BigInt!, $pairId: UUID!) { onMyForceDexOrdersUpdated(userId: $userId, pairId: $pairId) { createdAt direction orderNumber id initialQuantity pairId price quantity status type userId }}", "operationName": "onMyForceDexOrdersUpdated", "extensions": {}, "variables": {"userId": "1245318", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e"}}, "type": "subscribe", "id": "1730906930160002"}
  40. feed.at("type").s() != ping{"type": "connection_ack"}
  41. {"asset": "HC", "free": 63.4407, "locked": 0, "wallet": 0, "update_time": 1730906940453}
  42. {"asset": "DAI", "free": 444.797, "locked": 0, "wallet": 0, "update_time": 1730906940453}
  43.  
  44.  
  45. stream = onForceDexOrdersBookUpdated
  46.  
  47. [ 2024-11-06-15-29-03 ] MESSAGE: sleep time = 126606
  48. [ 2024-11-06-15-29-03 ] MESSAGE: ask price 7.640000 bid price: 7.630000
  49. [ 2024-11-06-15-29-03 ] MESSAGE: Narrow spread
  50. [ 2024-11-06-15-29-03 ] MESSAGE: dealing with narrow spread
  51. [ 2024-11-06-15-29-03 ] INFO dealing with narrow spread result: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.63, 8.50271); ], bids: [(7.64, 8.49158); ]
  52. [ 2024-11-06-15-29-03 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.63, 8.50271); ], bids: [(7.64, 8.49158); ]
  53. [ 2024-11-06-15-29-03 ] DEBUG base balance: {"asset": "HC", "free": 63.4407, "locked": 0, "wallet": 0, "update_time": 1730906940453}
  54. [ 2024-11-06-15-29-03 ] DEBUG quote balance: {"asset": "DAI", "free": 444.797, "locked": 0, "wallet": 0, "update_time": 1730906940453}
  55. [ 2024-11-06-15-29-03 ] MESSAGE: balances_ratio: 1.088969
  56. [ 2024-11-06-15-29-03 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.63, 8.50271); ], bids: [(7.64, 8.49158); ]
  57. [ 2024-11-06-15-29-03 ] MESSAGE: LIMIT GRID
  58. [ 2024-11-06-15-29-03 ] DEBUG in _process_limit_grid: 7.63
  59. [ 2024-11-06-15-29-03 ] DEBUG in _process_limit_grid: 8.50271
  60. [ 2024-11-06-15-29-03 ] DEBUG in _process_limit_grid: 7.64
  61. [ 2024-11-06-15-29-03 ] DEBUG in _process_limit_grid: 8.49158
  62. [ 2024-11-06-15-29-03 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 7.640000, "quantity": 8.491600, "type": "LIMIT", "side": "BUY"}
  63. [ 2024-11-06-15-29-03 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 7.630000, "quantity": 8.502700, "type": "LIMIT", "side": "SELL"}
  64. [ 2024-11-06-15-29-03 ] MESSAGE: csize: 1
  65. index_order_id 7640000000000000000/8491600000000000000/BUY 2601150339524544793
  66. [ 2024-11-06-15-29-03 ] DEBUG ! cancel: {"symbol": "HCDAI", "coid": 3986861416427041506, {"dex_order_id": "907763index_order_id 7630000000000000000/8502700000000000000/SELL 8218355542216880708
  67. ", "order_id": "b8194f00-bc7e-473e-97b2-f98d80c57bbf", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.620000, "quantity": 7.086600, "filled_quantity": 0.000000, "update_time": 1730906787000}
  68. cancel_order_wrapper::execute
  69. [ 2024-11-06-15-29-03 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.640000, "quantity": 8.491600, "client_order_id": 2601150339524544793, "type": "LIMIT", "side": "BUY"}
  70. ! new api API 0x56501e176fe0
  71. order_request_t {"symbol": "HCDAI", "price": 7.640000, "quantity": 8.491600, "client_order_id": 2601150339524544793, "type": "LIMIT", "side": "BUY"}
  72. quantity 84916
  73. new_order_wrapper::execute
  74. [ 2024-11-06-15-29-03 ] DEBUG {"ext_params": {"timeout": "30000", "priority": "0"}, "params": {"quantity": "8491600000000000000", "price": "7640000000000000000", "orderType": "0", "isBid": "true"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
  75. ! new: {"symbol": "HCDAI", "price": 7.630000, "quantity": 8.502700, "client_order_id": 8218355542216880708, "type": "LIMIT", "side": "SELL"}
  76. ! new api API 0x56501e176fe0
  77. 2024/11/06 15:29:03 extends args: {"timeout": "30000", "priority": "0"}
  78. 2024/11/06 15:29:03 args: {"quantity": "8491600000000000000", "price": "7640000000000000000", "orderType": "0", "isBid": "true"}
  79. order_request_t {"symbol": "HCDAI", "price": 7.630000, "quantity": 8.502700, "client_order_id": 8218355542216880708, "type": "LIMIT", "side": "SELL"}
  80. 2024/11/06 15:29:03 extends args: {}
  81. 2024/11/06 15:29:03 args: {"orderId": "907763"}
  82. 2024/11/06 15:29:03 start cancelation
  83. 2024/11/06 15:29:03 finish cancelation
  84. quantity 85027
  85. new_order_wrapper::execute
  86. {"ext_params": {"timeout": "30000", "priority": "0"}, "params": {"quantity": "8502700000000000000", "price": "7630000000000000000", "orderType": "0", "isBid": "false"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
  87. 2024/11/06 15:29:03 start cancelation
  88. 2024/11/06 15:29:03 finish cancelation
  89. 2024/11/06 15:29:03 extends args: {"timeout": "30000", "priority": "0"}
  90. 2024/11/06 15:29:03 args: {"quantity": "8502700000000000000", "price": "7630000000000000000", "orderType": "0", "isBid": "false"}
  91. 2024/11/06 15:29:03 start cancelation
  92. 2024/11/06 15:29:03 finish cancelation
  93. 2024/11/06 15:29:04 gas price = 86635727429
  94. 2024/11/06 15:29:04 gas price = 86635727429
  95. 2024/11/06 15:29:04 gas price = 86635727429
  96. 2024/11/06 15:29:04 TX Hash: 0x4f995c5586bda84af88cb0eaa4593c0fa897db5a00b3bb5b598a10f2230042b2 ; Nonce: 97
  97. 2024/11/06 15:29:04 TX Hash: 0xd5560786b77726ac859d44e33bbaada5c3ff200419285523db26d865d840cf22 ; Nonce: 96
  98. 2024/11/06 15:29:04 Failed to call contract function: insufficient funds for gas * price + value: balance 422341430035244361, queued cost 259907182287000000, tx cost 259907182287000000, overshot 97472934538755639
  99. ubuntu@ip-172-31-31-23:~/dmm_strat/solutions/test$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement