(self, ticker: dict, market: Market = None)
| 4103 | return orderbook |
| 4104 | |
| 4105 | def parse_ticker(self, ticker: dict, market: Market = None) -> Ticker: |
| 4106 | # markPrices |
| 4107 | # |
| 4108 | # { |
| 4109 | # "symbol": "BTCUSDT", |
| 4110 | # "markPrice": "11793.63104563", # mark price |
| 4111 | # "indexPrice": "11781.80495970", # index price |
| 4112 | # "estimatedSettlePrice": "11781.16138815", # Estimated Settle Price, only useful in the last hour before the settlement starts |
| 4113 | # "lastFundingRate": "0.00038246", # This is the lastest estimated funding rate |
| 4114 | # "nextFundingTime": 1597392000000, |
| 4115 | # "interestRate": "0.00010000", |
| 4116 | # "time": 1597370495002 |
| 4117 | # } |
| 4118 | # |
| 4119 | # spot - ticker |
| 4120 | # |
| 4121 | # { |
| 4122 | # "symbol": "BTCUSDT", |
| 4123 | # "priceChange": "-188.18000000", |
| 4124 | # "priceChangePercent": "-0.159", |
| 4125 | # "weightedAvgPrice": "118356.64734074", |
| 4126 | # "lastPrice": "118449.03000000", |
| 4127 | # "prevClosePrice": "118637.22000000", # field absent in rolling ticker |
| 4128 | # "lastQty": "0.00731000", # field absent in rolling ticker |
| 4129 | # "bidPrice": "118449.02000000", # field absent in rolling ticker |
| 4130 | # "bidQty": "7.15931000", # field absent in rolling ticker |
| 4131 | # "askPrice": "118449.03000000", # field absent in rolling ticker |
| 4132 | # "askQty": "0.09592000", # field absent in rolling ticker |
| 4133 | # "openPrice": "118637.21000000", |
| 4134 | # "highPrice": "119273.36000000", |
| 4135 | # "lowPrice": "117427.50000000", |
| 4136 | # "volume": "14741.41491000", |
| 4137 | # "quoteVolume": "1744744445.80640740", |
| 4138 | # "openTime": "1753701474013", |
| 4139 | # "closeTime": "1753787874013", |
| 4140 | # "firstId": "5116031635", |
| 4141 | # "lastId": "5117964946", |
| 4142 | # "count": "1933312" |
| 4143 | # } |
| 4144 | # |
| 4145 | # usdm tickers |
| 4146 | # |
| 4147 | # { |
| 4148 | # "symbol": "SUSDT", |
| 4149 | # "priceChange": "-0.0229000", |
| 4150 | # "priceChangePercent": "-6.777", |
| 4151 | # "weightedAvgPrice": "0.3210035", |
| 4152 | # "lastPrice": "0.3150000", |
| 4153 | # "lastQty": "16", |
| 4154 | # "openPrice": "0.3379000", |
| 4155 | # "highPrice": "0.3411000", |
| 4156 | # "lowPrice": "0.3071000", |
| 4157 | # "volume": "120588225", |
| 4158 | # "quoteVolume": "38709237.2289000", |
| 4159 | # "openTime": "1753701720000", |
| 4160 | # "closeTime": "1753788172414", |
| 4161 | # "firstId": "72234973", |
| 4162 | # "lastId": "72423677", |
no test coverage detected