메소드 | 설명 | |
---|---|---|
__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. |
메소드 | 설명 | |
---|---|---|
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 |
리턴 | Exchanger\ExchangeRate |