Module openfigi
ballerinax/openfigi Ballerina library
1.5.2
Overview
The OpenFIGI API v3 connector(https://www.openfigi.com/api) 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.
Key Features
- Programmatic access to create and manage resources via REST API
- Manage user accounts and profiles
- Secure authentication with API key or OAuth support
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 runcommand to compile and run the Ballerina program.