
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Unofficial TypeScript SDK for OpenFIGI API - Map financial identifiers to FIGIs (community-maintained)
A modern, type-safe TypeScript SDK for the OpenFIGI API - the free and open standard for financial instrument identification.
⚠️ Community Project Disclaimer This is an unofficial, community-maintained TypeScript SDK for OpenFIGI. It is not affiliated with or endorsed by OpenFIGI or Bloomberg. This library is developed and maintained by the open-source community. For official support, please refer to the OpenFIGI official documentation.
# Using bun
bun add openfigi
# Using npm
npm install openfigi
# Using yarn
yarn add openfigi
# Using pnpm
pnpm add openfigi
import { searchByISIN, searchByCUSIP, searchByTicker, searchBySEDOL, searchByBloombergId, createClient } from 'openfigi'
// Use standalone functions (no API key required for public access)
const response = await searchByISIN('US0378331005')
console.log(response.data)
// Search by CUSIP
await searchByCUSIP('037833100')
// Search by ticker symbol
await searchByTicker('AAPL', 'US')
// Search by SEDOL
await searchBySEDOL('2046251')
// Search by Bloomberg ID
await searchByBloombergId('BBG000B9XRY4')
// Or create a client with custom configuration (e.g., API key for higher rate limits)
const client = createClient({
apiKey: 'your-api-key-here',
timeout: 60000
})
const result = await client.searchByISIN('US0378331005')
interface ClientConfig {
apiKey?: string // OpenFIGI API key for higher rate limits
baseUrl?: string // API base URL (default: https://api.openfigi.com)
timeout?: number // Request timeout in ms (default: 30000)
retryLimit?: number // Number of retry attempts (default: 3)
retryDelay?: number // Initial retry delay in ms (default: 1000)
userAgent?: string // Custom user agent
}
import { mapping, createClient } from 'openfigi'
// Map multiple identifiers in a single request (max 100)
const requests = [
{ idType: 'ID_ISIN', idValue: 'US0378331005' },
{ idType: 'ID_CUSIP', idValue: '037833100' },
{ idType: 'ID_SEDOL', idValue: '2046251' }
]
// Using standalone function
const responses = await mapping(requests)
// Or with custom client
const client = createClient({ apiKey: 'your-key' })
const responses = await client.mapping(requests)
responses.forEach((response, index) => {
if (response.data) {
console.log(`Request ${index}:`, response.data)
} else if (response.error) {
console.error(`Request ${index} failed:`, response.error)
}
})
import { searchByISIN, mappingSingle } from 'openfigi'
// Search with additional filters
const response = await searchByISIN('US0378331005', {
exchCode: 'US',
currency: 'USD',
marketSecDes: 'Equity',
includeUnlistedEquities: false
})
// Custom mapping request
const response = await mappingSingle({
idType: 'ID_BB_GLOBAL',
idValue: 'BBG000B9XRY4',
currency: 'USD',
micCode: 'XNGS'
})
import { searchByISIN, OpenFigiError, RateLimitError, ValidationError } from 'openfigi'
try {
const response = await searchByISIN('invalid-isin')
} catch (error) {
if (error instanceof RateLimitError) {
console.log('Rate limited. Retry after:', error.retryAfter)
} else if (error instanceof ValidationError) {
console.log('Invalid request:', error.message)
} else if (error instanceof OpenFigiError) {
console.log('API error:', error.message, error.statusCode)
}
}
import { searchByISIN, getRateLimitInfo } from 'openfigi'
// Check current rate limit status after any request
const response = await searchByISIN('US0378331005')
const rateLimitInfo = getRateLimitInfo()
if (rateLimitInfo) {
console.log('Rate limit:', rateLimitInfo.limit)
console.log('Remaining:', rateLimitInfo.remaining)
console.log('Reset time:', rateLimitInfo.reset)
}
ID_ISIN - International Securities Identification NumberID_CUSIP - Committee on Uniform Securities Identification ProceduresID_SEDOL - Stock Exchange Daily Official ListID_BB_GLOBAL - Bloomberg Global IdentifierID_EXCH_SYMBOL - Exchange symbol/tickerID_BB_UNIQUE - Bloomberg Unique IdentifierID_WERTPAPIER - Wertpapierkennnummer (German securities code)# Install dependencies
bun install
# Run tests
bun test
# Run tests with coverage
bun run test:coverage
# Build the library
bun run build
# Lint code
bun run lint
# Type check
bun run typecheck
# Generate documentation
bun run docs
To get an API key, sign up at OpenFIGI.com.
This is a community-driven project and contributions are welcome! Please feel free to submit a Pull Request.
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)Note: This library is maintained by the community and is not affiliated with OpenFIGI or Bloomberg. For official API support, please contact OpenFIGI directly.
This project is licensed under the MIT License - see the LICENSE file for details.
Built with modern tools and technologies:
FAQs
Unofficial TypeScript SDK for OpenFIGI API - Map financial identifiers to FIGIs (community-maintained)
The npm package figi-sdk receives a total of 4 weekly downloads. As such, figi-sdk popularity was classified as not popular.
We found that figi-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.