The currency conversion library is an extension to the SAP Cloud SDK. You can use this library to facilitate currency exchange rate conversion.
The library does not provide any out of the box market data. You must provide the currency exchange rates to the library from your own data sources. You can use the SAP Market Rates Management service or any other service of your choice.
You can use the library for the following functions:
The library provides the following modules:
Get currency exchange rates converted from a source currency to a target currency by using the currency conversion library.
Multiple currency pairs can be converted through a single call. You can use the library methods to get more than one currency pair converted simultaneously.
Get direct and indirect currency conversions for your currency pairs. Direct conversions are one-to-one conversions between a source and a target currency. Indirect conversions are performed by using inverse rates or a reference currency.
The currency conversion library requires:
Install the currency conversion library using npm:
npm install @sap-cloud-sdk/currency-conversion-core, @sap-cloud-sdk/currency-conversion-data-adapter, @sap-cloud-sdk/currency-conversion-models, @sap-cloud-sdk/currency-conversion-integration-objects
The following code examples show the various usages of the library:
The GitHub issue tracker is the preferred channel for reporting bugs, feature requests, or querying.
This project is licensed under Apache 2.0 as noted in the license file.