Method | Description | |
---|---|---|
__construct ( Exchanger\Contract\ExchangeRateProvider $exchangeRateProvider ) | Creates a new Swap. | |
historical ( string $currencyPair, DateTimeInterface $date, array $options = [] ) : Exchanger\ExchangeRate | Quotes a currency pair. | |
latest ( string $currencyPair, array $options = [] ) : Exchanger\ExchangeRate | Quotes a currency pair. |
Method | Description | |
---|---|---|
quote ( string $currencyPair, DateTimeInterface $date = null, array $options = [] ) : Exchanger\ExchangeRate | Quotes a currency pair. |
public __construct ( Exchanger\Contract\ExchangeRateProvider $exchangeRateProvider ) | ||
$exchangeRateProvider | Exchanger\Contract\ExchangeRateProvider |
public historical ( string $currencyPair, DateTimeInterface $date, array $options = [] ) : Exchanger\ExchangeRate | ||
$currencyPair | string | The currency pair like "EUR/USD" |
$date | DateTimeInterface | An optional date for historical rates |
$options | array | An array of query options |
return | Exchanger\ExchangeRate |