How to resolve API Errors?

How to resolve API Errors?

The FYERS API Bridge connects you to our Trading API for functionality such as order placement, order management and trade management. API errors can be seen under the Error tab for easy management and resolution.

Refer a list of communication between FYERS API Bridge and Trading API:

  1.  Login & Authentication
    Your login credentials are not read/processed by Bridge. Usually, the Trading API invokes account login form in a browser. If the login fails for any reason, you will receive a Troubleshoot pop-up with API Specific details.

    After login, the API allows you to communicate during a “session”. This session automatically expires at the end of the trading day. This effectively means you need to log in every day to “start session”. The session may also expire if you log in to API from another device.

  2. Order Placement
    Order Placement is the most critical part. FYERS has specified limits w.r.t. order placement such as: margin limit, price band limit, trading symbol limit, time limits etc. The Trading API may give an error if the order is placed with wrong parameters. You can see rejection reason under OrderHistory and the error in Message window.

  3. Get Order Status
    NetPositions (and Signal Rules) can malfunction if proper Order Status is not received from Trading API. For example, if there is no information about the order is executed or not, the NetPosition cannot be updated. To resolve this error, you can check the Error tab for technical details to report us.

  4. Order Cancellation
    Order Cancellation based on Signal Rules will not work if the proper status is not returned by Trading API. To resolve this error, you can check the Error tab for technical details to report to us.

  5. Get Unrealized MTM
    MaxProfit and MaxLoss based on Symbol Settings will not work if Unrealized MTM is not received from Trading API. To resolve this error, you can check the Error tab for technical details to report to us.

If you have any specific query about API Error do write us to support@fyers.in.

    • Related Articles

    • How to change/modify Application Settings in FYERS API Bridge?

      You can access the detailed documentation for Application settings in Help section. Application Settings: API Credentials Put here FYERS Trading API credentials such as App ID/Secret ID and Redirect URL. This is your confidential data and should not ...
    • What is FYERS API?

      We have launched FYERS trading API mainly to address the unique requirements of the Algo trading community and capital market startups that require trading related functionality without having to set up their own brokerage. With our API, you will be ...
    • How is FYERS API useful?

      If you are building a trading/investing platform, FYERS API will solve the execution piece by enabling users to place orders and trade through us. You can also use the APIs to enable trading strategies with execution, manage portfolios and more. ...
    • How to revoke FYERS API Access?

      If you want to cancel/delete the FYERS API access, you can do it by yourself in the My API Dashboard. Login to My API with your FYERS credentials and go to the Dashboard, you’ll be able to view all the APIs you’ve created along with all the FYERS ...
    • What is the FYERS API Bridge?

      ​FYERS API Bridge is a lightweight and easy to use portable application. It can be integrated with the FYERS order management engine through our Trading API to place orders or requests from the front-end charting/Algo platform. Here’s a simple ...