Navigation

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

    getMargin function is not considering active positions for margin calculations

    Python SDK
    0
    1
    14
    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.
    • P
      projectSB last edited by

      Hi @admin ,

      smartApi.getMarginApi(position_params) - This API is supposed to calculate the margin requirement for the basket of orders included in the 'position_params'.

      However, this is not considering the already open positions for margin calculations. So, it becomes very difficult to calculate the exact cash requirement for us traders in real time, for legged option positions.

      Is this expected? Or how do I force the API to consider active positions?

      Please help!
      Thanks!
      -Sid

      1 Reply Last reply Reply Quote 0
      • First post
        Last post