Order Rejected with Error Code -304, Invaild Exchange

Hello Team,

CLIENT ID : XU03706

We are automating a strategy using python where

  1. We placed a SL BUY oder without any issue for both CE and PE

  2. Once the entry is triggered, we are trying to create a Stop Loss LIMIT order for triggered position but getting below error. Even the API DOCument has link to get the “Exchange” attribute. But when clicked on “View details” its not routing to the document

Hi @vinoth.kumar.r1l0p0gw

Please refer this part for exchange
https://myapi.fyers.in/docsv3#tag/Appendix/Exchanges

However this issue has been reported , we are working on update part of documentation. Sorry for inconvenience.
As I can see , you placed order for BankNifty so this is NSE
So for this exchange value is 10 not 11. that’s why you are getting this error.

Hope you got it. if anything is there let me know I will help