Skip to content

Latest commit

 

History

History
66 lines (43 loc) · 2.2 KB

File metadata and controls

66 lines (43 loc) · 2.2 KB

VitexSoftware\Raiffeisenbank\GetFxRatesListApi

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

Method HTTP request Description
getFxRatesList() GET /rbcz/premium/api/fxrates

getFxRatesList()

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

Returns foreign exchange rates for all available currencies. This operation does not require a client certificate.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new VitexSoftware\Raiffeisenbank\Api\GetFxRatesListApi(
    // 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.
$date = new \DateTime('2013-10-20T19:20:30+01:00'); // \DateTime | The effective date for which the FX rates list is requested. Will default to **now** when not specified.

try {
    $result = $apiInstance->getFxRatesList( $xRequestId,  $date);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GetFxRatesListApi->getFxRatesList: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
xRequestId string Unique request id provided by consumer application for reference and auditing.
date \DateTime The effective date for which the FX rates list is 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]