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 volume/volume_launch.config > volume_mfs.txt
- 2024/11/06 13:03:29 init Nonce: 42
- 2024/11/06 13:03:29 bind contract 0x6b965968fbc6ff0d2ed7cb1cb38c1c1bbe0327b4
- 2024/11/06 13:03:29 bind contract 0x1a9f5fd1b36f8d1e03f0ff6eabbbb268f053033e
- 2024/11/06 13:03:29 bind contract 0x6fcb55c09671bd0d28b5a0e9d303793ac005f19c
- 2024/11/06 13:03:29 bind contract 0x762d3d096b9a74f4d3adf2b0824456ef8fce5daa
- 2024/11/06 13:03:29 bind contract 0x8f3cf7ad23cd3cadbd9735aff958023239c6a063
- run forever balance 0x63aad54939b0
- {"type": "DEX", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "HC", "free": 64.3799, "locked": 0, "wallet": 0, "update_time": 1730898211205}, {"asset": "DAI", "free": 499.731, "locked": 0, "wallet": 0, "update_time": 1730898211205}]}
- get balance indicator 0x63aad5493b50
- 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"]}}
- >:)
- [ 2024-11-06-13-03-31 ] MESSAGE: no volume price file
- no account balance subscription
- feed.at("type").s() != ping{"type": "connection_ack"}
- feed.at("type").s() != ping{"type": "connection_ack"}
- [ 2024-11-06-13-03-34 ] MESSAGE: sleep time = 125933
- [ 2024-11-06-13-03-34 ] MESSAGE: ask price 7.690000 bid price: 7.640000
- [ 2024-11-06-13-03-34 ] MESSAGE: current_volume: 148.271291 previous price = 7.680000
- [ 2024-11-06-13-03-34 ] MESSAGE: start calculating new normal distributed price
- [ 2024-11-06-13-03-34 ] MESSAGE: calculate deviated price (new) = 7.685262 current price = 7.680000
- [ 2024-11-06-13-03-34 ] MESSAGE: delta = 0.005262
- [ 2024-11-06-13-03-34 ] MESSAGE: new_price > upper_bound
- [ 2024-11-06-13-03-34 ] MESSAGE: new price after = 7.674738
- [ 2024-11-06-13-03-34 ] MESSAGE: price: 7.674738
- quantity: 19.319395
- [ 2024-11-06-13-03-34 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
- [ 2024-11-06-13-03-34 ] DEBUG base balance: {"asset": "HC", "free": 64.3799, "locked": 0, "wallet": 0, "update_time": 1730898211832}
- [ 2024-11-06-13-03-34 ] DEBUG quote balance: {"asset": "DAI", "free": 499.731, "locked": 0, "wallet": 0, "update_time": 1730898211832}
- [ 2024-11-06-13-03-34 ] MESSAGE: balances_ratio: 0.988730
- [ 2024-11-06-13-03-34 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
- [ 2024-11-06-13-03-34 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.670000, "quantity": 19.319400, "client_order_id": 2996499060979357340, "type": "LIMIT", "side": "BUY"}
- ! new api API 0x63aad54939b0
- [ 2024-11-06-13-03-34 ] DEBUG ! new: 2024/11/06 13:03:34 extends args: {"timeout": "30000", "priority": "0"}
- {"symbol": "HCDAI", "price": 7.670000, "quantity": 19.319400, "client_order_id": 6289111126658128970, "type": "LIMIT", "side": "SELL"}
- 2024/11/06 13:03:34 args: {"quantity": "19319400000000000000", "price": "7670000000000000000", "orderType": "0", "isBid": "true"}
- ! new api API 0x63aad54939b0
- 2024/11/06 13:03:34 start cancelation
- 2024/11/06 13:03:34 finish cancelation
- 2024/11/06 13:03:34 extends args: {"timeout": "30000", "priority": "0"}
- 2024/11/06 13:03:34 args: {"quantity": "19319400000000000000", "price": "7670000000000000000", "orderType": "0", "isBid": "false"}
- 2024/11/06 13:03:34 start cancelation
- 2024/11/06 13:03:34 finish cancelation
- 2024/11/06 13:03:35 gas price = 48328382831
- 2024/11/06 13:03:35 gas price = 48328382831
- 2024/11/06 13:03:35 TX Hash: 0x251268b3ab37d1da2267d48d0e80a1ba3c72e7069a9045c6ec04eb12ed4f1c3c ; Nonce: 43
- 2024/11/06 13:03:35 TX Hash: 0x74b04cb63f1b24f68a7ab9505b721f5d4147f4357d304530551b178f88291b13 ; Nonce: 42
- 2024/11/06 13:03:42 golang tx log: {
- tx = 0x74b04cb63f1b24f68a7ab9505b721f5d4147f4357d304530551b178f88291b13 ok;
- status = 1
- block = 63955517
- usedGas = 623287
- exec_time = 7.868166s
- }
- [ 2024-11-06-13-03-42 ] MESSAGE: new order delta: 7868
- [ 2024-11-06-13-03-42 ] DEBUG ? new: empty order
- 2024/11/06 13:03:45 golang tx log: {
- tx = 0x251268b3ab37d1da2267d48d0e80a1ba3c72e7069a9045c6ec04eb12ed4f1c3c ok;
- status = 1
- block = 63955519
- usedGas = 584464
- exec_time = 10.740089s
- }
- [ 2024-11-06-13-03-45 ] MESSAGE: new order delta: 10741
- [ 2024-11-06-13-03-45 ] DEBUG ? new: empty order
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-13-04-10 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898221000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 2996499060979357340, {"dex_order_id": "906463", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.670000, "quantity": 19.319400, "filled_quantity": 0.000000, "update_time": 1730898221000}}
- [ 2024-11-06-13-04-10 ] MESSAGE: limit
- [ 2024-11-06-13-04-10 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 2996499060979357340, {"dex_order_id": "906463", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.670000, "quantity": 19.319400, "filled_quantity": 0.000000, "update_time": 1730898221000}
- [ 2024-11-06-13-04-10 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 2996499060979357340, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 7.670000, "quantity": 19.319400, "update_time": 0}
- [ 2024-11-06-13-04-10 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-11-06-13-04-10 ] MESSAGE: ! HCDAI
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-13-04-10 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898221000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 2996499060979357340, {"dex_order_id": "906463", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.670000, "quantity": 19.319400, "filled_quantity": 7.752600, "update_time": 1730898221000}}
- [ 2024-11-06-13-04-10 ] MESSAGE: limit
- [ 2024-11-06-13-04-10 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 2996499060979357340, {"dex_order_id": "906463", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.670000, "quantity": 19.319400, "filled_quantity": 7.752600, "update_time": 1730898221000}
- [ 2024-11-06-13-04-10 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 2996499060979357340, {"dex_order_id": "906463", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.670000, "quantity": 19.319400, "filled_quantity": 0.000000, "update_time": 1730898221000}
- $$$ {"symbol": "HCDAI", "price": 7.670000, "quantity": 7.752600, "trade_side": BUY, "trade_time": 1730898221000}
- open_position for order
- [ 2024-11-06-13-04-10 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.670000, "quantity": 7.752600, "trade_side": BUY, "trade_time": 1730898221000}
- [ 2024-11-06-13-04-10 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.67, "quantity": 7.7526, "position_quote": 59.4624}
- [ 2024-11-06-13-04-10 ] MESSAGE: ! HCDAI
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-13-04-16 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898225000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 6289111126658128970, {"dex_order_id": "906464", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.670000, "quantity": 19.319400, "filled_quantity": 0.000000, "update_time": 1730898225000}}
- [ 2024-11-06-13-04-16 ] MESSAGE: limit
- [ 2024-11-06-13-04-16 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 6289111126658128970, {"dex_order_id": "906464", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.670000, "quantity": 19.319400, "filled_quantity": 0.000000, "update_time": 1730898225000}
- [ 2024-11-06-13-04-16 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 6289111126658128970, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": 7.670000, "quantity": 19.319400, "update_time": 0}
- [ 2024-11-06-13-04-16 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-11-06-13-04-16 ] MESSAGE: ! HCDAI
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-13-04-16 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898221000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 2996499060979357340, {"dex_order_id": "906463", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.670000, "quantity": 19.319400, "filled_quantity": 19.319400, "update_time": 1730898221000}}
- [ 2024-11-06-13-04-16 ] MESSAGE: limit
- [ 2024-11-06-13-04-16 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 2996499060979357340, {"dex_order_id": "906463", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.670000, "quantity": 19.319400, "filled_quantity": 19.319400, "update_time": 1730898221000}
- [ 2024-11-06-13-04-16 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 2996499060979357340, {"dex_order_id": "906463", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.670000, "quantity": 19.319400, "filled_quantity": 7.752600, "update_time": 1730898221000}
- $$$ {"symbol": "HCDAI", "price": 7.670000, "quantity": 11.566800, "trade_side": BUY, "trade_time": 1730898221000}
- open_position for order
- [ 2024-11-06-13-04-16 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.670000, "quantity": 11.566800, "trade_side": BUY, "trade_time": 1730898221000}
- [ 2024-11-06-13-04-16 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.67, "quantity": 19.3194, "position_quote": 148.18}
- [ 2024-11-06-13-04-16 ] MESSAGE: erase
- [ 2024-11-06-13-04-16 ] MESSAGE: ! HCDAI
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-13-04-16 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898225000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 6289111126658128970, {"dex_order_id": "906464", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.670000, "quantity": 19.319400, "filled_quantity": 19.319400, "update_time": 1730898225000}}
- [ 2024-11-06-13-04-16 ] MESSAGE: limit
- [ 2024-11-06-13-04-16 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 6289111126658128970, {"dex_order_id": "906464", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.670000, "quantity": 19.319400, "filled_quantity": 19.319400, "update_time": 1730898225000}
- [ 2024-11-06-13-04-16 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 6289111126658128970, {"dex_order_id": "906464", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.670000, "quantity": 19.319400, "filled_quantity": 0.000000, "update_time": 1730898225000}
- $$$ {"symbol": "HCDAI", "price": 7.670000, "quantity": 19.319400, "trade_side": SELL, "trade_time": 1730898225000}
- open_position for order
- [ 2024-11-06-13-04-16 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.670000, "quantity": 19.319400, "trade_side": SELL, "trade_time": 1730898225000}
- [ 2024-11-06-13-04-16 ] INFO new position: {"symbol": "HCDAI", "entry_price": 0, "quantity": 0, "position_quote": 0}
- [ 2024-11-06-13-04-16 ] MESSAGE: erase
- [ 2024-11-06-13-04-16 ] MESSAGE: ! HCDAI
- [ 2024-11-06-13-05-47 ] MESSAGE: sleep time = 101400
- [ 2024-11-06-13-05-47 ] MESSAGE: ask price 7.690000 bid price: 7.640000
- [ 2024-11-06-13-05-47 ] MESSAGE: current_volume: 130.089265 previous price = 7.674738
- [ 2024-11-06-13-05-47 ] MESSAGE: start calculating new normal distributed price
- [ 2024-11-06-13-05-47 ] MESSAGE: calculate deviated price (new) = 7.663470 current price = 7.674738
- [ 2024-11-06-13-05-47 ] MESSAGE: delta = -0.011268
- [ 2024-11-06-13-05-47 ] MESSAGE: new price after = 7.663470
- [ 2024-11-06-13-05-47 ] MESSAGE: price: 7.663470
- quantity: 16.975243
- [ 2024-11-06-13-05-47 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
- [ 2024-11-06-13-05-47 ] DEBUG base balance: {"asset": "HC", "free": 64.3413, "locked": 0, "wallet": 0, "update_time": 1730898339492}
- [ 2024-11-06-13-05-47 ] DEBUG quote balance: {"asset": "DAI", "free": 499.435, "locked": 0, "wallet": 0, "update_time": 1730898339492}
- [ 2024-11-06-13-05-47 ] MESSAGE: balances_ratio: 0.987271
- [ 2024-11-06-13-05-47 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
- [ 2024-11-06-13-05-47 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.660000, "quantity": 16.975200, "client_order_id": 9464693683520657121, "type": "LIMIT", "side": "BUY"}
- ! new api API 0x63aad54939b0
- [ 2024-11-06-13-05-47 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.660000, "quantity": 16.975200, "client_order_id": 14865112647110992970, "type": "LIMIT", "side": "SELL"}
- ! new api API 0x63aad54939b0
- 2024/11/06 13:05:47 extends args: {"timeout": "30000", "priority": "0"}
- 2024/11/06 13:05:47 args: {"quantity": "16975200000000000000", "price": "7660000000000000000", "orderType": "0", "isBid": "true"}
- 2024/11/06 13:05:47 start cancelation
- 2024/11/06 13:05:47 finish cancelation
- 2024/11/06 13:05:47 extends args: {"timeout": "30000", "priority": "0"}
- 2024/11/06 13:05:47 args: {"quantity": "16975200000000000000", "price": "7660000000000000000", "orderType": "0", "isBid": "false"}
- 2024/11/06 13:05:47 start cancelation
- 2024/11/06 13:05:47 finish cancelation
- 2024/11/06 13:05:47 gas price = 49025361110
- 2024/11/06 13:05:47 gas price = 49025361110
- 2024/11/06 13:05:48 TX Hash: 0x667e66a126a1c1336e08c7388fba72800f72ad4e4b3bc105ed1cb96f53cf6e2c ; Nonce: 45
- 2024/11/06 13:05:48 TX Hash: 0x14ff354a602c99d4c06aa3d842e7c239bc59894380d75fc5f46eac4465a786bb ; Nonce: 44
- [ 2024-11-06-13-07-41 ] MESSAGE: sleep time = 112593
- [ 2024-11-06-13-07-41 ] MESSAGE: ask price 7.670000 bid price: 7.640000
- [ 2024-11-06-13-07-41 ] MESSAGE: current_volume: 138.057893 previous price = 7.663470
- [ 2024-11-06-13-07-41 ] MESSAGE: start calculating new normal distributed price
- [ 2024-11-06-13-07-41 ] MESSAGE: calculate deviated price (new) = 7.664810 current price = 7.663470
- [ 2024-11-06-13-07-41 ] MESSAGE: delta = 0.001341
- [ 2024-11-06-13-07-41 ] MESSAGE: new_price > upper_bound
- [ 2024-11-06-13-07-41 ] MESSAGE: new price after = 7.660000
- [ 2024-11-06-13-07-41 ] MESSAGE: price: 7.660000
- quantity: 18.023224
- [ 2024-11-06-13-07-41 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
- [ 2024-11-06-13-07-41 ] DEBUG base balance: {"asset": "HC", "free": 64.3413, "locked": 0, "wallet": 0, "update_time": 1730898456362}
- [ 2024-11-06-13-07-41 ] DEBUG quote balance: {"asset": "DAI", "free": 499.435, "locked": 0, "wallet": 0, "update_time": 1730898456362}
- [ 2024-11-06-13-07-41 ] MESSAGE: balances_ratio: 0.986824
- [ 2024-11-06-13-07-41 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
- [ 2024-11-06-13-07-41 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.660000, "quantity": 18.023200, "client_order_id": 13283824405816181755, "type": "LIMIT", "side": "BUY"}
- ! new api API 0x63aad54939b0
- [ 2024-11-06-13-07-41 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.660000, "quantity": 18.023200, "client_order_id": 12701296106768463687, "type": "LIMIT", "side": "SELL"}
- ! new api API 2024/11/06 13:07:41 extends args: {"timeout": "30000", "priority": "0"}
- 0x63aad54939b0
- 2024/11/06 13:07:41 args: {"quantity": "18023200000000000000", "price": "7660000000000000000", "orderType": "0", "isBid": "true"}
- 2024/11/06 13:07:41 start cancelation
- 2024/11/06 13:07:41 finish cancelation
- 2024/11/06 13:07:41 extends args: {"timeout": "30000", "priority": "0"}
- 2024/11/06 13:07:41 args: {"quantity": "18023200000000000000", "price": "7660000000000000000", "orderType": "0", "isBid": "false"}
- 2024/11/06 13:07:41 start cancelation
- 2024/11/06 13:07:41 finish cancelation
- 2024/11/06 13:07:41 gas price = 56965750056
- 2024/11/06 13:07:41 cancel tx 0x667e66a126a1c1336e08c7388fba72800f72ad4e4b3bc105ed1cb96f53cf6e2c with tx 0xbf71016249648859b5a98bc0bbca2c7be4f5ac8654a5ef86354828dcef223c31; Nonce 45
- 2024/11/06 13:07:41 cancel tx 0x14ff354a602c99d4c06aa3d842e7c239bc59894380d75fc5f46eac4465a786bb with tx 0x391a6b4aece0aa6a95e9752901893df0e5420e88df561e54fdbc966203aa89a4; Nonce 44
- 2024/11/06 13:07:41 cancel tx 0x14ff354a602c99d4c06aa3d842e7c239bc59894380d75fc5f46eac4465a786bb with tx 0x391a6b4aece0aa6a95e9752901893df0e5420e88df561e54fdbc966203aa89a4; Nonce 44
- 2024/11/06 13:07:41 cancel tx 0x667e66a126a1c1336e08c7388fba72800f72ad4e4b3bc105ed1cb96f53cf6e2c with tx 0x1846b7351364168f9e4648b8d8dc88c941498abf8b84d665eef8b70b9e6639be; Nonce 45
- 2024/11/06 13:07:41 gas price = 58155449449
- 2024/11/06 13:07:41 TX Hash: 0x70772f23c41aaf9ce91846d5961785bad2bfe9fd5050f60dca4032f63065267e ; Nonce: 46
- 2024/11/06 13:07:42 TX Hash: 0x1e75d70fedac41b670e17d2cbb838674589e0be601315991023b862536eb89ce ; Nonce: 47
- 2024/11/06 13:07:48 golang tx log: {
- tx = 0x391a6b4aece0aa6a95e9752901893df0e5420e88df561e54fdbc966203aa89a4 ok;
- status = 1
- block = 63955632
- usedGas = 21000
- }
- 2024/11/06 13:07:48 golang tx log: {
- tx = 0x391a6b4aece0aa6a95e9752901893df0e5420e88df561e54fdbc966203aa89a4 ok;
- status = 1
- block = 63955632
- usedGas = 21000
- }
- [ 2024-11-06-13-07-53 ] MESSAGE: new order delta: 125492
- [ 2024-11-06-13-07-53 ] DEBUG ? new: empty order
- 2024/11/06 13:07:56 golang tx log: {
- tx = 0x1846b7351364168f9e4648b8d8dc88c941498abf8b84d665eef8b70b9e6639be ok;
- status = 1
- block = 63955634
- usedGas = 21000
- }
- [ 2024-11-06-13-07-58 ] MESSAGE: new order delta: 130493
- [ 2024-11-06-13-07-58 ] DEBUG ? new: empty order
- 2024/11/06 13:08:10 golang tx log: {
- tx = 0x70772f23c41aaf9ce91846d5961785bad2bfe9fd5050f60dca4032f63065267e ok;
- status = 1
- block = 63955643
- usedGas = 470255
- exec_time = 28.631004s
- }
- [ 2024-11-06-13-08-10 ] MESSAGE: new order delta: 28632
- [ 2024-11-06-13-08-10 ] DEBUG ? new: empty order
- 2024/11/06 13:08:10 golang tx log: {
- tx = 0x1e75d70fedac41b670e17d2cbb838674589e0be601315991023b862536eb89ce ok;
- status = 1
- block = 63955643
- usedGas = 442433
- exec_time = 28.777434s
- }
- [ 2024-11-06-13-08-10 ] MESSAGE: new order delta: 28778
- [ 2024-11-06-13-08-10 ] DEBUG ? new: empty order
- 2024/11/06 13:08:11 failed to wait for transaction mining (0xbf71016249648859b5a98bc0bbca2c7be4f5ac8654a5ef86354828dcef223c31): context deadline exceeded
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-13-08-40 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898489000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 13283824405816181755, {"dex_order_id": "906503", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.660000, "quantity": 18.023200, "filled_quantity": 0.000000, "update_time": 1730898489000}}
- [ 2024-11-06-13-08-40 ] MESSAGE: limit
- [ 2024-11-06-13-08-40 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 13283824405816181755, {"dex_order_id": "906503", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.660000, "quantity": 18.023200, "filled_quantity": 0.000000, "update_time": 1730898489000}
- [ 2024-11-06-13-08-40 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 13283824405816181755, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 7.660000, "quantity": 18.023200, "update_time": 0}
- [ 2024-11-06-13-08-40 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-11-06-13-08-40 ] MESSAGE: ! HCDAI
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-13-08-40 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898489000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 12701296106768463687, {"dex_order_id": "906504", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.660000, "quantity": 18.023200, "filled_quantity": 0.000000, "update_time": 1730898489000}}
- [ 2024-11-06-13-08-40 ] MESSAGE: limit
- [ 2024-11-06-13-08-40 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 12701296106768463687, {"dex_order_id": "906504", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.660000, "quantity": 18.023200, "filled_quantity": 0.000000, "update_time": 1730898489000}
- [ 2024-11-06-13-08-40 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 12701296106768463687, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": 7.660000, "quantity": 18.023200, "update_time": 0}
- [ 2024-11-06-13-08-40 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-11-06-13-08-40 ] MESSAGE: ! HCDAI
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-13-08-40 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898489000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 13283824405816181755, {"dex_order_id": "906503", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.660000, "quantity": 18.023200, "filled_quantity": 18.023200, "update_time": 1730898489000}}
- [ 2024-11-06-13-08-40 ] MESSAGE: limit
- [ 2024-11-06-13-08-40 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 13283824405816181755, {"dex_order_id": "906503", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.660000, "quantity": 18.023200, "filled_quantity": 18.023200, "update_time": 1730898489000}
- [ 2024-11-06-13-08-40 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 13283824405816181755, {"dex_order_id": "906503", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.660000, "quantity": 18.023200, "filled_quantity": 0.000000, "update_time": 1730898489000}
- $$$ {"symbol": "HCDAI", "price": 7.660000, "quantity": 18.023200, "trade_side": BUY, "trade_time": 1730898489000}
- open_position for order
- [ 2024-11-06-13-08-40 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.660000, "quantity": 18.023200, "trade_side": BUY, "trade_time": 1730898489000}
- [ 2024-11-06-13-08-40 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.66, "quantity": 18.0232, "position_quote": 138.058}
- [ 2024-11-06-13-08-40 ] MESSAGE: erase
- [ 2024-11-06-13-08-40 ] MESSAGE: ! HCDAI
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-13-08-40 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898489000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 12701296106768463687, {"dex_order_id": "906504", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.660000, "quantity": 18.023200, "filled_quantity": 18.023200, "update_time": 1730898489000}}
- [ 2024-11-06-13-08-40 ] MESSAGE: limit
- [ 2024-11-06-13-08-40 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 12701296106768463687, {"dex_order_id": "906504", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.660000, "quantity": 18.023200, "filled_quantity": 18.023200, "update_time": 1730898489000}
- [ 2024-11-06-13-08-40 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 12701296106768463687, {"dex_order_id": "906504", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.660000, "quantity": 18.023200, "filled_quantity": 0.000000, "update_time": 1730898489000}
- $$$ {"symbol": "HCDAI", "price": 7.660000, "quantity": 18.023200, "trade_side": SELL, "trade_time": 1730898489000}
- open_position for order
- [ 2024-11-06-13-08-40 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.660000, "quantity": 18.023200, "trade_side": SELL, "trade_time": 1730898489000}
- [ 2024-11-06-13-08-40 ] INFO new position: {"symbol": "HCDAI", "entry_price": 0, "quantity": 0, "position_quote": 0}
- [ 2024-11-06-13-08-40 ] MESSAGE: erase
- [ 2024-11-06-13-08-40 ] MESSAGE: ! HCDAI
- [ 2024-11-06-13-09-34 ] MESSAGE: sleep time = 129719
- [ 2024-11-06-13-09-34 ] MESSAGE: ask price 7.690000 bid price: 7.670000
- [ 2024-11-06-13-09-34 ] MESSAGE: current_volume: 117.761964 previous price = 7.660000
- [ 2024-11-06-13-09-34 ] MESSAGE: start calculating new normal distributed price
- [ 2024-11-06-13-09-34 ] MESSAGE: calculate deviated price (new) = 7.647927 current price = 7.660000
- [ 2024-11-06-13-09-34 ] MESSAGE: delta = -0.012073
- [ 2024-11-06-13-09-34 ] MESSAGE: new_price < lower_bound
- [ 2024-11-06-13-09-34 ] MESSAGE: new price after = 7.680000
- [ 2024-11-06-13-09-34 ] MESSAGE: price: 7.680000
- quantity: 15.333589
- [ 2024-11-06-13-09-34 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
- [ 2024-11-06-13-09-34 ] DEBUG base balance: {"asset": "HC", "free": 64.3052, "locked": 0, "wallet": 0, "update_time": 1730898573285}
- [ 2024-11-06-13-09-34 ] DEBUG quote balance: {"asset": "DAI", "free": 499.159, "locked": 0, "wallet": 0, "update_time": 1730898573285}
- [ 2024-11-06-13-09-34 ] MESSAGE: balances_ratio: 0.989393
- [ 2024-11-06-13-09-34 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
- [ 2024-11-06-13-09-34 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.680000, "quantity": 15.333600, "client_order_id": 5766491332254769525, "type": "LIMIT", "side": "BUY"}
- ! new api API 0x63aad54939b0
- [ 2024-11-06-13-09-342024/11/06 13:09:34 extends args: {"timeout": "30000", "priority": "0"}
- 2024/11/06 13:09:34 args: {"quantity": "15333600000000000000", "price": "7680000000000000000", "orderType": "0", "isBid": "true"}
- 2024/11/06 13:09:34 start cancelation
- 2024/11/06 13:09:34 finish cancelation
- ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.680000, "quantity": 15.333600, "client_order_id": 13207811016173213746, "type": "LIMIT", "side": "SELL"}
- ! new api API 0x63aad54939b0
- 2024/11/06 13:09:34 extends args: {"timeout": "30000", "priority": "0"}
- 2024/11/06 13:09:34 args: {"quantity": "15333600000000000000", "price": "7680000000000000000", "orderType": "0", "isBid": "false"}
- 2024/11/06 13:09:34 start cancelation
- 2024/11/06 13:09:34 finish cancelation
- 2024/11/06 13:09:35 gas price = 60038954723
- 2024/11/06 13:09:35 gas price = 60038954723
- 2024/11/06 13:09:35 TX Hash: 0xdd55561c49a74da46ebfff31bf946476e74dcd21fadd6ea04570e089cdf0aca3 ; Nonce: 49
- 2024/11/06 13:09:35 TX Hash: 0x89c7183ba602940d6e94422374e350bb10b4783e1227982bf98cb217c7cc9f05 ; Nonce: 48
- 2024/11/06 13:09:39 golang tx log: {
- tx = 0x89c7183ba602940d6e94422374e350bb10b4783e1227982bf98cb217c7cc9f05 ok;
- status = 1
- block = 63955685
- usedGas = 470243
- exec_time = 4.876541s
- }
- [ 2024-11-06-13-09-39 ] MESSAGE: new order delta: 4877
- [ 2024-11-06-13-09-39 ] DEBUG ? new: empty order
- 2024/11/06 13:09:43 golang tx log: {
- tx = 0xdd55561c49a74da46ebfff31bf946476e74dcd21fadd6ea04570e089cdf0aca3 ok;
- status = 1
- block = 63955687
- usedGas = 442421
- exec_time = 8.791425s
- }
- [ 2024-11-06-13-09-43 ] MESSAGE: new order delta: 8792
- [ 2024-11-06-13-09-43 ] DEBUG ? new: empty order
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-13-10-10 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898579000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 5766491332254769525, {"dex_order_id": "906515", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.680000, "quantity": 15.333600, "filled_quantity": 0.000000, "update_time": 1730898579000}}
- [ 2024-11-06-13-10-10 ] MESSAGE: limit
- [ 2024-11-06-13-10-10 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 5766491332254769525, {"dex_order_id": "906515", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.680000, "quantity": 15.333600, "filled_quantity": 0.000000, "update_time": 1730898579000}
- [ 2024-11-06-13-10-10 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 5766491332254769525, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 7.680000, "quantity": 15.333600, "update_time": 0}
- [ 2024-11-06-13-10-10 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-11-06-13-10-10 ] MESSAGE: ! HCDAI
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-13-10-16 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898583000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 13207811016173213746, {"dex_order_id": "906516", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.680000, "quantity": 15.333600, "filled_quantity": 0.000000, "update_time": 1730898583000}}
- [ 2024-11-06-13-10-16 ] MESSAGE: limit
- [ 2024-11-06-13-10-16 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 13207811016173213746, {"dex_order_id": "906516", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.680000, "quantity": 15.333600, "filled_quantity": 0.000000, "update_time": 1730898583000}
- [ 2024-11-06-13-10-16 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 13207811016173213746, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": 7.680000, "quantity": 15.333600, "update_time": 0}
- [ 2024-11-06-13-10-16 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-11-06-13-10-16 ] MESSAGE: ! HCDAI
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-13-10-16 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898579000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 5766491332254769525, {"dex_order_id": "906515", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.680000, "quantity": 15.333600, "filled_quantity": 15.333600, "update_time": 1730898579000}}
- [ 2024-11-06-13-10-16 ] MESSAGE: limit
- [ 2024-11-06-13-10-16 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 5766491332254769525, {"dex_order_id": "906515", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.680000, "quantity": 15.333600, "filled_quantity": 15.333600, "update_time": 1730898579000}
- [ 2024-11-06-13-10-16 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 5766491332254769525, {"dex_order_id": "906515", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.680000, "quantity": 15.333600, "filled_quantity": 0.000000, "update_time": 1730898579000}
- $$$ {"symbol": "HCDAI", "price": 7.680000, "quantity": 15.333600, "trade_side": BUY, "trade_time": 1730898579000}
- open_position for order
- [ 2024-11-06-13-10-16 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.680000, "quantity": 15.333600, "trade_side": BUY, "trade_time": 1730898579000}
- [ 2024-11-06-13-10-16 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.68, "quantity": 15.3336, "position_quote": 117.762}
- [ 2024-11-06-13-10-16 ] MESSAGE: erase
- [ 2024-11-06-13-10-16 ] MESSAGE: ! HCDAI
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-13-10-16 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898583000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 13207811016173213746, {"dex_order_id": "906516", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.680000, "quantity": 15.333600, "filled_quantity": 15.333600, "update_time": 1730898583000}}
- [ 2024-11-06-13-10-16 ] MESSAGE: limit
- [ 2024-11-06-13-10-16 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 13207811016173213746, {"dex_order_id": "906516", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.680000, "quantity": 15.333600, "filled_quantity": 15.333600, "update_time": 1730898583000}
- [ 2024-11-06-13-10-16 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 13207811016173213746, {"dex_order_id": "906516", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.680000, "quantity": 15.333600, "filled_quantity": 0.000000, "update_time": 1730898583000}
- $$$ {"symbol": "HCDAI", "price": 7.680000, "quantity": 15.333600, "trade_side": SELL, "trade_time": 1730898583000}
- open_position for order
- [ 2024-11-06-13-10-16 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.680000, "quantity": 15.333600, "trade_side": SELL, "trade_time": 1730898583000}
- [ 2024-11-06-13-10-16 ] INFO new position: {"symbol": "HCDAI", "entry_price": 0, "quantity": 0, "position_quote": 0}
- [ 2024-11-06-13-10-16 ] MESSAGE: erase
- [ 2024-11-06-13-10-16 ] MESSAGE: ! HCDAI
- [ 2024-11-06-13-11-45 ] MESSAGE: sleep time = 113816
- [ 2024-11-06-13-11-45 ] MESSAGE: ask price 7.670000 bid price: 7.640000
- [ 2024-11-06-13-11-45 ] MESSAGE: current_volume: 122.102978 previous price = 7.680000
- [ 2024-11-06-13-11-45 ] MESSAGE: start calculating new normal distributed price
- [ 2024-11-06-13-11-45 ] MESSAGE: calculate deviated price (new) = 7.684074 current price = 7.680000
- [ 2024-11-06-13-11-45 ] MESSAGE: delta = 0.004074
- [ 2024-11-06-13-11-45 ] MESSAGE: new_price > upper_bound
- [ 2024-11-06-13-11-45 ] MESSAGE: new price after = 7.660000
- [ 2024-11-06-13-11-45 ] MESSAGE: price: 7.660000
- quantity: 15.940337
- [ 2024-11-06-13-11-45 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
- [ 2024-11-06-13-11-45 ] DEBUG base balance: {"asset": "HC", "free": 64.2746, "locked": 0, "wallet": 0, "update_time": 1730898701036}
- [ 2024-11-06-13-11-45 ] DEBUG quote balance: {"asset": "DAI", "free": 498.923, "locked": 0, "wallet": 0, "update_time": 1730898701036}
- [ 2024-11-06-13-11-45 ] MESSAGE: balances_ratio: 0.986812
- [ 2024-11-06-13-11-45 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
- [ 2024-11-06-13-11-45 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.660000, "quantity": 15.940300, "client_order_id": 10383728224054343054, "type": "LIMIT", "side": "BUY"}
- ! new api API 0x63aad54939b0
- [ 2024-11-06-13-11-45 ] DEBUG 2024/11/06 13:11:45 extends args: {"timeout": "30000", "priority": "0"}
- 2024/11/06 13:11:45 args: {"quantity": "15940300000000000000", "price": "7660000000000000000", "orderType": "0", "isBid": "true"}
- 2024/11/06 13:11:45 start cancelation
- 2024/11/06 13:11:45 finish cancelation
- ! new: {"symbol": "HCDAI", "price": 7.660000, "quantity": 15.940300, "client_order_id": 12327940340437119805, "type": "LIMIT", "side": "SELL"}
- ! new api API 0x63aad54939b0
- 2024/11/06 13:11:45 extends args: {"timeout": "30000", "priority": "0"}
- 2024/11/06 13:11:45 args: {"quantity": "15940300000000000000", "price": "7660000000000000000", "orderType": "0", "isBid": "false"}
- 2024/11/06 13:11:45 start cancelation
- 2024/11/06 13:11:45 finish cancelation
- 2024/11/06 13:11:46 gas price = 55082227398
- 2024/11/06 13:11:46 gas price = 55082227398
- 2024/11/06 13:11:46 TX Hash: 0x2763d67dcef39612330f652e514e2549ca398ef5ee9c621cfb293f359710c2f3 ; Nonce: 51
- 2024/11/06 13:11:46 TX Hash: 0x7ed10fae65d59e1ed3cddc54bfd976e67a337255cb36c76947f4beeeaf5e1158 ; Nonce: 50
- 2024/11/06 13:11:50 golang tx log: {
- tx = 0x7ed10fae65d59e1ed3cddc54bfd976e67a337255cb36c76947f4beeeaf5e1158 ok;
- status = 1
- block = 63955746
- usedGas = 470267
- exec_time = 4.636620s
- }
- [ 2024-11-06-13-11-50 ] MESSAGE: new order delta: 4637
- [ 2024-11-06-13-11-50 ] DEBUG ? new: empty order
- 2024/11/06 13:11:54 golang tx log: {
- tx = 0x2763d67dcef39612330f652e514e2549ca398ef5ee9c621cfb293f359710c2f3 ok;
- status = 1
- block = 63955748
- usedGas = 584452
- exec_time = 8.626870s
- }
- [ 2024-11-06-13-11-54 ] MESSAGE: new order delta: 8627
- [ 2024-11-06-13-11-54 ] DEBUG ? new: empty order
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-13-12-15 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898709000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 10383728224054343054, {"dex_order_id": "906533", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.660000, "quantity": 15.940300, "filled_quantity": 0.000000, "update_time": 1730898709000}}
- [ 2024-11-06-13-12-15 ] MESSAGE: limit
- [ 2024-11-06-13-12-15 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 10383728224054343054, {"dex_order_id": "906533", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.660000, "quantity": 15.940300, "filled_quantity": 0.000000, "update_time": 1730898709000}
- [ 2024-11-06-13-12-15 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 10383728224054343054, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 7.660000, "quantity": 15.940300, "update_time": 0}
- [ 2024-11-06-13-12-15 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-11-06-13-12-15 ] MESSAGE: ! HCDAI
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-13-12-22 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898713000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 12327940340437119805, {"dex_order_id": "906535", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.660000, "quantity": 15.940300, "filled_quantity": 0.000000, "update_time": 1730898713000}}
- [ 2024-11-06-13-12-22 ] MESSAGE: limit
- [ 2024-11-06-13-12-22 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 12327940340437119805, {"dex_order_id": "906535", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.660000, "quantity": 15.940300, "filled_quantity": 0.000000, "update_time": 1730898713000}
- [ 2024-11-06-13-12-22 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 12327940340437119805, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": 7.660000, "quantity": 15.940300, "update_time": 0}
- [ 2024-11-06-13-12-22 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-11-06-13-12-22 ] MESSAGE: ! HCDAI
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-13-12-22 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898709000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 10383728224054343054, {"dex_order_id": "906533", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.660000, "quantity": 15.940300, "filled_quantity": 15.940300, "update_time": 1730898709000}}
- [ 2024-11-06-13-12-22 ] MESSAGE: limit
- [ 2024-11-06-13-12-22 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 10383728224054343054, {"dex_order_id": "906533", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.660000, "quantity": 15.940300, "filled_quantity": 15.940300, "update_time": 1730898709000}
- [ 2024-11-06-13-12-22 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 10383728224054343054, {"dex_order_id": "906533", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.660000, "quantity": 15.940300, "filled_quantity": 0.000000, "update_time": 1730898709000}
- $$$ {"symbol": "HCDAI", "price": 7.660000, "quantity": 15.940300, "trade_side": BUY, "trade_time": 1730898709000}
- open_position for order
- [ 2024-11-06-13-12-22 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.660000, "quantity": 15.940300, "trade_side": BUY, "trade_time": 1730898709000}
- [ 2024-11-06-13-12-22 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.66, "quantity": 15.9403, "position_quote": 122.103}
- [ 2024-11-06-13-12-22 ] MESSAGE: erase
- [ 2024-11-06-13-12-22 ] MESSAGE: ! HCDAI
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-13-12-22 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898713000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 12327940340437119805, {"dex_order_id": "906535", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.660000, "quantity": 15.940300, "filled_quantity": 8.940300, "update_time": 1730898713000}}
- [ 2024-11-06-13-12-22 ] MESSAGE: limit
- [ 2024-11-06-13-12-22 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 12327940340437119805, {"dex_order_id": "906535", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.660000, "quantity": 15.940300, "filled_quantity": 8.940300, "update_time": 1730898713000}
- [ 2024-11-06-13-12-22 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 12327940340437119805, {"dex_order_id": "906535", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.660000, "quantity": 15.940300, "filled_quantity": 0.000000, "update_time": 1730898713000}
- $$$ {"symbol": "HCDAI", "price": 7.660000, "quantity": 8.940300, "trade_side": SELL, "trade_time": 1730898713000}
- open_position for order
- [ 2024-11-06-13-12-22 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.660000, "quantity": 8.940300, "trade_side": SELL, "trade_time": 1730898713000}
- [ 2024-11-06-13-12-22 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.66, "quantity": 7, "position_quote": 53.62}
- [ 2024-11-06-13-12-22 ] MESSAGE: ! HCDAI
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-13-12-34 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898713000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 12327940340437119805, {"dex_order_id": "906535", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.660000, "quantity": 15.940300, "filled_quantity": 15.940300, "update_time": 1730898713000}}
- [ 2024-11-06-13-12-34 ] MESSAGE: limit
- [ 2024-11-06-13-12-34 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 12327940340437119805, {"dex_order_id": "906535", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.660000, "quantity": 15.940300, "filled_quantity": 15.940300, "update_time": 1730898713000}
- [ 2024-11-06-13-12-34 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 12327940340437119805, {"dex_order_id": "906535", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.660000, "quantity": 15.940300, "filled_quantity": 8.940300, "update_time": 1730898713000}
- $$$ {"symbol": "HCDAI", "price": 7.660000, "quantity": 7.000000, "trade_side": SELL, "trade_time": 1730898713000}
- open_position for order
- [ 2024-11-06-13-12-34 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.660000, "quantity": 7.000000, "trade_side": SELL, "trade_time": 1730898713000}
- [ 2024-11-06-13-12-34 ] INFO new position: {"symbol": "HCDAI", "entry_price": 0, "quantity": 0, "position_quote": 0}
- [ 2024-11-06-13-12-34 ] MESSAGE: erase
- [ 2024-11-06-13-12-34 ] MESSAGE: ! HCDAI
- [ 2024-11-06-13-13-42 ] MESSAGE: sleep time = 126141
- [ 2024-11-06-13-13-42 ] MESSAGE: ask price 7.640000 bid price: 7.630000
- [ 2024-11-06-13-13-42 ] MESSAGE: Narrow spread
- [ 2024-11-06-13-13-42 ] MESSAGE: dealing with narrow spread
- [ 2024-11-06-13-13-42 ] INFO dealing with narrow spread result: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.63, 7.07733); ], bids: [(7.64, 7.06806); ]
- [ 2024-11-06-13-13-42 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.63, 7.07733); ], bids: [(7.64, 7.06806); ]
- [ 2024-11-06-13-13-42 ] DEBUG base balance: {"asset": "HC", "free": 64.2427, "locked": 0, "wallet": 0, "update_time": 1730898817992}
- [ 2024-11-06-13-13-42 ] DEBUG quote balance: {"asset": "DAI", "free": 498.679, "locked": 0, "wallet": 0, "update_time": 1730898817992}
- [ 2024-11-06-13-13-42 ] MESSAGE: balances_ratio: 0.983585
- [ 2024-11-06-13-13-42 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.63, 7.07733); ], bids: [(7.64, 7.06806); ]
- [ 2024-11-06-13-13-42 ] MESSAGE: LIMIT GRID
- [ 2024-11-06-13-13-42 ] DEBUG in _process_limit_grid: 7.63
- [ 2024-11-06-13-13-42 ] DEBUG in _process_limit_grid: 7.07733
- [ 2024-11-06-13-13-42 ] DEBUG in _process_limit_grid: 7.64
- [ 2024-11-06-13-13-42 ] DEBUG in _process_limit_grid: 7.06806
- [ 2024-11-06-13-13-42 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 7.640000, "quantity": 7.068100, "type": "LIMIT", "side": "BUY"}
- [ 2024-11-06-13-13-42 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 7.630000, "quantity": 7.077300, "type": "LIMIT", "side": "SELL"}
- [ 2024-11-06-13-13-42 ] MESSAGE: csize: 0
- [ 2024-11-06-13-13-42 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.640000, "quantity": 7.068100, "client_order_id": 7591030134650113030, "type": "LIMIT", "side": "BUY"}
- ! new api API 0x63aad54939b0
- [ 2024-11-06-13-13-42 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.630000, "quantity": 7.077300, "client_order_id": 2903835777163515087, "type": "LIMIT", "side": "SELL"}
- ! new api API 0x63aad54939b0
- 2024/11/06 13:13:42 extends args: {"timeout": "30000", "priority": "0"}
- 2024/11/06 13:13:42 args: {"quantity": "7068100000000000000", "price": "7640000000000000000", "orderType": "0", "isBid": "true"}
- 2024/11/06 13:13:42 start cancelation
- 2024/11/06 13:13:42 finish cancelation
- 2024/11/06 13:13:42 extends args: {"timeout": "30000", "priority": "0"}
- 2024/11/06 13:13:42 args: {"quantity": "7077300000000000000", "price": "7630000000000000000", "orderType": "0", "isBid": "false"}
- 2024/11/06 13:13:42 start cancelation
- 2024/11/06 13:13:42 finish cancelation
- 2024/11/06 13:13:42 gas price = 52138913891
- 2024/11/06 13:13:42 gas price = 52138913891
- 2024/11/06 13:13:42 TX Hash: 0x8672ad201553a7d73639698d85b52db524b0a0541629e3425c6d88b849343000 ; Nonce: 53
- 2024/11/06 13:13:42 TX Hash: 0x3fc8559244b714f1a7d779d6efe30c8ceda43c84d938e117617d13ebab8b3061 ; Nonce: 52
- 2024/11/06 13:13:47 golang tx log: {
- tx = 0x8672ad201553a7d73639698d85b52db524b0a0541629e3425c6d88b849343000 ok;
- status = 1
- block = 63955802
- usedGas = 441891
- exec_time = 5.634239s
- }
- [ 2024-11-06-13-13-47 ] MESSAGE: new order delta: 5635
- [ 2024-11-06-13-13-47 ] DEBUG ? new: empty order
- 2024/11/06 13:13:47 golang tx log: {
- tx = 0x3fc8559244b714f1a7d779d6efe30c8ceda43c84d938e117617d13ebab8b3061 ok;
- status = 1
- block = 63955802
- usedGas = 368103
- exec_time = 5.639415s
- }
- [ 2024-11-06-13-13-47 ] MESSAGE: new order delta: 5640
- [ 2024-11-06-13-13-47 ] DEBUG ? new: empty order
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-13-14-17 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898827000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 7591030134650113030, {"dex_order_id": "906557", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.640000, "quantity": 7.068100, "filled_quantity": 0.000000, "update_time": 1730898827000}}
- [ 2024-11-06-13-14-17 ] MESSAGE: limit
- [ 2024-11-06-13-14-17 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 7591030134650113030, {"dex_order_id": "906557", "order_id": "1730898211873002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.640000, "quantity": 7.068100, "filled_quantity": 0.000000, "update_time": 1730898827000}
- [ 2024-11-06-13-14-17 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 7591030134650113030, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 7.640000, "quantity": 7.068100, "update_time": 0}
- [ 2024-11-06-13-14-17 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-11-06-13-14-17 ] MESSAGE: ! HCDAI
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-13-14-17 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898827000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 2903835777163515087, {"dex_order_id": "906558", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.630000, "quantity": 7.077300, "filled_quantity": 0.000000, "update_time": 1730898827000}}
- [ 2024-11-06-13-14-17 ] MESSAGE: limit
- [ 2024-11-06-13-14-17 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 2903835777163515087, {"dex_order_id": "906558", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.630000, "quantity": 7.077300, "filled_quantity": 0.000000, "update_time": 1730898827000}
- [ 2024-11-06-13-14-17 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 2903835777163515087, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": 7.630000, "quantity": 7.077300, "update_time": 0}
- [ 2024-11-06-13-14-17 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-11-06-13-14-17 ] MESSAGE: ! HCDAI
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-13-14-17 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730898827000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 127873295542048, "order": {"symbol": "HCDAI", "coid": 2903835777163515087, {"dex_order_id": "906558", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.630000, "quantity": 7.077300, "filled_quantity": 7.077300, "update_time": 1730898827000}}
- [ 2024-11-06-13-14-17 ] MESSAGE: limit
- [ 2024-11-06-13-14-17 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 2903835777163515087, {"dex_order_id": "906558", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.630000, "quantity": 7.077300, "filled_quantity": 7.077300, "update_time": 1730898827000}
- [ 2024-11-06-13-14-17 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 2903835777163515087, {"dex_order_id": "906558", "order_id": "1730898211873002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.630000, "quantity": 7.077300, "filled_quantity": 0.000000, "update_time": 1730898827000}
- $$$ {"symbol": "HCDAI", "price": 7.630000, "quantity": 7.077300, "trade_side": SELL, "trade_time": 1730898827000}
- open_position for order
- [ 2024-11-06-13-14-17 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.630000, "quantity": 7.077300, "trade_side": SELL, "trade_time": 1730898827000}
- [ 2024-11-06-13-14-17 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.63, "quantity": -7.0773, "position_quote": -53.9998}
- [ 2024-11-06-13-14-17 ] MESSAGE: erase
- [ 2024-11-06-13-14-17 ] MESSAGE: ! HCDAI
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement