Class OptionPricer
java.lang.Object
org.episteme.social.economics.OptionPricer
Provides mathematical models for option pricing, including Black-Scholes
and binomial tree implementations.
Supports both European and American style options.
- Since:
- 1.0
- Version:
- 1.1
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic enumstatic enumstatic final record -
Method Summary
Modifier and TypeMethodDescriptionstatic OptionPricer.PricingResultbinomialTree(OptionPricer.OptionParameters params, int steps) Binomial tree pricing (can handle American options).static OptionPricer.PricingResultBlack-Scholes pricing for European options.static booleancheckPutCallParity(Real callPrice, Real putPrice, Real spotPrice, Real strikePrice, Real riskFreeRate, Real timeToExpiry) Put-Call Parity check.static RealimpliedVolatility(OptionPricer.OptionParameters params, Real marketPrice) Calculates implied volatility from market price.
-
Method Details
-
blackScholes
Black-Scholes pricing for European options. -
binomialTree
public static OptionPricer.PricingResult binomialTree(OptionPricer.OptionParameters params, int steps) Binomial tree pricing (can handle American options). -
impliedVolatility
Calculates implied volatility from market price. -
checkPutCallParity
-