Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

OpenFIGI Javascript example

This script is written to be run by Node.js without any external libraries. Example code is tested with node v22.11.0

Instructions

Prerequisites: node must be installed.

# Optional: Export your API key
export OPENFIGI_API_KEY=<YOUR_KEY_HERE>

./example.mjs
# OR
node example.mjs

Docker Instructions

Prerequisites: Docker must be installed.

docker build --tag 'openfigi-js' .

docker run --rm -it --entrypoint ./example.mjs --volume ./:/OpenFIGI 'openfigi-js'

# OR: If you have acquired an API Key
docker run --rm -it --entrypoint ./example.mjs --volume ./:/OpenFIGI 'openfigi-js' -e OPENFIGI_API_KEY=<YOUR_KEY_HERE>