Skip to content

Latest commit

 

History

History
68 lines (45 loc) · 2.37 KB

File metadata and controls

68 lines (45 loc) · 2.37 KB

VitexSoftware\Raiffeisenbank\GetFxRatesApi

All URIs are relative to https://api.rb.cz.

Method HTTP request Description
getFxRates() GET /rbcz/premium/api/fxrates/{currencyCode}

getFxRates()

getFxRates( $xRequestId, $currencyCode,  $date): \VitexSoftware\Raiffeisenbank\Model\CurrencyListSimple

Returns foreign exchange rates for the given currency code. This operation does not require a client certificate.

Example

<?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;
}

Parameters

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]

Return type

\VitexSoftware\Raiffeisenbank\Model\CurrencyListSimple

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]