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

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

Copy
import ballerinax/openfigi;

Step 2 - Create a new connector instance

Copy
configurable openfigi:ApiKeysConfig & readonly apiKeyConfig = ?;
openfigi:Client baseClient = check new Client(apiKeyConfig);

Step 3 - Invoke connector operation

  1. Invoke connector operation using the client.
Copy
openfigi:MappingJob mapping = {
    idType: "<ID Type>",
    idValue: <ID value>
};
openfigi:BulkMappingJob bulkJob = [mapping];
openfigi:BulkMappingJobResult result = check baseClient->mapping(bulkJob);
  1. Use bal run command to compile and run the Ballerina program.

Import

import ballerinax/openfigi;Copy

Other versions

See more...

Metadata

Released date: 2 days ago

Version: 1.5.2

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.8.0

GraalVM compatible: Yes


Pull count

Total: 25

Current verison: 0


Weekly downloads


Source repository


Keywords

Type/Connector

Vendor/OpenFIGI

Area/Finance & Accounting

Finance/Accounting

Cost/Free


Contributors