forex.last

forex(origin: text, destination: text) 🡒 date, pure function

Returns the date of the latest exchange rate found for a pair of currencies. The currencies should be encoded with their canonical three-letter codes. Not all exchange rates are uploaded daily to the European Central Bank.

Example:

table T = with
  [| as Code |]
  [| "JPY" |]
  [| "USD" |]
  [| "EUR" |]

show table "to CHF" a1b3 with
  T.Code
  forex.last(T.Code, "CHF")

See also