Data FeedThe Currency Methods Data Feed allows you to access a single file containing exchange rate information. The file format (XML, CSV or INI) and content options (base unit, language for currency names, additional properties, etc.) are indicated by setting appropriate query fields in the access URL itself. The Currency Methods Data Feed service is powered by the Currency Server software, running on a cluster of servers managed by Cloanto. The general access format is:
http://fx.cloanto.com/rates.fx?arguments For example:
http://fx.cloanto.com/rates.fx?licensekey=1234&format=XML The supported arguments are: - LicenseKey: Currency Methods Data Feed subscription license key (this is the only required argument)
- Format: XML, INI or CSV (default is INI)
- BaseCurrency: EUR, USD or any other supported currency (default is EUR)
- CurrencyNames: Boolean value indicating whether the output should include currency names (default is True)
- SmallestUnit: Boolean value indicating whether the output should include the smallest unit for each currency (default is False)
- Regime: Boolean value indicating whether the output should include the regime identifier for each currency (default is False)
- Language: supported languages for currency names include EN (English, default), DE (German) and IT (Italian)
- TitleStyle: Boolean value indicating whether title style capitalization should be used in the currency names (default is True)
- DateOnly: Boolean value indicating whether the time stamps should include only the date (no time, while the default is date and time)
- Date: reserved for future use (currently must be omitted or be set to an empty value)
- Type: reserved for future use (currently must be omitted or be set to an empty value)
Multiple semicolon-separated BaseCurrency values are allowed, in which case the result will include additional cross-rate combinations. The arguments match equivalent options in the Currency Methods Web Service, where the interface is documented in more detail. A yearly subscription to the Currency Methods Data Feed for up to 10 accesses/day can be activated in the Purchase section. Fetching the entire set of rates counts as a single access. For more information: - 7-103 - Support for More than 10 Accesses per Day
We recommend that you also implement and test the condition in which the service returns an error, for example because the subscription has expired. To test this, you can use the license key "00000-00000-00000-00000". |