Module openfigi
![](https://bcentral-packageicons.azureedge.net/images/ballerinax_openfigi_1.5.0.png)
ballerinax/openfigi Ballerina library
1.5.0
Overview
This is a generated connector for OpenFIGI API v3 OpenAPI Specification.
OpenFIGI API provides capability to access multiple tools for identifying, mapping and requesting a free and open symbology dataset. This user friendly platform provides the ultimate understanding for how a unique identifier combined with accurate, associated metadata can eliminate redundant mapping processes, streamline the trade workflow and reduce operational risk.
Prerequisites
Before using this connector in your Ballerina application, complete the following:
- Create OpenFIGI account
- Obtaining tokens
- Follow this link to obtain an API key
Quickstart
To use the openfigi connector in your Ballerina application, update the .bal file as follows:
- Mapping third party identifiers to FIGIs
Step 1 - Import connector
import ballerinax/openfigi;
Step 2 - Create a new connector instance
configurable openfigi:ApiKeysConfig & readonly apiKeyConfig = ?; openfigi:Client baseClient = check new Client(apiKeyConfig);
Step 3 - Invoke connector operation
- Invoke connector operation using the client.
openfigi:MappingJob mapping = { idType: "<ID Type>", idValue: <ID value> }; openfigi:BulkMappingJob bulkJob = [mapping]; openfigi:BulkMappingJobResult result = check baseClient->mapping(bulkJob);
- Use
bal run
command to compile and run the Ballerina program.