17 lines
365 B
Python
17 lines
365 B
Python
from typing import Dict, Optional, TypedDict
|
|
|
|
|
|
class Ticker(TypedDict):
|
|
symbol: str
|
|
ask: Optional[float]
|
|
askVolume: Optional[float]
|
|
bid: Optional[float]
|
|
bidVolume: Optional[float]
|
|
last: Optional[float]
|
|
quoteVolume: Optional[float]
|
|
baseVolume: Optional[float]
|
|
# Several more - only listing required.
|
|
|
|
|
|
Tickers = Dict[str, Ticker]
|