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 12:46:20 init Nonce: 26
- 2024/11/06 12:46:20 bind contract 0x6b965968fbc6ff0d2ed7cb1cb38c1c1bbe0327b4
- 2024/11/06 12:46:20 bind contract 0x1a9f5fd1b36f8d1e03f0ff6eabbbb268f053033e
- 2024/11/06 12:46:20 bind contract 0x6fcb55c09671bd0d28b5a0e9d303793ac005f19c
- 2024/11/06 12:46:20 bind contract 0x762d3d096b9a74f4d3adf2b0824456ef8fce5daa
- 2024/11/06 12:46:20 bind contract 0x8f3cf7ad23cd3cadbd9735aff958023239c6a063
- run forever balance 0x576e78d779b0
- {"type": "DEX", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "HC", "free": 64.3953, "locked": 0, "wallet": 0, "update_time": 1730897183382}, {"asset": "DAI", "free": 499.806, "locked": 0, "wallet": 0, "update_time": 1730897183382}]}
- get balance indicator 0x576e78d77b50
- 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-12-46-24 ] 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-12-46-28 ] MESSAGE: sleep time = 111776
- [ 2024-11-06-12-46-28 ] MESSAGE: ask price 7.690000 bid price: 7.640000
- [ 2024-11-06-12-46-28 ] MESSAGE: current_volume: 8.400000 previous price = 7.665000
- [ 2024-11-06-12-46-28 ] MESSAGE: start calculating new normal distributed price
- [ 2024-11-06-12-46-28 ] MESSAGE: calculate deviated price (new) = 7.677090 current price = 7.665000
- [ 2024-11-06-12-46-28 ] MESSAGE: delta = 0.012090
- [ 2024-11-06-12-46-28 ] MESSAGE: new price after = 7.677090
- [ 2024-11-06-12-46-28 ] MESSAGE: price: 7.677090
- quantity: 1.094165
- [ 2024-11-06-12-46-28 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
- [ 2024-11-06-12-46-28 ] DEBUG base balance: {"asset": "HC", "free": 64.3953, "locked": 0, "wallet": 0, "update_time": 1730897184034}
- [ 2024-11-06-12-46-28 ] DEBUG quote balance: {"asset": "DAI", "free": 499.806, "locked": 0, "wallet": 0, "update_time": 1730897184034}
- [ 2024-11-06-12-46-28 ] MESSAGE: balances_ratio: 0.989121
- [ 2024-11-06-12-46-28 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
- [ 2024-11-06-12-46-28 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.680000, "quantity": 1.094200, "client_order_id": 18357484055758267148, "type": "LIMIT", "side": "BUY"}
- ! new api API 0x576e78d779b0
- [ 2024-11-06-12-46-28 ] DEBUG ! new2024/11/06 12:46:28 extends args: {"timeout": "30000", "priority": "0"}
- : 2024/11/06 12:46:28 args: {"quantity": "1094200000000000000", "price": "7680000000000000000", "orderType": "0", "isBid": "true"}
- 2024/11/06 12:46:28 start cancelation
- {"symbol": "HCDAI", "price": 7.680000, "quantity": 1.094200, "client_order_id": 6214032565358649618, "type": "LIMIT", "side": "SELL"}2024/11/06 12:46:28 finish cancelation
- ! new api API 0x576e78d779b0
- 2024/11/06 12:46:28 extends args: {"timeout": "30000", "priority": "0"}
- 2024/11/06 12:46:28 args: {"quantity": "1094200000000000000", "price": "7680000000000000000", "orderType": "0", "isBid": "false"}
- 2024/11/06 12:46:28 start cancelation
- 2024/11/06 12:46:28 finish cancelation
- 2024/11/06 12:46:28 gas price = 53169982506
- 2024/11/06 12:46:28 gas price = 53169982506
- 2024/11/06 12:46:28 TX Hash: 0x73b6119ca0dbd0a458fd4c803cb1d134c5505606683183d623088f9a0dd76cc2 ; Nonce: 26
- 2024/11/06 12:46:28 TX Hash: 0x151ff0cdad8d90a96bade449c8fdb815c4f8ad26d1ffffd2fe34ebee986d6765 ; Nonce: 27
- 2024/11/06 12:46:32 golang tx log: {
- tx = 0x73b6119ca0dbd0a458fd4c803cb1d134c5505606683183d623088f9a0dd76cc2 ok;
- status = 1
- block = 63955033
- usedGas = 643163
- exec_time = 4.729046s
- }
- [ 2024-11-06-12-46-32 ] MESSAGE: new order delta: 4730
- [ 2024-11-06-12-46-32 ] DEBUG ? new: empty order
- 2024/11/06 12:46:36 golang tx log: {
- tx = 0x151ff0cdad8d90a96bade449c8fdb815c4f8ad26d1ffffd2fe34ebee986d6765 ok;
- status = 1
- block = 63955035
- usedGas = 460341
- exec_time = 8.771786s
- }
- [ 2024-11-06-12-46-36 ] MESSAGE: new order delta: 8772
- [ 2024-11-06-12-46-36 ] DEBUG ? new: empty order
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-12-47-02 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897192000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 18357484055758267148, {"dex_order_id": "906269", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.680000, "quantity": 1.094200, "filled_quantity": 0.000000, "update_time": 1730897192000}}
- [ 2024-11-06-12-47-02 ] MESSAGE: limit
- [ 2024-11-06-12-47-02 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 18357484055758267148, {"dex_order_id": "906269", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.680000, "quantity": 1.094200, "filled_quantity": 0.000000, "update_time": 1730897192000}
- [ 2024-11-06-12-47-02 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 18357484055758267148, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 7.680000, "quantity": 1.094200, "update_time": 0}
- [ 2024-11-06-12-47-02 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-11-06-12-47-02 ] MESSAGE: ! HCDAI
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-12-47-02 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897192000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 18357484055758267148, {"dex_order_id": "906269", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.680000, "quantity": 1.094200, "filled_quantity": 0.077600, "update_time": 1730897192000}}
- [ 2024-11-06-12-47-02 ] MESSAGE: limit
- [ 2024-11-06-12-47-02 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 18357484055758267148, {"dex_order_id": "906269", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.680000, "quantity": 1.094200, "filled_quantity": 0.077600, "update_time": 1730897192000}
- [ 2024-11-06-12-47-02 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 18357484055758267148, {"dex_order_id": "906269", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.680000, "quantity": 1.094200, "filled_quantity": 0.000000, "update_time": 1730897192000}
- $$$ {"symbol": "HCDAI", "price": 7.680000, "quantity": 0.077600, "trade_side": BUY, "trade_time": 1730897192000}
- open_position for order
- [ 2024-11-06-12-47-02 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.680000, "quantity": 0.077600, "trade_side": BUY, "trade_time": 1730897192000}
- [ 2024-11-06-12-47-02 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.68, "quantity": 0.0776, "position_quote": 0.595968}
- [ 2024-11-06-12-47-02 ] MESSAGE: ! HCDAI
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-12-47-09 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897196000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 6214032565358649618, {"dex_order_id": "906272", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.680000, "quantity": 1.094200, "filled_quantity": 0.000000, "update_time": 1730897196000}}
- [ 2024-11-06-12-47-09 ] MESSAGE: limit
- [ 2024-11-06-12-47-09 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 6214032565358649618, {"dex_order_id": "906272", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.680000, "quantity": 1.094200, "filled_quantity": 0.000000, "update_time": 1730897196000}
- [ 2024-11-06-12-47-09 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 6214032565358649618, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": 7.680000, "quantity": 1.094200, "update_time": 0}
- [ 2024-11-06-12-47-09 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-11-06-12-47-09 ] MESSAGE: ! HCDAI
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-12-47-09 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897192000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 18357484055758267148, {"dex_order_id": "906269", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.680000, "quantity": 1.094200, "filled_quantity": 1.094200, "update_time": 1730897192000}}
- [ 2024-11-06-12-47-09 ] MESSAGE: limit
- [ 2024-11-06-12-47-09 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 18357484055758267148, {"dex_order_id": "906269", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.680000, "quantity": 1.094200, "filled_quantity": 1.094200, "update_time": 1730897192000}
- [ 2024-11-06-12-47-09 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 18357484055758267148, {"dex_order_id": "906269", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.680000, "quantity": 1.094200, "filled_quantity": 0.077600, "update_time": 1730897192000}
- $$$ {"symbol": "HCDAI", "price": 7.680000, "quantity": 1.016600, "trade_side": BUY, "trade_time": 1730897192000}
- open_position for order
- [ 2024-11-06-12-47-09 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.680000, "quantity": 1.016600, "trade_side": BUY, "trade_time": 1730897192000}
- [ 2024-11-06-12-47-09 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.68, "quantity": 1.0942, "position_quote": 8.40346}
- [ 2024-11-06-12-47-09 ] MESSAGE: erase
- [ 2024-11-06-12-47-09 ] MESSAGE: ! HCDAI
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-12-47-15 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897196000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 6214032565358649618, {"dex_order_id": "906272", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.680000, "quantity": 1.094200, "filled_quantity": 1.094200, "update_time": 1730897196000}}
- [ 2024-11-06-12-47-15 ] MESSAGE: limit
- [ 2024-11-06-12-47-15 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 6214032565358649618, {"dex_order_id": "906272", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.680000, "quantity": 1.094200, "filled_quantity": 1.094200, "update_time": 1730897196000}
- [ 2024-11-06-12-47-15 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 6214032565358649618, {"dex_order_id": "906272", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.680000, "quantity": 1.094200, "filled_quantity": 0.000000, "update_time": 1730897196000}
- $$$ {"symbol": "HCDAI", "price": 7.680000, "quantity": 1.094200, "trade_side": SELL, "trade_time": 1730897196000}
- open_position for order
- [ 2024-11-06-12-47-15 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.680000, "quantity": 1.094200, "trade_side": SELL, "trade_time": 1730897196000}
- [ 2024-11-06-12-47-15 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.68, "quantity": -2.22045e-16, "position_quote": -1.77636e-15}
- [ 2024-11-06-12-47-15 ] MESSAGE: erase
- [ 2024-11-06-12-47-15 ] MESSAGE: ! HCDAI
- [ 2024-11-06-12-48-23 ] MESSAGE: sleep time = 131686
- [ 2024-11-06-12-48-23 ] MESSAGE: ask price 7.650000 bid price: 7.640000
- [ 2024-11-06-12-48-23 ] MESSAGE: Narrow spread
- [ 2024-11-06-12-48-23 ] MESSAGE: dealing with narrow spread
- [ 2024-11-06-12-48-23 ] INFO dealing with narrow spread result: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.64, 0.524426); ], bids: [(7.65, 0.52374); ]
- [ 2024-11-06-12-48-23 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.64, 0.524426); ], bids: [(7.65, 0.52374); ]
- [ 2024-11-06-12-48-23 ] DEBUG base balance: {"asset": "HC", "free": 64.3931, "locked": 0, "wallet": 0, "update_time": 1730897301031}
- [ 2024-11-06-12-48-23 ] DEBUG quote balance: {"asset": "DAI", "free": 499.79, "locked": 0, "wallet": 0, "update_time": 1730897301031}
- [ 2024-11-06-12-48-23 ] MESSAGE: balances_ratio: 0.984984
- [ 2024-11-06-12-48-23 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.64, 0.524426); ], bids: [(7.65, 0.52374); ]
- [ 2024-11-06-12-48-23 ] MESSAGE: LIMIT GRID
- [ 2024-11-06-12-48-23 ] DEBUG in _process_limit_grid: 7.64
- [ 2024-11-06-12-48-23 ] DEBUG in _process_limit_grid: 0.524426
- [ 2024-11-06-12-48-23 ] DEBUG in _process_limit_grid: 7.65
- [ 2024-11-06-12-48-23 ] DEBUG in _process_limit_grid: 0.52374
- [ 2024-11-06-12-48-23 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 7.650000, "quantity": 0.523700, "type": "LIMIT", "side": "BUY"}
- [ 2024-11-06-12-48-23 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 7.640000, "quantity": 0.524400, "type": "LIMIT", "side": "SELL"}
- [ 2024-11-06-12-48-23 ] MESSAGE: csize: 0
- [ 2024-11-06-12-48-23 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.650000, "quantity": 0.523700, "client_order_id": 3555222689979717478, "type": "LIMIT", "side": "BUY"}
- ! new api API 0x576e78d779b0
- [ 2024-11-06-12-48-23 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.640000, "quantity": 0.524400, "client_order_id": 985116120168061891, "type": "LIMIT", "side": "SELL"}
- ! new api API 0x576e78d779b0
- 2024/11/06 12:48:23 extends args: {"timeout": "30000", "priority": "0"}
- 2024/11/06 12:48:23 args: {"quantity": "523700000000000000", "price": "7650000000000000000", "orderType": "0", "isBid": "true"}
- 2024/11/06 12:48:23 start cancelation
- 2024/11/06 12:48:23 finish cancelation
- 2024/11/06 12:48:23 extends args: {"timeout": "30000", "priority": "0"}
- 2024/11/06 12:48:23 args: {"quantity": "524400000000000000", "price": "7640000000000000000", "orderType": "0", "isBid": "false"}
- 2024/11/06 12:48:23 start cancelation
- 2024/11/06 12:48:23 finish cancelation
- 2024/11/06 12:48:23 gas price = 51558530233
- 2024/11/06 12:48:24 gas price = 51558530233
- 2024/11/06 12:48:24 TX Hash: 0xfd41d3fbda75d3fb6abbda8fee2514aa22b94aff13becf74d069b21d64de1aff ; Nonce: 29
- 2024/11/06 12:48:24 TX Hash: 0x3022e6173e410ba813416b7a5612215bacb9ee01b11c847e9a181c47550e8725 ; Nonce: 28
- 2024/11/06 12:48:31 golang tx log: {
- tx = 0x3022e6173e410ba813416b7a5612215bacb9ee01b11c847e9a181c47550e8725 ok;
- status = 1
- block = 63955088
- usedGas = 413767
- exec_time = 7.619153s
- }
- [ 2024-11-06-12-48-31 ] MESSAGE: new order delta: 7620
- [ 2024-11-06-12-48-31 ] DEBUG ? new: empty order
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-12-48-59 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897310000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 3555222689979717478, {"dex_order_id": "906298", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.650000, "quantity": 0.523700, "filled_quantity": 0.000000, "update_time": 1730897310000}}
- [ 2024-11-06-12-48-59 ] MESSAGE: limit
- [ 2024-11-06-12-48-59 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 3555222689979717478, {"dex_order_id": "906298", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.650000, "quantity": 0.523700, "filled_quantity": 0.000000, "update_time": 1730897310000}
- [ 2024-11-06-12-48-59 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 3555222689979717478, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 7.650000, "quantity": 0.523700, "update_time": 0}
- [ 2024-11-06-12-48-59 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-11-06-12-48-59 ] MESSAGE: ! HCDAI
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-12-48-59 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897310000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 3555222689979717478, {"dex_order_id": "906298", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.650000, "quantity": 0.523700, "filled_quantity": 0.523700, "update_time": 1730897310000}}
- [ 2024-11-06-12-48-59 ] MESSAGE: limit
- [ 2024-11-06-12-48-59 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 3555222689979717478, {"dex_order_id": "906298", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.650000, "quantity": 0.523700, "filled_quantity": 0.523700, "update_time": 1730897310000}
- [ 2024-11-06-12-48-59 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 3555222689979717478, {"dex_order_id": "906298", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.650000, "quantity": 0.523700, "filled_quantity": 0.000000, "update_time": 1730897310000}
- $$$ {"symbol": "HCDAI", "price": 7.650000, "quantity": 0.523700, "trade_side": BUY, "trade_time": 1730897310000}
- open_position for order
- [ 2024-11-06-12-48-59 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.650000, "quantity": 0.523700, "trade_side": BUY, "trade_time": 1730897310000}
- [ 2024-11-06-12-48-59 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.65, "quantity": 0.5237, "position_quote": 4.0063}
- [ 2024-11-06-12-48-59 ] MESSAGE: erase
- [ 2024-11-06-12-48-59 ] MESSAGE: ! HCDAI
- 2024/11/06 12:49:17 golang tx log: {
- tx = 0xfd41d3fbda75d3fb6abbda8fee2514aa22b94aff13becf74d069b21d64de1aff ok;
- status = 1
- block = 63955110
- usedGas = 441879
- exec_time = 53.626827s
- }
- [ 2024-11-06-12-49-17 ] MESSAGE: new order delta: 53628
- [ 2024-11-06-12-49-17 ] DEBUG ? new: empty order
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-12-49-47 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897356000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 985116120168061891, {"dex_order_id": "906304", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.640000, "quantity": 0.524400, "filled_quantity": 0.000000, "update_time": 1730897356000}}
- [ 2024-11-06-12-49-47 ] MESSAGE: limit
- [ 2024-11-06-12-49-47 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 985116120168061891, {"dex_order_id": "906304", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.640000, "quantity": 0.524400, "filled_quantity": 0.000000, "update_time": 1730897356000}
- [ 2024-11-06-12-49-47 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 985116120168061891, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": 7.640000, "quantity": 0.524400, "update_time": 0}
- [ 2024-11-06-12-49-47 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-11-06-12-49-47 ] MESSAGE: ! HCDAI
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-12-49-47 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897356000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 985116120168061891, {"dex_order_id": "906304", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.640000, "quantity": 0.524400, "filled_quantity": 0.524400, "update_time": 1730897356000}}
- [ 2024-11-06-12-49-47 ] MESSAGE: limit
- [ 2024-11-06-12-49-47 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 985116120168061891, {"dex_order_id": "906304", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.640000, "quantity": 0.524400, "filled_quantity": 0.524400, "update_time": 1730897356000}
- [ 2024-11-06-12-49-47 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 985116120168061891, {"dex_order_id": "906304", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.640000, "quantity": 0.524400, "filled_quantity": 0.000000, "update_time": 1730897356000}
- $$$ {"symbol": "HCDAI", "price": 7.640000, "quantity": 0.524400, "trade_side": SELL, "trade_time": 1730897356000}
- open_position for order
- [ 2024-11-06-12-49-47 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.640000, "quantity": 0.524400, "trade_side": SELL, "trade_time": 1730897356000}
- [ 2024-11-06-12-49-47 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.64, "quantity": -0.0007, "position_quote": -0.000111}
- [ 2024-11-06-12-49-47 ] MESSAGE: erase
- [ 2024-11-06-12-49-47 ] MESSAGE: ! HCDAI
- [ 2024-11-06-12-50-41 ] MESSAGE: sleep time = 114073
- [ 2024-11-06-12-50-41 ] MESSAGE: ask price 7.650000 bid price: 7.630000
- [ 2024-11-06-12-50-41 ] MESSAGE: current_volume: 8.400000 previous price = 7.677090
- [ 2024-11-06-12-50-41 ] MESSAGE: start calculating new normal distributed price
- [ 2024-11-06-12-50-41 ] MESSAGE: calculate deviated price (new) = 7.679477 current price = 7.677090
- [ 2024-11-06-12-50-41 ] MESSAGE: delta = 0.002387
- [ 2024-11-06-12-50-41 ] MESSAGE: new_price > upper_bound
- [ 2024-11-06-12-50-41 ] MESSAGE: new price after = 7.640000
- [ 2024-11-06-12-50-41 ] MESSAGE: price: 7.640000
- quantity: 1.099476
- [ 2024-11-06-12-50-41 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
- [ 2024-11-06-12-50-41 ] DEBUG base balance: {"asset": "HC", "free": 64.3913, "locked": 0, "wallet": 0, "update_time": 1730897439091}
- [ 2024-11-06-12-50-41 ] DEBUG quote balance: {"asset": "DAI", "free": 499.782, "locked": 0, "wallet": 0, "update_time": 1730897439091}
- [ 2024-11-06-12-50-41 ] MESSAGE: balances_ratio: 0.984328
- [ 2024-11-06-12-50-41 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
- [ 2024-11-06-12-50-41 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.640000, "quantity": 1.099500, "client_order_id": 1449306948546055489, "type": "LIMIT", "side": "BUY"}
- ! new api API 0x576e78d779b0
- [ 2024-11-06-12-50-41 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.640000, "quantity": 1.099500, "client_order_id": 7461761264120243411, "type": "LIMIT", "side": "SELL"}
- ! new api API 0x576e78d779b0
- 2024/11/06 12:50:41 extends args: {"timeout": "30000", "priority": "0"}
- 2024/11/06 12:50:41 args: {"quantity": "1099500000000000000", "price": "7640000000000000000", "orderType": "0", "isBid": "false"}
- 2024/11/06 12:50:41 start cancelation
- 2024/11/06 12:50:41 finish cancelation
- 2024/11/06 12:50:41 extends args: {"timeout": "30000", "priority": "0"}
- 2024/11/06 12:50:41 args: {"quantity": "1099500000000000000", "price": "7640000000000000000", "orderType": "0", "isBid": "true"}
- 2024/11/06 12:50:41 start cancelation
- 2024/11/06 12:50:41 finish cancelation
- 2024/11/06 12:50:42 gas price = 50270645961
- 2024/11/06 12:50:42 gas price = 50270645961
- 2024/11/06 12:50:42 TX Hash: 0xc20c36e7900c249d140742196b2855e4bd4b4453b5a27311722534b7bc794352 ; Nonce: 31
- 2024/11/06 12:50:42 TX Hash: 0xb7c14b8eea0e7689ca9afba6aec76269f189ff9704059705b36f41913c56db68 ; Nonce: 30
- 2024/11/06 12:50:49 golang tx log: {
- tx = 0xb7c14b8eea0e7689ca9afba6aec76269f189ff9704059705b36f41913c56db68 ok;
- status = 1
- block = 63955153
- usedGas = 441891
- exec_time = 7.623912s
- }
- [ 2024-11-06-12-50-49 ] MESSAGE: new order delta: 7624
- [ 2024-11-06-12-50-49 ] DEBUG ? new: empty order
- 2024/11/06 12:50:53 golang tx log: {
- tx = 0xc20c36e7900c249d140742196b2855e4bd4b4453b5a27311722534b7bc794352 ok;
- status = 1
- block = 63955155
- usedGas = 480436
- exec_time = 11.616176s
- }
- [ 2024-11-06-12-50-53 ] MESSAGE: new order delta: 11617
- [ 2024-11-06-12-50-53 ] DEBUG ? new: empty order
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-12-51-19 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897448000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 7461761264120243411, {"dex_order_id": "906327", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.640000, "quantity": 1.099500, "filled_quantity": 0.000000, "update_time": 1730897448000}}
- [ 2024-11-06-12-51-19 ] MESSAGE: limit
- [ 2024-11-06-12-51-19 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 7461761264120243411, {"dex_order_id": "906327", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.640000, "quantity": 1.099500, "filled_quantity": 0.000000, "update_time": 1730897448000}
- [ 2024-11-06-12-51-19 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 7461761264120243411, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": 7.640000, "quantity": 1.099500, "update_time": 0}
- [ 2024-11-06-12-51-19 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-11-06-12-51-19 ] MESSAGE: ! HCDAI
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-12-51-19 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897452000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 1449306948546055489, {"dex_order_id": "906330", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.640000, "quantity": 1.099500, "filled_quantity": 0.000000, "update_time": 1730897452000}}
- [ 2024-11-06-12-51-19 ] MESSAGE: limit
- [ 2024-11-06-12-51-19 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 1449306948546055489, {"dex_order_id": "906330", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.640000, "quantity": 1.099500, "filled_quantity": 0.000000, "update_time": 1730897452000}
- [ 2024-11-06-12-51-19 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 1449306948546055489, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 7.640000, "quantity": 1.099500, "update_time": 0}
- [ 2024-11-06-12-51-19 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-11-06-12-51-19 ] MESSAGE: ! HCDAI
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-12-51-19 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897448000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 7461761264120243411, {"dex_order_id": "906327", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.640000, "quantity": 1.099500, "filled_quantity": 1.099500, "update_time": 1730897448000}}
- [ 2024-11-06-12-51-19 ] MESSAGE: limit
- [ 2024-11-06-12-51-19 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 7461761264120243411, {"dex_order_id": "906327", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.640000, "quantity": 1.099500, "filled_quantity": 1.099500, "update_time": 1730897448000}
- [ 2024-11-06-12-51-19 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 7461761264120243411, {"dex_order_id": "906327", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.640000, "quantity": 1.099500, "filled_quantity": 0.000000, "update_time": 1730897448000}
- $$$ {"symbol": "HCDAI", "price": 7.640000, "quantity": 1.099500, "trade_side": SELL, "trade_time": 1730897448000}
- open_position for order
- [ 2024-11-06-12-51-19 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.640000, "quantity": 1.099500, "trade_side": SELL, "trade_time": 1730897448000}
- [ 2024-11-06-12-51-19 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.63524, "quantity": -1.1002, "position_quote": -8.40029}
- [ 2024-11-06-12-51-19 ] MESSAGE: erase
- [ 2024-11-06-12-51-19 ] MESSAGE: ! HCDAI
- [ 2024-11-06-12-52-41 ] MESSAGE: sleep time = 96000
- [ 2024-11-06-12-52-41 ] MESSAGE: ask price 7.690000 bid price: 7.650000
- [ 2024-11-06-12-52-41 ] MESSAGE: current_volume: 5.600000 previous price = 7.640000
- [ 2024-11-06-12-52-41 ] MESSAGE: start calculating new normal distributed price
- [ 2024-11-06-12-52-41 ] MESSAGE: calculate deviated price (new) = 7.625719 current price = 7.640000
- [ 2024-11-06-12-52-41 ] MESSAGE: delta = -0.014281
- [ 2024-11-06-12-52-41 ] MESSAGE: new_price < lower_bound
- [ 2024-11-06-12-52-41 ] MESSAGE: new price after = 7.660000
- [ 2024-11-06-12-52-41 ] MESSAGE: price: 7.660000
- quantity: 0.731070
- [ 2024-11-06-12-52-41 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
- [ 2024-11-06-12-52-41 ] DEBUG base balance: {"asset": "HC", "free": 63.2918, "locked": 0, "wallet": 0, "update_time": 1730897555968}
- [ 2024-11-06-12-52-41 ] DEBUG quote balance: {"asset": "DAI", "free": 499.777, "locked": 0, "wallet": 0, "update_time": 1730897555968}
- [ 2024-11-06-12-52-41 ] MESSAGE: balances_ratio: 0.970065
- [ 2024-11-06-12-52-41 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
- [ 2024-11-06-12-52-41 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.660000, "quantity": 0.731100, "client_order_id": 4384472853360402113, "type": "LIMIT", "side": "BUY"}
- ! new api API 0x576e78d779b0
- [ 2024-11-06-12-52-41 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.660000, "quantity": 0.731100, "client_order_id": 16337953858336134333, "type": "LIMIT", "side": "SELL"}
- ! new api API 0x576e78d779b0
- 2024/11/06 12:52:41 extends args: {"timeout": "30000", "priority": "0"}
- 2024/11/06 12:52:41 args: {"quantity": "731100000000000000", "price": "7660000000000000000", "orderType": "0", "isBid": "false"}
- 2024/11/06 12:52:41 start cancelation
- 2024/11/06 12:52:41 finish cancelation
- 2024/11/06 12:52:41 extends args: {"timeout": "30000", "priority": "0"}
- 2024/11/06 12:52:41 args: {"quantity": "731100000000000000", "price": "7660000000000000000", "orderType": "0", "isBid": "true"}
- 2024/11/06 12:52:41 start cancelation
- 2024/11/06 12:52:41 finish cancelation
- 2024/11/06 12:52:41 gas price = 48115771081
- 2024/11/06 12:52:41 gas price = 48115771081
- 2024/11/06 12:52:41 TX Hash: 0xfb3939d03259aff366acb115f3858a0afe84293bae7dcef35b315b28f536b236 ; Nonce: 32
- 2024/11/06 12:52:41 TX Hash: 0xed05e71a0a03550feb987bbd1a4a6b093255685df68eb71de1fc34456f105e1a ; Nonce: 33
- 2024/11/06 12:52:45 golang tx log: {
- tx = 0xfb3939d03259aff366acb115f3858a0afe84293bae7dcef35b315b28f536b236 ok;
- status = 1
- block = 63955208
- usedGas = 460353
- exec_time = 4.706037s
- }
- [ 2024-11-06-12-52-45 ] MESSAGE: new order delta: 4706
- [ 2024-11-06-12-52-45 ] DEBUG ? new: empty order
- 2024/11/06 12:52:49 golang tx log: {
- tx = 0xed05e71a0a03550feb987bbd1a4a6b093255685df68eb71de1fc34456f105e1a ok;
- status = 1
- block = 63955210
- usedGas = 428333
- exec_time = 8.721889s
- }
- [ 2024-11-06-12-52-49 ] MESSAGE: new order delta: 8722
- [ 2024-11-06-12-52-49 ] DEBUG ? new: empty order
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-12-53-17 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897565000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 16337953858336134333, {"dex_order_id": "906351", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.660000, "quantity": 0.731100, "filled_quantity": 0.000000, "update_time": 1730897565000}}
- [ 2024-11-06-12-53-17 ] MESSAGE: limit
- [ 2024-11-06-12-53-17 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 16337953858336134333, {"dex_order_id": "906351", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.660000, "quantity": 0.731100, "filled_quantity": 0.000000, "update_time": 1730897565000}
- [ 2024-11-06-12-53-17 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 16337953858336134333, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": 7.660000, "quantity": 0.731100, "update_time": 0}
- [ 2024-11-06-12-53-17 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-11-06-12-53-17 ] MESSAGE: ! HCDAI
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-12-53-17 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897569000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 4384472853360402113, {"dex_order_id": "906354", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.660000, "quantity": 0.731100, "filled_quantity": 0.000000, "update_time": 1730897569000}}
- [ 2024-11-06-12-53-17 ] MESSAGE: limit
- [ 2024-11-06-12-53-17 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 4384472853360402113, {"dex_order_id": "906354", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.660000, "quantity": 0.731100, "filled_quantity": 0.000000, "update_time": 1730897569000}
- [ 2024-11-06-12-53-17 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 4384472853360402113, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 7.660000, "quantity": 0.731100, "update_time": 0}
- [ 2024-11-06-12-53-17 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-11-06-12-53-17 ] MESSAGE: ! HCDAI
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-12-53-17 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897452000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 1449306948546055489, {"dex_order_id": "906330", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.640000, "quantity": 1.099500, "filled_quantity": 1.099500, "update_time": 1730897452000}}
- [ 2024-11-06-12-53-17 ] MESSAGE: limit
- [ 2024-11-06-12-53-17 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 1449306948546055489, {"dex_order_id": "906330", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.640000, "quantity": 1.099500, "filled_quantity": 1.099500, "update_time": 1730897452000}
- [ 2024-11-06-12-53-17 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 1449306948546055489, {"dex_order_id": "906330", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.640000, "quantity": 1.099500, "filled_quantity": 0.000000, "update_time": 1730897452000}
- $$$ {"symbol": "HCDAI", "price": 7.640000, "quantity": 1.099500, "trade_side": BUY, "trade_time": 1730897452000}
- open_position for order
- [ 2024-11-06-12-53-17 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.640000, "quantity": 1.099500, "trade_side": BUY, "trade_time": 1730897452000}
- [ 2024-11-06-12-53-17 ] INFO new position: {"symbol": "HCDAI", "entry_price": 0.158571, "quantity": -0.0007, "position_quote": -0.000111}
- [ 2024-11-06-12-53-17 ] MESSAGE: erase
- [ 2024-11-06-12-53-17 ] MESSAGE: ! HCDAI
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-12-53-17 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897565000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 16337953858336134333, {"dex_order_id": "906351", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.660000, "quantity": 0.731100, "filled_quantity": 0.731100, "update_time": 1730897565000}}
- [ 2024-11-06-12-53-17 ] MESSAGE: limit
- [ 2024-11-06-12-53-17 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 16337953858336134333, {"dex_order_id": "906351", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.660000, "quantity": 0.731100, "filled_quantity": 0.731100, "update_time": 1730897565000}
- [ 2024-11-06-12-53-17 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 16337953858336134333, {"dex_order_id": "906351", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.660000, "quantity": 0.731100, "filled_quantity": 0.000000, "update_time": 1730897565000}
- $$$ {"symbol": "HCDAI", "price": 7.660000, "quantity": 0.731100, "trade_side": SELL, "trade_time": 1730897565000}
- open_position for order
- [ 2024-11-06-12-53-17 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.660000, "quantity": 0.731100, "trade_side": SELL, "trade_time": 1730897565000}
- [ 2024-11-06-12-53-17 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.65282, "quantity": -0.7318, "position_quote": -5.60034}
- [ 2024-11-06-12-53-17 ] MESSAGE: erase
- [ 2024-11-06-12-53-17 ] MESSAGE: ! HCDAI
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-12-53-17 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897569000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 4384472853360402113, {"dex_order_id": "906354", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.660000, "quantity": 0.731100, "filled_quantity": 0.731100, "update_time": 1730897569000}}
- [ 2024-11-06-12-53-17 ] MESSAGE: limit
- [ 2024-11-06-12-53-17 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 4384472853360402113, {"dex_order_id": "906354", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.660000, "quantity": 0.731100, "filled_quantity": 0.731100, "update_time": 1730897569000}
- [ 2024-11-06-12-53-17 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 4384472853360402113, {"dex_order_id": "906354", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.660000, "quantity": 0.731100, "filled_quantity": 0.000000, "update_time": 1730897569000}
- $$$ {"symbol": "HCDAI", "price": 7.660000, "quantity": 0.731100, "trade_side": BUY, "trade_time": 1730897569000}
- open_position for order
- [ 2024-11-06-12-53-17 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.660000, "quantity": 0.731100, "trade_side": BUY, "trade_time": 1730897569000}
- [ 2024-11-06-12-53-17 ] INFO new position: {"symbol": "HCDAI", "entry_price": 0.158571, "quantity": -0.0007, "position_quote": -0.000111}
- [ 2024-11-06-12-53-17 ] MESSAGE: erase
- [ 2024-11-06-12-53-17 ] MESSAGE: ! HCDAI
- [ 2024-11-06-12-54-25 ] MESSAGE: sleep time = 116058
- [ 2024-11-06-12-54-25 ] MESSAGE: ask price 7.690000 bid price: 7.650000
- [ 2024-11-06-12-54-25 ] MESSAGE: current_volume: 8.309775 previous price = 7.660000
- [ 2024-11-06-12-54-25 ] MESSAGE: start calculating new normal distributed price
- [ 2024-11-06-12-54-25 ] MESSAGE: calculate deviated price (new) = 7.640850 current price = 7.660000
- [ 2024-11-06-12-54-25 ] MESSAGE: delta = -0.019150
- [ 2024-11-06-12-54-25 ] MESSAGE: new_price < lower_bound
- [ 2024-11-06-12-54-25 ] MESSAGE: new price after = 7.679150
- [ 2024-11-06-12-54-25 ] MESSAGE: price: 7.679150
- quantity: 1.082122
- [ 2024-11-06-12-54-25 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
- [ 2024-11-06-12-54-25 ] DEBUG base balance: {"asset": "HC", "free": 64.3877, "locked": 0, "wallet": 0, "update_time": 1730897662217}
- [ 2024-11-06-12-54-25 ] DEBUG quote balance: {"asset": "DAI", "free": 499.765, "locked": 0, "wallet": 0, "update_time": 1730897662217}
- [ 2024-11-06-12-54-25 ] MESSAGE: balances_ratio: 0.989350
- [ 2024-11-06-12-54-25 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
- [ 2024-11-06-12-54-25 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.680000, "quantity": 1.082100, "client_order_id": 1847126080562110631, "type": "LIMIT", "side": "BUY"}
- ! new api API 0x576e78d779b0
- [ 2024-11-06-12-54-25 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.680000, "quantity": 1.082100, "client_order_id": 9715394799702201273, "type": "LIMIT", "side": "SELL"}
- ! new api API 0x576e78d779b0
- 2024/11/06 12:54:25 extends args: {"timeout": "30000", "priority": "0"}
- 2024/11/06 12:54:25 args: {"quantity": "1082100000000000000", "price": "7680000000000000000", "orderType": "0", "isBid": "true"}
- 2024/11/06 12:54:25 start cancelation
- 2024/11/06 12:54:25 finish cancelation
- 2024/11/06 12:54:25 extends args: {"timeout": "30000", "priority": "0"}
- 2024/11/06 12:54:25 args: {"quantity": "1082100000000000000", "price": "7680000000000000000", "orderType": "0", "isBid": "false"}
- 2024/11/06 12:54:25 start cancelation
- 2024/11/06 12:54:25 finish cancelation
- 2024/11/06 12:54:25 gas price = 43974141782
- 2024/11/06 12:54:25 gas price = 43974141782
- 2024/11/06 12:54:25 TX Hash: 0x1b0d46b9831f65f87478f73dc7118e545b33ae5d79d8841c3832147c4abc8d99 ; Nonce: 35
- 2024/11/06 12:54:25 TX Hash: 0xe342ca60c9c04e3162b4d1119fa6195995d7f642cc8a232a527f5aefd4c74a37 ; Nonce: 34
- 2024/11/06 12:54:29 golang tx log: {
- tx = 0xe342ca60c9c04e3162b4d1119fa6195995d7f642cc8a232a527f5aefd4c74a37 ok;
- status = 1
- block = 63955257
- usedGas = 460341
- exec_time = 4.623864s
- }
- [ 2024-11-06-12-54-29 ] MESSAGE: new order delta: 4624
- [ 2024-11-06-12-54-29 ] DEBUG ? new: empty order
- 2024/11/06 12:54:33 golang tx log: {
- tx = 0x1b0d46b9831f65f87478f73dc7118e545b33ae5d79d8841c3832147c4abc8d99 ok;
- status = 1
- block = 63955259
- usedGas = 428321
- exec_time = 8.654414s
- }
- [ 2024-11-06-12-54-33 ] MESSAGE: new order delta: 8655
- [ 2024-11-06-12-54-33 ] DEBUG ? new: empty order
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-12-54-56 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897669000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 9715394799702201273, {"dex_order_id": "906374", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.680000, "quantity": 1.082100, "filled_quantity": 0.000000, "update_time": 1730897669000}}
- [ 2024-11-06-12-54-56 ] MESSAGE: limit
- [ 2024-11-06-12-54-56 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 9715394799702201273, {"dex_order_id": "906374", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.680000, "quantity": 1.082100, "filled_quantity": 0.000000, "update_time": 1730897669000}
- [ 2024-11-06-12-54-56 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 9715394799702201273, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": 7.680000, "quantity": 1.082100, "update_time": 0}
- [ 2024-11-06-12-54-56 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-11-06-12-54-56 ] MESSAGE: ! HCDAI
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-12-55-03 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897673000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 1847126080562110631, {"dex_order_id": "906375", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.680000, "quantity": 1.082100, "filled_quantity": 0.000000, "update_time": 1730897673000}}
- [ 2024-11-06-12-55-03 ] MESSAGE: limit
- [ 2024-11-06-12-55-03 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 1847126080562110631, {"dex_order_id": "906375", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.680000, "quantity": 1.082100, "filled_quantity": 0.000000, "update_time": 1730897673000}
- [ 2024-11-06-12-55-03 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 1847126080562110631, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 7.680000, "quantity": 1.082100, "update_time": 0}
- [ 2024-11-06-12-55-03 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-11-06-12-55-03 ] MESSAGE: ! HCDAI
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-12-55-03 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897669000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 9715394799702201273, {"dex_order_id": "906374", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.680000, "quantity": 1.082100, "filled_quantity": 1.082100, "update_time": 1730897669000}}
- [ 2024-11-06-12-55-03 ] MESSAGE: limit
- [ 2024-11-06-12-55-03 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 9715394799702201273, {"dex_order_id": "906374", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.680000, "quantity": 1.082100, "filled_quantity": 1.082100, "update_time": 1730897669000}
- [ 2024-11-06-12-55-03 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 9715394799702201273, {"dex_order_id": "906374", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.680000, "quantity": 1.082100, "filled_quantity": 0.000000, "update_time": 1730897669000}
- $$$ {"symbol": "HCDAI", "price": 7.680000, "quantity": 1.082100, "trade_side": SELL, "trade_time": 1730897669000}
- open_position for order
- [ 2024-11-06-12-55-03 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.680000, "quantity": 1.082100, "trade_side": SELL, "trade_time": 1730897669000}
- [ 2024-11-06-12-55-03 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.67514, "quantity": -1.0828, "position_quote": -8.31064}
- [ 2024-11-06-12-55-03 ] MESSAGE: erase
- [ 2024-11-06-12-55-03 ] MESSAGE: ! HCDAI
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-12-55-03 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897673000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 1847126080562110631, {"dex_order_id": "906375", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.680000, "quantity": 1.082100, "filled_quantity": 1.082100, "update_time": 1730897673000}}
- [ 2024-11-06-12-55-03 ] MESSAGE: limit
- [ 2024-11-06-12-55-03 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 1847126080562110631, {"dex_order_id": "906375", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.680000, "quantity": 1.082100, "filled_quantity": 1.082100, "update_time": 1730897673000}
- [ 2024-11-06-12-55-03 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 1847126080562110631, {"dex_order_id": "906375", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.680000, "quantity": 1.082100, "filled_quantity": 0.000000, "update_time": 1730897673000}
- $$$ {"symbol": "HCDAI", "price": 7.680000, "quantity": 1.082100, "trade_side": BUY, "trade_time": 1730897673000}
- open_position for order
- [ 2024-11-06-12-55-03 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.680000, "quantity": 1.082100, "trade_side": BUY, "trade_time": 1730897673000}
- [ 2024-11-06-12-55-03 ] INFO new position: {"symbol": "HCDAI", "entry_price": 0.158571, "quantity": -0.0007, "position_quote": -0.000111}
- [ 2024-11-06-12-55-03 ] MESSAGE: erase
- [ 2024-11-06-12-55-03 ] MESSAGE: ! HCDAI
- [ 2024-11-06-12-56-21 ] MESSAGE: sleep time = 144000
- [ 2024-11-06-12-56-21 ] MESSAGE: ask price 7.680000 bid price: 7.640000
- [ 2024-11-06-12-56-21 ] MESSAGE: current_volume: 7.418506 previous price = 7.679150
- [ 2024-11-06-12-56-21 ] MESSAGE: start calculating new normal distributed price
- [ 2024-11-06-12-56-21 ] MESSAGE: calculate deviated price (new) = 7.671855 current price = 7.679150
- [ 2024-11-06-12-56-21 ] MESSAGE: delta = -0.007295
- [ 2024-11-06-12-56-21 ] MESSAGE: new_price > upper_bound
- [ 2024-11-06-12-56-21 ] MESSAGE: new price after = 7.670000
- [ 2024-11-06-12-56-21 ] MESSAGE: price: 7.670000
- quantity: 0.967211
- [ 2024-11-06-12-56-21 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
- [ 2024-11-06-12-56-21 ] DEBUG base balance: {"asset": "HC", "free": 64.3855, "locked": 0, "wallet": 0, "update_time": 1730897779109}
- [ 2024-11-06-12-56-21 ] DEBUG quote balance: {"asset": "DAI", "free": 499.749, "locked": 0, "wallet": 0, "update_time": 1730897779109}
- [ 2024-11-06-12-56-21 ] MESSAGE: balances_ratio: 0.988170
- [ 2024-11-06-12-56-21 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
- [ 2024-11-06-12-56-21 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.670000, "quantity": 0.967200, "client_order_id": 14245802473532444760, "type": "LIMIT", "side": "BUY"}
- ! new api API 0x576e78d779b0
- [ 2024-11-06-12-56-21 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.670000, "quantity": 0.967200, "client_order_id": 7924640458441067847, "type": "LIMIT", "side": "SELL"}
- ! new api API 0x576e78d779b0
- 2024/11/06 12:56:21 extends args: {"timeout": "30000", "priority": "0"}
- 2024/11/06 12:56:21 args: {"quantity": "967200000000000000", "price": "7670000000000000000", "orderType": "0", "isBid": "true"}
- 2024/11/06 12:56:21 start cancelation
- 2024/11/06 12:56:21 finish cancelation
- 2024/11/06 12:56:21 extends args: {"timeout": "30000", "priority": "0"}
- 2024/11/06 12:56:21 args: {"quantity": "967200000000000000", "price": "7670000000000000000", "orderType": "0", "isBid": "false"}
- 2024/11/06 12:56:21 start cancelation
- 2024/11/06 12:56:21 finish cancelation
- 2024/11/06 12:56:21 gas price = 45199855874
- 2024/11/06 12:56:21 gas price = 45215920750
- 2024/11/06 12:56:22 TX Hash: 0x522a936401656209ba18939531e842202a8000af616cd9d39f5464446f9d8588 ; Nonce: 37
- 2024/11/06 12:56:22 TX Hash: 0xaafc7d41a52cc2c1d7675878ca428279f1b2080f8a54568048b6844056c052de ; Nonce: 36
- 2024/11/06 12:56:28 golang tx log: {
- tx = 0xaafc7d41a52cc2c1d7675878ca428279f1b2080f8a54568048b6844056c052de ok;
- status = 1
- block = 63955312
- usedGas = 453936
- exec_time = 6.625194s
- }
- [ 2024-11-06-12-56-28 ] MESSAGE: new order delta: 6626
- [ 2024-11-06-12-56-28 ] DEBUG ? new: empty order
- 2024/11/06 12:56:32 golang tx log: {
- tx = 0x522a936401656209ba18939531e842202a8000af616cd9d39f5464446f9d8588 ok;
- status = 1
- block = 63955314
- usedGas = 468123
- exec_time = 10.620829s
- }
- [ 2024-11-06-12-56-32 ] MESSAGE: new order delta: 10621
- [ 2024-11-06-12-56-32 ] DEBUG ? new: empty order
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-12-56-58 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897787000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 14245802473532444760, {"dex_order_id": "906395", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.670000, "quantity": 0.967200, "filled_quantity": 0.000000, "update_time": 1730897787000}}
- [ 2024-11-06-12-56-58 ] MESSAGE: limit
- [ 2024-11-06-12-56-58 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 14245802473532444760, {"dex_order_id": "906395", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.670000, "quantity": 0.967200, "filled_quantity": 0.000000, "update_time": 1730897787000}
- [ 2024-11-06-12-56-58 ] MESSAGE: ! HCDAI
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-12-56-58 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897791000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 7924640458441067847, {"dex_order_id": "906397", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.670000, "quantity": 0.967200, "filled_quantity": 0.000000, "update_time": 1730897791000}}
- [ 2024-11-06-12-56-58 ] MESSAGE: limit
- [ 2024-11-06-12-56-58 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 7924640458441067847, {"dex_order_id": "906397", "order_id": "1730897184749002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.670000, "quantity": 0.967200, "filled_quantity": 0.000000, "update_time": 1730897791000}
- [ 2024-11-06-12-56-58 ] MESSAGE: ! HCDAI
- stream == e_stream::ACCOUNT_ORDER
- [ 2024-11-06-12-56-58 ] INFO Execution::_process: WebSocketEvent: delta=1.7309e+11, event_time=1730897787000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131529510184736, "order": {"symbol": "HCDAI", "coid": 14245802473532444760, {"dex_order_id": "906395", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.670000, "quantity": 0.967200, "filled_quantity": 0.967200, "update_time": 1730897787000}}
- [ 2024-11-06-12-56-58 ] MESSAGE: limit
- [ 2024-11-06-12-56-58 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 14245802473532444760, {"dex_order_id": "906395", "order_id": "1730897184749002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.670000, "quantity": 0.967200, "filled_quantity": 0.967200, "update_time": 1730897787000}
- [ 2024-11-06-12-56-58 ] MESSAGE: ! HCDAI
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement