diff --git a/vnpy/gateway/bitmex/bitmex_gateway.py b/vnpy/gateway/bitmex/bitmex_gateway.py index 6db75147..bf35dcc1 100644 --- a/vnpy/gateway/bitmex/bitmex_gateway.py +++ b/vnpy/gateway/bitmex/bitmex_gateway.py @@ -606,6 +606,7 @@ class BitmexWebsocketApi(WebsocketClient): product=Product.FUTURES, pricetick=d["tickSize"], size=d["lotSize"], + stop_supported=True, gateway_name=self.gateway_name, ) diff --git a/vnpy/trader/object.py b/vnpy/trader/object.py index 0c65f95f..1fa897be 100644 --- a/vnpy/trader/object.py +++ b/vnpy/trader/object.py @@ -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