Hello,
I am trying to fetch span_margin with the help of api https://api.fyers.in/api/v2/span_margin as suggested in fyers API documentation. Sending following json request.
[ {
"symbol": "NSE:BANKNIFTY2370645000CE",
"qty": 50,
"side": 1,
"type": 1,
"productType": "INTRADAY",
"limitPrice": 0.0,
"stopLoss": 0.0
}
]
But it always responds :
{
"s": "error",
"code": -50,
"message": "Invalid input"
}
I have tried various combinations but always receive this response from server no matter what. What may be the reason behind this?
Could someone please help on this.
Thanks.