Add a symbol/asset type key

basic_orders
Tyler Goodlet 2021-02-19 18:43:56 -05:00
parent add63734f1
commit ead2f77d40
1 changed files with 4 additions and 0 deletions

View File

@ -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())