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

request body format is invalid #260

Open
Nike-SPU opened this issue Aug 6, 2024 · 0 comments
Open

request body format is invalid #260

Nike-SPU opened this issue Aug 6, 2024 · 0 comments

Comments

@Nike-SPU
Copy link

Nike-SPU commented Aug 6, 2024

Describe the bug
Cannot place a bracket buy order. I am trying to set a market buy with no profit taking.

To Reproduce
Steps to reproduce the behavior:

if signal == 'BUY':
     api.submit_order(
     symbol=ticker,
     qty=1, 
     side="buy",
     type="market",
     time_in_force="gtc",
     # limit_price=None,
     # stop_price=None,
     # extended_hours=False,
     # client_order_id=None,
      order_class="bracket",
     take_profit="99999",
     stop_loss="0",
     # trail_price=None,
     # trail_percent=None
     )

Expected behavior
runs selling trade when signal received.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 11
  • Version: Python 3.8.19
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