Interest Rate Parity JS
A library to calculate forward rate considering interest rate parity in Node.js
Installation
npm install --save interest-rate-parity
Usage
ES5
var forwardRate = forwardRate;var spotExchangeRate = 078; // AUD/USD = 0.78var audInterestRate = 0018; // 1.8% interest rate in Australiavar usdInterestRate = 001; // 1% interest rate in U.S.var timePeriod = 1; // 1 yearvar rate = ;console;// TForward rate of AUD/USD considering the Interest Rate Parity is
ES6
const spotExchangeRate = 078; // AUD/USD = 0.78const audInterestRate = 0018; // 1.8% interest rate in Australiaconst usdInterestRate = 001; // 1% interest rate in U.S.const timePeriod = 1; // 1 yearconst rate = ;console;// TForward rate of AUD/USD considering the Interest Rate Parity is
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
License
Copyright (c) 2016 Supasate Choochaisri
Licensed under the Apache License.