Api Trading - Security ID

Hi @Dhan Team,
Is there any OpenApi to quickly find out security id

Or is downloading and parsing the excel file is the only option?

Also, pls let me know the link of excel file of scrip, security id.

1 Like

Don’t think there is any other way other than parsing the CSV file

https://images.dhan.co/api-data/api-scrip-master.csv

1 Like

Though this can be achieved by individual traders, there should ideally be an API for this rather than asking everyone to replicate the effort. This way the error cases can also be handled better by the team. Thoughts?

1 Like

Hey @irrational.mind

If fetching of Security ID were to be an API, then for each order that you place or data that you intend to request, you will have to poll another API just for fetching Security ID each time. This will not only increase number of API requests at your end but processes in your code will await response from API.

Also, the parameters that you will end up passing on this API are exactly the same required if you were to fetch data from this CSV as well.

I only intend to use it for equity AMOs so the usage will not be as intensive, but I understand various other traders may face the problems.

However, if feasible, do consider providing a sample example function for the same for consistency. Thanks!