3 releases
0.1.2 | Jul 25, 2023 |
---|---|
0.1.1 | Jul 24, 2023 |
0.1.0 | Jul 24, 2023 |
#968 in Math
10KB
184 lines
WSB
Calculates and prints a spread table of puts and calls, along with their updated valuations at different price points.
Usage
Usage: wbs-rs <STRIKE_PRICE> <CONTRACT_PRICE> <NUM_CONTRACTS = 1>
Arguments:
<STRIKE_PRICE> Stock strike price.
<CONTRACT_PRICE> Price of contract.
<NUM_CONTRACTS> Number of contracts (default 1).
Examples:
- Strike price - $55
- Price of contract - $4.85
- Number of contracts - 3
$ wsb-rs 55 4.85 3
Strike price: $55
Price per contract: $4.85
Number of contracts: 3
Premium: $1455
Price: Profit:
------------------------------------
$5.50 | $13395.00
------------------------------------
$11.00 | $11745.00
------------------------------------
$16.50 | $10095.00
------------------------------------
$22.00 | $8445.00
------------------------------------
$27.50 | $6795.00
------------------------------------
$33.00 | $5145.00
------------------------------------
$38.50 | $3495.00
------------------------------------
$44.00 | $1845.00
------------------------------------
$49.50 | $195.00
------------------------------------
$55
------------------------------------
$60.50 | $195.00
------------------------------------
$66.00 | $1845.00
------------------------------------
$71.50 | $3495.00
------------------------------------
$77.00 | $5145.00
------------------------------------
$82.50 | $6795.00
------------------------------------
$88.00 | $8445.00
------------------------------------
$93.50 | $10095.00
------------------------------------
$99.00 | $11745.00
------------------------------------
$104.50 | $13395.00
------------------------------------