/InteractiveData-RemotePlus

A php package that interfaces with the Remote Plus pricing HTTP API by Interactive Data.

Primary LanguagePHPMIT LicenseMIT

InteractiveData-RemotePlus

Build Status Latest Stable Version Total Downloads License composer.lock Coverage Status

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;