convert_currency_specific_date
Convert currency amounts using exchange rates from a specific date or the closest prior date if unavailable. Ideal for historical financial analysis or accurate cross-currency calculations.
Instructions
Convert an amount from one currency to another using the exchange rates for a specific date. If there is no exchange rate available for the specific date, the rate for the closest available date before the specified date will be used.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
amount | Yes | The amount in the source currency to convert. | |
from_currency | Yes | The source currency code. | |
specific_date | Yes | The specific date for which the conversion is requested in the YYYY-MM-DD format. | |
to_currency | Yes | The target currency code. |