Skip to content

Commit

Permalink
bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
wh1100717 committed May 27, 2017
1 parent 2660f9e commit e4c18bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rqalpha/api/api_stock.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def smart_order(order_book_id, quantity, style, target=False):
EXECUTION_PHASE.SCHEDULED)
@apply_rules(verify_that('id_or_ins').is_valid_stock(),
verify_that('amount').is_number(),
verify_that('style').is_instance_of((MarketOrder, LimitOrder)))
verify_that('style').is_instance_of((MarketOrder, LimitOrder, type(None))))
def order_shares(id_or_ins, amount, price=None, style=None):
"""
落指定股数的买/卖单,最常见的落单方式之一。如有需要落单类型当做一个参量传入,如果忽略掉落单类型,那么默认是市价单(market order)。
Expand Down

0 comments on commit e4c18bb

Please sign in to comment.