/shorts.v1alpha1.StrategyService/GetBacktestRunGetBacktestRun
One canonical backtest run: the live version's published run (run_id 0), or a canonical run by id. A variant run, a gate-refused run or an unknown id is NotFound. A not-computable outcome fetched by id returns its stored state. The series is daily for windows of 500 sessions or fewer, weekly otherwise (series_resolution says which). Public and cached per instance.
Parameters
Define the version of the Connect protocol
Define the timeout, in ms
Request Body
Request for GetBacktestRun.
"weekly" (default) or "daily". Daily is served for windows of 500 sessions or fewer. (proto string)
0: the published run of the live version. Otherwise a canonical run of this strategy. (proto int64)
Required: a canonical strategy id. (proto string)
since_2019_05 (default) | since_2023 | trailing_12m | live. live needs a paper track. (proto string)
Responses
Response for GetBacktestRun.
(proto shorts.v1alpha1.BacktestRun)
Annual table of the since-May-2019 chain. (proto shorts.v1alpha1.AnnualReturn)
not_computable: "" when the 50% threshold was never met. (proto string)
not_computable: the measured universe share, when measured. (proto double)
Both coverage measures, by year. (proto shorts.v1alpha1.CoverageYear)
Both coverage measures, by month. (proto shorts.v1alpha1.CoverageMonth)
Data-quality notes of the run, as prose. (proto string)
The run's data-quality counts, as fields. (proto shorts.v1alpha1.DataQuality)
Printed beside the figures. (proto string)
The run's engine is the running engine. (proto bool)
not_computable: the measured label; "" when none. (proto string)
The fundamentals policy, in words the surfaces print. (proto string)
(proto bool)
Absent for run_required, running and not_computable. (proto shorts.v1alpha1.BacktestRunIdentity)
The diff note against the previous run; "" when none. (proto string)
The live canonical version now. (proto shorts.v1alpha1.StrategyVersionRef)
Monthly table of the since-May-2019 chain. (proto shorts.v1alpha1.MonthlyReturn)
The engine versions the paper track was written by, in order. (proto shorts.v1alpha1.EngineSegment)
The paper track's actual first recorded session; "" when the run has none. (proto string)
The recipe prose, preface first. (proto shorts.v1alpha1.RecipeLines)
"Replay agrees: 14 of 15 trades", or why it is not comparable. (proto string)
The run's rules and recipe are the live ones. (proto bool)
running: when the request started, RFC 3339. (proto string)
The five sensitivity runs of the canonical run. (proto shorts.v1alpha1.Sensitivity)
The served window's points: daily or weekly, at most 500. (proto shorts.v1alpha1.SeriesPoint)
"daily" or "weekly": what the series carries. (proto string)
published | approximate | run_required | running | not_computable. (proto string)
Why the state is what it is, in words. (proto string)
(proto string)
(proto shorts.v1alpha1.Survivorship)
Closed trades that exited before live_from (in-sample). (proto shorts.v1alpha1.TradeSummary)
The window the series and window tables are served for. (proto string)
Chained windows (5.8). (proto shorts.v1alpha1.WindowMetrics)
Error type returned by Connect: https://connectrpc.com/docs/go/errors/#http-representation
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
A list of messages that carry the error details. There is no limit on the number of messages.
Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details.
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
curl -X POST "https://api.shorted.com.au/shorts.v1alpha1.StrategyService/GetBacktestRun" \
-H "Content-Type: application/json" \
-d '{
"resolution": "string",
"runId": null,
"strategyId": "string",
"window": "string"
}'curl -X POST "https://api.shorted.com.au/shorts.v1alpha1.StrategyService/GetBacktestRun" \
-H "Content-Type: application/json" \
-d '{
"resolution": "string",
"runId": null,
"strategyId": "string",
"window": "string"
}'