#price #print #strike #contract #profit #numbers #strike-price

bin+lib wsb-rs

计算您的期权何时到期

3 个版本

0.1.2 2023年7月25日
0.1.1 2023年7月24日
0.1.0 2023年7月24日

#687 in 数学

MIT/Apache

10KB
184

WSB

计算并打印出不同价格点的看涨和看跌期权表格,以及它们的估值更新。

用法

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).

示例

  • 行权价 - $55
  • 合约价格 - $4.85
  • 合约数量 - 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
------------------------------------

无运行时依赖