estimateCharges API giving Internal Error AB2001
-
Hi,
I am trying to fetch estimates Charges API for a trade in NFO and getting Error.
orderparams = {
'orders': [
{
'product_type': 'INTRADAY',
'transaction_type': 'SELL',
'quantity': '30',
'price': '105',
'exchange': 'NFO',
'symbol_name': _INDEX,
'token': _INDEX_TKN
}
]
}
orderCharges = self.AngleOneClient.estimateCharges(params=orderparams)Request: {'orders': [{'product_type': 'INTRADAY', 'transaction_type': 'SELL', 'quantity': '30', 'price': '105', 'exchange': 'NFO', 'symbol_name': 'BANKNIFTY31JUL2452300CE', 'token': '50631'}]}, Response: {'message': 'Internal Error', 'errorcode': 'AB2001', 'status': False, 'data': None}
Does anyone facing this issue. If This API is working for anyone, Please share request format.
-
@mohammadfaiizan
Kindly verify the data type for request parametershttps://smartapi.angelbroking.com/docs/BrokerageCalculator
Regards,
SmartAPI Team -
@Moderator_3 Hi, Can you check above comment.
-
Hello Team,
Thank you for sharing updated API format and sample API is working as well at my end.
But when I am trying the same for option, It is getting failed.
API Code:
"orders": [
{
"segment_id":"OPTIDX",
"product_type":"CARRYFORWARD",
"transaction_type":"BUY",
"quantity":50,
"price":200,
"exchange":"NFO",
"symbol_name":"NIFTY19SEP2425200CE",
"token":"67932"
}
]Response:
Request: {'orders': [{'segment_id': 'OPTIDX', 'product_type': 'CARRYFORWARD', 'transaction_type': 'BUY', 'quantity': 50, 'price': 200, 'exchange': 'NFO', 'isin': 'NIFTY19SEP2425200CE', 'token': '67932'}]}, Response: {'message': 'Internal Error', 'errorcode': 'AB2001', 'status': False, 'data': None}
Here is symbol info on sheet.
token symbol name expiry strike lotsize instrumenttype exch_seg tick_size
67932 NIFTY19SEP2425200CE NIFTY 19SEP2024 2520000 25 OPTIDX NFO 5Can you please check at your end and confirm on Format used for option.
-
@Moderator_3 W3 Electric is a premier Expert Electrical Solutions provider dedicated to delivering expert and reliable solutions for all your electrical needs. Serving a wide range of areas, W3 Electric combines top-notch expertise with exceptional customer service to ensure your electrical systems are safe, efficient, and up-to-date. Discover more about our comprehensive services and service areas at callw3.
-
Hi @mohammadfaiizan Verify symbol token that you have passed is request is right.
Sample Request Format For Reference:
"orders": [
{
"segment_id": "CM",
"product_type": "INTRADAY",
"transaction_type": "BUY",
"quantity": 4,
"price": 14,
"exchange": "NSE",
"isin": "INE062A01020",
"token": "3045"
}Regards,
SmartAPI Team.
]