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 taker/volume_launch.config
- {}
- C++ 1ffd161f95a641469ef6fb6b7b5cbac3
- 2024/11/21 07:38:26 init Nonce: 355
- 2024/11/21 07:38:26 bind contract 0x6b965968fbc6ff0d2ed7cb1cb38c1c1bbe0327b4
- 2024/11/21 07:38:26 bind contract 0x1a9f5fd1b36f8d1e03f0ff6eabbbb268f053033e
- 2024/11/21 07:38:26 bind contract 0x6fcb55c09671bd0d28b5a0e9d303793ac005f19c
- 2024/11/21 07:38:26 bind contract 0x762d3d096b9a74f4d3adf2b0824456ef8fce5daa
- 2024/11/21 07:38:26 bind contract 0x8f3cf7ad23cd3cadbd9735aff958023239c6a063
- 2024/11/21 07:38:26 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-21T07:38:26.497Z", "txHash": "0x306571d8352b418b85a88243349ea726074e68360603982196c46eeff8dbc9e0", "address": "0x6b965968fbc6ff0d2ed7cb1cb38c1c1bbe0327b4", "lastSyncedBlock": "64546543", "id": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "quoteAsset": "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063", "symbol": "HCDAI"}
- {"userId": "1245312", "error": "ok"}
- user_id: 1245312
- authentification was completed
- API 0x6082cd496f80
- run forever balance 0x6082cd496f80
- get_open_orders_wrapper::request_filler
- auth token: eyJhbG
- {"type": "DEX", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "MATIC", "free": 490.915, "locked": 0, "wallet": 0, "update_time": 1732174709878}, {"asset": "HC", "free": 727.465, "locked": 0, "wallet": 0, "update_time": 1732174709878}, {"asset": "DAI", "free": 726.221, "locked": 0, "wallet": 0, "update_time": 1732174709878}]}
- get balance indicator 0x6082cd497120
- trader {"symbol": "HCDAI", "account": "MFS_1", "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", "TICK"]}}
- >:)
- auth token: eyJhbG
- get_open_orders_wrapper::request_filler
- auth token: eyJhbG
- {"asset": "MATIC", "free": 490.915, "locked": 0, "wallet": 0, "update_time": 1732174710979}
- {"asset": "HC", "free": 727.465, "locked": 0, "wallet": 0, "update_time": 1732174710979}
- {"asset": "DAI", "free": 726.221, "locked": 0, "wallet": 0, "update_time": 1732174710979}
- get_open_orders_wrapper::request_filler
- auth token: eyJhbG
- Execution was constructed
- Trader was created
- subscription stream: ACCOUNT_BALANCE
- no account balance subscription
- 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": "1732174711809002"}
- {"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": "1732174711809001"}
- 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": "1732174711809002"}
- feed.at("type").s() != ping{"type": "connection_ack"}
- {"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": "1732174711809003"}
- [ 2024-11-21-07-38-32 ] MESSAGE: Tiiick
- [ 2024-11-21-07-38-32 ] DEBUG : {"ask_price": 7.09, "ask_quantity": 262.018, "bid_price": 7.08, "bid_quantity": 7.0622}
- [ 2024-11-21-07-38-32 ] DEBUG : OrderEvent: delta=1.73205e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(6.98, 1); ], bids: []
- [ 2024-11-21-07-38-32 ] INFO portfolio: OrderEvent: delta=1.73205e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(6.98, 1); ], bids: []
- [ 2024-11-21-07-38-32 ] INFO execution order event process: OrderEvent: delta=1.73205e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(6.98, 1); ], bids: []
- [ 2024-11-21-07-38-32 ] MESSAGE: LIMIT GRID
- [ 2024-11-21-07-38-32 ] DEBUG in _process_limit_grid: 6.98
- [ 2024-11-21-07-38-32 ] DEBUG in _process_limit_grid: 1
- [ 2024-11-21-07-38-32 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 6.980000, "quantity": 1.000000, "type": "LIMIT", "side": "SELL"}
- [ 2024-11-21-07-38-32 ] MESSAGE: csize: 0
- index_order_id 6980000000000000000/1000000000000000000/SELL 12204234676019749564
- [ 2024-11-21-07-38-32 ] DEBUG ! new: {"symbol": "HCDAI", "price": 6.980000, "quantity": 1.000000, "client_order_id": 12204234676019749564, "type": "LIMIT", "side": "SELL"}
- ! new api API 0x6082cd496f80
- order_request_t {"symbol": "HCDAI", "price": 6.980000, "quantity": 1.000000, "client_order_id": 12204234676019749564, "type": "LIMIT", "side": "SELL"}
- quantity 10000
- new_order_wrapper::execute
- {"ext_params": {"timeout": "30000", "priority": "0"}, "params": {"quantity": "1000000000000000000", "price": "6980000000000000000", "orderType": "0", "isBid": "false"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
- 2024/11/21 07:38:32 extends args: {"timeout": "30000", "priority": "0"}
- 2024/11/21 07:38:32 args: {"quantity": "1000000000000000000", "price": "6980000000000000000", "orderType": "0", "isBid": "false"}
- 2024/11/21 07:38:32 waiting time: 0 ; net timeout after waiting = 30000 ms
- feed.at("type").s() != ping{"type": "connection_ack"}
- 2024/11/21 07:38:33 nonce: 355
- 2024/11/21 07:38:33 gas price = 30878651617
- 2024/11/21 07:38:33 TX Hash: 0x6457d2d18cb3d63d3e5e900b57998cbe197945ddb1841efef6aa79736781c653 ; Nonce: 355
- 1732174715123 stream = onForceDexOrdersBookUpdated
- 2024/11/21 07:38:39 timeout_metric -> complete: tx: 0x6457d2d18cb3d63d3e5e900b57998cbe197945ddb1841efef6aa79736781c653 ; exec_time: 6.183400s ; attempt = 0 ; first tx 0x6457d2d18cb3d63d3e5e900b57998cbe197945ddb1841efef6aa79736781c653
- 2024/11/21 07:38:39 golang tx log: {
- tx = 0x6457d2d18cb3d63d3e5e900b57998cbe197945ddb1841efef6aa79736781c653 ok;
- nonce = 355
- status = 1
- block = 64546561
- usedGas = 444679
- exec_time = 6.183441s
- }
- C++ new_order_wrapper response: {"tx_hash": "0x6457d2d18cb3d63d3e5e900b57998cbe197945ddb1841efef6aa79736781c653", "used_gas": "444679", "block": "64546561", "error": "ok"}
- [ 2024-11-21-07-38-39 ] MESSAGE: new order delta: 6850
- 1732174727220 we get ping message: {"type":"ping"}
- 1732174727226 stream = onForceDexOrdersBookUpdated
- 1732174727239 we get ping message: {"type":"ping"}
- 1732174727660 we get ping message: {"type":"ping"}
- get_open_orders_wrapper::request_filler
- auth token: eyJhbG
- 1732174732182 we get ping message: {"type":"ping"}
- 1732174732211 we get ping message: {"type":"ping"}
- {"asset": "MATIC", "free": 490.901, "locked": 0, "wallet": 0, "update_time": 1732174732108}
- {"asset": "HC", "free": 726.465, "locked": 0, "wallet": 0, "update_time": 1732174732108}
- {"asset": "DAI", "free": 733.287, "locked": 0, "wallet": 0, "update_time": 1732174732108}
- 1732174732660 we get ping message: {"type":"ping"}
- 1732174737183 we get ping message: {"type":"ping"}
- 1732174737210 we get ping message: {"type":"ping"}
- 1732174737661 we get ping message: {"type":"ping"}
- 1732174742181 we get ping message: {"type":"ping"}
- 1732174742209 we get ping message: {"type":"ping"}
- 1732174742661 we get ping message: {"type":"ping"}
- 1732174747180 we get ping message: {"type":"ping"}
- 1732174747211 we get ping message: {"type":"ping"}
- 1732174747661 we get ping message: {"type":"ping"}
- 1732174752182 we get ping message: {"type":"ping"}
- 1732174752209 we get ping message: {"type":"ping"}
- 1732174752661 we get ping message: {"type":"ping"}
- get_open_orders_wrapper::request_filler
- auth token: eyJhbG
- {"asset": "MATIC", "free": 490.901, "locked": 0, "wallet": 0, "update_time": 1732174753206}
- {"asset": "HC", "free": 726.465, "locked": 0, "wallet": 0, "update_time": 1732174753206}
- {"asset": "DAI", "free": 733.287, "locked": 0, "wallet": 0, "update_time": 1732174753206}
- 1732174755701 stream = onForceDexOrdersBookUpdated
- 1732174757182 we get ping message: {"type":"ping"}
- 1732174757211 we get ping message: {"type":"ping"}
- 1732174757663 we get ping message: {"type":"ping"}
- 1732174762182 we get ping message: {"type":"ping"}
- 1732174762219 we get ping message: {"type":"ping"}
- 1732174762660 we get ping message: {"type":"ping"}
- 1732174766377 stream = onMyForceDexOrdersUpdated
- _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245312", "status": "OPEN", "quantity": "1000000000000000000", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "6980000000000000000", "id": "ad705a74-62bb-473b-88c0-c6e5d0f7f4f6", "type": "LIMIT", "orderNumber": "1072447", "direction": "ASK", "initialQuantity": "1000000000000000000", "createdAt": "2024-11-21T07:38:39.000Z"}}
- start _update_balances
- get_open_orders_wrapper::request_filler
- auth token: eyJhbG
- 1732174767235 we get ping message: {"type":"ping"}
- 1732174767237 we get ping message: {"type":"ping"}
- end _update_balances
- stream == e_stream::ACCOUNT_ORDER
- _fill_order 6980000000000000000/1000000000000000000/SELL 12204234676019749564
- WebSocketEvent: delta=1.73217e+11, event_time=1732174719000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 126243055570256, "order": {"symbol": "HCDAI", "coid": 12204234676019749564, {"dex_order_id": "1072447", "order_id": "1732174711809003", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 6.980000, "quantity": 1.000000, "filled_quantity": 0.000000, "update_time": 1732174719000}}
- [ 2024-11-21-07-39-28 ] INFO Execution::_process: WebSocketEvent: delta=1.73217e+11, event_time=1732174719000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 126243055570256, "order": {"symbol": "HCDAI", "coid": 12204234676019749564, {"dex_order_id": "1072447", "order_id": "1732174711809003", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 6.980000, "quantity": 1.000000, "filled_quantity": 0.000000, "update_time": 1732174719000}}
- [ 2024-11-21-07-39-28 ] MESSAGE: limit
- [ 2024-11-21-07-39-28 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 12204234676019749564, {"dex_order_id": "1072447", "order_id": "1732174711809003", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 6.980000, "quantity": 1.000000, "filled_quantity": 0.000000, "update_time": 1732174719000}
- old_it != cur_storage.end()
- [ 2024-11-21-07-39-28 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 12204234676019749564, {"dex_order_id": "0", "order_id": "", "type": "LIMIT", "side": "SELL", "status": "PENDING", "price": 6.980000, "quantity": 1.000000, "update_time": 0}
- [ 2024-11-21-07-39-28 ] MESSAGE: (execution) filled quantity is not initialized
- [ 2024-11-21-07-39-28 ] MESSAGE: ! HCDAI
- 1732174768008 stream = onMyForceDexOrdersUpdated
- _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245312", "status": "CLOSED", "quantity": "0", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "6980000000000000000", "id": "ad705a74-62bb-473b-88c0-c6e5d0f7f4f6", "type": "LIMIT", "orderNumber": "1072447", "direction": "ASK", "initialQuantity": "1000000000000000000", "createdAt": "2024-11-21T07:38:39.000Z"}}
- start _update_balances
- get_open_orders_wrapper::request_filler
- auth token: eyJhbG
- end _update_balances
- stream == e_stream::ACCOUNT_ORDER
- _fill_order 6980000000000000000/1000000000000000000/SELL 12204234676019749564
- WebSocketEvent: delta=1.73217e+11, event_time=1732174719000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 126243055570256, "order": {"symbol": "HCDAI", "coid": 12204234676019749564, {"dex_order_id": "1072447", "order_id": "1732174711809003", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 6.980000, "quantity": 1.000000, "filled_quantity": 1.000000, "update_time": 1732174719000}}
- [ 2024-11-21-07-39-29 ] INFO Execution::_process: WebSocketEvent: delta=1.73217e+11, event_time=1732174719000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 126243055570256, "order": {"symbol": "HCDAI", "coid": 12204234676019749564, {"dex_order_id": "1072447", "order_id": "1732174711809003", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 6.980000, "quantity": 1.000000, "filled_quantity": 1.000000, "update_time": 1732174719000}}
- [ 2024-11-21-07-39-29 ] MESSAGE: limit
- [ 2024-11-21-07-39-29 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 12204234676019749564, {"dex_order_id": "1072447", "order_id": "1732174711809003", "type": "LIMIT", "side": "SELL", "status": "CLOSED", "price": 6.980000, "quantity": 1.000000, "filled_quantity": 1.000000, "update_time": 1732174719000}
- old_it != cur_storage.end()
- [ 2024-11-21-07-39-29 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 12204234676019749564, {"dex_order_id": "1072447", "order_id": "1732174711809003", "type": "LIMIT", "side": "SELL", "status": "NEW", "price": 6.980000, "quantity": 1.000000, "filled_quantity": 0.000000, "update_time": 1732174719000}
- $$$ {"symbol": "HCDAI", "price": 6.980000, "quantity": 1.000000, "trade_side": SELL, "trade_time": 1732174719000}
- open_position for order
- [ 2024-11-21-07-39-29 ] INFO Open position: : {"symbol": "HCDAI", "price": 6.980000, "quantity": 1.000000, "trade_side": SELL, "trade_time": 1732174719000}
- [ 2024-11-21-07-39-29 ] INFO new position: {"symbol": "HCDAI", "entry_price": 6.98, "quantity": -1, "position_quote": -6.98}
- [ 2024-11-21-07-39-29 ] MESSAGE: erase
- [ 2024-11-21-07-39-29 ] MESSAGE: ! HCDAI
- 1732174769597 we get ping message: {"type":"ping"}
- 1732174769614 stream = onForceDexOrdersBookUpdated
- 1732174772210 we get ping message: {"type":"ping"}
- 1732174772223 we get ping message: {"type":"ping"}
- 1732174772662 we get ping message: {"type":"ping"}
- [ 2024-11-21-07-39-33 ] MESSAGE: Tiiick
- [ 2024-11-21-07-39-33 ] DEBUG : {"ask_price": 7.09, "ask_quantity": 232.018, "bid_price": 7.08, "bid_quantity": 135.773}
- [ 2024-11-21-07-39-33 ] DEBUG : OrderEvent: delta=1.73205e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(6.98, 1); ], bids: []
- [ 2024-11-21-07-39-33 ] INFO portfolio: OrderEvent: delta=1.73205e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(6.98, 1); ], bids: []
- [ 2024-11-21-07-39-33 ] INFO execution order event process: OrderEvent: delta=1.73205e+11, symbol="HCDAI", type="LIMIT_GRID", priority=default, asks: [(6.98, 1); ], bids: []
- [ 2024-11-21-07-39-33 ] MESSAGE: LIMIT GRID
- [ 2024-11-21-07-39-33 ] DEBUG in _process_limit_grid: 6.98
- [ 2024-11-21-07-39-33 ] DEBUG in _process_limit_grid: 1
- [ 2024-11-21-07-39-33 ] DEBUG @#*&* : {"symbol": "HCDAI", "price": 6.980000, "quantity": 1.000000, "type": "LIMIT", "side": "SELL"}
- [ 2024-11-21-07-39-33 ] MESSAGE: csize: 0
- index_order_id 6980000000000000000/1000000000000000000/SELL 12204234676019749564
- [ 2024-11-21-07-39-33 ] DEBUG ! new: {"symbol": "HCDAI", "price": 6.980000, "quantity": 1.000000, "client_order_id": 12204234676019749564, "type": "LIMIT", "side": "SELL"}
- ! new api API 0x6082cd496f80
- order_request_t {"symbol": "HCDAI", "price": 6.980000, "quantity": 1.000000, "client_order_id": 12204234676019749564, "type": "LIMIT", "side": "SELL"}
- quantity 10000
- new_order_wrapper::execute
- {"ext_params": {"timeout": "30000", "priority": "0"}, "params": {"quantity": "1000000000000000000", "price": "6980000000000000000", "orderType": "0", "isBid": "false"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
- 2024/11/21 07:39:33 extends args: {"timeout": "30000", "priority": "0"}
- 2024/11/21 07:39:33 args: {"quantity": "1000000000000000000", "price": "6980000000000000000", "orderType": "0", "isBid": "false"}
- 2024/11/21 07:39:33 waiting time: 0 ; net timeout after waiting = 30000 ms
- 1732174773845 stream = onForceDexOrdersBookUpdated
- 2024/11/21 07:39:34 nonce: 356
- 2024/11/21 07:39:34 gas price = 32345692775
- 2024/11/21 07:39:34 TX Hash: 0xc23cc54658bd06e7eedbec984f5d0e40a70389fe81569d4191568a8bfca67580 ; Nonce: 356
- get_open_orders_wrapper::request_filler
- auth token: eyJhbG
- {"asset": "MATIC", "free": 490.901, "locked": 0, "wallet": 0, "update_time": 1732174774301}
- {"asset": "HC", "free": 726.465, "locked": 0, "wallet": 0, "update_time": 1732174774301}
- {"asset": "DAI", "free": 733.287, "locked": 0, "wallet": 0, "update_time": 1732174774301}
- 1732174777209 we get ping message: {"type":"ping"}
- 1732174777222 we get ping message: {"type":"ping"}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement