rbf_getExchangeRate()

Warning: Support for using this method with external objects (such as those mapped to external tables, to OpenEdge Service objects, or through a HDP connection) is a beta feature. This method is supported in production systems, except for external objects.

Purpose

Returns an exchange rate between two currencies on a given date.

Syntax

rbf_getExchangeRate(srcCode, destCode, date, callback)

Parameters

srcCode

The currency code to convert from

destCode

The currency code to convert to

date

The date for exchange rate (current date by default)

callback

The callback function that will receive exchange rate as first parameter (null if not found)

Note: This API is supported in portals as well.

Example

rbf_getExchangeRate("EUR", "USD", null, function(rate) { alert("EUR/USD="+rate); });