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 [email protected].

    • Related Articles

    • Why do I get "Invalid Inputs" or "Invalid Quantity" errors on FYERS?

      These errors typically occur when the data submitted to the Order API is not in the expected format. Double-check your inputs for correct format compliance, and refer to this documentation for guidance.
    • What should I do if the 'fyers-api' installation does not resolve my issue?

      If the 'fyers-api' installation doesn't fix the problem, try creating a virtual environment for your project using Python. Use the commands 'python3 -m venv env', 'source env/bin/activate', and 'pip install fyers-apiv3' to set up and install the ...
    • 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. ...