Convert currency
abstractapi_convert_currencyConvert an amount from a base currency to one target currency, at the latest rate or at the rate of a past date. Exchange Rates API. Spends 1 credit of your Exchange Rates plan per request (a failed request counts too); needs the Exchange Rates API key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | Currency to convert from, e.g. USD. | |
| date | No | A past date, yyyy-mm-dd (default: the latest rate). | |
| target | Yes | Currency to convert to, e.g. EUR (one currency). | |
| base_amount | No | Amount of the base currency (default 1). |