Announcing Search Scrip API endpoint for Smart API Users
-
Dear SmartAPI users,
We are delighted to announce launch of Search Scrip API for our users. A lot of you have told us many a times that you need an API to fetch tokens from Scrips as searching from the scrip master json file is a tedious task. We have heard you and are glad to announce this feature for all our users.
Method: POST
The API end point is:
https://apiconnect.angelbroking.com/rest/secure/angelbroking/order/v1/searchScrip
The request JSON is
{ "exchange": "NFO", "searchscrip":"BANKNIFTY28DEC2347700CE" }
The response from the API will be in the following format as follows:
{ "status": true, "message": "SUCCESS", "errorcode": "", "data": [ { "exchange": "NFO", "tradingsymbol": "BANKNIFTY28DEC2347700CE", "symboltoken": "64006" } ] }
Header Parameters are same as for other requests.
We hope this makes your experience of using SmartAPI better and makes your life easier.
-
Is there a way that calling this api without symbol.
Like if we provide NSE it should return with all NSE symbol alone? -
this was not working either through web url or python sdk
-
Hello @hemanthk,
Can you try logging in again? The error which you're getting is an Invalid token error which should get resolved once you fetch a fresh token from login response.Thank you.
Regards
SmartAPI Team -
this end point was not working
{'success': False,
'message': 'Invalid Token',
'errorCode': 'AG8001',
'data': ''}