[Add]stop_supported member data of ContractData object
This commit is contained in:
parent
8586b5c2fb
commit
ab929f196a
@ -606,6 +606,7 @@ class BitmexWebsocketApi(WebsocketClient):
|
||||
product=Product.FUTURES,
|
||||
pricetick=d["tickSize"],
|
||||
size=d["lotSize"],
|
||||
stop_supported=True,
|
||||
gateway_name=self.gateway_name,
|
||||
)
|
||||
|
||||
|
@ -233,8 +233,10 @@ class ContractData(BaseData):
|
||||
size: int
|
||||
pricetick: float
|
||||
|
||||
stop_supported: bool = False # whether server supports stop order
|
||||
|
||||
option_strike: float = 0
|
||||
option_underlying: str = "" # vt_symbol of underlying contract
|
||||
option_underlying: str = "" # vt_symbol of underlying contract
|
||||
option_type: OptionType = None
|
||||
option_expiry: datetime = None
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user