Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    Margin Calculator API response coming as 0 intermittently

    Python SDK
    1
    2
    8
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Abid last edited by

      We have used Margin Calculator API (https://smartapi.angelbroking.com/docs/MarginCalculator) to find margin of instrument in our code.
      In past week we observed that it returned 0 for some of the calls without any error in parameters.

      One such call was done at 14:00:12 on 6th August with request parameters:
      {'positions': [{'exchange': 'MCX', 'qty': 8, 'price': 0, 'productType': 'CARRYFORWARD', 'token': '456966', 'tradeType': 'SELL'}]}

      The API gave correct response with same parameters from another call at the same time.
      Can you please help us understand if anything is incorrect from our side or if any known issues are there for API.

      Let us know if any further information is required. Thanks.

      A 1 Reply Last reply Reply Quote 0
      • A
        Abid @Abid last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • First post
          Last post