All URIs are relative to https://api.rb.cz.
| Method | HTTP request | Description |
|---|---|---|
| getFxRates() | GET /rbcz/premium/api/fxrates/{currencyCode} |
getFxRates( $xRequestId, $currencyCode, $date): \VitexSoftware\Raiffeisenbank\Model\CurrencyListSimpleReturns foreign exchange rates for the given currency code. This operation does not require a client certificate.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new VitexSoftware\Raiffeisenbank\Api\GetFxRatesApi(
// If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
// This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
new GuzzleHttp\Client()
);
$xRequestId = 'xRequestId_example'; // string | Unique request id provided by consumer application for reference and auditing.
$currencyCode = 'currencyCode_example'; // string | The foreign currency code in ISO-4217 format.
$date = new \DateTime('2013-10-20T19:20:30+01:00'); // \DateTime | The effective date for which the FX rates are requested. Will default to **now** when not specified.
try {
$result = $apiInstance->getFxRates( $xRequestId, $currencyCode, $date);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling GetFxRatesApi->getFxRates: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| xRequestId | string | Unique request id provided by consumer application for reference and auditing. | |
| currencyCode | string | The foreign currency code in ISO-4217 format. | |
| date | \DateTime | The effective date for which the FX rates are requested. Will default to now when not specified. | [optional] |
\VitexSoftware\Raiffeisenbank\Model\CurrencyListSimple
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]