# Broker Rejection Errors

## Broker Rejection Errors

Each [broker](https://optionalpha.com/integrations) will have its own API-generated error message that is sent back to us if an error rejection is encountered on their end. Broker rejection errors can occur from a number of situations, including PDT violation, stepping on strikes, or an incompatible account type.

This page will outline the most common error messages you might encounter when submitting orders on the autotrading platform through your brokers API.

It is important to note that these error messages are returned from the broker and are not generated by Option Alpha or the autotrading platform. Each broker has their own unique error language, that will vary slightly depending on the direction of the rejected trade.

This article is intended to help you determine the root cause for the error message that appears in your canceled order information.<br>

#### Common Broker Errors

[Overlapping or Stepping on Strikes](https://optionalpha.com/help/overlapping-strikes-failsafe)

If a new position order offsets the legs of an existing position, the broker will generate an error to prevent "stepping on" the existing legs. This error will display regardless of whether overlapping strikes occur within a single bot or two separate bots, and the broker does not differentiate between order origination within the same brokerage account.\
\
**Tastytrade** responds: "Order rejected by tastytrade: You cannot sell to open against a long position."

**TradeStation** responds: "Order rejected by TradeStation: EC804: Boxed positions are not permitted. To close long position, try a "Sell" order"

**Tradier** responds: "Order rejected by Tradier: Backoffice rejected override of the order. Unexpected SellShortOrder"

[Duplicate Orders](https://optionalpha.com/help/duplicate-orders-error)

In situations where you have a resting limit order that was created through your brokerage platform and a bot attempts to perform a closing action of its own for the same position, the broker will reject the order.\
\
**Tastytrade** responds: "Order rejected by tastytrade: You already have a closing order for \[symbol] which must be canceled before this order can be routed"

**TradeStation** responds: "Order rejected by TradeStation: EC703: You are long 1.00 shares with 1.00 remaining on sell orders!"

**Tradier** responds: "Order rejected by Tradier: Backoffice rejected override of the order. ShortPositionCrossZero"

[PDT (Pattern Day Trade)](https://optionalpha.com/podcast/pattern-day-trading-rules-for-options)

Pattern Day Trader restrictions are imposed by the brokerage and prevents people with less than $25,000 in their investment accounts from engaging in day trading. If an order violates the PDT rules each broker will respond with their own error and impose the restriction the following day.

**Tastytrade** responds: "Order rejected by tastytrade: Account is set to closing only and this order has an opening leg."

**TradeStation** responds: "Order rejected by TradeStation: EC501: Day trading margin rules, too many opening trades, please call Trade Desk"

**Tradier** responds: "Order rejected by Tradier: Backoffice rejected override of the order. DayTraderPatternRestriction"

**Broker Links**

Additional rejection errors for Tradier can be found [here.](https://documentation.tradier.com/brokerage-api/overview/errors)

Additional rejection errors for TradeStation can be found [here.](https://docs.google.com/spreadsheets/d/1ghxFlOwDvgdNhzQypKanf8Ihbgcl0cNlRgF5RwlxQLk/edit?usp=sharing)
