Did anyone figure this out; seems like it’s still a problem? I’m getting the same error, “APIError: bracket orders must be entry orders”, when trying to sell short. My code works for long bracket orders, so it’s a system issue for sure.
From the order documentation, forbidden is the response when the conditions below are met. Please ensure you have sufficient buying power, and your bracket order is opening a position.