![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
currencyapi-ruby is the official Ruby Wrapper around the currencyapi.
Add this line to your application's Gemfile:
gem 'currencyapi'
And then execute:
$ bundle
Or install it yourself as:
$ gem install currencyapi
You will need your apikey to use Currencyapi, you can get one https://app.currencyapi.com/register.
Create an instance and pass your api key like here:
fx = Currencyapi::Endpoints.new(:apikey => 'APIKEY')
Use the instance to call the endpoints
Returns your current quota
fx.status()
Returns all our supported currencies
fx.currencies(currencies)
Parameter | Data type | Mandatory | Description |
---|---|---|---|
currencies | string | no | A list of comma seperated currency codes which you want to get (EUR,USD,CAD). By default all available currencies will be shown |
Returns the latest exchange rates. The default base currency is USD.
fx.latest(base_currency, currencies)
Parameter | Data type | Mandatory | Description |
---|---|---|---|
base_currency | string | no | By default all values are based on USD. By default all values are based on USD |
currencies | string | no | A list of comma seperated currency codes which you want to get (EUR,USD,CAD). By default all available currencies will be shown |
Returns the latest exchange rates. The default base currency is USD.
fx.historical(date, base_currency, currencies)
Parameter | Data type | Mandatory | Description |
---|---|---|---|
date | string | yes | Date to retrieve historical rates from (format: 2021-12-31) |
base_currency | string | no | By default all values are based on USD. By default all values are based on USD |
currencies | string | no | A list of comma seperated currency codes which you want to get (EUR,USD,CAD). By default all available currencies will be shown |
Returns a range of exchange rates. Generally, we provide data going back to 1999.
fx.range(datetime_start, datetime_end, accuracy, baseCurrency, currencies)
Parameter | Data type | Mandatory | Description |
---|---|---|---|
datetime_start | string | yes | Datetime for the start of your requested range (format: 2021-12-31T23:59:59Z / ISO8601 Datetime) |
datetime_end | string | yes | Datetime for the start of your requested range (format: 2021-12-31T23:59:59Z / ISO8601 Datetime) |
accuracy | string | no | The accuracy you want to receive. Possible Values: day, hour, quarter_hour, minute Default: day For valid time ranges see below |
base_currency | string | no | By default all values are based on USD. By default all values are based on USD |
currencies | string | no | A list of comma seperated currency codes which you want to get (EUR,USD,CAD). By default all available currencies will be shown |
Returns calculated values for today or any given date for all currencies.
fx.convert(value, date, baseCurrency, currencies)
Parameter | Data type | Mandatory | Description |
---|---|---|---|
value | string | yes | The value you want to convert |
date | string | no | Date to retrieve historical rates from (format: 2021-12-31) |
base_currency | string | no | By default all values are based on USD. By default all values are based on USD |
currencies | string | no | A list of comma seperated currency codes which you want to get (EUR,USD,CAD). By default all available currencies will be shown |
You can find further information on https://currencyapi.com/docs/
git checkout -b my-new-feature
)git commit -am 'Added some feature'
)git push origin my-new-feature
)Bug reports and pull requests are welcome on GitHub at https://github.com/everapihq/currencyapi. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the Currencyapi project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
FAQs
Unknown package
We found that currencyapi demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.