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 support/launch.config
- {}
- C++ 1ffd161f95a641469ef6fb6b7b5cbac3
- 2024/11/20 09:10:58 init Nonce: 231
- 2024/11/20 09:10:58 bind contract 0x6b965968fbc6ff0d2ed7cb1cb38c1c1bbe0327b4
- 2024/11/20 09:10:58 bind contract 0x1a9f5fd1b36f8d1e03f0ff6eabbbb268f053033e
- 2024/11/20 09:10:58 bind contract 0x6fcb55c09671bd0d28b5a0e9d303793ac005f19c
- 2024/11/20 09:10:58 bind contract 0x762d3d096b9a74f4d3adf2b0824456ef8fce5daa
- 2024/11/20 09:10:58 bind contract 0x8f3cf7ad23cd3cadbd9735aff958023239c6a063
- 2024/11/20 09:10:58 bind contract 0x0000000000000000000000000000000000001010
- {"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-20T09:10:55.498Z", "txHash": "0x306571d8352b418b85a88243349ea726074e68360603982196c46eeff8dbc9e0", "address": "0x6b965968fbc6ff0d2ed7cb1cb38c1c1bbe0327b4", "lastSyncedBlock": "64509027", "id": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "quoteAsset": "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063", "symbol": "HCDAI"}
- {"userId": "1245312", "error": "ok"}
- user_id: 1245312
- authentification was completed
- API 0x5f2c8344e050
- get balance indicator 0x5f2c8344e1f0
- trader {"symbol": "HCDAI", "account": "MFS_1", "market": "MFS_DEX", "logger": {"severity_level": "DEBUG"}, "execution": {"print_ws_events": "1", "delay_between_cancel_and_new": "100", "cancel_on_start": "0", "timeout": "8000"}, "data": {"print_ws_events": "0", "use_part_depth": "true", "events": ["ORDER_BOOK", "TICK"]}}
- >:)
- auth token: eyJhbG
- get_open_orders_wrapper::request_filler
- auth token: eyJhbG
- Execution was constructed
- Trader was created
- subscription stream: PART_DEPTH
- subscription stream: TICK
- mfs api run ws: tick
- 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": "1245312", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e"}}, "type": "subscribe", "id": "1732093863485002"}
- {"payload": {"extensions": {}, "variables": {}}, "type": "subscribe", "id": "1732093863485001"}
- {"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": "1732093863485000"}
- feed.at("type").s() != ping{"type": "connection_ack"}
- feed.at("type").s() != ping{"type": "connection_ack"}
- feed.at("type").s() != ping{"payload": [{"locations": [{"column": "35", "line": "1"}], "message": "The request is missing the \u0060query\u0060 property and the \u0060id\u0060 property."}], "type": "error", "id": "1732093863485001"}
- feed.at("type").s() != ping{"type": "connection_ack"}
- 1732093868915 stream = onForceDexOrdersBookUpdated
- [ 2024-11-20-09-11-08 ] MESSAGE: Orderbook event
- ask price = 8.84 ask quantity = 487.988
- ask price = 8.85 ask quantity = 0
- ask price = 8.86 ask quantity = 132.398
- ask price = 8.87 ask quantity = 1000
- ask price = 8.88 ask quantity = 77
- ask price = 8.89 ask quantity = 0
- ask price = 8.9 ask quantity = 1242.66
- ask price = 8.91 ask quantity = 481.557
- ask price = 8.92 ask quantity = 0
- ask price = 8.93 ask quantity = 0
- bid price = 8.83 bid quantity = 2.82
- bid price = 8.82 bid quantity = 0
- bid price = 8.81 bid quantity = 0
- bid price = 8.8 bid quantity = 0
- bid price = 8.79 bid quantity = 0
- bid price = 8.78 bid quantity = 28.0874
- bid price = 8.77 bid quantity = 18.8141
- bid price = 8.76 bid quantity = 83.3878
- bid price = 8.75 bid quantity = 51.3222
- bid price = 8.74 bid quantity = 376.501
- 1732093878858 we get ping message: {"type":"ping"}
- 1732093878872 we get ping message: {"type":"ping"}
- 1732093878895 we get ping message: {"type":"ping"}
- 1732093881284 stream = onForceDexOrdersBookUpdated
- [ 2024-11-20-09-11-21 ] MESSAGE: Orderbook event
- ask price = 8.84 ask quantity = 487.988
- ask price = 8.85 ask quantity = 0
- ask price = 8.86 ask quantity = 132.398
- ask price = 8.87 ask quantity = 1000
- ask price = 8.88 ask quantity = 77
- ask price = 8.89 ask quantity = 0
- ask price = 8.9 ask quantity = 1242.66
- ask price = 8.91 ask quantity = 481.557
- ask price = 8.92 ask quantity = 0
- ask price = 8.93 ask quantity = 0
- bid price = 8.83 bid quantity = 2.82
- bid price = 8.82 bid quantity = 0
- bid price = 8.81 bid quantity = 0
- bid price = 8.8 bid quantity = 0
- bid price = 8.79 bid quantity = 0
- bid price = 8.78 bid quantity = 50.707
- bid price = 8.77 bid quantity = 18.8141
- bid price = 8.76 bid quantity = 83.3878
- bid price = 8.75 bid quantity = 51.3222
- bid price = 8.74 bid quantity = 376.501
- 1732093883857 we get ping message: {"type":"ping"}
- 1732093883869 we get ping message: {"type":"ping"}
- 1732093883896 we get ping message: {"type":"ping"}
- ^C
- ubuntu@ip-172-31-31-23:~/dmm_strat/solutions/test$ ./test support/launch.config
- {}
- C++ 1ffd161f95a641469ef6fb6b7b5cbac3
- 2024/11/20 09:11:27 init Nonce: 231
- 2024/11/20 09:11:27 bind contract 0x6b965968fbc6ff0d2ed7cb1cb38c1c1bbe0327b4
- 2024/11/20 09:11:27 bind contract 0x1a9f5fd1b36f8d1e03f0ff6eabbbb268f053033e
- 2024/11/20 09:11:27 bind contract 0x6fcb55c09671bd0d28b5a0e9d303793ac005f19c
- 2024/11/20 09:11:27 bind contract 0x762d3d096b9a74f4d3adf2b0824456ef8fce5daa
- 2024/11/20 09:11:27 bind contract 0x8f3cf7ad23cd3cadbd9735aff958023239c6a063
- 2024/11/20 09:11:27 bind contract 0x0000000000000000000000000000000000001010
- {"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-20T09:11:26.511Z", "txHash": "0x306571d8352b418b85a88243349ea726074e68360603982196c46eeff8dbc9e0", "address": "0x6b965968fbc6ff0d2ed7cb1cb38c1c1bbe0327b4", "lastSyncedBlock": "64509037", "id": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "quoteAsset": "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063", "symbol": "HCDAI"}
- {"userId": "1245312", "error": "ok"}
- user_id: 1245312
- authentification was completed
- API 0x55f85a06f050
- get balance indicator 0x55f85a06f1f0
- trader {"symbol": "HCDAI", "account": "MFS_1", "market": "MFS_DEX", "logger": {"severity_level": "DEBUG"}, "execution": {"print_ws_events": "1", "delay_between_cancel_and_new": "100", "cancel_on_start": "0", "timeout": "8000"}, "data": {"print_ws_events": "0", "use_part_depth": "true", "events": ["ORDER_BOOK", "TICK"]}}
- >:)
- auth token: eyJhbG
- get_open_orders_wrapper::request_filler
- auth token: eyJhbG
- Execution was constructed
- Trader was created
- subscription stream: PART_DEPTH
- subscription stream: TICK
- mfs api run ws: tick
- subscription stream: ACCOUNT_ORDER
- subscription stream: ACCOUNT_TRADE
- {"payload": {"extensions": {}, "variables": {}}, "type": "subscribe", "id": "1732093891418001"}
- {"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": "1732093891418000"}
- {"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": "1245312", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e"}}, "type": "subscribe", "id": "1732093891418002"}
- feed.at("type").s() != ping{"type": "connection_ack"}
- feed.at("type").s() != ping{"payload": [{"locations": [{"column": "35", "line": "1"}], "message": "The request is missing the \u0060query\u0060 property and the \u0060id\u0060 property."}], "type": "error", "id": "1732093891418001"}
- feed.at("type").s() != ping{"type": "connection_ack"}
- feed.at("type").s() != ping{"type": "connection_ack"}
- 1732093904246 stream = onForceDexOrdersBookUpdated
- [ 2024-11-20-09-11-44 ] MESSAGE: Orderbook event
- ask price = 8.84 ask quantity = 442.739
- ask price = 8.85 ask quantity = 0
- ask price = 8.86 ask quantity = 132.398
- ask price = 8.87 ask quantity = 1000
- ask price = 8.88 ask quantity = 77
- ask price = 8.89 ask quantity = 0
- ask price = 8.9 ask quantity = 1242.66
- ask price = 8.91 ask quantity = 481.557
- ask price = 8.92 ask quantity = 0
- ask price = 8.93 ask quantity = 0
- bid price = 8.83 bid quantity = 2.82
- bid price = 8.82 bid quantity = 0
- bid price = 8.81 bid quantity = 0
- bid price = 8.8 bid quantity = 0
- bid price = 8.79 bid quantity = 0
- bid price = 8.78 bid quantity = 50.707
- bid price = 8.77 bid quantity = 18.8141
- bid price = 8.76 bid quantity = 83.3878
- bid price = 8.75 bid quantity = 51.3222
- bid price = 8.74 bid quantity = 376.501
- 1732093906792 we get ping message: {"type":"ping"}
- 1732093906807 we get ping message: {"type":"ping"}
- 1732093906851 we get ping message: {"type":"ping"}
- 1732093910957 stream = onForceDexOrdersBookUpdated
- [ 2024-11-20-09-11-50 ] MESSAGE: Orderbook event
- ask price = 8.84 ask quantity = 442.739
- ask price = 8.85 ask quantity = 0
- ask price = 8.86 ask quantity = 132.398
- ask price = 8.87 ask quantity = 0
- ask price = 8.88 ask quantity = 77
- ask price = 8.89 ask quantity = 0
- ask price = 8.9 ask quantity = 1242.66
- ask price = 8.91 ask quantity = 481.557
- ask price = 8.92 ask quantity = 0
- ask price = 8.93 ask quantity = 0
- bid price = 8.83 bid quantity = 2.82
- bid price = 8.82 bid quantity = 0
- bid price = 8.81 bid quantity = 0
- bid price = 8.8 bid quantity = 0
- bid price = 8.79 bid quantity = 0
- bid price = 8.78 bid quantity = 50.707
- bid price = 8.77 bid quantity = 18.8141
- bid price = 8.76 bid quantity = 83.3878
- bid price = 8.75 bid quantity = 51.3222
- bid price = 8.74 bid quantity = 376.501
- 1732093911799 we get ping message: {"type":"ping"}
- 1732093911806 we get ping message: {"type":"ping"}
- 1732093911844 we get ping message: {"type":"ping"}
- ^V^C
- ubuntu@ip-172-31-31-23:~/dmm_strat/solutions/test$ ./test support/launch.config
- {}
- C++ 1ffd161f95a641469ef6fb6b7b5cbac3
- 2024/11/20 09:12:41 init Nonce: 231
- 2024/11/20 09:12:41 bind contract 0x6b965968fbc6ff0d2ed7cb1cb38c1c1bbe0327b4
- 2024/11/20 09:12:41 bind contract 0x1a9f5fd1b36f8d1e03f0ff6eabbbb268f053033e
- 2024/11/20 09:12:41 bind contract 0x6fcb55c09671bd0d28b5a0e9d303793ac005f19c
- 2024/11/20 09:12:41 bind contract 0x762d3d096b9a74f4d3adf2b0824456ef8fce5daa
- 2024/11/20 09:12:41 bind contract 0x8f3cf7ad23cd3cadbd9735aff958023239c6a063
- 2024/11/20 09:12:41 bind contract 0x0000000000000000000000000000000000001010
- {"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-20T09:12:40.379Z", "txHash": "0x306571d8352b418b85a88243349ea726074e68360603982196c46eeff8dbc9e0", "address": "0x6b965968fbc6ff0d2ed7cb1cb38c1c1bbe0327b4", "lastSyncedBlock": "64509069", "id": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "quoteAsset": "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063", "symbol": "HCDAI"}
- {"userId": "1245312", "error": "ok"}
- user_id: 1245312
- authentification was completed
- API 0x62e387cd2050
- get balance indicator 0x62e387cd21f0
- trader {"symbol": "HCDAI", "account": "MFS_1", "market": "MFS_DEX", "logger": {"severity_level": "DEBUG"}, "execution": {"print_ws_events": "1", "delay_between_cancel_and_new": "100", "cancel_on_start": "0", "timeout": "8000"}, "data": {"print_ws_events": "0", "use_part_depth": "true", "events": ["ORDER_BOOK", "TICK"]}}
- >:)
- auth token: eyJhbG
- get_open_orders_wrapper::request_filler
- auth token: eyJhbG
- Execution was constructed
- Trader was created
- subscription stream: PART_DEPTH
- subscription stream: TICK
- mfs api run ws: tick
- 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": "1245312", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e"}}, "type": "subscribe", "id": "1732093965115002"}
- {"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": "1732093965115000"}
- {"payload": {"extensions": {}, "variables": {}}, "type": "subscribe", "id": "1732093965115001"}
- feed.at("type").s() != ping{"type": "connection_ack"}
- feed.at("type").s() != ping{"type": "connection_ack"}
- feed.at("type").s() != ping{"type": "connection_ack"}
- feed.at("type").s() != ping{"payload": [{"locations": [{"column": "35", "line": "1"}], "message": "The request is missing the \u0060query\u0060 property and the \u0060id\u0060 property."}], "type": "error", "id": "1732093965115001"}
- [ 2024-11-20-09-12-46 ] DEBUG best book: {"ask_price": 8.84, "ask_quantity": 396.32, "bid_price": 8.78, "bid_quantity": 20.1448}
- [ 2024-11-20-09-12-46 ] DEBUG strat res: OrderEvent: delta=1.73199e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [], bids: [(8.77, 1); ]
- [ 2024-11-20-09-12-46 ] INFO portfolio: OrderEvent: delta=1.73199e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [], bids: [(8.77, 1); ]
- [ 2024-11-20-09-12-46 ] INFO execution order event process: OrderEvent: delta=1.73199e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [], bids: [(8.77, 1); ]
- [ 2024-11-20-09-12-46 ] MESSAGE: LIMIT GRID
- [ 2024-11-20-09-12-46 ] DEBUG in _process_limit_grid: 8.77
- [ 2024-11-20-09-12-46 ] DEBUG in _process_limit_grid: 1
- [ 2024-11-20-09-12-46 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 8.770000, "quantity": 1.000000, "type": "LIMIT", "side": "BUY"}
- [ 2024-11-20-09-12-46 ] MESSAGE: csize: 0
- index_order_id 8770000000000000000/1000000000000000000/BUY 15754089629752225132
- [ 2024-11-20-09-12-46 ] DEBUG ! new: {"symbol": "HCDAI", "price": 8.770000, "quantity": 1.000000, "client_order_id": 15754089629752225132, "type": "LIMIT", "side": "BUY"}
- ! new api API 0x62e387cd2050
- order_request_t {"symbol": "HCDAI", "price": 8.770000, "quantity": 1.000000, "client_order_id": 15754089629752225132, "type": "LIMIT", "side": "BUY"}
- quantity 10000
- new_order_wrapper::execute
- {"ext_params": {"timeout": "8000", "priority": "0"}, "params": {"quantity": "1000000000000000000", "price": "8770000000000000000", "orderType": "0", "isBid": "true"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
- 2024/11/20 09:12:46 extends args: {"timeout": "8000", "priority": "0"}
- 2024/11/20 09:12:46 args: {"quantity": "1000000000000000000", "price": "8770000000000000000", "orderType": "0", "isBid": "true"}
- 2024/11/20 09:12:46 waiting time: 0 ; net timeout after waiting = 8000 ms
- 2024/11/20 09:12:46 nonce: 231
- 2024/11/20 09:12:46 gas price = 164495211153
- 2024/11/20 09:12:46 TX Hash: 0xce677dac8b3c0b6b073e08cff8ff24b7481bc1fcd69c84528b4af2b16d65eff8 ; Nonce: 231
- 1732093968539 stream = onForceDexOrdersBookUpdated
- [ 2024-11-20-09-12-48 ] MESSAGE: Orderbook event
- ask price = 8.84 ask quantity = 378.221
- ask price = 8.85 ask quantity = 0
- ask price = 8.86 ask quantity = 132.398
- ask price = 8.87 ask quantity = 0
- ask price = 8.88 ask quantity = 77
- ask price = 8.89 ask quantity = 0
- ask price = 8.9 ask quantity = 1242.66
- ask price = 8.91 ask quantity = 481.557
- ask price = 8.92 ask quantity = 0
- ask price = 8.93 ask quantity = 0
- bid price = 8.78 bid quantity = 20.1448
- bid price = 8.77 bid quantity = 118.814
- bid price = 8.76 bid quantity = 83.3878
- bid price = 8.75 bid quantity = 552.322
- bid price = 8.74 bid quantity = 376.501
- bid price = 8.73 bid quantity = 182.215
- bid price = 8.72 bid quantity = 248.726
- bid price = 8.71 bid quantity = 110.934
- bid price = 8.7 bid quantity = 78.4441
- bid price = 8.69 bid quantity = 90.7084
- 2024/11/20 09:12:51 timeout_metric -> complete: tx: 0xce677dac8b3c0b6b073e08cff8ff24b7481bc1fcd69c84528b4af2b16d65eff8 ; exec_time: 4.180690s ; attempt = 0 ; first tx 0xce677dac8b3c0b6b073e08cff8ff24b7481bc1fcd69c84528b4af2b16d65eff8
- 2024/11/20 09:12:51 golang tx log: {
- tx = 0xce677dac8b3c0b6b073e08cff8ff24b7481bc1fcd69c84528b4af2b16d65eff8 ok;
- nonce = 231
- status = 1
- block = 64509087
- usedGas = 368091
- exec_time = 4.180732s
- }
- C++ new_order_wrapper response: {"tx_hash": "0xce677dac8b3c0b6b073e08cff8ff24b7481bc1fcd69c84528b4af2b16d65eff8", "used_gas": "368091", "block": "64509087", "error": "ok"}
- [ 2024-11-20-09-12-51 ] MESSAGE: new order delta: 4894
- 1732093974135 stream = onForceDexOrdersBookUpdated
- [ 2024-11-20-09-12-54 ] MESSAGE: Orderbook event
- ask price = 8.84 ask quantity = 319.214
- ask price = 8.85 ask quantity = 0
- ask price = 8.86 ask quantity = 132.398
- ask price = 8.87 ask quantity = 0
- ask price = 8.88 ask quantity = 77
- ask price = 8.89 ask quantity = 0
- ask price = 8.9 ask quantity = 1242.66
- ask price = 8.91 ask quantity = 481.557
- ask price = 8.92 ask quantity = 0
- ask price = 8.93 ask quantity = 0
- bid price = 8.78 bid quantity = 14.8185
- bid price = 8.77 bid quantity = 118.814
- bid price = 8.76 bid quantity = 83.3878
- bid price = 8.75 bid quantity = 552.322
- bid price = 8.74 bid quantity = 376.501
- bid price = 8.73 bid quantity = 182.215
- bid price = 8.72 bid quantity = 248.726
- bid price = 8.71 bid quantity = 110.934
- bid price = 8.7 bid quantity = 78.4441
- bid price = 8.69 bid quantity = 90.7084
- 1732093980490 we get ping message: {"type":"ping"}
- 1732093980514 we get ping message: {"type":"ping"}
- 1732093980523 we get ping message: {"type":"ping"}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement