dprmc / interactive-data-remote-plus
A PHP package that interfaces with the Remote Plus pricing HTTP API by Interactive Data.
v1.09
2019-01-17 18:58 UTC
Requires
- dprmc/cusip: ^1.0
- guzzlehttp/guzzle: ^6.3
- league/climate: ^3.4
Requires (Dev)
- php-coveralls/php-coveralls: ^2.1
- phpunit/phpunit: ^7.5
README
A php package that interfaces with the Remote Plus pricing HTTP API by Interactive Data.
Usage
use DPRMC\InteractiveData\ClientDailyPriceFixedIncome; $date = "2017-07-31"; $cusipsToQuery = [ '38259P508' ]; $client = new ClientDailyPriceFixedIncome('yourInteractiveDataUser', 'yourInteractiveDataPass', $date, $cusipsToQuery); $response = $client->run(); foreach ($response as $cusip => $price): echo "CUSIP $cusip had a price of $price on $date"; endforeach;