Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

OpenFIGI Python3 example

This script is written to be run by python3.12 without any external libraries. Example code is tested with Python 3.12.7.

Instructions

Prerequisites: Python3.12 must be installed.

# Optional: Export your API key
export OPENFIGI_API_KEY=<YOUR_KEY_HERE>
python3 example.py

Docker Instructions

Prerequisites: Docker must be installed.

docker build --tag 'openfigi-python' .

docker run --rm -it --entrypoint ./example.py --volume ./:/OpenFIGI 'openfigi-python'

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