PHP code example of dprmc / interactive-data-remote-plus
1. Go to this page and download the library: Download dprmc/interactive-data-remote-plus 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/ */
dprmc / interactive-data-remote-plus example snippets
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;