-
Notifications
You must be signed in to change notification settings - Fork 198
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
Error: base_currency_access_restricted #117
Comments
Is this on a free plan? I noticed on the pricing page it lists 'All Base Currencies' as a feature of the paid plans. I can't find any info around which ones are supported on the free tier, but at the very least EUR is working for me. Also, you may not want want to include your real API key here (assuming the above is valid)! |
You can't, that's for paid users. But you can try to convert all the values to dollars, dividing them by their value in dollars with respect to the euro. |
Just ran into this. Not sure when it changed... but this should fix it:
|
try to use with https://rapidapi.com/fixer/api/fixer-currency |
Try this http://data.fixer.io/api/latest?cbase=USD&access_key=35a3ad0f2f253d37131b68cd1b5953fc Please note that instead of 'base', 'cbase' is passed. |
@AltafPk the cbase option is ignored and doesn't change the response base -- it's still in |
@dylan-lom Thanks for highlighting that, looks like fixer.io doesn't offer change of base currency in their free plan, better to use some other API like https://api.exchangeratesapi.io/latest?base=CAD |
I find it a little bit ridiculous that I had to scrounge around the internet and find this obscure github issue in order to find out that on the free plan fixer only allows This can clearly be displayed on the pricing / compare plans page. |
This error is because of free plain. in free plain you can take base currency only EUR. |
Good option, unfortunately exchangeratesapi.io only updates their rates once a day (from my experience). |
It seems {
"success": false,
"error": {
"code": 101,
"type": "missing_access_key",
"info": "You have not supplied an API Access Key. [Required format: access_key=YOUR_ACCESS_KEY]"
}
} I've created a free account on both fixer.io and exchangeratesapi.io and they are the same platform, with different databases. Even their plans are the same. |
There's multiple websites owned by I made the switch to https://openexchangerates.org/ :
..because I really cba to base my personal-use code on something else than USD. In case you use that, apilayer APIs have a property: "date":"2021-04-08" and for openexchangerates you get a unix timestamp instead. |
@Luckz Why openexchagerates.org? They have pricing $12/m and on exchangeratesapi.io you have $10/m? |
@vojtasvoboda I used the free plan on each. |
Try out this logic |
same thing with response:
base_currency_access_restricted ❗ |
this is a simple hack it seems. for example considering you are getting base EURO exchange rates for all other countries but I appreciate if you use their paid plans as they provide paid features. |
Wow! Smart, you can always learn something ... formula in PHP:
Where |
Hi, I tried using
base=USD
however I get back the following error:{"success":false,"error":{"code":105,"type":"base_currency_access_restricted"}}
url: http://data.fixer.io/api/latest?base=USD&access_key=35a3ad0f2f253d37131b68cd1b5953fc
My services/api.ts file
The text was updated successfully, but these errors were encountered: