Unique Identifier API

getUniqueIdentifier

The getUniqueIdentifier provides the Financial Instrument Global Identifier (FIGI) information for all available instruments.

All APIs

Contact Us to Get Access

By submitting this form you are opting in to receive email communications from Barchart for related product, service or company information, updates and announcements. You can unsubscribe at anytime. View our Privacy Policy.

Inputs

identifierType optional

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

barchartSymbols optional

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 

exchange optional

A valid exchange identifer code.

Type
string (A sequence of characters. (example: GOOG)) 
Example
NYSE 

openFIGIGlobal optional

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 

openFIGIComposite optional

The unique composite OpenFIGI id. Multiple IDs can be requested separated by a comma.

Type
list (A comma or semi-colon delimited string.) 

Outputs

Name / Requirement
Description
Type
symbol
always returned
A symbol or code that identifies a financial instrument.
string
A sequence of characters. (example: GOOG)
symbolName
always returned
The name of the financial instrument.
string
A sequence of characters. (example: GOOG)
exchange
always returned
Exchange code for the marketplace where the financial instruments are listed.
string
A sequence of characters. (example: GOOG)
openFIGI
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.

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 = client.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