Currency Rate
currency_ratePLN exchange rate for one currency over time. Specify the table (A/B for mid-rate, C for bid/ask) and a 3-letter ISO 4217 code (e.g. USD, EUR, GBP, CHF, JPY). Defaults to the latest rate; optionally pass a single date, last_n recent points, or a start_date/end_date window (max ~93 days, working days only). Use this for one currency; use exchange_rate_table for the whole list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ISO 4217 currency code, e.g. "USD", "EUR", "GBP". | |
| date | No | Single date, YYYY-MM-DD. Must be a working day or it 404s. | |
| table | No | Table letter: "A" or "B" (mid-rate) or "C" (bid/ask). Default "A". | |
| last_n | No | Return the N most recent rates. Ignored if date or start_date is given. | |
| end_date | No | Window end, YYYY-MM-DD. Used with start_date. | |
| start_date | No | Window start, YYYY-MM-DD. Pair with end_date. Max range ~93 days. |