[Add] support for FOK and IOC order of HBDM

This commit is contained in:
vn.py 2019-10-28 14:43:34 +08:00
parent 2147737169
commit 877c703e0f

View File

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