GetExchangeRate(CurrencyCode=String,RateType=String,Date=Date]): Number
Get Exchange Rate Web Services function returns the Exchange Rate for a given CurrencyCode, Rate Type and Date. Returns zero if no rate found.
GetExchangeRate function syntax has these named arguments:
Parameter |
Description |
Currency Code |
Required. The currency code to get the rate for. |
Rate Type |
Required. The type of exchange rate. |
Date |
Required. The effective date for the exchange rate. Date must be in the format YYYY-MM-DD. |
See Web Service Functions for sample code to access Web Services. Sample web service end point syntax is:
Response = MakeCall("GetExchangeRate(CurrencyCode=AUD,RateType=SELL,Date=2018-01-01)")
See also the MaxBasic GetExchangeRate Function and the the SQL GetExchangeRate function.