It is possible to make a REST API call to OpenFIGI providing the ISIN to get the ticker in the response. Registration is required to get an API key from OpenFIGI.
Python code for getting ticker for ISIN=US4592001014:
import requests
url = 'https://api.openfigi.com/v3/mapping'
headers = {'Content-Type':'text/json', 'X-OPENFIGI-APIKEY':'myKey' }
payload = '[{"idType":"ID_ISIN","idValue":"US4592001014"}]'
r = requests.post(url, headers=headers, data=payload)
For those who are not familiar with Python/coding, it's possible to perform the same request with PostMan. Just go to PostMan website and complete the request as follows (example image at the end):
- Request type:
POST
- In the "Headers" label add:
X-OPENFIGI-APIKEY : myKey (no description needed)
- In the "Body" label select
raw and on the right JSON and fill de body in this way (you can find all the request parameters inside The reference for version v3)
[{
"idType": "ID_ISIN",
"idValue": "US4592001014"
}]
- At the end the body returned by the response will be something similar to
[
{
"data": [
{
"figi": "BBG000BLNNH6",
"name": "INTL BUSINESS MACHINES CORP",
"ticker": "IBM",
"exchCode": "US",
"compositeFIGI": "BBG000BLNNH6",
"securityType": "Common Stock",
"marketSector": "Equity",
"shareClassFIGI": "BBG001S5S399",
"securityType2": "Common Stock",
"securityDescription": "IBM"
},
{
"figi": "BBG000BLNNV0",
"name": "INTL BUSINESS MACHINES CORP",
"ticker": "IBM",
"exchCode": "UA",
"compositeFIGI": "BBG000BLNNH6",
"securityType": "Common Stock",
"marketSector": "Equity",
"shareClassFIGI": "BBG001S5S399",
"securityType2": "Common Stock",
"securityDescription": "IBM"
},
...
]
}
]
