@thacash/cash_finance
Version:
Tools for selling options contracts.
47 lines (34 loc) • 1.39 kB
Markdown
# @thacash/cash_finance
[](https://www.npmjs.com/package/@thacash/cash_finance)
<!-- [](https://www.npmjs.com/package/@thacash/cash_finance)
-->
Tools for options sellers.
## Install
```
$ npm install @thacash/cash_finance
```
## Usage
```js
const cashfinance = require("@thacash/cash_finance");
cashfinance.getContractIncomePercent(contractPrice, stockPrice);
//=> 28.79
```
## Methods
See the available methods by logging the package.
```js
const cashfinance = require("@thacash/cash_finance");
console.log(cashfinance);
//=> {
//=> getContractPrice: [Function: getContractPrice],
//=> getContractIncomePercent: [Function: getContractIncomePercent],
//=> getStockPrice: [Function: getStockPrice],
//=> getContractDays: [Function: getContractDays],
//=> getContractDaysLeft: [Function: getContractDaysLeft],
//=> getAnnualizedReturn: [Function: getAnnualizedReturn],
//=> getStockIncreasePercent: [Function: getStockIncreasePercent],
//=> getSellerGenerates: [Function: getSellerGenerates],
//=> getOriginalStockValue: [Function: getOriginalStockValue],
//=> getNewStockValueITM: [Function: getNewStockValueITM],
//=> getSellerNetGainITM: [Function: getSellerNetGainITM]
//=> }
```