How do i query the Margin calculator API?

I am going through FYERS V3 API. When i try the margin calculator, i get the following response.


{

    "s": "error",

    "code": -50,

    "message": "Please provide valid symbols"

}

I am passing the following request to https://api.fyers.in/api/v2/span_margin.


{

  "data": [

    {

      "symbol": "NSE:HDFCBANK-EQ",

      "qty": 50,

      "side": 1,

      "type": 2,

      "productType": "CNC"

    }

  ]

}

Any suggestions?

Span margin is not allowed for Equity and Options buying.
We will update the docs.
https://myapi.fyers.in/docsv3#tag/Margin-Calculator/paths/~1MarginCalculator/post