From ead2f77d40cedddd22d7d892961a28868819efe9 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 19 Feb 2021 18:43:56 -0500 Subject: [PATCH] Add a symbol/asset type key --- piker/data/_source.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/piker/data/_source.py b/piker/data/_source.py index e85727c2..23524426 100644 --- a/piker/data/_source.py +++ b/piker/data/_source.py @@ -86,6 +86,10 @@ class Symbol(BaseModel): lot_tick_size: float = 0.01 # "volume" precision as min step value broker_info: Dict[str, Dict[str, Any]] = {} + # specifies a "class" of financial instrument + # ex. stock, futer, option, bond etc. + type_key: str + @property def brokers(self) -> List[str]: return list(self.broker_info.keys())