(self, ticker: dict, market: Market = None)
| 2349 | return result |
| 2350 | |
| 2351 | def parse_ticker(self, ticker: dict, market: Market = None) -> Ticker: |
| 2352 | # |
| 2353 | # spot |
| 2354 | # |
| 2355 | # { |
| 2356 | # "symbol": "BTCUSDT", |
| 2357 | # "bid1Price": "20517.96", |
| 2358 | # "bid1Size": "2", |
| 2359 | # "ask1Price": "20527.77", |
| 2360 | # "ask1Size": "1.862172", |
| 2361 | # "lastPrice": "20533.13", |
| 2362 | # "prevPrice24h": "20393.48", |
| 2363 | # "price24hPcnt": "0.0068", |
| 2364 | # "highPrice24h": "21128.12", |
| 2365 | # "lowPrice24h": "20318.89", |
| 2366 | # "turnover24h": "243765620.65899866", |
| 2367 | # "volume24h": "11801.27771", |
| 2368 | # "usdIndexPrice": "20784.12009279" |
| 2369 | # } |
| 2370 | # |
| 2371 | # linear/inverse |
| 2372 | # |
| 2373 | # { |
| 2374 | # "symbol": "BTCUSD", |
| 2375 | # "lastPrice": "16597.00", |
| 2376 | # "indexPrice": "16598.54", |
| 2377 | # "markPrice": "16596.00", |
| 2378 | # "prevPrice24h": "16464.50", |
| 2379 | # "price24hPcnt": "0.008047", |
| 2380 | # "highPrice24h": "30912.50", |
| 2381 | # "lowPrice24h": "15700.00", |
| 2382 | # "prevPrice1h": "16595.50", |
| 2383 | # "openInterest": "373504107", |
| 2384 | # "openInterestValue": "22505.67", |
| 2385 | # "turnover24h": "2352.94950046", |
| 2386 | # "volume24h": "49337318", |
| 2387 | # "fundingRate": "-0.001034", |
| 2388 | # "nextFundingTime": "1672387200000", |
| 2389 | # "predictedDeliveryPrice": "", |
| 2390 | # "basisRate": "", |
| 2391 | # "deliveryFeeRate": "", |
| 2392 | # "deliveryTime": "0", |
| 2393 | # "ask1Size": "1", |
| 2394 | # "bid1Price": "16596.00", |
| 2395 | # "ask1Price": "16597.50", |
| 2396 | # "bid1Size": "1" |
| 2397 | # } |
| 2398 | # |
| 2399 | # option |
| 2400 | # |
| 2401 | # { |
| 2402 | # "symbol": "BTC-30DEC22-18000-C", |
| 2403 | # "bid1Price": "0", |
| 2404 | # "bid1Size": "0", |
| 2405 | # "bid1Iv": "0", |
| 2406 | # "ask1Price": "435", |
| 2407 | # "ask1Size": "0.66", |
| 2408 | # "ask1Iv": "5", |
no test coverage detected