This commit is contained in:
vn.py 2019-09-17 23:01:28 +08:00
parent 1053eb2d23
commit cf2a7ad2f7

View File

@ -63,6 +63,9 @@ ORDERTYPE_VT2HBDM = {
ORDERTYPE_HBDM2VT = {v: k for k, v in ORDERTYPE_VT2HBDM.items()}
ORDERTYPE_HBDM2VT[1] = OrderType.LIMIT
ORDERTYPE_HBDM2VT[3] = OrderType.MARKET
ORDERTYPE_HBDM2VT[4] = OrderType.MARKET
ORDERTYPE_HBDM2VT[5] = OrderType.STOP
ORDERTYPE_HBDM2VT[6] = OrderType.LIMIT
DIRECTION_VT2HBDM = {
Direction.LONG: "buy",