Always getting Internal Error (AB2001) for the brokerage calculation of options trade request
-
Always getting Internal Error AB2001 for the following request:
URL: https://apiconnect.angelbroking.com/rest/secure/angelbroking/brokerage/v1/estimateCharges/
Body: {
"orders": [
{
"product_type": "INTRADAY",
"transaction_type": "BUY",
"quantity": 25,
"price": 144.15,
"exchange": "NFO",
"symbol_name": "NIFTY29AUG2424900CE",
"token": "74692"
},
{
"product_type": "INTRADAY",
"transaction_type": "SELL",
"quantity": 25,
"price": 147.25,
"exchange": "NFO",
"symbol_name": "NIFTY29AUG2424900CE",
"token": "74692"
}
]
}headers: <Same header that is working with other apis like place order, get market data, etc >
-
{
"orders":[
{
"product_type":"INTRADAY",
"transaction_type":"BUY",
"quantity":"25",
"price":"144.15",
"exchange":"NFO",
"symbol_name":"NIFTY19SEP2425500CE",
"token":"68058"
},
{
"product_type":"INTRADAY",
"transaction_type":"SELL",
"quantity":"25",
"price":"147.25",
"exchange":"NFO",
"symbol_name":"NIFTY19SEP2425500CE",
"token":"68058"
}
]
}still getting this response:
{
message: 'Internal Error',
errorcode: 'AB2001',
status: false,
data: null
} -
Kindly check the request format.
Datatype for quantity and price should be string.Refer https://smartapi.angelbroking.com/docs/BrokerageCalculator for correct request format.
Regards,
SmartAPI Team