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
- {"narrow_spread_trading": "1", "volume_sigma": "0.16", "sigma": "0.0025", "volume": "135", "time_frequency": "120000"}
- C++ 1ffd161f95a641469ef6fb6b7b5cbac3
- 2024/11/06 15:08:39 init Nonce: 82
- 2024/11/06 15:08:39 bind contract 0x6b965968fbc6ff0d2ed7cb1cb38c1c1bbe0327b4
- 2024/11/06 15:08:39 bind contract 0x1a9f5fd1b36f8d1e03f0ff6eabbbb268f053033e
- 2024/11/06 15:08:39 bind contract 0x6fcb55c09671bd0d28b5a0e9d303793ac005f19c
- 2024/11/06 15:08:39 bind contract 0x762d3d096b9a74f4d3adf2b0824456ef8fce5daa
- 2024/11/06 15:08:39 bind contract 0x8f3cf7ad23cd3cadbd9735aff958023239c6a063
- {"type": "FORCE_DEX", "txIndex": "0", "name": "HC/DAI", "baseAsset": "0x762d3d096b9a74f4d3adf2b0824456ef8fce5daa", "baseAssetDecimals": "18", "quoteAssetDecimals": "18", "chainId": "matic", "createdAt": "0001-01-01T00:00:00.000Z", "deployedBlock": "59522571", "updatedAt": "2024-11-06T15:08:34.864Z", "txHash": "0x306571d8352b418b85a88243349ea726074e68360603982196c46eeff8dbc9e0", "address": "0x6b965968fbc6ff0d2ed7cb1cb38c1c1bbe0327b4", "lastSyncedBlock": "63959002", "id": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "quoteAsset": "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063", "symbol": "HCDAI"}
- {"userId": "1245318", "error": "ok"}
- user_id: 1245318
- authentification was completed
- API 0x57df79e72fe0
- run forever balance 0x57df79e72fe0
- {"type": "DEX", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "HC", "free": 61.0527, "locked": 0, "wallet": 0, "update_time": 1730905721482}, {"asset": "DAI", "free": 517.823, "locked": 0, "wallet": 0, "update_time": 1730905721482}]}
- get balance indicator 0x57df79e73180
- 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"]}}
- >:)
- auth token: eyJhbG
- {"asset": "HC", "free": 61.0527, "locked": 0, "wallet": 0, "update_time": 1730905722103}
- {"asset": "DAI", "free": 517.823, "locked": 0, "wallet": 0, "update_time": 1730905722103}
- get_open_orders_wrapper::request_filler
- auth token: eyJhbG
- Execution was constructed
- Trader was created
- order book {"ask_price": 7.64, "ask_quantity": 82.2022, "bid_price": 7.62, "bid_quantity": 69.8386}
- [ 2024-11-06-15-08-43 ] MESSAGE: no volume price file
- subscription stream: ACCOUNT_BALANCE
- no account balance subscription
- subscription stream: PART_DEPTH
- subscription stream: ACCOUNT_ORDER
- subscription stream: ACCOUNT_TRADE
- {"payload": {"query": "subscription onMyForceDexOrdersUpdated($userId: BigInt!, $pairId: UUID!) { onMyForceDexOrdersUpdated(userId: $userId, pairId: $pairId) { createdAt direction orderNumber id initialQuantity pairId price quantity status type userId }}", "operationName": "onMyForceDexOrdersUpdated", "extensions": {}, "variables": {"userId": "1245318", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e"}}, "type": "subscribe", "id": "1730905723360002"}
- {"payload": {"query": "subscription onForceDexOrdersBookUpdated($pairId: UUID!) { onForceDexOrdersBookUpdated(pairId: $pairId) { lines { direction quantity price __typename } __typename }}", "operationName": "onForceDexOrdersBookUpdated", "extensions": {}, "variables": {"pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e"}}, "type": "subscribe", "id": "1730905723360001"}
- feed.at("type").s() != ping{"type": "connection_ack"}
- feed.at("type").s() != ping{"type": "connection_ack"}
- stream = onForceDexOrdersBookUpdated
- [ 2024-11-06-15-08-47 ] MESSAGE: sleep time = 130593
- [ 2024-11-06-15-08-47 ] MESSAGE: ask price 7.640000 bid price: 7.620000
- [ 2024-11-06-15-08-47 ] MESSAGE: current_volume: 127.182237 previous price = 7.630000
- [ 2024-11-06-15-08-47 ] MESSAGE: start calculating new normal distributed price
- [ 2024-11-06-15-08-47 ] MESSAGE: calculate deviated price (new) = 7.645576 current price = 7.630000
- [ 2024-11-06-15-08-47 ] MESSAGE: delta = 0.015576
- [ 2024-11-06-15-08-47 ] MESSAGE: new_price > upper_bound
- [ 2024-11-06-15-08-47 ] MESSAGE: new price after = 7.630000
- [ 2024-11-06-15-08-47 ] MESSAGE: price: 7.630000
- quantity: 16.668707
- [ 2024-11-06-15-08-47 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
- [ 2024-11-06-15-08-47 ] DEBUG base balance: {"asset": "HC", "free": 61.0527, "locked": 0, "wallet": 0, "update_time": 1730905722103}
- [ 2024-11-06-15-08-47 ] DEBUG quote balance: {"asset": "DAI", "free": 517.823, "locked": 0, "wallet": 0, "update_time": 1730905722103}
- [ 2024-11-06-15-08-47 ] MESSAGE: balances_ratio: 0.899597
- [ 2024-11-06-15-08-47 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="SELF_TRADE", priority=default
- index_order_id 7630000000000000000/16668700000000000000/BUY 3298440460166503198
- index_order_id 7630000000000000000/16668700000000000000/SELL 6556506279770838044
- [ 2024-11-06-15-08-47 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.630000, "quantity": 16.668700, "client_order_id": 3298440460166503198, "type": "LIMIT", "side": "BUY"}
- ! new api API 0x57df79e72fe0
- order_request_t {"symbol": "HCDAI", "price": 7.630000, "quantity": 16.668700, "client_order_id": 3298440460166503198, "type": "LIMIT", "side": "BUY"}
- [ 2024-11-06-15-08-47quantity ] 166687
- DEBUGnew_order_wrapper::execute
- ! new: {"ext_params": {"timeout": "30000", "priority": "0"}, "params": {"quantity": "16668700000000000000", "price": "7630000000000000000", "orderType": "0", "isBid": "true"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
- {"symbol": "HCDAI", "price": 7.630000, "quantity": 16.668700, "client_order_id": 6556506279770838044, "type": "LIMIT", "side": "SELL"}
- ! new api API 0x57df79e72fe0
- order_request_t {"symbol": "HCDAI", "price": 7.630000, "quantity": 16.668700, "client_order_id": 6556506279770838044, "type": "LIMIT", "side": "SELL"}
- 2024/11/06 15:08:47 extends args: {"timeout": "30000", "priority": "0"}
- 2024/11/06 15:08:47 args: {"quantity": "16668700000000000000", "price": "7630000000000000000", "orderType": "0", "isBid": "true"}
- 2024/11/06 15:08:47 start cancelation
- 2024/11/06 15:08:47 finish cancelation
- quantity 166687
- new_order_wrapper::execute
- {"ext_params": {"timeout": "30000", "priority": "0"}, "params": {"quantity": "16668700000000000000", "price": "7630000000000000000", "orderType": "0", "isBid": "false"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
- 2024/11/06 15:08:47 extends args: {"timeout": "30000", "priority": "0"}
- 2024/11/06 15:08:47 args: {"quantity": "16668700000000000000", "price": "7630000000000000000", "orderType": "0", "isBid": "false"}
- 2024/11/06 15:08:47 start cancelation
- 2024/11/06 15:08:47 finish cancelation
- 2024/11/06 15:08:47 gas price = 82854903841
- 2024/11/06 15:08:47 gas price = 82854903841
- 2024/11/06 15:08:47 TX Hash: 0x0c6b722322357c4d764668f0cdb10c935c35229c1f76c7b83871f0e8d9fdd0d9 ; Nonce: 83
- 2024/11/06 15:08:47 TX Hash: 0x895a42d851e2e15f5c4ae8bc632bbc88a2e393430c8333930afe95e0c5bd5411 ; Nonce: 82
- {"asset": "HC", "free": 61.0527, "locked": 0, "wallet": 0, "update_time": 1730905732736}
- {"asset": "DAI", "free": 517.823, "locked": 0, "wallet": 0, "update_time": 1730905732736}
- stream = onForceDexOrdersBookUpdated
- 2024/11/06 15:08:55 golang tx log: {
- tx = 0x895a42d851e2e15f5c4ae8bc632bbc88a2e393430c8333930afe95e0c5bd5411 ok;
- status = 1
- block = 63959024
- usedGas = 368103
- exec_time = 7.629068s
- }
- C++ new_order_wrapper response: {"tx_hash": "0x895a42d851e2e15f5c4ae8bc632bbc88a2e393430c8333930afe95e0c5bd5411", "used_gas": "368103", "block": "63959024", "error": "ok"}
- [ 2024-11-06-15-08-55 ] MESSAGE: new order delta: 7630
- [ 2024-11-06-15-08-55 ] DEBUG ? new: empty order
- stream = onForceDexOrdersBookUpdated
- {"asset": "HC", "free": 61.0527, "locked": 0, "wallet": 0, "update_time": 1730905743368}
- {"asset": "DAI", "free": 390.64, "locked": 0, "wallet": 0, "update_time": 1730905743368}
- stream = onForceDexOrdersBookUpdated
- {"asset": "HC", "free": 61.0527, "locked": 0, "wallet": 0, "update_time": 1730905753996}
- {"asset": "DAI", "free": 390.64, "locked": 0, "wallet": 0, "update_time": 1730905753996}
- stream = onMyForceDexOrdersUpdated
- _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245318", "status": "OPEN", "quantity": "16668700000000000000", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "7630000000000000000", "id": "12480cb8-6d0d-4192-9621-a3c4b46fd065", "type": "LIMIT", "orderNumber": "907646", "direction": "BID", "initialQuantity": "16668700000000000000", "createdAt": "2024-11-06T15:08:54.000Z"}}
- stream == e_stream::ACCOUNT_ORDER
- _fill_order 7630000000000000000/16668700000000000000/BUY 3298440460166503198
- WebSocketEvent: delta=1.73091e+11, event_time=1730905734000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131587567740704, "order": {"symbol": "HCDAI", "coid": 3298440460166503198, {"dex_order_id": "907646", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 0.000000, "update_time": 1730905734000}}
- [ 2024-11-06-15-09-23 ] INFO Execution::_process: WebSocketEvent: delta=1.73091e+11, event_time=1730905734000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131587567740704, "order": {"symbol": "HCDAI", "coid": 3298440460166503198, {"dex_order_id": "907646", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 0.000000, "update_time": 1730905734000}}
- [ 2024-11-06-15-09-23 ] MESSAGE: limit
- [ 2024-11-06-15-09-23 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 3298440460166503198, {"dex_order_id": "907646", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 0.000000, "update_time": 1730905734000}
- old_it != cur_storage.end()
- [ 2024-11-06-15-09-23 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 3298440460166503198, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 7.630000, "quantity": 16.668700, "update_time": 0}
- [ 2024-11-06-15-09-23 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-11-06-15-09-23 ] MESSAGE: ! HCDAI
- stream = onForceDexOrdersBookUpdated
- {"asset": "HC", "free": 61.0527, "locked": 0, "wallet": 0, "update_time": 1730905764657}
- {"asset": "DAI", "free": 390.64, "locked": 0, "wallet": 0, "update_time": 1730905764657}
- {"asset": "HC", "free": 61.0527, "locked": 0, "wallet": 0, "update_time": 1730905775278}
- {"asset": "DAI", "free": 390.64, "locked": 0, "wallet": 0, "update_time": 1730905775278}
- stream = onForceDexOrdersBookUpdated
- {"asset": "HC", "free": 61.0527, "locked": 0, "wallet": 0, "update_time": 1730905785910}
- {"asset": "DAI", "free": 390.64, "locked": 0, "wallet": 0, "update_time": 1730905785910}
- stream = onForceDexOrdersBookUpdated
- {"asset": "HC", "free": 61.0527, "locked": 0, "wallet": 0, "update_time": 1730905796542}
- {"asset": "DAI", "free": 390.64, "locked": 0, "wallet": 0, "update_time": 1730905796542}
- stream = onForceDexOrdersBookUpdated
- {"asset": "HC", "free": 61.0527, "locked": 0, "wallet": 0, "update_time": 1730905807173}
- {"asset": "DAI", "free": 390.64, "locked": 0, "wallet": 0, "update_time": 1730905807173}
- {"asset": "HC", "free": 61.0527, "locked": 0, "wallet": 0, "update_time": 1730905817800}
- {"asset": "DAI", "free": 390.64, "locked": 0, "wallet": 0, "update_time": 1730905817800}
- stream = onForceDexOrdersBookUpdated
- {"asset": "HC", "free": 61.0527, "locked": 0, "wallet": 0, "update_time": 1730905828427}
- {"asset": "DAI", "free": 390.64, "locked": 0, "wallet": 0, "update_time": 1730905828427}
- 2024/11/06 15:10:29 golang tx log: {
- tx = 0x0c6b722322357c4d764668f0cdb10c935c35229c1f76c7b83871f0e8d9fdd0d9 ok;
- status = 1
- block = 63959069
- usedGas = 488960
- exec_time = 101.658497s
- }
- C++ new_order_wrapper response: {"tx_hash": "0x0c6b722322357c4d764668f0cdb10c935c35229c1f76c7b83871f0e8d9fdd0d9", "used_gas": "488960", "block": "63959069", "error": "ok"}
- [ 2024-11-06-15-10-29 ] MESSAGE: new order delta: 101659
- [ 2024-11-06-15-10-29 ] DEBUG ? new: empty order
- {"asset": "HC", "free": 57.1196, "locked": 0, "wallet": 0, "update_time": 1730905839064}
- {"asset": "DAI", "free": 517.568, "locked": 0, "wallet": 0, "update_time": 1730905839064}
- {"asset": "HC", "free": 61.0193, "locked": 0, "wallet": 0, "update_time": 1730905849699}
- {"asset": "DAI", "free": 517.568, "locked": 0, "wallet": 0, "update_time": 1730905849699}
- stream = onMyForceDexOrdersUpdated
- _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245318", "status": "OPEN", "quantity": "16668700000000000000", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "7630000000000000000", "id": "074bf58b-d87e-40be-a7f5-0f4d16b20383", "type": "LIMIT", "orderNumber": "907655", "direction": "ASK", "initialQuantity": "16668700000000000000", "createdAt": "2024-11-06T15:10:28.000Z"}}
- stream == e_stream::ACCOUNT_ORDER
- _fill_order 7630000000000000000/16668700000000000000/SELL 6556506279770838044
- WebSocketEvent: delta=1.73091e+11, event_time=1730905828000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131587567740704, "order": {"symbol": "HCDAI", "coid": 6556506279770838044, {"dex_order_id": "907655", "order_id": "1730905723360002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 0.000000, "update_time": 1730905828000}}
- [ 2024-11-06-15-10-57 ] INFO Execution::_process: WebSocketEvent: delta=1.73091e+11, event_time=1730905828000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131587567740704, "order": {"symbol": "HCDAI", "coid": 6556506279770838044, {"dex_order_id": "907655", "order_id": "1730905723360002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 0.000000, "update_time": 1730905828000}}
- [ 2024-11-06-15-10-57 ] MESSAGE: limit
- [ 2024-11-06-15-10-57 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 6556506279770838044, {"dex_order_id": "907655", "order_id": "1730905723360002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 0.000000, "update_time": 1730905828000}
- old_it != cur_storage.end()
- [ 2024-11-06-15-10-57 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 6556506279770838044, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": 7.630000, "quantity": 16.668700, "update_time": 0}
- [ 2024-11-06-15-10-57 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-11-06-15-10-57 ] MESSAGE: ! HCDAI
- stream = onMyForceDexOrdersUpdated
- _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245318", "status": "OPEN", "quantity": "3907563660427093460", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "7630000000000000000", "id": "12480cb8-6d0d-4192-9621-a3c4b46fd065", "type": "LIMIT", "orderNumber": "907646", "direction": "BID", "initialQuantity": "16668700000000000000", "createdAt": "2024-11-06T15:08:54.000Z"}}
- stream == e_stream::ACCOUNT_ORDER
- _fill_order 7630000000000000000/16668700000000000000/BUY 3298440460166503198
- WebSocketEvent: delta=1.73091e+11, event_time=1730905734000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131587567740704, "order": {"symbol": "HCDAI", "coid": 3298440460166503198, {"dex_order_id": "907646", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 12.761200, "update_time": 1730905734000}}
- [ 2024-11-06-15-10-57 ] INFO Execution::_process: WebSocketEvent: delta=1.73091e+11, event_time=1730905734000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131587567740704, "order": {"symbol": "HCDAI", "coid": 3298440460166503198, {"dex_order_id": "907646", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 12.761200, "update_time": 1730905734000}}
- [ 2024-11-06-15-10-57 ] MESSAGE: limit
- [ 2024-11-06-15-10-57 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 3298440460166503198, {"dex_order_id": "907646", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 12.761200, "update_time": 1730905734000}
- old_it != cur_storage.end()
- [ 2024-11-06-15-10-57 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 3298440460166503198, {"dex_order_id": "907646", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 0.000000, "update_time": 1730905734000}
- $$$ {"symbol": "HCDAI", "price": 7.630000, "quantity": 12.761200, "trade_side": BUY, "trade_time": 1730905734000}
- open_position for order
- [ 2024-11-06-15-10-57 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.630000, "quantity": 12.761200, "trade_side": BUY, "trade_time": 1730905734000}
- [ 2024-11-06-15-10-57 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.63, "quantity": 12.7612, "position_quote": 97.368}
- [ 2024-11-06-15-10-57 ] MESSAGE: ! HCDAI
- stream = onMyForceDexOrdersUpdated
- _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245318", "status": "CLOSED", "quantity": "0", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "7630000000000000000", "id": "074bf58b-d87e-40be-a7f5-0f4d16b20383", "type": "LIMIT", "orderNumber": "907655", "direction": "ASK", "initialQuantity": "16668700000000000000", "createdAt": "2024-11-06T15:10:28.000Z"}}
- stream == e_stream::ACCOUNT_ORDER
- _fill_order 7630000000000000000/16668700000000000000/SELL 6556506279770838044
- WebSocketEvent: delta=1.73091e+11, event_time=1730905828000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131587567740704, "order": {"symbol": "HCDAI", "coid": 6556506279770838044, {"dex_order_id": "907655", "order_id": "1730905723360002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 16.668700, "update_time": 1730905828000}}
- [ 2024-11-06-15-10-57 ] INFO Execution::_process: WebSocketEvent: delta=1.73091e+11, event_time=1730905828000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131587567740704, "order": {"symbol": "HCDAI", "coid": 6556506279770838044, {"dex_order_id": "907655", "order_id": "1730905723360002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 16.668700, "update_time": 1730905828000}}
- [ 2024-11-06-15-10-57 ] MESSAGE: limit
- [ 2024-11-06-15-10-57 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 6556506279770838044, {"dex_order_id": "907655", "order_id": "1730905723360002", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 16.668700, "update_time": 1730905828000}
- old_it != cur_storage.end()
- [ 2024-11-06-15-10-57 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 6556506279770838044, {"dex_order_id": "907655", "order_id": "1730905723360002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 0.000000, "update_time": 1730905828000}
- $$$ {"symbol": "HCDAI", "price": 7.630000, "quantity": 16.668700, "trade_side": SELL, "trade_time": 1730905828000}
- open_position for order
- [ 2024-11-06-15-10-57 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.630000, "quantity": 16.668700, "trade_side": SELL, "trade_time": 1730905828000}
- [ 2024-11-06-15-10-57 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.63, "quantity": -3.9075, "position_quote": -29.8142}
- [ 2024-11-06-15-10-57 ] MESSAGE: erase
- [ 2024-11-06-15-10-57 ] MESSAGE: ! HCDAI
- stream = onForceDexOrdersBookUpdated
- [ 2024-11-06-15-10-58 ] MESSAGE: sleep time = 125417
- [ 2024-11-06-15-10-58 ] MESSAGE: ask price 7.640000 bid price: 7.630000
- [ 2024-11-06-15-10-58 ] MESSAGE: Narrow spread
- [ 2024-11-06-15-10-58 ] MESSAGE: dealing with narrow spread
- [ 2024-11-06-15-10-58 ] INFO dealing with narrow spread result: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.63, 9.64596); ], bids: [(7.64, 2.9785); ]
- [ 2024-11-06-15-10-58 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.63, 9.64596); ], bids: [(7.64, 2.9785); ]
- [ 2024-11-06-15-10-58 ] DEBUG base balance: {"asset": "HC", "free": 61.0193, "locked": 0, "wallet": 0, "update_time": 1730905849699}
- [ 2024-11-06-15-10-58 ] DEBUG quote balance: {"asset": "DAI", "free": 517.568, "locked": 0, "wallet": 0, "update_time": 1730905849699}
- [ 2024-11-06-15-10-58 ] MESSAGE: balances_ratio: 0.900138
- [ 2024-11-06-15-10-58 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.63, 9.64596); ], bids: [(7.64, 2.9785); ]
- [ 2024-11-06-15-10-58 ] MESSAGE: LIMIT GRID
- [ 2024-11-06-15-10-58 ] DEBUG in _process_limit_grid: 7.63
- [ 2024-11-06-15-10-58 ] DEBUG in _process_limit_grid: 9.64596
- [ 2024-11-06-15-10-58 ] DEBUG in _process_limit_grid: 7.64
- [ 2024-11-06-15-10-58 ] DEBUG in _process_limit_grid: 2.9785
- [ 2024-11-06-15-10-58 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 7.640000, "quantity": 2.978500, "type": "LIMIT", "side": "BUY"}
- [ 2024-11-06-15-10-58 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 7.630000, "quantity": 9.646000, "type": "LIMIT", "side": "SELL"}
- [ 2024-11-06-15-10-58 ] MESSAGE: csize: 1
- index_order_id 7640000000000000000/2978500000000000000/BUY 12021196675207588524
- [ 2024-11-06-15-10-58 ] DEBUG ! cancel: index_order_id 7630000000000000000/9646000000000000000/SELL {"symbol": "15182699657445204092
- HCDAI", "coid": 3298440460166503198, {"dex_order_id": "907646", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 12.761200, "update_time": 1730905734000}
- [ cancel_order_wrapper::execute
- 2024-11-06-15-10-58 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.640000, "quantity": 2.978500, "client_order_id": 12021196675207588524, "type": "LIMIT", "side": "BUY"}
- ! new api API 0x57df79e72fe0
- 2024/11/06 15:10:58 extends args: {}
- order_request_t {"symbol": "HCDAI", "price": 7.640000, "quantity": 2.978500, "client_order_id": 12021196675207588524, "type": "LIMIT", "side": "BUY"}
- 2024/11/06 15:10:58 args: {"orderId": "907646"}
- 2024/11/06 15:10:58 start cancelation
- 2024/11/06 15:10:58 finish cancelation
- quantity 29785
- new_order_wrapper::execute
- {"ext_params": {"timeout": "30000", "priority": "0"}, "params": {"quantity": "2978500000000000000", "price": "7640000000000000000", "orderType": "0", "isBid": "true"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
- 2024/11/06 15:10:58 extends args: {"timeout": "30000", "priority": "0"}
- 2024/11/06 15:10:58 args: {"quantity": "2978500000000000000", "price": "7640000000000000000", "orderType": "0", "isBid": "true"}
- 2024/11/06 15:10:58 start cancelation
- 2024/11/06 15:10:58 finish cancelation
- [ 2024-11-06-15-10-58 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.630000, "quantity": 9.646000, "client_order_id": 15182699657445204092, "type": "LIMIT", "side": "SELL"}
- ! new api API 0x57df79e72fe0
- order_request_t {"symbol": "HCDAI", "price": 7.630000, "quantity": 9.646000, "client_order_id": 15182699657445204092, "type": "LIMIT", "side": "SELL"}
- quantity 96460
- new_order_wrapper::execute
- {"ext_params": {"timeout": "30000", "priority": "0"}, "params": {"quantity": "9646000000000000000", "price": "7630000000000000000", "orderType": "0", "isBid": "false"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
- 2024/11/06 15:10:58 extends args: {"timeout": "30000", "priority": "0"}
- 2024/11/06 15:10:58 args: {"quantity": "9646000000000000000", "price": "7630000000000000000", "orderType": "0", "isBid": "false"}
- 2024/11/06 15:10:58 start cancelation
- 2024/11/06 15:10:58 finish cancelation
- 2024/11/06 15:10:58 gas price = 82134595660
- 2024/11/06 15:10:58 gas price = 82134595660
- 2024/11/06 15:10:58 gas price = 82134595660
- 2024/11/06 15:10:58 TX Hash: 0xc5ff4e7a089fa58ce8019fc4b0c084ed1f521ab7c4c6ad04395921e6145503ee ; Nonce: 86
- 2024/11/06 15:10:58 TX Hash: 0x69d7f3f4a375ad5d4a6a6d3ee39b24e21d332273162adb559d7c9f72e1d1aaa0 ; Nonce: 85
- 2024/11/06 15:10:58 TX Hash: 0x9eda2eb451979b91e12d7518b897ee2afd166782aa1d2cf5f6c15f24f49a436c ; Nonce: 84
- {"asset": "HC", "free": 61.0193, "locked": 0, "wallet": 0, "update_time": 1730905860335}
- {"asset": "DAI", "free": 517.568, "locked": 0, "wallet": 0, "update_time": 1730905860335}
- 2024/11/06 15:11:03 {
- tx = 0x9eda2eb451979b91e12d7518b897ee2afd166782aa1d2cf5f6c15f24f49a436c failed
- exec_time = 5.152626s
- }
- cancel_order_wrapper::response_filler{"tx_hash": "0x9eda2eb451979b91e12d7518b897ee2afd166782aa1d2cf5f6c15f24f49a436c", "error": "unknown tx error"}
- [ 2024-11-06-15-11-03 ] MESSAGE: cancel order delta: 5307
- [ 2024-11-06-15-11-03 ] DEBUG ? cancel: empty order
- 2024/11/06 15:11:07 golang tx log: {
- tx = 0x69d7f3f4a375ad5d4a6a6d3ee39b24e21d332273162adb559d7c9f72e1d1aaa0 ok;
- status = 1
- block = 63959087
- usedGas = 451148
- exec_time = 9.742036s
- }
- C++ new_order_wrapper response: {"tx_hash": "0x69d7f3f4a375ad5d4a6a6d3ee39b24e21d332273162adb559d7c9f72e1d1aaa0", "used_gas": "451148", "block": "63959087", "error": "ok"}
- [ 2024-11-06-15-11-07 ] MESSAGE: new order delta: 9743
- [ 2024-11-06-15-11-07 ] DEBUG ? new: empty order
- {"asset": "HC", "free": 63.9919, "locked": 0, "wallet": 0, "update_time": 1730905870966}
- {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730905870966}
- 2024/11/06 15:11:13 golang tx log: {
- tx = 0xc5ff4e7a089fa58ce8019fc4b0c084ed1f521ab7c4c6ad04395921e6145503ee ok;
- status = 1
- block = 63959089
- usedGas = 378050
- exec_time = 14.928171s
- }
- C++ new_order_wrapper response: {"tx_hash": "0xc5ff4e7a089fa58ce8019fc4b0c084ed1f521ab7c4c6ad04395921e6145503ee", "used_gas": "378050", "block": "63959089", "error": "ok"}
- [ 2024-11-06-15-11-13 ] MESSAGE: new order delta: 14928
- [ 2024-11-06-15-11-13 ] DEBUG ? new: empty order
- stream = onMyForceDexOrdersUpdated
- _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245318", "status": "CLOSED", "quantity": "0", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "7630000000000000000", "id": "12480cb8-6d0d-4192-9621-a3c4b46fd065", "type": "LIMIT", "orderNumber": "907646", "direction": "BID", "initialQuantity": "16668700000000000000", "createdAt": "2024-11-06T15:08:54.000Z"}}
- stream == e_stream::ACCOUNT_ORDER
- _fill_order 7630000000000000000/16668700000000000000/BUY 3298440460166503198
- WebSocketEvent: delta=1.73091e+11, event_time=1730905734000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131587567740704, "order": {"symbol": "HCDAI", "coid": 3298440460166503198, {"dex_order_id": "907646", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 16.668700, "update_time": 1730905734000}}
- [ 2024-11-06-15-11-15 ] INFO Execution::_process: WebSocketEvent: delta=1.73091e+11, event_time=1730905734000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131587567740704, "order": {"symbol": "HCDAI", "coid": 3298440460166503198, {"dex_order_id": "907646", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 16.668700, "update_time": 1730905734000}}
- [ 2024-11-06-15-11-15 ] MESSAGE: limit
- [ 2024-11-06-15-11-15 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 3298440460166503198, {"dex_order_id": "907646", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 16.668700, "update_time": 1730905734000}
- old_it != cur_storage.end()
- [ 2024-11-06-15-11-15 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 3298440460166503198, {"dex_order_id": "907646", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.630000, "quantity": 16.668700, "filled_quantity": 12.761200, "update_time": 1730905734000}
- $$$ {"symbol": "HCDAI", "price": 7.630000, "quantity": 3.907500, "trade_side": BUY, "trade_time": 1730905734000}
- open_position for order
- [ 2024-11-06-15-11-15 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.630000, "quantity": 3.907500, "trade_side": BUY, "trade_time": 1730905734000}
- [ 2024-11-06-15-11-15 ] INFO new position: {"symbol": "HCDAI", "entry_price": 16, "quantity": -4.44089e-16, "position_quote": -7.10543e-15}
- [ 2024-11-06-15-11-15 ] MESSAGE: erase
- [ 2024-11-06-15-11-15 ] MESSAGE: ! HCDAI
- stream = onForceDexOrdersBookUpdated
- {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730905881596}
- {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730905881596}
- stream = onForceDexOrdersBookUpdated
- {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730905892224}
- {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730905892224}
- stream = onMyForceDexOrdersUpdated
- _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245318", "status": "OPEN", "quantity": "2978500000000000000", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "7640000000000000000", "id": "f99fb84a-7b45-4e90-a3f7-c9c06cd0040c", "type": "LIMIT", "orderNumber": "907661", "direction": "BID", "initialQuantity": "2978500000000000000", "createdAt": "2024-11-06T15:11:06.000Z"}}
- stream == e_stream::ACCOUNT_ORDER
- _fill_order 7640000000000000000/2978500000000000000/BUY 12021196675207588524
- WebSocketEvent: delta=1.73091e+11, event_time=1730905866000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131587567740704, "order": {"symbol": "HCDAI", "coid": 12021196675207588524, {"dex_order_id": "907661", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.640000, "quantity": 2.978500, "filled_quantity": 0.000000, "update_time": 1730905866000}}
- [ 2024-11-06-15-11-33 ] INFO Execution::_process: WebSocketEvent: delta=1.73091e+11, event_time=1730905866000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131587567740704, "order": {"symbol": "HCDAI", "coid": 12021196675207588524, {"dex_order_id": "907661", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.640000, "quantity": 2.978500, "filled_quantity": 0.000000, "update_time": 1730905866000}}
- [ 2024-11-06-15-11-33 ] MESSAGE: limit
- [ 2024-11-06-15-11-33 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 12021196675207588524, {"dex_order_id": "907661", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.640000, "quantity": 2.978500, "filled_quantity": 0.000000, "update_time": 1730905866000}
- old_it != cur_storage.end()
- [ 2024-11-06-15-11-33 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 12021196675207588524, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 7.640000, "quantity": 2.978500, "update_time": 0}
- [ 2024-11-06-15-11-33 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-11-06-15-11-33 ] MESSAGE: ! HCDAI
- stream = onMyForceDexOrdersUpdated
- _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245318", "status": "CLOSED", "quantity": "0", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "7640000000000000000", "id": "f99fb84a-7b45-4e90-a3f7-c9c06cd0040c", "type": "LIMIT", "orderNumber": "907661", "direction": "BID", "initialQuantity": "2978500000000000000", "createdAt": "2024-11-06T15:11:06.000Z"}}
- stream == e_stream::ACCOUNT_ORDER
- _fill_order 7640000000000000000/2978500000000000000/BUY 12021196675207588524
- WebSocketEvent: delta=1.73091e+11, event_time=1730905866000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131587567740704, "order": {"symbol": "HCDAI", "coid": 12021196675207588524, {"dex_order_id": "907661", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.640000, "quantity": 2.978500, "filled_quantity": 2.978500, "update_time": 1730905866000}}
- [ 2024-11-06-15-11-33 ] INFO Execution::_process: WebSocketEvent: delta=1.73091e+11, event_time=1730905866000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131587567740704, "order": {"symbol": "HCDAI", "coid": 12021196675207588524, {"dex_order_id": "907661", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.640000, "quantity": 2.978500, "filled_quantity": 2.978500, "update_time": 1730905866000}}
- [ 2024-11-06-15-11-33 ] MESSAGE: limit
- [ 2024-11-06-15-11-33 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 12021196675207588524, {"dex_order_id": "907661", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "CLOSED", "price": 7.640000, "quantity": 2.978500, "filled_quantity": 2.978500, "update_time": 1730905866000}
- old_it != cur_storage.end()
- [ 2024-11-06-15-11-33 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 12021196675207588524, {"dex_order_id": "907661", "order_id": "1730905723360002", "type": "LIMIT", "side": "BUY", "status": "NEW", "price": 7.640000, "quantity": 2.978500, "filled_quantity": 0.000000, "update_time": 1730905866000}
- $$$ {"symbol": "HCDAI", "price": 7.640000, "quantity": 2.978500, "trade_side": BUY, "trade_time": 1730905866000}
- open_position for order
- [ 2024-11-06-15-11-33 ] INFO Open position: : {"symbol": "HCDAI", "price": 7.640000, "quantity": 2.978500, "trade_side": BUY, "trade_time": 1730905866000}
- [ 2024-11-06-15-11-33 ] INFO new position: {"symbol": "HCDAI", "entry_price": 7.64, "quantity": 2.9785, "position_quote": 22.7557}
- [ 2024-11-06-15-11-33 ] MESSAGE: erase
- [ 2024-11-06-15-11-33 ] MESSAGE: ! HCDAI
- stream = onForceDexOrdersBookUpdated
- stream = onMyForceDexOrdersUpdated
- _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245318", "status": "OPEN", "quantity": "9646000000000000000", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "7630000000000000000", "id": "3e6a6785-f80e-4140-aaf4-46c3d5701321", "type": "LIMIT", "orderNumber": "907662", "direction": "ASK", "initialQuantity": "9646000000000000000", "createdAt": "2024-11-06T15:11:12.000Z"}}
- stream == e_stream::ACCOUNT_ORDER
- _fill_order 7630000000000000000/9646000000000000000/SELL 15182699657445204092
- WebSocketEvent: delta=1.73091e+11, event_time=1730905872000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131587567740704, "order": {"symbol": "HCDAI", "coid": 15182699657445204092, {"dex_order_id": "907662", "order_id": "1730905723360002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.630000, "quantity": 9.646000, "filled_quantity": 0.000000, "update_time": 1730905872000}}
- [ 2024-11-06-15-11-39 ] INFO Execution::_process: WebSocketEvent: delta=1.73091e+11, event_time=1730905872000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 131587567740704, "order": {"symbol": "HCDAI", "coid": 15182699657445204092, {"dex_order_id": "907662", "order_id": "1730905723360002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.630000, "quantity": 9.646000, "filled_quantity": 0.000000, "update_time": 1730905872000}}
- [ 2024-11-06-15-11-39 ] MESSAGE: limit
- [ 2024-11-06-15-11-39 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 15182699657445204092, {"dex_order_id": "907662", "order_id": "1730905723360002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.630000, "quantity": 9.646000, "filled_quantity": 0.000000, "update_time": 1730905872000}
- old_it != cur_storage.end()
- [ 2024-11-06-15-11-39 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 15182699657445204092, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": 7.630000, "quantity": 9.646000, "update_time": 0}
- [ 2024-11-06-15-11-39 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-11-06-15-11-39 ] MESSAGE: ! HCDAI
- stream = onForceDexOrdersBookUpdated
- {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730905902857}
- {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730905902857}
- {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730905913495}
- {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730905913495}
- stream = onForceDexOrdersBookUpdated
- {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730905924136}
- {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730905924136}
- stream = onForceDexOrdersBookUpdated
- {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730905934765}
- {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730905934765}
- stream = onForceDexOrdersBookUpdated
- {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730905945503}
- {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730905945503}
- stream = onForceDexOrdersBookUpdated
- {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730905956132}
- {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730905956132}
- stream = onForceDexOrdersBookUpdated
- {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730905966789}
- {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730905966789}
- stream = onForceDexOrdersBookUpdated
- stream = onForceDexOrdersBookUpdated
- {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730905977423}
- {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730905977423}
- {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730905988055}
- {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730905988055}
- {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730905998682}
- {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730905998682}
- stream = onForceDexOrdersBookUpdated
- [ 2024-11-06-15-13-23 ] MESSAGE: sleep time = 113481
- [ 2024-11-06-15-13-23 ] MESSAGE: ask price 7.630000 bid price: 7.620000
- [ 2024-11-06-15-13-23 ] MESSAGE: Narrow spread
- [ 2024-11-06-15-13-23 ] MESSAGE: dealing with narrow spread
- [ 2024-11-06-15-13-23 ] INFO dealing with narrow spread result: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.62, 8.4754); ], bids: [(7.63, 8.46429); ]
- [ 2024-11-06-15-13-23 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.62, 8.4754); ], bids: [(7.63, 8.46429); ]
- [ 2024-11-06-15-13-23 ] DEBUG base balance: {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730905998682}
- [ 2024-11-06-15-13-23 ] DEBUG quote balance: {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730905998682}
- [ 2024-11-06-15-13-23 ] MESSAGE: balances_ratio: 0.837413
- [ 2024-11-06-15-13-23 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.62, 8.4754); ], bids: [(7.63, 8.46429); ]
- [ 2024-11-06-15-13-23 ] MESSAGE: LIMIT GRID
- [ 2024-11-06-15-13-23 ] DEBUG in _process_limit_grid: 7.62
- [ 2024-11-06-15-13-23 ] DEBUG in _process_limit_grid: 8.4754
- [ 2024-11-06-15-13-23 ] DEBUG in _process_limit_grid: 7.63
- [ 2024-11-06-15-13-23 ] DEBUG in _process_limit_grid: 8.46429
- [ 2024-11-06-15-13-23 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 7.630000, "quantity": 8.464300, "type": "LIMIT", "side": "BUY"}
- [ 2024-11-06-15-13-23 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 7.620000, "quantity": 8.475400, "type": "LIMIT", "side": "SELL"}
- [ 2024-11-06-15-13-23 ] MESSAGE: csize: 1
- index_order_id 7630000000000000000/8464300000000000000/BUY 724052859710634234
- [ 2024-11-06-15-13-23 ] DEBUG index_order_id 7620000000000000000/8475400000000000000/SELL 16238776736966203298
- ! cancel: {"symbol": "HCDAI", "coid": 15182699657445204092, {"dex_order_id": "907662", "order_id": "1730905723360002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.630000, "quantity": 9.646000, "filled_quantity": 0.000000, "update_time": 1730905872000}
- cancel_order_wrapper::execute
- [ 2024-11-06-15-13-23 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.630000, "quantity": 8.464300, "client_order_id": 724052859710634234, "type": "LIMIT", "side": "BUY"}
- ! new api API 0x57df79e72fe0
- order_request_t {"symbol": "HCDAI", "price": 7.630000, "quantity": 8.464300, "client_order_id": 724052859710634234, "type": "LIMIT", "side": "BUY"}
- [ 2024-11-06-15-13-23 ] DEBUGquantity 84643
- new_order_wrapper::execute
- {"ext_params": {"timeout": "30000", "priority": "0"}, "params": {"quantity": "8464300000000000000", "price": "7630000000000000000", "orderType": "0", "isBid": "true"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
- ! new: {"symbol": "HCDAI", "price": 7.620000, "quantity": 8.475400, "client_order_id": 16238776736966203298, "type": "LIMIT", "side": "SELL"}
- ! new api API 0x57df79e72fe0
- 2024/11/06 15:13:23 extends args: {"timeout": "30000", "priority": "0"}
- 2024/11/06 15:13:23 args: {"quantity": "8464300000000000000", "price": "7630000000000000000", "orderType": "0", "isBid": "true"}
- 2024/11/06 15:13:23 start cancelation
- order_request_t {"symbol": "HCDAI", "price": 7.620000, "quantity": 8.475400, "client_order_id": 16238776736966203298, "type": "LIMIT", "side": "SELL"}
- 2024/11/06 15:13:23 finish cancelation
- quantity 84754
- new_order_wrapper::execute
- {"ext_params": {"timeout": "30000", "priority": "0"}, "params": {"quantity": "8475400000000000000", "price": "7620000000000000000", "orderType": "0", "isBid": "false"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
- 2024/11/06 15:13:23 extends args: {}
- 2024/11/06 15:13:23 args: {"orderId": "907662"}
- 2024/11/06 15:13:23 start cancelation
- 2024/11/06 15:13:23 finish cancelation
- 2024/11/06 15:13:23 extends args: {"timeout": "30000", "priority": "0"}
- 2024/11/06 15:13:23 args: {"quantity": "8475400000000000000", "price": "7620000000000000000", "orderType": "0", "isBid": "false"}
- 2024/11/06 15:13:23 start cancelation
- 2024/11/06 15:13:23 finish cancelation
- 2024/11/06 15:13:23 gas price = 85055155600
- 2024/11/06 15:13:23 gas price = 85055155600
- 2024/11/06 15:13:23 gas price = 85055155600
- 2024/11/06 15:13:23 TX Hash: 0x5c72cf0d60c3de25ae9615e1c66b1f157eb1a7708888c3638af7e98f2f43ebcf ; Nonce: 87
- 2024/11/06 15:13:23 TX Hash: 0x4d18c2069f2fdca7a4744a502cb986b773b439a50d2bc7d7af2fcd39e302e246 ; Nonce: 89
- 2024/11/06 15:13:23 TX Hash: 0x5f8a9969109967a726c0d1757244913f70cb51614d118e186b49a2140d5b0964 ; Nonce: 88
- {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730906009307}
- {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730906009307}
- stream = onForceDexOrdersBookUpdated
- {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730906019936}
- {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730906019936}
- stream = onForceDexOrdersBookUpdated
- {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730906030559}
- {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730906030559}
- stream = onForceDexOrdersBookUpdated
- {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730906041188}
- {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730906041188}
- {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730906051821}
- {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730906051821}
- stream = onForceDexOrdersBookUpdated
- {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730906062446}
- {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730906062446}
- stream = onForceDexOrdersBookUpdated
- {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730906073076}
- {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730906073076}
- stream = onForceDexOrdersBookUpdated
- {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730906083711}
- {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730906083711}
- {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730906094334}
- {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730906094334}
- stream = onForceDexOrdersBookUpdated
- {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730906104964}
- {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730906104964}
- {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730906115586}
- {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730906115586}
- stream = onForceDexOrdersBookUpdated
- [ 2024-11-06-15-15-26 ] MESSAGE: sleep time = 112904
- [ 2024-11-06-15-15-26 ] MESSAGE: ask price 7.620000 bid price: 7.610000
- [ 2024-11-06-15-15-26 ] MESSAGE: Narrow spread
- [ 2024-11-06-15-15-26 ] MESSAGE: dealing with narrow spread
- [ 2024-11-06-15-15-26 ] INFO dealing with narrow spread result: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.61, 9.91854); ], bids: [(7.62, 9.90553); ]
- [ 2024-11-06-15-15-26 ] INFO portfolio: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.61, 9.91854); ], bids: [(7.62, 9.90553); ]
- [ 2024-11-06-15-15-26 ] DEBUG base balance: {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730906115586}
- [ 2024-11-06-15-15-26 ] DEBUG quote balance: {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730906115586}
- [ 2024-11-06-15-15-26 ] MESSAGE: balances_ratio: 0.836315
- [ 2024-11-06-15-15-26 ] INFO execution order event process: OrderEvent: delta=1.73077e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(7.61, 9.91854); ], bids: [(7.62, 9.90553); ]
- [ 2024-11-06-15-15-26 ] MESSAGE: LIMIT GRID
- [ 2024-11-06-15-15-26 ] DEBUG in _process_limit_grid: 7.61
- [ 2024-11-06-15-15-26 ] DEBUG in _process_limit_grid: 9.91854
- [ 2024-11-06-15-15-26 ] DEBUG in _process_limit_grid: 7.62
- [ 2024-11-06-15-15-26 ] DEBUG in _process_limit_grid: 9.90553
- [ 2024-11-06-15-15-26 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 7.620000, "quantity": 9.905500, "type": "LIMIT", "side": "BUY"}
- [ 2024-11-06-15-15-26 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 7.610000, "quantity": 9.918500, "type": "LIMIT", "side": "SELL"}
- [ 2024-11-06-15-15-26 ] MESSAGE: csize: 3
- [ 2024-11-06-15-15-26 ] DEBUG ! cancel: {"symbol": "HCDAI", "coid": 16238776736966203298, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "index_order_id 7620000000000000000/9905500000000000000/BUYSELL", "status": " PENDING15802481313642806534
- ", "price": 7.620000, "quantity": 8.475400, "update_time": 0}
- index_order_id 7610000000000000000/9918500000000000000/SELL 504508060277098085
- cancel_order_wrapper::execute
- [ 2024-11-06-15-15-26 ] DEBUG ! cancel: {"symbol": "HCDAI", "coid": 724052859710634234, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "BUY", "status": "PENDING", "price": 2024/11/06 15:15:26 extends args: {}
- 2024/11/06 15:15:26 args: {"orderId": "0"}
- 7.630000, "quantity": 2024/11/06 15:15:26 start cancelation
- 8.464300, "update_time": 0}
- 2024/11/06 15:15:26 finish cancelation
- cancel_order_wrapper::execute
- 2024/11/06 15:15:26 extends args: {}
- 2024/11/06 15:15:26 args: {"orderId": "0"}
- 2024/11/06 15:15:26 start cancelation
- 2024/11/06 15:15:26 finish cancelation
- [ 2024-11-06-15-15-26 ] DEBUG ! cancel: {"symbol": "HCDAI", "coid": 15182699657445204092, {"dex_order_id": "907662", "order_id": "1730905723360002", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 7.630000, "quantity": 9.646000, "filled_quantity": 0.000000, "update_time": 1730905872000}
- cancel_order_wrapper::execute
- [ 2024-11-06-15-15-26 ] DEBUG ! new: 2024/11/06 15:15:26 extends args: {}
- {"symbol": "HCDAI", "price": 7.620000, "quantity": 9.905500, "client_order_id": 15802481313642806534, "type": "LIMIT", "side": "BUY"}
- 2024/11/06 15:15:26 args: {"orderId": "907662"}
- ! new api API 2024/11/06 15:15:26 start cancelation
- 0x57df79e72fe0
- 2024/11/06 15:15:26 finish cancelation
- order_request_t {"symbol": "HCDAI", "price": 7.620000, "quantity": 9.905500, "client_order_id": 15802481313642806534, "type": "LIMIT", "side": "BUY"}
- quantity 99055
- new_order_wrapper::execute
- {"ext_params": {"timeout": "30000", "priority": "0"}, "params": {"quantity": "9905500000000000000", "price": "7620000000000000000", "orderType": "0", "isBid": "true"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
- 2024/11/06 15:15:26 extends args: {"timeout": "30000", "priority": "0"}
- 2024/11/06 15:15:26 args: {"quantity": "9905500000000000000", "price": "7620000000000000000", "orderType": "0", "isBid": "true"}
- 2024/11/06 15:15:26 start cancelation
- 2024/11/06 15:15:26 finish cancelation
- [ 2024-11-06-15-15-26 ] DEBUG ! new: {"symbol": "HCDAI", "price": 7.610000, "quantity": 9.918500, "client_order_id": 504508060277098085, "type": "LIMIT", "side": "SELL"}
- ! new api API 0x57df79e72fe0
- order_request_t {"symbol": "HCDAI", "price": 7.610000, "quantity": 9.918500, "client_order_id": 504508060277098085, "type": "LIMIT", "side": "SELL"}
- quantity 99185
- new_order_wrapper::execute
- {"ext_params": {"timeout": "30000", "priority": "0"}, "params": {"quantity": "9918500000000000000", "price": "7610000000000000000", "orderType": "0", "isBid": "false"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
- 2024/11/06 15:15:26 extends args: {"timeout": "30000", "priority": "0"}
- 2024/11/06 15:15:26 args: {"quantity": "9918500000000000000", "price": "7610000000000000000", "orderType": "0", "isBid": "false"}
- 2024/11/06 15:15:26 start cancelation
- 2024/11/06 15:15:26 finish cancelation
- {"asset": "HC", "free": 54.3459, "locked": 0, "wallet": 0, "update_time": 1730906126397}
- {"asset": "DAI", "free": 494.842, "locked": 0, "wallet": 0, "update_time": 1730906126397}
- 2024/11/06 15:15:26 cancel tx 0x4d18c2069f2fdca7a4744a502cb986b773b439a50d2bc7d7af2fcd39e302e246 with tx 0x41f4eb62dac3c4f6fc72972d0926efad3487e9aaea011dfc20d1de5a371d324b; Nonce 89
- 2024/11/06 15:15:26 cancel tx 0x5c72cf0d60c3de25ae9615e1c66b1f157eb1a7708888c3638af7e98f2f43ebcf with tx 0x521c428421e8b2483bb54834db5381d65646835824ec29f05727b2a46367e707; Nonce 87
- 2024/11/06 15:15:26 cancel tx 0x4d18c2069f2fdca7a4744a502cb986b773b439a50d2bc7d7af2fcd39e302e246 with tx 0x41f4eb62dac3c4f6fc72972d0926efad3487e9aaea011dfc20d1de5a371d324b; Nonce 89
- 2024/11/06 15:15:26 gas price = 96459262863
- 2024/11/06 15:15:26 cancel tx 0x4d18c2069f2fdca7a4744a502cb986b773b439a50d2bc7d7af2fcd39e302e246 with tx 0x41f4eb62dac3c4f6fc72972d0926efad3487e9aaea011dfc20d1de5a371d324b; Nonce 89
- 2024/11/06 15:15:26 cancel tx 0x5c72cf0d60c3de25ae9615e1c66b1f157eb1a7708888c3638af7e98f2f43ebcf with tx 0x521c428421e8b2483bb54834db5381d65646835824ec29f05727b2a46367e707; Nonce 87
- 2024/11/06 15:15:26 gas price = 96459262863
- 2024/11/06 15:15:26 gas price = 96459262863
- 2024/11/06 15:15:26 cancel tx 0x5c72cf0d60c3de25ae9615e1c66b1f157eb1a7708888c3638af7e98f2f43ebcf with tx 0x521c428421e8b2483bb54834db5381d65646835824ec29f05727b2a46367e707; Nonce 87
- 2024/11/06 15:15:26 cant get SuggestGasPrice(): 429 Too Many Requests: {"jsonrpc":"2.0","id":790,"error":{"code":-32005,"message":"project ID request rate exceeded","data":{"see":"https://infura.io/dashboard"}}}
- ubuntu@ip-172-31-31-23:~/dmm_strat/solutions/test$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement