Personal Finance & Money Asked by Karsten W. on December 20, 2020
How can I can convert ticker symbols (which include information on the exchange) to an International Securities Identification Number (ISIN) (which contains no information on the exchange)?
Also I am interested in the other way round — given an ISIN and a market identification code (MIC) how can I determine the ticker symbol?
Any databases around?
There is no simple way to convert an ISIN into a stock ticker symbol. The only way to even attempt to do so is to map the ISIN to a CUSIP or SEDOL or other national identifier and then map that identifier to a stock ticker symbol.
Correct answer by Indian Rediff on December 20, 2020
It is possible to make a REST API call to OpenFIGI providing the ISIN to get the ticker in the response.
Python code for getting ticker for ISIN=US4592001014:
import requests
url = 'https://api.openfigi.com/v1/mapping'
headers = {'Content-Type':'text/json', 'X-OPENFIGI-APIKEY':'myKey' }
payload = '[{"idType":"ID_ISIN","idValue":"US4592001014"}]'
r = requests.post(url, headers=headers, data=payload)
Answered by John Wood on December 20, 2020
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP