Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a driver for the CurrencyBeacon API, which allows 5000 free requests every month.
Details
CurrencyBeacon supports crypto exchange rates in addition to traditional fiat currencies. However, since this package is geared towards fiat currencies, I am filtering the list supported currencies to
fiat
only.Unfortunately, the API does not seem to support filtering the actual rate endpoints by the currency type, only symbols. This means if rates are fetched without a list of symbols, it'll return both fiat and crypto exchange rates.
If this is an issue, it would be recommended to get the list of fiat currencies first and use that to fetch the rates, ie:
PS. I fixed a tiny issue in one of the existing tests by using the correct URL for a given driver. It doesn't actually affect the test results, but it might cause confusion otherwise.