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
//! Derivatives on the simulated market, and what they read.
//!
//! Futures and options are priced from the model's own state and its own
//! expectations of that state. This module holds the pieces that do not
//! depend on one engine: the forecast the engine computes at each close
//! ([`Forecast`], under `ModelParams::forecast_horizon_sessions`), the
//! session-numbered expiry calendar ([`calendar`]), contract symbols
//! ([`ContractSymbol`]), and what a contract is, how it settles and what a
//! quote of one says ([`ContractSpec`], [`ContractKind`], [`Settlement`],
//! [`Quote`]). The price index the index contracts settle on is
//! [`crate::market::IndexLevel`], read through
//! [`crate::engine::Engine::index_level`], and the live VIX through
//! [`crate::engine::Engine::live_vix`].
//!
//! The engine lists index futures under `ModelParams::futures_index_listed`
//! VIX futures under `ModelParams::futures_vix_listed` and policy-rate and
//! term-rate futures under `ModelParams::futures_rates_listed` and oil futures
//! under `ModelParams::futures_oil_listed`, and walks the
//! index futures through the night under `ModelParams::night_session_steps`
//! ([`crate::engine::Engine::contracts`], [`crate::engine::Engine::quote`],
//! [`crate::engine::Engine::settlements`],
//! [`crate::engine::Engine::night_tick`]).
//!
//! The American options' pricer ([`american`]: a Leisen-Reimer tree with
//! cash dividends, its early-exercise boundary and the dealer's exercise
//! decision) is library code the engine does not call yet.
//!
//! Everything here reads state and writes nothing back, so a model that
//! turns these switches on prints the same stock prices as one that does
//! not.
pub use ;
pub use ;
pub use Forecast;
pub use Greeks;
pub use ;
pub use ;