Unique Identifier API
getUniqueIdentifier
The getUniqueIdentifier provides the Financial Instrument Global Identifier (FIGI) information for all available instruments.
View All APIsContact Us to Get Access
Inputs
identifierTypeoptional
The code/value for the global identifier protocol.
Type
list-enum (A comma or semi-colon delimited string that must match a list of valid possible values.)
Example
openFIGI
Valid Values
openFIGI
barchartSymbolsoptional
The unique barchart identifier. Multiple symbols can be requested separated by a comma.
Type
list (A comma or semi-colon delimited string.)
Example
IBM,GOOGL
exchangeoptional
A valid exchange identifer code.
Type
string (A sequence of characters. (example: GOOG))
Example
NYSE
openFIGIGlobaloptional
The unique global OpenFIGI id. Multiple IDs can be requested separated by a comma.
Type
list (A comma or semi-colon delimited string.)
Example
BBG0015VZ6S1
openFIGICompositeoptional
The unique composite OpenFIGI id. Multiple IDs can be requested separated by a comma.
Type
list (A comma or semi-colon delimited string.)
Outputs
symbol
always returned
always returned
A symbol or code that identifies a financial instrument.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
symbolName
always returned
always returned
The name of the financial instrument.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
exchange
always returned
always returned
Exchange code for the marketplace where the financial instruments are listed.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
openFIGI
always returned
always returned
An object with OpenFIGI unique identifer information (global and composite) for each available symbol.
enum
A type which includes a list of valid possible values.
A type which includes a list of valid possible values.
Status Code Responses
200
OK
Success
400
Bad Request
The request was invalid, please see the message for more information.
500
Internal Server Error
Something is not working correctly, please contact support.
PHP
<?php
$ondemand = new SoapClient('https://ondemand.websol.barchart.com/service?wsdl');
$params = [
'apikey' => 'YOUR_API_KEY',
'identifierType' => 'openFIGI',
'barchartSymbols' => 'IBM,GOOGL',
'exchange' => 'NYSE',
'openFIGIGlobal' => 'BBG0015VZ6S1',
'openFIGIComposite' => '',
];
$result = $ondemand->getUniqueIdentifier($params);
var_dump($result);
Classic ASP
Dim ondemand
Dim result
Set ondemand = Server.CreateObject("MSSOAP.SoapClient30")
ondemand.ClientProperty("ServerHTTPRequest") = True
ondemand.MSSoapInit("https://ondemand.websol.barchart.com/service?wsdl")
Set result = ondemand.getUniqueIdentifier("YOUR_API_KEY", "openFIGI", "IBM,GOOGL", "NYSE", "BBG0015VZ6S1", "")
Perl
use SOAP::Lite;
use SOAP::WSDL;
my $ondemand = SOAP::Lite
-> service('https://ondemand.websol.barchart.com/service?wsdl');
my $result = $ondemand->getUniqueIdentifier('YOUR_API_KEY', 'openFIGI', 'IBM,GOOGL', 'NYSE', 'BBG0015VZ6S1', '');
print $result;
Python
from suds.client import Client
ondemand = Client('https://ondemand.websol.barchart.com/service?wsdl')
result = ondemand.service.getUniqueIdentifier('YOUR_API_KEY', 'openFIGI', 'IBM,GOOGL', 'NYSE', 'BBG0015VZ6S1', '')
print(result)
Ruby
require 'savon'
ondemand = Savon.client(wsdl: 'https://ondemand.websol.barchart.com/service?wsdl')
response = ondemand.call(
:getUniqueIdentifier,
message: {
apikey: 'YOUR_API_KEY',
identifierType: 'openFIGI',
barchartSymbols: 'IBM,GOOGL',
exchange: 'NYSE',
openFIGIGlobal: 'BBG0015VZ6S1',
openFIGIComposite: '',
}
)
response.body