GithubHelp home page GithubHelp logo

isabella232 / cloud-sdk-currency-conversion Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sap-archive/cloud-sdk-currency-conversion

0.0 0.0 0.0 15.17 MB

Handle exchange rates and currency conversion logic when developing applications with the SAP Cloud SDK.

License: Apache License 2.0

JavaScript 10.16% TypeScript 89.84%

cloud-sdk-currency-conversion's Introduction

SAP Cloud SDK Currency Conversion Library

REUSE status

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:

  • Direct one-to-one conversions - from a source currency to a target currency.
  • Indirect conversions - uses inverse rates or a "reference currency".
  • Fixed rate conversions - you have the exact currency exchange rate that you want to use in your conversion operations.
  • Non-fixed rate conversions - unlike the fixed rate, you have a set of exchange rates. The library will pick the "best rate" from the set depending on various factors.

The library provides the following modules:

Features

Convert Currencies

Get currency exchange rates converted from a source currency to a target currency by using the currency conversion library.

Get Bulk Conversions

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 Conversions

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.

Requirements

The currency conversion library requires:

  • TypeScript 4.0.2+
  • Node.js
  • @sap/cds 4.3.0+

Download and Installation

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

Usage

The following code examples show the various usages of the library:

How to obtain support

The GitHub issue tracker is the preferred channel for reporting bugs, feature requests, or querying.

License

Copyright 2018-2021 SAP SE or an SAP affiliate company and cloud-sdk-currency-conversion contributors. This project is licensed under Apache 2.0 as noted in the license file. Detailed information including third-party components and their licensing/copyright information is available via the REUSE tool.

cloud-sdk-currency-conversion's People

Contributors

ajinkyapatil8190 avatar dependabot[bot] avatar kanchanbohra avatar marikaner avatar nabagata avatar prilk avatar sebastianwolf-sap avatar suhasraok avatar vidhyakpai avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.