(self, trade: dict, market: Market = None)
| 2992 | return self.filter_by_symbol_since_limit(sorted, symbol, since, limit) |
| 2993 | |
| 2994 | def parse_trade(self, trade: dict, market: Market = None) -> Trade: |
| 2995 | # |
| 2996 | # public https://bybit-exchange.github.io/docs/v5/market/recent-trade |
| 2997 | # |
| 2998 | # { |
| 2999 | # "execId": "666042b4-50c6-58f3-bd9c-89b2088663ff", |
| 3000 | # "symbol": "ETHUSD", |
| 3001 | # "price": "1162.95", |
| 3002 | # "size": "1", |
| 3003 | # "side": "Sell", |
| 3004 | # "time": "1669191277315", |
| 3005 | # "isBlockTrade": False |
| 3006 | # } |
| 3007 | # |
| 3008 | # private trades classic spot https://bybit-exchange.github.io/docs/v5/position/execution |
| 3009 | # |
| 3010 | # { |
| 3011 | # "symbol": "QNTUSDT", |
| 3012 | # "orderId": "1538686353240339712", |
| 3013 | # "orderLinkId": "", |
| 3014 | # "side": "Sell", |
| 3015 | # "orderPrice": "", |
| 3016 | # "orderQty": "", |
| 3017 | # "leavesQty": "", |
| 3018 | # "orderType": "Limit", |
| 3019 | # "stopOrderType": "", |
| 3020 | # "execFee": "0.040919", |
| 3021 | # "execId": "2210000000097330907", |
| 3022 | # "execPrice": "98.6", |
| 3023 | # "execQty": "0.415", |
| 3024 | # "execType": "", |
| 3025 | # "execValue": "", |
| 3026 | # "execTime": "1698161716634", |
| 3027 | # "isMaker": True, |
| 3028 | # "feeRate": "", |
| 3029 | # "tradeIv": "", |
| 3030 | # "markIv": "", |
| 3031 | # "markPrice": "", |
| 3032 | # "indexPrice": "", |
| 3033 | # "underlyingPrice": "", |
| 3034 | # "blockTradeId": "" |
| 3035 | # } |
| 3036 | # |
| 3037 | # private trades unified https://bybit-exchange.github.io/docs/v5/position/execution |
| 3038 | # |
| 3039 | # { |
| 3040 | # "symbol": "QNTUSDT", |
| 3041 | # "orderType": "Limit", |
| 3042 | # "underlyingPrice": "", |
| 3043 | # "orderLinkId": "1549452573428424449", |
| 3044 | # "orderId": "1549452573428424448", |
| 3045 | # "stopOrderType": "", |
| 3046 | # "execTime": "1699445151998", |
| 3047 | # "feeRate": "0.00025", |
| 3048 | # "tradeIv": "", |
| 3049 | # "blockTradeId": "", |
| 3050 | # "markPrice": "", |
| 3051 | # "execPrice": "102.8", |
nothing calls this directly
no test coverage detected