Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MarcusRainbow/QuantMath
/ types & classes
Types & classes
167 in github.com/MarcusRainbow/QuantMath
⨍
Functions
887
◇
Types & classes
167
↓ 7 callers
Class
Date
src/dates/mod.rs:58
↓ 7 callers
Class
Str
RAII class to encapsulate a string from QuantMath, and prevent leaks.
src/cpp-test/quantmath_runner.cpp:55
↓ 6 callers
Class
WeekdayCalendar
src/dates/calendar.rs:169
↓ 2 callers
Class
Currency
src/instruments/assets.rs:35
↓ 2 callers
Class
FixingTable
src/data/fixings.rs:11
↓ 2 callers
Interface
Instrument
There are a few controversial design decisions here. The first is to do with the separation of products from indices, which is the case in pricing lib
src/instruments/mod.rs:52
↓ 2 callers
Class
MarketData
src/risk/marketdata.rs:41
↓ 2 callers
Interface
PricerFactory
Pricers are always constructed using a pricer factory. This means that the code to create the pricer is independent of what sort of pricer it is.
src/pricers/mod.rs:20
↓ 2 callers
Interface
ReportGenerator
A report generator performs all the calculations needed to produce a report.
src/risk/mod.rs:173
↓ 1 callers
Class
Drc
Edges in the graph must be contained in our own subclass of Rc, so we can implement our serialize/deserialize methods on it.
src/core/dedup.rs:114
↓ 1 callers
Class
EveryDayCalendar
src/dates/calendar.rs:116
↓ 1 callers
Class
Qbox
Our own box type, so we can implement serialization and deserialization.
src/core/factories.rs:122
↓ 1 callers
Class
Qrc
Our own reference counted type, so we can implement serialization and deserialization.
src/core/factories.rs:65
↓ 1 callers
Class
RcDividendStream
src/data/divstream.rs:132
↓ 1 callers
Class
RcFixingTable
src/data/fixings.rs:114
↓ 1 callers
Class
RcMarketData
src/risk/marketdata.rs:140
↓ 1 callers
Class
StringOrStruct
This is a Visitor that forwards string types to T's `FromId` impl and forwards map types to T's `Deserialize` impl. The `PhantomData` is to keep the c
src/instruments/mod.rs:276
↓ 1 callers
Class
StringOrStruct
This is a Visitor that forwards string types to T's `FromId` impl and forwards map types to T's `Deserialize` impl. The `PhantomData` is to keep the c
src/core/factories.rs:480
↓ 1 callers
Class
StringOrStruct
This is a Visitor that forwards string types to T's `FromId` impl and forwards map types to T's `Deserialize` impl. The `PhantomData` is to keep the c
src/core/dedup.rs:255
↓ 1 callers
Class
VolByProbabilityCubicSplineSmile
src/data/volsurface.rs:827
↓ 1 callers
Class
VolByProbabilityFlatSmile
src/data/volsurface.rs:773
Class
A
src/core/factories.rs:192
Class
AnnualisedFlatBump
src/data/curves.rs:175
Interface
ApproxEq
Are two objects approximately equal? The two objects could be floating point numbers, or risk reports. Returns true if the objects are sufficiently cl
src/math/numerics.rs:18
Interface
ApproxEqReport
Redefine ApproxEqReport because Rust complains about circular type references otherwise
src/risk/mod.rs:145
Enum
B
src/core/factories.rs:198
Class
Basket
src/instruments/basket.rs:31
Class
Black76
The 1976 reformulation of the Black-Scholes formula, where the price of a European option is expressed in terms of the Forward and the Strike.
src/math/optionpricing.rs:7
Class
BlackDiffusion
src/models/blackdiffusion.rs:126
Class
BlackDiffusionFactory
src/models/blackdiffusion.rs:47
Enum
Bump
Enumeration spanning all bumps of market data
src/data/bump.rs:8
Enum
BumpDivs
Bump that defines all the supported bumps and risk transformations of a vol surface.
src/data/bumpdivs.rs:8
Enum
BumpSpot
src/data/bumpspot.rs:5
Class
BumpSpotDate
src/data/bumpspotdate.rs:9
Class
BumpTime
Bump that defines all the supported bumps to the spot date
src/data/bumptime.rs:4
Class
BumpTime
src/risk/bumptime.rs:20
Enum
BumpVol
src/data/bumpvol.rs:12
Enum
BumpYield
Bump that defines all the supported bumps and risk transformations of a rate curve such as a borrow curve or a yield curve.
src/data/bumpyield.rs:9
Interface
Bumpable
Interface that defines all bumps of simple underlying market data. This defines most risks that the analytics outputs. Most methods take a save parame
src/risk/mod.rs:34
Interface
BumpablePricingContext
src/risk/mod.rs:55
Interface
BumpablePricingContextClone
src/risk/mod.rs:62
Interface
Bumper
An interface for applying bumps
src/data/bump.rs:44
Class
BusinessDays
src/dates/rules.rs:75
Class
C
src/core/factories.rs:423
Interface
Calendar
Calendars define when business holidays are scheduled. They are used for business day volatility, settlement calculations, and the roll-out of schedul
src/dates/calendar.rs:19
Class
ConstantExpiryTimeEvolution
src/data/voldecorators.rs:22
Class
ContinuouslyCompoundedFlatBump
src/data/curves.rs:221
Class
CreditEntity
src/instruments/assets.rs:308
Class
CubicSpline
src/math/interpolation.rs:257
Class
CubicSplineInputs
src/math/interpolation.rs:270
Class
CubicSplineSmile
src/data/volsmile.rs:67
Class
DateDayFraction
src/dates/datetime.rs:84
Interface
DateRule
Date rules are used for rolling out schedules of dates and for adjusting dates to move them onto business dates.
src/dates/rules.rs:17
Class
DateTime
src/dates/datetime.rs:41
Interface
Dateable
Some instruments such as equities or fx rates have no expiry date. You can trade in or out of them at any time. Similarly, you can trade into a consta
src/instruments/mod.rs:381
Interface
Dated
Some instruments such as vanilla options or futures have an expiry date. Others, such as CMS rates or equities, have an expiry date when you know what
src/instruments/mod.rs:390
Class
Dedup
Technology to deduplicate directed acyclic graphs based on Rc pointers during serialization and deserialization.
src/core/dedup.rs:19
Enum
DedupControl
src/core/dedup.rs:86
Class
DeltaGamma
src/risk/deltagamma.rs:87
Class
DeltaGammaReport
src/risk/deltagamma.rs:27
Class
DeltaGammaReportGenerator
src/risk/deltagamma.rs:119
Class
DeltaGammaTolerances
src/risk/deltagamma.rs:97
Class
DependencyCollector
Collect the dependencies of an instrument
src/risk/dependencies.rs:11
Interface
DependencyContext
When an instrument reports its dependencies, it makes calls to a context. These calls should match the calls to the pricing context made during pricin
src/instruments/mod.rs:321
Interface
Discount
Low-level interfaces to market data Discount curve. Returns the log of the discount rather than the discount itself, as this is very often what we wan
src/data/interfaces.rs:8
Enum
DivAssumptions
src/data/volsurface.rs:267
Class
Dividend
src/data/divstream.rs:39
Class
DividendAccumulation
In order to use a dividend stream, we bootstrap its data into a vector of more instantly useable data, one instance for each distinct ex date. Note th
src/data/divstream.rs:168
Class
DividendBootstrap
src/data/divstream.rs:176
Class
DividendStream
src/data/divstream.rs:80
Class
DriftlessForward
Driftless forward, for example for a future, where the expectation on any date is the value today.
src/data/forward.rs:40
Class
Equity
src/instruments/assets.rs:179
Class
EquityForward
An equity forward has a spot, a discount rate which, together with a borrow, defines the rate of growth, plus a dividend stream.
src/data/forward.rs:82
Class
Error
src/core/qm.rs:13
Enum
Extrap
src/math/interpolation.rs:72
Class
Fixings
src/data/fixings.rs:156
Class
FlatSmile
src/data/volsmile.rs:36
Class
FlatVolSurface
src/data/volsurface.rs:407
Interface
FlyweightInterpolate
Interpolation with date or number for the abscissa and number for the ordinal. In this implementation, the array of points is supplied in the call to
src/math/interpolation.rs:58
Class
FlyweightLinear
Flyweight linear interpolation. In this interpolator, the data is kept externally, and passed into the interpolate function. This avoids the cost of c
src/math/interpolation.rs:196
Class
Fmt
src/facade/mod.rs:158
Class
Foo
src/dates/mod.rs:478
Interface
Forward
Forward curve
src/data/interfaces.rs:28
Interface
Forward
Forward curve. This represents the expectation value of some asset over time. It is implemented in different ways for futures (generally driftless) eq
src/data/forward.rs:13
Class
ForwardFromPriceable
Sometimes it is useful to treat a priceable as if it were a forward curve. The only issue is that a priceable takes a DateTime and a forward takes a d
src/instruments/mod.rs:446
Class
ForwardStartingEuropean
[derive(Clone, SerializeState, DeserializeState, Debug)] [serde(serialize_state = "HashMap<String, RcInstrument>")] [serde(deserialize_state = "HashMa
src/instruments/options.rs:206
Interface
FromId
Interface that fetches an instance of an object given its ID.
src/core/dedup.rs:237
Class
Handle
RAII class to encapsulate a handle from QuantMath, and prevent leaks.
src/cpp-test/quantmath_runner.cpp:15
Enum
Handle
src/facade/handle.rs:13
Class
ImpliedVol
Solves for implied volatility given a pricer. The pricer can be anything that gives a price with dependence on volatility, but analytic pricers work b
src/solvers/impliedvol.rs:13
Interface
InstanceId
Objects that can be deduplicated have to have a unique instance id
src/core/dedup.rs:96
Interface
Interpolable
To use interpolation, the types along the x axis must be Interpolable
src/math/interpolation.rs:13
Interface
Interpolate
Interpolation with date or number for the abscissa and number for the ordinal. In this implementation, the array of points is supplied in the construc
src/math/interpolation.rs:66
Class
InterpolatedForward
Forward as an interpolator. For example, this may be used for any asset including equities where we do not care about the dynamics. (Normally we repre
src/data/forward.rs:62
Class
Linear
src/math/interpolation.rs:224
Class
MapVisitor
src/data/fixings.rs:183
Class
ModifiedFollowing
src/dates/rules.rs:135
Interface
MonteCarloContext
Context for Monte-Carlo pricing. The most important thing this gives is the observations, both historical (fixings) and future (paths).
src/instruments/mod.rs:586
Interface
MonteCarloDependencies
Collects the dependencies needed for Monte-Carlo pricing
src/instruments/mod.rs:563
Interface
MonteCarloModel
Interface that must be implemented by a model in order to support Monte-Carlo pricing.
src/models/mod.rs:63
next →
1–100 of 167, ranked by callers