We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请问,有时执行下单命令order_to,返回的是[[]],啥场景下会返回这个?
The text was updated successfully, but these errors were encountered:
订单创建失败时返回空列表,如没通过风控等。
Sorry, something went wrong.
我看到创建订单失败,经常返回 [None]。请问返回 [[]] 和 [None]的场景是不是不一样?分别是什么场景?
应当统一返回空列表。返回 [None] 不是预期内的行为,可否描述一下是如何触发的,或者提供一段可复现的代码。
就是当已经持有1手多仓时,像如下那样下单,就会返回[None]。如下代码做日线回测,第一次成交后,后续就会出这个问题。
def open_auction(context, bar_dict): o = order_to(“RB2305”, 1) print('order', o)
No branches or pull requests
请问,有时执行下单命令order_to,返回的是[[]],啥场景下会返回这个?
The text was updated successfully, but these errors were encountered: