lastForex
lastForex, function
def pure lastForex(origin: text, destination: text): date
Returns the latest date for which an exchange rate is available between
origin and destination.
origin: source currency code (ISO 4217).destination: destination currency code (ISO 4217).
Examples
table T = with
[| as Code |]
[| "JPY" |]
[| "USD" |]
[| "EUR" |]
T.Last = lastForex(T.Code, "CHF")
show table "To CHF" with
T.Code
T.Last
This produces the following table:
| Code | Last |
|---|---|
| JPY | 2025-12-20 |
| USD | 2025-12-20 |
| EUR | 2025-12-20 |