Backtest
No description
type Backtest implements Node {
summary: BacktestSummary
overfitScore: OverfitScore
resourceUsage: ResourceUsageAggregation
id: ID!
deletedAt: Time
status: BacktestTaskStatus!
result: Map
errorMessage: String
logs: String
strategyID: ID!
runnerID: ID!
createdAt: Time!
updatedAt: Time!
completedAt: Time
startDate: Time
endDate: Time
config: Map
splitGroupID: ID
splitRole: BacktestSplitRole
splitIndex: Int
strategy: Strategy!
runner: BotRunner!
simulations(
after: Cursor
first: Int
before: Cursor
last: Int
orderBy: [SimulationOrder!]
where: SimulationWhereInput
): SimulationConnection!
legibleStatus: EntityStatus!
}
Fields
Backtest.summary ● BacktestSummary object
Typed summary of key backtest metrics extracted from result
Backtest.overfitScore ● OverfitScore object
Advisory overfit-risk score. Computed by pairing this backtest with its split
siblings (in-sample vs out-of-sample) or gathering its walk-forward windows by
split_group_id. Null for a standalone backtest, or until every sibling has
completed. Advisory only — never gates a run. A curated safe aggregate (like
summary); parent-node access already gates reaching it.
Backtest.resourceUsage ● ResourceUsageAggregation object
Total resource usage for this backtest execution Only populated if the backtest ran on a runner with billing enabled
Backtest.id ● ID! non-null scalar
Backtest.deletedAt ● Time scalar
Soft-delete timestamp. If set, record is considered deleted.
Backtest.status ● BacktestTaskStatus! non-null enum
Task status
Backtest.result ● Map scalar
Backtest result data (metrics, logs, trades, etc.)
Backtest.errorMessage ● String scalar
Error message if backtest failed
Backtest.logs ● String scalar
Container logs from backtest execution
Backtest.strategyID ● ID! non-null scalar
Foreign key to strategy
Backtest.runnerID ● ID! non-null scalar
Foreign key to runner
Backtest.createdAt ● Time! non-null scalar
Backtest.updatedAt ● Time! non-null scalar
Backtest.completedAt ● Time scalar
Completion timestamp
Backtest.startDate ● Time scalar
Backtest start date (beginning of time range)
Backtest.endDate ● Time scalar
Backtest end date (end of time range)
Backtest.config ● Map scalar
Backtest-specific configuration overrides (exchange, dry_run, etc.)
Backtest.splitGroupID ● ID scalar
Groups backtests created together as a validation set (split pair / walk-forward windows). Nil for a standalone backtest.
Backtest.splitRole ● BacktestSplitRole enum
Role within the split group: in_sample, out_of_sample, or wf_window. Nil for a standalone backtest.
Backtest.splitIndex ● Int scalar
Order of this backtest within its walk-forward window set (0-based). Nil unless a walk-forward window.
Backtest.strategy ● Strategy! non-null object
Backtest.runner ● BotRunner! non-null object
Backtest.simulations ● SimulationConnection! non-null object
Backtest.simulations.after ● Cursor scalar
Returns the elements in the list that come after the specified cursor.
Backtest.simulations.first ● Int scalar
Returns the first _n_ elements from the list.
Backtest.simulations.before ● Cursor scalar
Returns the elements in the list that come before the specified cursor.
Backtest.simulations.last ● Int scalar
Returns the last _n_ elements from the list.
Backtest.simulations.orderBy ● [SimulationOrder!] list input
Ordering options for Simulations returned from the connection.
Backtest.simulations.where ● SimulationWhereInput input
Filtering options for Simulations returned from the connection.
Backtest.legibleStatus ● EntityStatus! non-null object
Interfaces
Node interface
An object with an ID. Follows the Relay Global Object Identification Specification
Returned By
backtestChanged subscription ● backtestProgress subscription ● orgBacktestChanged subscription ● runBacktest mutation ● runBacktestWithSplit mutation ● runWalkForward mutation ● stopBacktest mutation
Member Of
BacktestEdge object ● Simulation object