interface
PnlAttribution
Public declaration. Read the signature and parameter/member contracts below; no additional behavior is inferred.
export interface PnlAttribution {
total: number;
delta: number;
gamma: number;
vega: number;
theta: number;
rho: number;
/** Second-order spot–vol cross term: `vanna·dS·dσ` (0 when `vanna` is absent). */
vanna: number;
/** Second-order vol-convexity term: `½·vomma·dσ²` (0 when `vomma` is absent). */
vomma: number;
/** Second-order spot–time cross term: `charm·dS·dt` (0 when `charm` is absent). */
charm: number;
/** Second-order vol–time cross term: `veta·dσ·dt` (0 when `veta` is absent). */
veta: number;
/** Second-order vol–rate cross term: `vera·dσ·dr` (0 when `vera` is absent). */
vera: number;
/** Second-order spot–rate cross term: `deltaRate·dS·dr` (0 when `deltaRate` is absent). */
deltaRate: number;
/** Second-order time–rate cross term: `thetaRate·dt·dr` (0 when `thetaRate` is absent). */
thetaRate: number;
/** Second-order rate-convexity term: `½·rhoConvexity·dr²` (0 when `rhoConvexity` is absent). */
rhoConvexity: number;
/** Second-order time-convexity term: `½·thetaConvexity·dt²` (0 when `thetaConvexity` is absent). */
thetaConvexity: number;
/** First-order dividend-carry term: `φ·dq` (0 when `phi` is absent). */
phi: number;
/** Residual = repriced − value − (the Greek terms); 0 for a pure Taylor reprice. */
other: number;
}Fields, parameters & returned members (17)
| Name / type | Meaning & unit | Optional / default |
|---|---|---|
charmnumber | Second-order spot–time cross term: `charm·dS·dt` (0 when `charm` is absent). unitless by name | Required / declared member No @default declared; consult the signature and description. |
deltanumber | unitless by name | Required / declared member No @default declared; consult the signature and description. |
deltaRatenumber | Second-order spot–rate cross term: `deltaRate·dS·dr` (0 when `deltaRate` is absent). decimal rate (0.05 = 5%) | Required / declared member No @default declared; consult the signature and description. |
gammanumber | unitless by name | Required / declared member No @default declared; consult the signature and description. |
othernumber | Residual = repriced − value − (the Greek terms); 0 for a pure Taylor reprice. unitless by name | Required / declared member No @default declared; consult the signature and description. |
phinumber | First-order dividend-carry term: `φ·dq` (0 when `phi` is absent). unitless by name | Required / declared member No @default declared; consult the signature and description. |
rhonumber | unitless by name | Required / declared member No @default declared; consult the signature and description. |
rhoConvexitynumber | Second-order rate-convexity term: `½·rhoConvexity·dr²` (0 when `rhoConvexity` is absent). unitless by name | Required / declared member No @default declared; consult the signature and description. |
thetanumber | unitless by name | Required / declared member No @default declared; consult the signature and description. |
thetaConvexitynumber | Second-order time-convexity term: `½·thetaConvexity·dt²` (0 when `thetaConvexity` is absent). unitless by name | Required / declared member No @default declared; consult the signature and description. |
thetaRatenumber | Second-order time–rate cross term: `thetaRate·dt·dr` (0 when `thetaRate` is absent). decimal rate (0.05 = 5%) | Required / declared member No @default declared; consult the signature and description. |
totalnumber | unitless by name | Required / declared member No @default declared; consult the signature and description. |
vannanumber | Second-order spot–vol cross term: `vanna·dS·dσ` (0 when `vanna` is absent). unitless by name | Required / declared member No @default declared; consult the signature and description. |
veganumber | unitless by name | Required / declared member No @default declared; consult the signature and description. |
veranumber | Second-order vol–rate cross term: `vera·dσ·dr` (0 when `vera` is absent). unitless by name | Required / declared member No @default declared; consult the signature and description. |
vetanumber | Second-order vol–time cross term: `veta·dσ·dt` (0 when `veta` is absent). unitless by name | Required / declared member No @default declared; consult the signature and description. |
vommanumber | Second-order vol-convexity term: `½·vomma·dσ²` (0 when `vomma` is absent). unitless by name | Required / declared member No @default declared; consult the signature and description. |
Stability, warnings & conventions
stable-by-law (pre-1.0; not a 1.0 stability guarantee)
Declared field units are shown above. “Unitless by name” means the name alone does not establish a unit, not that a financial quantity has none. Check source descriptions, conventions, and the returned diagnostics. Errors and warnings are part of the result contract.