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

[Question]: a bracket order for crypto is not supported #505

Open
3 tasks done
w-jamil opened this issue Sep 14, 2024 · 1 comment
Open
3 tasks done

[Question]: a bracket order for crypto is not supported #505

w-jamil opened this issue Sep 14, 2024 · 1 comment

Comments

@w-jamil
Copy link

w-jamil commented Sep 14, 2024

Question form pre-submit checklist.

  • I have searched the existing issues to ensure there isn't already an issue about this question.
  • My question has to do with the Python SDK and isn't a general question about the API. (If it is please open your issue here)
  • My question isn't about how to do a specific algorithm or asking for trade advice (answers to these are outside the scope of this repo).

Question

I am unable to find example of submitting a crypto bracket order. I tried this but once cancel other is not allowed. Can you please help with this?

@hiohiohio
Copy link
Contributor

@w-jamil crypto supports simple order_class orders only currently. So, bracket order is not supported.
Please refer to order_class of the API reference below.
ref. https://docs.alpaca.markets/reference/postorder

order_class string
The order classes supported by Alpaca vary based on the order's security type. The following provides a comprehensive breakdown of the supported order classes for each category:

Equity trading: simple (or ""), oco, oto, bracket.
Options trading: simple (or "").
Crypto trading: simple (or "").

@hiohiohio hiohiohio changed the title [Question]: [Question]: a bracket order for crypto is not supported Oct 3, 2024
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

2 participants