Unable to Get Span Margin Calculation for Equity and Option Buying

Hi

I am not able to get the Span Margin Calculation for Equity and Option Buying

I am using V2 API. Below is the code snippet

  • Equity Order

data = [{ “symbol”: “NSE:TATASTEEL-EQ”, “qty”: 1, “type”: 2, “side”: 1, “productType”: “INTRADAY”, “limitPrice”: 0,“stopLoss”: 0}]

https://api.fyers.in/api/v2/span_margin

The response status coming as 400 and message given please provide valid symbols.

  • Option Buying

[{ “symbol”: “NSE:BANKNIFTY2392046100CE”, “qty”: 15,“type”: 2, “side”: 1,“productType”:“INTRADAY”, “limitPrice”: 0, “stopLoss”: 0}]

https://api.fyers.in/api/v2/span_margin

The resposne Status coming as 200 but total margin Calculation is 0 for option buying

Hi @ashok.nxmfvhr9

Thanks for reporting this. We are working on it. ASAP it will fix it. We will update you

Hi @ashok.nxmfvhr9
I want to let you know that span margin concept is only for future buy , future sell and options sell.

while calling this api and giving arguments for Equity and Option buying , you will get zero as it is expected so for these you can calculate normally. ltp*quantity will be your answer in this case.