Skip to content

Commit

Permalink
修正receive_order的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeroun authored and Zeroun committed Apr 3, 2019
1 parent 62a868e commit 3c90f7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions QUANTAXIS/QAMarket/QATTSBroker.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,15 +279,15 @@ def send_order(self, code, price, amount, towards, order_model, market=None):
if market not in ['sh', 'sz']:
raise Exception('%s不支持,请检查code和market参数' % market)

return self.call("send_order", {
return self.data_to_df(self.call("send_order", {
'client_id': self.client_id,
'category': towards,
'price_type': order_model,
'gddm': self.gddm_sh if market == 'sh' else self.gddm_sz,
'zqdm': code,
'price': price,
'quantity': amount
})
}))

def cancel_order(self, exchange_id, order_id):
"""
Expand Down

0 comments on commit 3c90f7d

Please sign in to comment.