Span Margin API call throws 500 error

Can someeone check below request and let me know where I am going wrong.

Note: I am passing valid Authorization value.

Hi @shivasai.kalishetti-d3f

This API only works for FNO scripts not for normal scripts, you are passing Infy but this is not FNO script. This is why you are getting can you check for any FNO scripts it will work

Same. Did I miss anything here?

Hi @shivasai.kalishetti-d3f

I checked from my side for same symbol, it is working API

Just for confirming is there any space after span_margin in API ?

Note : Yes there is one extra space in API, remove that extra space then try it work and let me know if it works

Thank you Pankaj for finding that out. That error got resolved, but now I am getting 400 error.

Hi @shivasai.kalishetti-d3f

Show me your Headers. Please blur your access token

Hi @shivasai.kalishetti-d3f

Just tick the content-type : application json part

It will work. and let me know if it works or not

It’s already there . Check second key in the screenshot.

bhai
that is untick

Tick it and then try

It’s tick only bro.. Anyhow I tried again and shared the screenshot below. Please check.

Please share your postman request. I will cross check.

@shivasai.kalishetti-d3f bro

Just replace your raw body this

{
    "data" : [
   {
    "symbol": "NSE:BANKNIFTY23AUG44000CE",
    "qty": 15,
    "side": -1,
    "type": 2,
    "productType": "INTRADAY",
    "limitPrice": 0.0,
    "stopLoss": 0.0
    }
]
}

Hi @shivasai.kalishetti-d3f

PFA

This worked. Thank you bro. :+1: