Skip to content

Commit

Permalink
fix bug occurred when submit_order with numpy.int amount
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuizi7 committed Nov 21, 2018
1 parent 2519988 commit d5659ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rqalpha/api/api_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ def submit_order(id_or_ins, amount, side, price=None, position_effect=None):
)
return

amount = int(amount)

order = Order.__from_create__(
order_book_id=order_book_id,
quantity=amount,
Expand Down

0 comments on commit d5659ca

Please sign in to comment.