PHP code example of marekskopal / openfigi
1. Go to this page and download the library: Download marekskopal/openfigi library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
marekskopal / openfigi example snippets
use MarekSkopal\OpenFigi\OpenFigi;
use MarekSkopal\OpenFigi\Enum\IntervalEnum;
// Create OpenFIGI instance
$openFigi = new OpenFigi('<yourApiKey>');
// Get the mapping for the AAPL ticker
$mappingJob = new MappingJob(idType: IdTypeEnum::Ticker, idValue: 'AAPL');
$mappingResults = $openFigi->mapping([$mappingJob]));