Access the read-only catalogue via $orqex->exchangeRates().
Latest rates
$rates = $orqex->exchangeRates()->latest('USD');
$rates->base; // "USD"
$rates->date; // capture timestamp
$rates->rateFor('XOF'); // float|null
$rates->rates; // ['XOF' => 600.5, 'EUR' => 0.92, ...]
Supported currencies
$currencies = $orqex->exchangeRates()->supportedCurrencies();
foreach ($currencies as $currency) {
$currency->code; // "USD"
$currency->name; // "US Dollar"
$currency->symbol; // "$"
}
Methods
| Method | Returns |
|---|
latest(string $baseCurrency = 'USD', $opts = null) | ExchangeRate |
supportedCurrencies($opts = null) | Currency[] |
These endpoints are public read-only catalogues and do not require an idempotency key.