artifact
AnalysisArtifact | unitless by name | Required / declared member No @default declared; consult the signature and description. |
artifact.artifactType
string | Dot-namespaced artifact type, e.g. `'options.chain-analysis'` — names the result schema. unitless by name | Required / declared member No @default declared; consult the signature and description. |
artifact.conventionsVersion
string | The library conventions revision the artifact was CREATED under — stamped from core's
`CONVENTIONS_VERSION` (the market snapshot's law, one law), never an echo of the result and
never caller-set. Covered by the id; validated as a non-empty string on read. unitless by name | Required / declared member No @default declared; consult the signature and description. |
artifact.createdFrom
string[] | Parent artifact ids this one was derived from, oldest first. unitless by name | Optional No @default declared; consult the signature and description. |
artifact.id
string | Content hash of the body (everything but `id` and `provenance`) — stamped at creation. unitless by name | Required / declared member No @default declared; consult the signature and description. |
artifact.inputs
import('@insiderfinance/totalfinance/core/artifacts').ArtifactInputs | unitless by name | Required / declared member No @default declared; consult the signature and description. |
artifact.inputs.inputsHash
string | Hash of everything replay needs: `{ snapshotHash, parameters }` — stamped, not caller-set,
and RECOMPUTED from the stored fields on every validation pass (create and read), so a
tampered hash or tampered inputs are refused even when the outer id was re-minted to match. unitless by name | Required / declared member No @default declared; consult the signature and description. |
artifact.inputs.parameters
unknown | The small, JSON-safe call parameters, embedded verbatim. Reference big inputs via tables. unitless by name | Optional No @default declared; consult the signature and description. |
artifact.inputs.snapshotHash
string | `marketSnapshotContentHash(...)` of the snapshot the analysis read, when one was used. unitless by name | Optional No @default declared; consult the signature and description. |
artifact.kind
'totalfinance.analysis-artifact' | unitless by name | Required / declared member No @default declared; consult the signature and description. |
artifact.producedBy
import('@insiderfinance/totalfinance/core/artifacts').ArtifactProducedBy | unitless by name | Required / declared member No @default declared; consult the signature and description. |
artifact.producedBy.libraryVersion
string | The TotalFinance version that produced it, when the caller knows it (e.g. from package.json). unitless by name | Optional No @default declared; consult the signature and description. |
artifact.producedBy.operation
string | The public operation name, e.g. `'analyzeChain'` or `'options.blackScholes.explain'`. unitless by name | Required / declared member No @default declared; consult the signature and description. |
artifact.provenance
Provenance | Data lineage, caller-supplied, outside the id (labels are not identity). unitless by name | Optional No @default declared; consult the signature and description. |
artifact.provenance.asOf
number | an instant: epoch milliseconds or a YYYY-MM-DD / zoned ISO string (the resolveAsOf convention) | Optional No @default declared; consult the signature and description. |
artifact.provenance.dataset
string | unitless by name | Optional No @default declared; consult the signature and description. |
artifact.provenance.provider
string | unitless by name | Optional No @default declared; consult the signature and description. |
artifact.provenance.receivedAt
number | unitless by name | Optional No @default declared; consult the signature and description. |
artifact.provenance.requestId
string | unitless by name | Optional No @default declared; consult the signature and description. |
artifact.provenance.sourceVersion
string | unitless by name | Optional No @default declared; consult the signature and description. |
artifact.provenance.warnings
QuantWarning[] | unitless by name | Optional No @default declared; consult the signature and description. |
artifact.result
Record<string, unknown> | The producing call's return value, verbatim: `{ …, assumptions, diagnostics }`. unitless by name | Required / declared member No @default declared; consult the signature and description. |
artifact.schemaVersion
number | unitless by name | Required / declared member No @default declared; consult the signature and description. |
artifact.tables
Record<string, TableHandle> | Named large-table references — rows live where storage puts them, identity lives here. unitless by name | Optional No @default declared; consult the signature and description. |
migrationsApplied
AppliedMigration[] | unitless by name | Required / declared member No @default declared; consult the signature and description. |
modelMigrationsApplied
AppliedMigration[] | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report
BacktestRunReport<Kind> | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.assumptions
{ conventionsVersion: string; embeddedRowLimit: number; inputPolicy: 'embedded' | 'referenced'; kind: Kind; modelPolicy: string; nonReplayableField: string | null; operation: string; projection: string; replayable: boolean; runVersion: number; } | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.assumptions.conventionsVersion
string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.assumptions.embeddedRowLimit
number | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.assumptions.inputPolicy
'embedded' | 'referenced' | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.assumptions.kind
Kind | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.assumptions.modelPolicy
string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.assumptions.nonReplayableField
string | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.assumptions.operation
string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.assumptions.projection
string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.assumptions.replayable
boolean | `false` exactly when a caller function participated. unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.assumptions.runVersion
number | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.diagnostics
{ embeddedRows: number; referencedRows: number; runWarningCount: number; warnings: QuantWarning[]; } | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.diagnostics.embeddedRows
number | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.diagnostics.referencedRows
number | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.diagnostics.runWarningCount
number | count (integer) | Required / declared member No @default declared; consult the signature and description. |
report.diagnostics.warnings
QuantWarning[] | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.execution
{ completed: true; } | Reserved (Decision 8): a cooperative checkpoint/resume lands in Stage 7B without changing the format. unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.execution.completed
true | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.hygiene
BacktestHygieneBlock | null | The caller's hygiene block (single runs) or the grid's own verdicts (grids), verbatim. unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.hygiene.backtestOverfitting
Record<string, unknown> | unitless by name | Optional No @default declared; consult the signature and description. |
report.hygiene.deflatedSharpe
Record<string, unknown> | unitless by name | Optional No @default declared; consult the signature and description. |
report.hygiene.researchProtocol
Record<string, unknown> | unitless by name | Optional No @default declared; consult the signature and description. |
report.identity
BacktestRunIdentity | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.annualization
{ periodsPerYear: number; riskFreeRate: number; } | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.annualization.periodsPerYear
number | per year (count) | Required / declared member No @default declared; consult the signature and description. |
report.identity.annualization.riskFreeRate
number | decimal rate (0.05 = 5%) | Required / declared member No @default declared; consult the signature and description. |
report.identity.baseCurrency
string | ISO-4217 currency code | Required / declared member No @default declared; consult the signature and description. |
report.identity.benchmark
boolean | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.calendar
{ firstMarkTimestampMs: number | null; lastMarkTimestampMs: number | null; sessions: number; } | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.calendar.firstMarkTimestampMs
number | null | epoch milliseconds (UTC instant) | Required / declared member No @default declared; consult the signature and description. |
report.identity.calendar.lastMarkTimestampMs
number | null | epoch milliseconds (UTC instant) | Required / declared member No @default declared; consult the signature and description. |
report.identity.calendar.sessions
number | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.childRunIds
string[] | null | Every child run id, in variation order (grids only). unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.conventions
{ conventionsVersion: string; pricing: string; sessionInstantConvention: string; } | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.conventions.conventionsVersion
string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.conventions.pricing
string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.conventions.sessionInstantConvention
string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.engine
{ operation: string; runVersion: number; } | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.engine.operation
string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.engine.runVersion
number | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.initialCapital
number | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.models
RecordedModels | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.commission
string | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.execution
ExecutionPolicyDescription | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.execution.ambiguity
import('@insiderfinance/totalfinance/backtest/execution').AmbiguityPolicy | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.execution.costs
{ borrow: string | null; commission: string; latencySessions: number | null; marketImpact: string | null; participation: number | null; slippage: string; spread: string | null; } | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.execution.costs.borrow
string | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.execution.costs.commission
string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.execution.costs.latencySessions
number | null | trading sessions | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.execution.costs.marketImpact
string | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.execution.costs.participation
number | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.execution.costs.slippage
string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.execution.costs.spread
string | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.execution.fill
{ label: string; version: string; } | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.execution.fill.label
string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.execution.fill.version
string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.execution.label
string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.execution.lockedCrossed
import('@insiderfinance/totalfinance/backtest/execution').LockedCrossedPolicy | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.execution.margin
import('@insiderfinance/totalfinance/backtest/execution').MarginPolicy | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.execution.margin.buyingPowerMultiplier
number | Gross notional an account may hold per unit of equity (1 = cash account). decimal fraction / multiple | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.execution.margin.forcedLiquidation
import('@insiderfinance/totalfinance/backtest/execution').ForcedLiquidationPolicy | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.execution.margin.initialMarginRate
number | Fraction of a new position's notional that must be equity at entry. decimal rate (0.05 = 5%) | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.execution.margin.maintenanceMarginRate
number | Fraction of gross notional that must remain equity after every fold. decimal rate (0.05 = 5%) | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.execution.observation
'quote' | 'bar' | 'trade' | 'order-book' | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.execution.partialFills
import('@insiderfinance/totalfinance/backtest/execution').PartialFillPolicy | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.execution.queue
import('@insiderfinance/totalfinance/backtest/execution').QueueModel | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.execution.realism
'simplified' | 'declared' | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.execution.sessions
{ auction: 'ignore' | 'open-close-only' | null; halts: number; priceLimits: number; } | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.execution.sessions.auction
'ignore' | 'open-close-only' | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.execution.sessions.halts
number | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.execution.sessions.priceLimits
number | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.execution.staleQuotes
import('@insiderfinance/totalfinance/backtest/execution').StaleQuotePolicy | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.execution.staleQuotes.behavior
'reject' | 'fill-at-last' | `reject` refuses the run (`backtest.stale_quote`); `fill-at-last` fills at the stale quote and reports it. unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.execution.staleQuotes.maximumAgeMs
number | null | A quote older than this at the decision instant is stale; `null` = never stale. milliseconds | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.execution.timeInForce
{ default: import('@insiderfinance/totalfinance/core').TimeInForce; expireAtSessionClose: boolean; } | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.execution.timeInForce.default
import('@insiderfinance/totalfinance/core').TimeInForce | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.execution.timeInForce.expireAtSessionClose
boolean | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.models.slippage
string | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.pointInTimePolicy
string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.recipe
{ recipeName: string; recipeVersion: number; } | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.recipe.recipeName
string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.recipe.recipeVersion
number | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.runId
string | The engine's content-addressed run id (the sweep id for a grid). unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.seed
number | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.strategy
Record<string, unknown> | The signal as the engine disclosed it (`assumptions.signal`). unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.universeHistoryHash
string | Content hash of the universe history's member rows. unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.universeId
string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.identity.variations
{ path: string; values: unknown[]; }[] | null | The grid's axes (grids only). unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.inputs
Record<string, unknown> | The request with bulk row sets embedded or referenced, callbacks omitted, models by description. unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.kind
Kind | unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.referencedData
Record<string, TableHandle> | Table references for every row set that was not embedded, keyed by label (`dataset.returns`, `run.holdings`). unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.run
Record<string, unknown> | The verb's result verbatim, with referenced result row sets replaced by their table handles. unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.runHash
string | `contentHash` of the stored run (the projection above) — the run's identity. unitless by name | Required / declared member No @default declared; consult the signature and description. |
report.runVersion
number | unitless by name | Required / declared member No @default declared; consult the signature and description. |
restoredRowSets
string[] | Labels whose referenced rows were supplied, verified by hash, and restored into `report`. unitless by name | Required / declared member No @default declared; consult the signature and description. |