
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
interest-rate-parity
Advanced tools
A library to calculate forward rate considering interest rate parity in Node.js
A library to calculate forward rate considering interest rate parity in Node.js
npm install --save interest-rate-parity
ES5
var forwardRate = require('interest-rate-parity').forwardRate;
var spotExchangeRate = 0.78; // AUD/USD = 0.78
var audInterestRate = 0.018; // 1.8% interest rate in Australia
var usdInterestRate = 0.01; // 1% interest rate in U.S.
var timePeriod = 1; // 1 year
var rate = forwardRate(spotExchangeRate, audInterestRate, usdInterestRate);
console.log('Forward rate of AUD/USD considering the Interest Rate Parity is ' + rate);
// TForward rate of AUD/USD considering the Interest Rate Parity is
ES6
import { forwardRate } from 'interest-rate-parity'
const spotExchangeRate = 0.78; // AUD/USD = 0.78
const audInterestRate = 0.018; // 1.8% interest rate in Australia
const usdInterestRate = 0.01; // 1% interest rate in U.S.
const timePeriod = 1; // 1 year
const rate = forwardRate(spotExchangeRate, audInterestRate, usdInterestRate);
console.log('Forward rate of AUD/USD considering the Interest Rate Parity is ' + rate);
// TForward rate of AUD/USD considering the Interest Rate Parity is
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
Copyright (c) 2016 Supasate Choochaisri
Licensed under the Apache License.
FAQs
A library to calculate forward rate considering interest rate parity in Node.js
The npm package interest-rate-parity receives a total of 1 weekly downloads. As such, interest-rate-parity popularity was classified as not popular.
We found that interest-rate-parity demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.