[Add]stop_supported member data of ContractData object

This commit is contained in:
vn.py 2019-03-22 21:39:36 +08:00
parent 8586b5c2fb
commit ab929f196a
2 changed files with 4 additions and 1 deletions

View File

@ -606,6 +606,7 @@ class BitmexWebsocketApi(WebsocketClient):
product=Product.FUTURES,
pricetick=d["tickSize"],
size=d["lotSize"],
stop_supported=True,
gateway_name=self.gateway_name,
)

View File

@ -233,6 +233,8 @@ 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_type: OptionType = None