From 877c703e0ffc0eec784cd544f7f259768cfe095e Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Mon, 28 Oct 2019 14:43:34 +0800 Subject: [PATCH] [Add] support for FOK and IOC order of HBDM --- vnpy/gateway/hbdm/hbdm_gateway.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vnpy/gateway/hbdm/hbdm_gateway.py b/vnpy/gateway/hbdm/hbdm_gateway.py index e0a57d33..b055f32b 100644 --- a/vnpy/gateway/hbdm/hbdm_gateway.py +++ b/vnpy/gateway/hbdm/hbdm_gateway.py @@ -58,7 +58,9 @@ STATUS_HBDM2VT = { ORDERTYPE_VT2HBDM = { OrderType.MARKET: "opponent", - OrderType.LIMIT: "limit" + OrderType.LIMIT: "limit", + OrderType.FOK: "fok", + OrderType.FAK: "ioc" } ORDERTYPE_HBDM2VT = {v: k for k, v in ORDERTYPE_VT2HBDM.items()} ORDERTYPE_HBDM2VT[1] = OrderType.LIMIT