datamodel for OPCVM360 APIs
fund
idFund
name
country
legalStructure
assetClass
type
fundshare
idFundShare
name
isin
decimalisation
creationDate
currency
urlname
lastVl
lastVlDate
varP7D
dateP7D
varPYTD
datePYTD
varP1Y
dateP1Y
varP3Y
dateP3Y
varP5Y
dateP5Y
varP10Y
dateP10Y
company
idFund
idCompany
name
country
legalStructure
assetClass
type
fundshares-history
date
vl
shares
aum
Connexion Credentials to OPCVM360 APIs:
root URL = "http://services.opcvm360.com/api-v1"
login = "mylogin"
password = "mypassword"
Example of code two use the Adina’s php-sdk:
<?php
require_once(“folder/to/the/php-sdk/main.php”);
$opcvm360=new opcvm360();
//retrieves a fund by id
$MyFund=$opcvm360->getFundById(“45885”);
//retrieves a fundshare by id
$MyFundShare=$opcvm360->getFundShareByIsin(“LUXX778E5”);
//retrieves historyfor a fundshare, i.e a collec/array of fundshare-history
$history=$MyFundShare->getHistory();
foreach ($history as $val)
{
echo “<tr>
echo “<td>date</td><td>”.$val[‘date’].”</td>”;
echo “<td>Valeur Liquidative</td><td>”.$val[‘vl’].”</td>”;
echo “</tr>
}