How to fetch the "Available margin"?

AAAAAAAAAA
AAAAAAAAAA edited September 2 in Python client
I do
margins = kite.margins("NFO")

and I get a dictionary like that where not only am I not able to see the Available Margins, it also shows NFO enabled to be False.

My account has been enabled for F&O trading since the beginning and I am able to place orders for F&O via my code as well.

However, I do need the available margin via the API. Please help me how to get it.

Thank you very much!


Tagged:
  • AAAAAAAAAA
    I also tried doing the same for NSE, like
    margins = kite.margins("NSE")
    and got a similar result.
  • sujith
    You can refer to this thread.
  • AAAAAAAAAA
    Hello @sujith

    In your linked thread, it says that the net = margin available. However, at the time when I called the margins API method, I had a decent amount in my Zerodha account, however it just showed 0 as you can see in the image. How to resolve this? Thanks!
  • sujith
    You can send a proper segment and check the values.\
    It only accepts equity and commodity. Not an exchange value.
  • AAAAAAAAAA
    Its done, thank you!
This discussion has been closed.