wsb-rs

Crates.iowsb-rs
lib.rswsb-rs
version0.1.2
sourcesrc
created_at2023-07-24 04:21:16.395304
updated_at2023-07-25 16:02:21.051802
descriptionCalculates when your options will print.
homepage
repository
max_upload_size
id924234
size9,376
Alexander Vitiuk (averted)

documentation

README

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
------------------------------------
Commit count: 0

cargo fmt