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

This package is not auto-updated.

Last update: 2024-12-18 14:15:15 UTC


README

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;