File size: 1,882 Bytes
72fc0ee
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
"""Suite A: Options Pricing & Derivatives

Consolidates:
- Black-Scholes-Visual-Explainer
- Monte-Carlo-Option-Pricing-Simulator
- Volatility-Surface-Builder
- Bachelier Model (Arithmetic Brownian Motion)
- Options pricing and Greeks calculation tools
"""

# SDK Manager interface
from .manager import OptionsManager

# Black-Scholes analytical pricing
from quantlib_pro.options.black_scholes import (
    delta as bs_delta,
    gamma as bs_gamma,
    implied_volatility,
    price as bs_price,
    price_call,
    price_put,
    price_with_greeks,
    rho as bs_rho,
    theta as bs_theta,
    vega as bs_vega,
)

# Bachelier model (Arithmetic Brownian Motion)
from quantlib_pro.options.bachelier import (
    BachelierModel,
    BachelierParams,
    bachelier_call,
    bachelier_put,
)

# Monte Carlo simulation
from quantlib_pro.options.monte_carlo import (
    MonteCarloConfig,
    price_asian_call,
    price_barrier_up_and_out_call,
    price_european,
    price_lookback_call,
)

# Greeks computation
from quantlib_pro.options.greeks import (
    GreeksProfile,
    compute_delta_fd,
    compute_gamma_fd,
    compute_greeks,
    compute_rho_fd,
    compute_theta_fd,
    compute_vega_fd,
)

__all__ = [
    # SDK Manager
    "OptionsManager",
    # Black-Scholes
    "price_call",
    "price_put",
    "bs_price",
    "price_with_greeks",
    "implied_volatility",
    "bs_delta",
    "bs_gamma",
    "bs_vega",
    "bs_theta",
    "bs_rho",
    # Bachelier
    "BachelierModel",
    "BachelierParams",
    "bachelier_call",
    "bachelier_put",
    # Monte Carlo
    "MonteCarloConfig",
    "price_european",
    "price_asian_call",
    "price_lookback_call",
    "price_barrier_up_and_out_call",
    # Greeks
    "GreeksProfile",
    "compute_greeks",
    "compute_delta_fd",
    "compute_gamma_fd",
    "compute_vega_fd",
    "compute_theta_fd",
    "compute_rho_fd",
]