Skip to content
New issue

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

Error in code: OCO orders #33

Open
AgentBelfort opened this issue Oct 2, 2022 · 1 comment
Open

Error in code: OCO orders #33

AgentBelfort opened this issue Oct 2, 2022 · 1 comment

Comments

@AgentBelfort
Copy link

AgentBelfort commented Oct 2, 2022

There is some problem in code. It is impossible to create OCO order:
in client.py:
if stop_client_order_id: params["stopLimitPrice"] = self.refine_price(symbol, stop_client_order_id)
need to be changed to:
if stop_limit_price: params["stopLimitPrice"] = self.refine_price(symbol, stop_limit_price)
or we gat an error when creating an order:
Stop loss orders are not supported for this symbol.

@AgentBelfort
Copy link
Author

Also some errors in docs:

image

Real name of the method is client.create_oco

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant