marekskopal / openfigi
OpenFIGI API 客户端库
v0.2.2
2024-05-01 18:35 UTC
Requires
- php: >=8.2
- php-http/discovery: ^1.19
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
- psr/http-message: ^1.1 || ^2.0
Requires (Dev)
- php-http/guzzle7-adapter: ^1.0
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.10
- phpstan/phpstan-strict-rules: ^1.5
- phpunit/phpunit: ^10.2
- slevomat/coding-standard: ^8.14
- spatie/ray: ^1.39
Suggests
- nyholm/psr7: PSR-7 message implementation
- symfony/http-client: HTTP client
README
非官方的 OpenFIGI API 服务 PHP 客户端库。
安装
composer require marekskopal/openfigi
使用方法
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]));
注意
这不是官方的 OpenFIGI 库,此库的作者与 OpenFIGI 或彭博金融有限公司没有任何形式的关联。
贡献
如果您想贡献,请随时提交拉取请求。