Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

history provider #43

Closed
wants to merge 7 commits into from
Closed

Conversation

kramapet
Copy link
Contributor

PR introduces a way to retrieve historical rates if provider implements Swap\HistoryProviderInterface.

To retrieve historical rate, see tests/Tests/SwapTest.php:44

Petr Kramar added 5 commits June 28, 2016 23:38
Swap\CacheInterface accepts Swap\Model\QuotationRequest instead of
Swap\Model\CurrencyPair.

Caching libs and tests has been adjusted accordingly.
Swap::quote can accept also Swap\Model\QuotationRequest to retrieve
historical rates if provider implements
'Swap\HistoricalProviderInterface'.
- add Swap\HistoryProviderInterface::setDate
- delete Swap\HistoryProviderInterface::fetchHistoryRate

interface is extending Swap\ProviderInterface now
@florianv
Copy link
Owner

Hello, thanks for your PR.

@kramapet Can you resolve the conflicts and fix the style issues please ?

@florianv
Copy link
Owner

@kramapet I have opened a new PR including historical rates #62

@florianv
Copy link
Owner

florianv commented Sep 8, 2016

I close this PR in favor of #66

@florianv florianv closed this Sep 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants