Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user_id: 1245318
- authentification was completed
- API 0x555555971fe0
- run forever balance 0x555555971fe0
- getBalance {"token_name": "DAI", "error": "ok", "balance": "0"}
- balanceOf {"token_name": "DAI", "error": "ok", "balance": "1000000000000000000000"}
- getBalance {"token_name": "HC", "error": "ok", "balance": "0"}
- balanceOf {"token_name": "HC", "error": "ok", "balance": "0"}
- {"type": "DEX", "maker_commission": 0, "taker_commission": 0, "balances": [{"asset": "HC", "free": 0, "locked": 0, "wallet": 0, "update_time": 1730886490011}, {"asset": "DAI", "free": 1000, "locked": 0, "wallet": 0, "update_time": 1730886490011}]}
- [New Thread 0x7fff9e000640 (LWP 605420)]
- get balance indicator 0x555555972180
- 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", "TICK"]}}
- >:)
- auth token: eyJhbG
- getBalance {"token_name": "DAI", "error": "ok", "balance": "0"}
- balanceOf {"token_name": "DAI", "error": "ok", "balance": "1000000000000000000000"}
- getBalance {"token_name": "HC", "error": "ok", "balance": "0"}
- get_open_orders_wrapper::request_filler
- auth token: eyJhbG
- balanceOf {"token_name": "HC", "error": "ok", "balance": "0"}
- {"asset": "HC", "free": 0, "locked": 0, "wallet": 0, "update_time": 1730886490763}
- {"asset": "DAI", "free": 1000, "locked": 0, "wallet": 0, "update_time": 1730886490763}
- [New Thread 0x7fff9d600640 (LWP 605421)]
- Execution was constructed
- Trader was created
- [New Thread 0x7fff9cc00640 (LWP 605422)]
- [New Thread 0x7fff93e00640 (LWP 605423)]
- [New Thread 0x7fff93400640 (LWP 605424)]
- 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
- [New Thread 0x7fff92a00640 (LWP 605425)]
- [New Thread 0x7fff92000640 (LWP 605426)]
- [New Thread 0x7fff91600640 (LWP 605427)]
- {"payload": {"extensions": {}, "variables": {}}, "type": "subscribe", "id": "1730886491054002"}
- {"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": "1730886491054003"}
- {"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": "1730886491054001"}
- 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": "1730886491054002"}
- feed.at("type").s() != ping{"type": "connection_ack"}
- feed.at("type").s() != ping{"type": "connection_ack"}
- {"symbol": "HCDAI", "tick": "2000"}
- [ 2024-11-06-09-48-13 ] MESSAGE: starts taker test!
- [ 2024-11-06-09-48-13 ] DEBUG taker test completed: OrderEvent: delta=1.73079e+11, symbol="HCDAI", type="TAKER_BUY", priority=default, amount: 65
- [ 2024-11-06-09-48-13 ] INFO portfolio: OrderEvent: delta=1.73079e+11, symbol="HCDAI", type="TAKER_BUY", priority=default, amount: 65
- [ 2024-11-06-09-48-13 ] INFO execution order event process: OrderEvent: delta=1.73079e+11, symbol="HCDAI", type="TAKER_BUY", priority=default, amount: 65
- index_order_id 0/65000000000000000000/BUY 17059178135423184753
- [New Thread 0x7fff90c00640 (LWP 605447)]
- [ 2024-11-06-09-48-13 ] DEBUG ! new: {"symbol": "HCDAI", "quantity": 65.000000, "client_order_id": 17059178135423184753, "type": "MARKET", "side": "BUY"}
- ! new api API 0x555555971fe0
- order_request_t {"symbol": "HCDAI", "quantity": 65.000000, "client_order_id": 17059178135423184753, "type": "MARKET", "side": "BUY"}
- quantity 650000
- new_order_wrapper::execute
- {"ext_params": {"timeout": "30000", "priority": "0"}, "params": {"quantity": "65000000000000000000", "price": "0", "orderType": "1", "isBid": "true"}, "function_name": "createOrder", "address": "0x6B965968FBc6ff0D2eD7CB1Cb38C1C1bbE0327B4"}
- 2024/11/06 09:48:13 extends args: {"timeout": "30000", "priority": "0"}
- 2024/11/06 09:48:13 args: {"quantity": "65000000000000000000", "price": "0", "orderType": "1", "isBid": "true"}
- 2024/11/06 09:48:13 start cancelation
- 2024/11/06 09:48:13 finish cancelation
- 2024/11/06 09:48:13 gas price = 47216400448
- 2024/11/06 09:48:13 TX Hash: 0xbac3b00cbc1ad1af02c44b34d449c800ad371d3f908c532bc136e6ce3e059c8a ; Nonce: 13
- {"symbol": "HCDAI", "tick": "2000"}
- {"symbol": "HCDAI", "tick": "2000"}
- [Thread 0x7ffff4800640 (LWP 605419) exited]
- stream = onForceDexOrdersBookUpdated
- {"symbol": "HCDAI", "tick": "2000"}
- getBalance {"token_name": "DAI", "error": "ok", "balance": "0"}
- {"symbol": "HCDAI", "tick": "2000"}
- balanceOf {"token_name": "DAI", "error": "ok", "balance": "1000000000000000000000"}
- getBalance {"token_name": "HC", "error": "ok", "balance": "0"}
- balanceOf {"token_name": "HC", "error": "ok", "balance": "0"}
- {"asset": "HC", "free": 0, "locked": 0, "wallet": 0, "update_time": 1730886501478}
- {"asset": "DAI", "free": 1000, "locked": 0, "wallet": 0, "update_time": 1730886501478}
- 2024/11/06 09:48:22 golang tx log: {
- tx = 0xbac3b00cbc1ad1af02c44b34d449c800ad371d3f908c532bc136e6ce3e059c8a ok;
- status = 1
- block = 63950013
- usedGas = 459203
- exec_time = 9.755982s
- }
- C++ new_order_wrapper response: {"tx_hash": "0xbac3b00cbc1ad1af02c44b34d449c800ad371d3f908c532bc136e6ce3e059c8a", "used_gas": "459203", "block": "63950013", "error": "ok"}
- [ 2024-11-06-09-48-22 ] MESSAGE: new order delta: 9757
- [ 2024-11-06-09-48-22 ] DEBUG ? new: empty order
- [Thread 0x7fff90c00640 (LWP 605447) exited]
- {"symbol": "HCDAI", "tick": "2000"}
- stream = onForceDexOrdersBookUpdated
- {"symbol": "HCDAI", "tick": "2000"}
- {"symbol": "HCDAI", "tick": "2000"}
- {"symbol": "HCDAI", "tick": "2000"}
- {"symbol": "HCDAI", "tick": "2000"}
- getBalance {"token_name": "DAI", "error": "ok", "balance": "0"}
- balanceOf {"token_name": "DAI", "error": "ok", "balance": "496250000000000000000"}
- getBalance {"token_name": "HC", "error": "ok", "balance": "0"}
- balanceOf {"token_name": "HC", "error": "ok", "balance": "64870000000000000000"}
- {"asset": "HC", "free": 64.87, "locked": 0, "wallet": 0, "update_time": 1730886512199}
- {"asset": "DAI", "free": 496.25, "locked": 0, "wallet": 0, "update_time": 1730886512199}
- {"symbol": "HCDAI", "tick": "2000"}
- {"symbol": "HCDAI", "tick": "2000"}
- {"symbol": "HCDAI", "tick": "2000"}
- {"symbol": "HCDAI", "tick": "2000"}
- {"symbol": "HCDAI", "tick": "2000"}
- getBalance {"token_name": "DAI", "error": "ok", "balance": "0"}
- balanceOf {"token_name": "DAI", "error": "ok", "balance": "496250000000000000000"}
- getBalance {"token_name": "HC", "error": "ok", "balance": "0"}
- balanceOf {"token_name": "HC", "error": "ok", "balance": "64870000000000000000"}
- {"asset": "HC", "free": 64.87, "locked": 0, "wallet": 0, "update_time": 1730886522924}
- {"asset": "DAI", "free": 496.25, "locked": 0, "wallet": 0, "update_time": 1730886522924}
- {"symbol": "HCDAI", "tick": "2000"}
- {"symbol": "HCDAI", "tick": "2000"}
- {"symbol": "HCDAI", "tick": "2000"}
- {"symbol": "HCDAI", "tick": "2000"}
- {"symbol": "HCDAI", "tick": "2000"}
- stream = onMyForceDexOrdersUpdated
- _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245318", "status": "CLOSED", "quantity": "65000000000000000000", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "1000000000000000000000000", "id": "56ccad54-85c7-4a19-81c7-a3ab8a7454a7", "type": "MARKET", "orderNumber": "904575", "direction": "BID", "initialQuantity": "65000000000000000000", "createdAt": "2024-11-06T09:48:22.000Z"}}
- feed_piece {"userId": "1245318", "status": "CLOSED", "quantity": "65000000000000000000", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "1000000000000000000000000", "id": "1730886491054003", "type": "MARKET", "orderNumber": "904575", "direction": "BID", "initialQuantity": "65000000000000000000", "createdAt": "2024-11-06T09:48:22.000Z"} for event ACCOUNT_ORDER
- stream == e_stream::ACCOUNT_ORDER
- _fill_order 0/65000000000000000000/BUY 17059178135423184753
- WebSocketEvent: delta=1.73089e+11, event_time=1730886502000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337059104, "order": {"symbol": "HCDAI", "coid": 17059178135423184753, {"dex_order_id": "904575", "order_id": "1730886491054003", "type": "MARKET", "side": "BUY", "status": "CLOSED", "price": 1000000.000000, "quantity": 65.000000, "filled_quantity": 0.000000, "update_time": 1730886502000}}
- [ 2024-11-06-09-48-52 ] INFO Execution::_process: WebSocketEvent: delta=1.73089e+11, event_time=1730886502000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337059104, "order": {"symbol": "HCDAI", "coid": 17059178135423184753, {"dex_order_id": "904575", "order_id": "1730886491054003", "type": "MARKET", "side": "BUY", "status": "CLOSED", "price": 1000000.000000, "quantity": 65.000000, "filled_quantity": 0.000000, "update_time": 1730886502000}}
- [ 2024-11-06-09-48-52 ] MESSAGE: market
- [ 2024-11-06-09-48-52 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 17059178135423184753, {"dex_order_id": "904575", "order_id": "1730886491054003", "type": "MARKET", "side": "BUY", "status": "CLOSED", "price": 1000000.000000, "quantity": 65.000000, "filled_quantity": 0.000000, "update_time": 1730886502000}
- old_it != cur_storage.end()
- [ 2024-11-06-09-48-52 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 17059178135423184753, {"dex_order_id": "0", "order_id": "", "type": "MARKET", "side": "BUY", "status": "PENDING", "quantity": 65.000000, "update_time": 0}
- [ 2024-11-06-09-48-52 ] MESSAGE: ! HCDAI
- stream = onMyForceDexOrdersUpdated
- _feed_preprocess ACCOUNT ORDER: {"onMyForceDexOrdersUpdated": {"userId": "1245318", "status": "CLOSED", "quantity": "0", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "1000000000000000000000000", "id": "56ccad54-85c7-4a19-81c7-a3ab8a7454a7", "type": "MARKET", "orderNumber": "904575", "direction": "BID", "initialQuantity": "65000000000000000000", "createdAt": "2024-11-06T09:48:22.000Z"}}
- feed_piece {"userId": "1245318", "status": "CLOSED", "quantity": "0", "pairId": "1100ce7d-7e16-4a40-9aba-1ecc883b1f7e", "price": "1000000000000000000000000", "id": "1730886491054003", "type": "MARKET", "orderNumber": "904575", "direction": "BID", "initialQuantity": "65000000000000000000", "createdAt": "2024-11-06T09:48:22.000Z"} for event ACCOUNT_ORDER
- stream == e_stream::ACCOUNT_ORDER
- _fill_order 0/65000000000000000000/BUY 17059178135423184753
- WebSocketEvent: delta=1.73089e+11, event_time=1730886502000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337059104, "order": {"symbol": "HCDAI", "coid": 17059178135423184753, {"dex_order_id": "904575", "order_id": "1730886491054003", "type": "MARKET", "side": "BUY", "status": "CLOSED", "price": 1000000.000000, "quantity": 65.000000, "filled_quantity": 65.000000, "update_time": 1730886502000}}
- [ 2024-11-06-09-48-52 ] INFO Execution::_process: WebSocketEvent: delta=1.73089e+11, event_time=1730886502000", type="ACCOUNT_ORDER", event: {"stream": ACCOUNT_ORDER, "event_time": 140737337059104, "order": {"symbol": "HCDAI", "coid": 17059178135423184753, {"dex_order_id": "904575", "order_id": "1730886491054003", "type": "MARKET", "side": "BUY", "status": "CLOSED", "price": 1000000.000000, "quantity": 65.000000, "filled_quantity": 65.000000, "update_time": 1730886502000}}
- [ 2024-11-06-09-48-52 ] MESSAGE: market
- [ 2024-11-06-09-48-52 ] DEBUG Event order: : {"symbol": "HCDAI", "coid": 17059178135423184753, {"dex_order_id": "904575", "order_id": "1730886491054003", "type": "MARKET", "side": "BUY", "status": "CLOSED", "price": 1000000.000000, "quantity": 65.000000, "filled_quantity": 65.000000, "update_time": 1730886502000}
- old_it != cur_storage.end()
- [ 2024-11-06-09-48-52 ] DEBUG old order: : {"symbol": "HCDAI", "coid": 17059178135423184753, {"dex_order_id": "904575", "order_id": "1730886491054003", "type": "MARKET", "side": "BUY", "status": "CLOSED", "price": 1000000.000000, "quantity": 65.000000, "filled_quantity": 0.000000, "update_time": 1730886502000}
- $$$ {"symbol": "HCDAI", "price": 1000000.000000, "quantity": 65.000000, "trade_side": BUY, "trade_time": 1730886502000}
- open_position for order
- [ 2024-11-06-09-48-52 ] INFO Open position: : {"symbol": "HCDAI", "price": 1000000.000000, "quantity": 65.000000, "trade_side": BUY, "trade_time": 1730886502000}
- [ 2024-11-06-09-48-52 ] INFO new position: {"symbol": "HCDAI", "entry_price": 1e+06, "quantity": 65, "position_quote": 6.5e+07}
- [ 2024-11-06-09-48-52 ] MESSAGE: erase
- [ 2024-11-06-09-48-52 ] MESSAGE: ! HCDAI
- {"symbol": "HCDAI", "tick": "2000"}
- getBalance {"token_name": "DAI", "error": "ok", "balance": "0"}
- balanceOf {"token_name": "DAI", "error": "ok", "balance": "496250000000000000000"}
- stream = onForceDexOrdersBookUpdated
- getBalance {"token_name": "HC", "error": "ok", "balance": "0"}
- balanceOf {"token_name": "HC", "error": "ok", "balance": "64870000000000000000"}
- {"asset": "HC", "free": 64.87, "locked": 0, "wallet": 0, "update_time": 1730886533639}
- {"asset": "DAI", "free": 496.25, "locked": 0, "wallet": 0, "update_time": 1730886533639}
- {"symbol": "HCDAI", "tick": "2000"}
- {"symbol": "HCDAI", "tick": "2000"}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement