Skip to main content

Crate qs_backtest_api

Crate qs_backtest_api 

Source
Expand description

Logical contracts for the quant-system backtest service.

The default build contains no xrpc dependency. Enable the xrpc feature only in a process composition root that selects the current provider.

Structs§

AddProfileRequest
Request to add (or overwrite) a management profile at runtime.
AddProfileResponse
Response from adding a profile.
BacktestConfigMsg
Serializable backtest configuration sent by the client.
BacktestMultiRunSpec
Execution scope and inputs for a multi-profile comparison.
BacktestProgress
Structured progress for an asynchronous backtest job.
BacktestResultMsg
Serializable mirror of BacktestResult for wire transport.
BacktestRunSpec
Execution scope and inputs for one backtest run.
BacktestServiceProtocolError
BacktestStatusResponse
Status of a backtest job.
BootstrapConfigMsg
CalendarInputMsg
CalendarLimitsMsg
CancelBacktestRequest
Request cancellation of a backtest job.
CancelBacktestResponse
Response from cancelling a backtest job.
CloseReasonStatsMsg
Wire-safe mirror of CloseReasonStats.
ConfiguredStrategyOutputMsg
Strategy output returned with a configured run’s economic result.
ConfiguredStrategyRunMsg
One fully bound configured strategy document and the series backing its sources.
ConfiguredStrategyRunSpec
Execution scope for one configured strategy run over one symbol.
CostEventMsg
Wire-safe mirror of one commission or swap charge.
DeleteResultArtifactRequest
Delete a result artifact after a successful download.
DeleteResultArtifactResponse
Response from deleting a result artifact.
DurationStatsMsg
Wire-safe mirror of DurationStats.
EntryProfileRouteMsg
One exact entry-class route to a named or inline management profile.
EquityPoint
A single point on the equity curve.
EvaluationContextMsg
Provider/source identifiers carried into the evaluation result.
ExcludedInstrumentMsg
Bounded evidence for an instrument excluded during preparation.
ExcludedSignalRefMsg
Original input coordinates for one excluded signal.
FutureBacktestResultMsg
Format-versioned execution/accounting payload. Complex internal records remain JSON values so new additive fields do not require synchronized positional wire changes; the transport itself uses JsonCodec.
FutureQuoteConfigMsg
FutureQuoteV1 execution settings used by the backtest RPC methods.
GetBacktestResultRequest
Request the result of a completed backtest job.
GetBacktestResultResponse
Response containing the result of a completed backtest job.
GetBacktestStatusRequest
Request the current status of a backtest job.
GetResultArtifactChunkRequest
Request a raw byte chunk from a result artifact.
GetResultArtifactChunkResponse
Base64-encoded raw artifact bytes at the requested offset.
GetSearchResultRequest
Request for the output of a completed search job.
GetSearchResultResponse
Response carrying a search summary and the artifact holding its complete output.
HistoricalInputsMsg
InstrumentCostsMsg
Wire-safe commission and swap specification for one instrument.
ListProfilesResponse
Response listing all loaded management profiles.
ListSymbolsRequest
Request to list available data, optionally filtered.
ListSymbolsResponse
Response listing available market data in the store.
LocalMarketIntervalMsg
ManagementProfileMsg
Wire-safe management profile definition sent inline with a request.
MonthlyReturnMsg
Wire-safe mirror of MonthlyReturn.
MtmOutputSummaryMsg
Wire-safe mark-to-market output counts.
NamedSessionMsg
PendingOrderLifecycleEventMsg
Typed wire mirror of a FutureQuote pending-order lifecycle event.
PingResponse
Health check response with server status.
PortfolioInstanceMsg
One configured strategy instance of a portfolio run, trading one symbol against the shared account.
PortfolioInstanceOutputMsg
What one portfolio instance compiled, decided, and recorded.
PortfolioOutputMsg
Instance and supervisor output returned with a portfolio run’s shared economic result.
PortfolioRunSpec
Execution scope of a portfolio run: several configured instances, one account, and optional portfolio policies.
PositionFilterMsg
Typed position filters. Values within a field are ORed; populated fields and individual tag keys are ANDed.
PositionSummaryMsg
Wire-safe mirror of PositionSummary.
ProfileInfo
Summary of a management profile available on the server.
ProfileResult
Result for one profile in a multi-profile comparison.
ProviderEvaluationOptionsMsg
Typed provider-evaluation selection for canonical requests.
ReloadProfilesResponse
Response from reloading profiles from disk.
RemoveProfileRequest
Request to remove a management profile by name.
RemoveProfileResponse
Response from removing a profile.
ReplayAdmissionReportMsg
Preparation decisions, separate from parser outcomes and execution dispositions.
ResultArtifactRefMsg
Reference to a complete result JSON artifact.
RiskMetricsMsg
Wire-safe mirror of RiskMetrics.
RunBacktestMultiRequest
RunBacktestMultiResponse
Response from a multi-profile comparison run.
RunBacktestRequest
Strict FutureQuoteV1 request accepted by run_backtest.
RunBacktestResponse
Response from a single backtest run.
RunConfiguredStrategyRequest
Synchronous configured strategy run.
RunPortfolioRequest
Synchronous portfolio run.
SearchDirectFactoryMsg
SearchDirectFactoryPointMsg
SearchDirectPortfolioInstanceMsg
SearchExecutionVariantMsg
SearchPortfolioCandidateMsg
SearchResultMsg
Complete search output, always delivered as the job’s result artifact.
SearchRunSpec
Execution scope of a server-side parameter search over a strategy template and a space document.
SearchSelectedRerunMsg
SearchSummaryMsg
Counts that describe a completed search without its full output.
SearchWindowMsg
One labelled half-open evaluation window.
SourceBindingMsg
Historical series geometry for one configured logical source; the source always reads the request symbol.
SourceCoverageCountsMsg
Typed parser/source coverage supplied by clients that retain parse outcomes.
StreakStatsMsg
Wire-safe mirror of StreakStats.
SubmitBacktestRequest
Asynchronous FutureQuoteV1 submission.
SubmitBacktestResponse
Response from submitting a backtest job.
SubmitConfiguredStrategyRequest
Asynchronous configured strategy submission retained as a job.
SubmitPortfolioRequest
Asynchronous portfolio submission retained as a job.
SubmitSearchRequest
Asynchronous search submission retained as a job.
SubsetStatsMsg
Wire-safe mirror of SubsetStats.
SwapScheduleMsg
Wire-safe nightly swap magnitude plus the rollover calendar that charges it.
SymbolAvailability
One row of data availability info.
TradeResultMsg
Wire-safe mirror of TradeResult.
TradingCalendarMsg
WatchBacktestRequest
Subscribe to status snapshots for a retained backtest job.
WeeklyMarketIntervalMsg

Enums§

BacktestClientError
BacktestEvent
Server-streamed retained-job status and liveness events.
BreakdownDimensionMsg
Typed deterministic breakdown selector.
CalendarFeatureMsg
CalendarTimeBasisMsg
CommissionModelMsg
Wire-safe commission model.
EntryGeometryPolicyMsg
Wire-safe entry geometry policy.
EvaluationGroupFilterMsg
EvaluationPositionSideMsg
EvaluationSectionMsg
Selectable provider-evaluation report sections.
InstrumentExclusionReasonMsg
Why an instrument’s signals were excluded before replay.
MarketEntrySizingBasisMsg
Price basis used to size market entries.
MarketScheduleMsg
MtmOutputPolicyMsg
Wire-safe mark-to-market output retention policy.
PendingOrderLifecycleStateMsg
Wire-safe state for one pending-order lifecycle transition.
PositionRefMsg
Wire-safe position reference.
PriceBasisMsg
Price basis the bars of a configured logical source are built on.
ProfileRef
A profile reference: either by name or inline definition.
RawSignalMsg
Wire-safe signal that can represent any action, not just entries.
ResultDeliveryMsg
Requested delivery mode for a complete result JSON payload.
RuleConfigDefMsg
Wire-safe rule configuration definition.
SearchEvaluationRoleMsg
SearchFactoryParameterMsg
SearchWindowsMsg
Evaluation windows of a parameter search.
SessionScheduleMsg
SessionSpanMsg
SizingPolicyMsg
Wire-safe in-place account sizing policy.
StoplossModeMsg
Wire-safe stoploss mode enum.
SwapAmountMsg
Wire-safe nightly swap magnitude, where a negative value charges and a positive value credits.
TargetSelectionMsg
Wire-safe strict target selection.
TargetSourceMsg
Wire-safe source used to select or generate targets.
UnavailableInstrumentPolicyMsg
Handling of selected instruments that cannot be prepared for replay.

Constants§

RESULT_FORMAT_VERSION
Current format version for complete result JSON artifacts.

Traits§

BacktestAdminClient
Provider-neutral client port for runtime profile administration.
BacktestClient
Provider-neutral client port for the retained backtest-job workflow.
BacktestDiscoveryClient
Provider-neutral client port for profile and market-data discovery.
BacktestStrategyClient
Provider-neutral client port for configured strategy runs, portfolio runs, and server-side parameter searches.
BacktestSyncClient
Provider-neutral client port for finite synchronous backtest execution.

Type Aliases§

BacktestEventStream