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.

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

See also

User Contributed Notes
0 notes + add a note