Merge pull request #1158 from vnpy/master

合并BitmexGateway市价单修改
This commit is contained in:
vn.py 2018-10-10 16:13:43 +08:00 committed by GitHub
commit 78446b2c25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -198,6 +198,11 @@ class RestApi(BitmexRestApi):
'orderQty': orderReq.volume,
'clOrdID': str(orderId)
}
# 市价单不能有price字段
if orderReq.priceType == PRICETYPE_MARKETPRICE:
req.pop('price')
self.addReq('POST', '/order', self.onSendOrder, postdict=req)
return vtOrderID