backtest_strategy · Backtest a strategy on any token
read-onlyBacktest any Robinhood Chain token with a Ticker Spring strategy template on demand, on up to 60 days of hourly prices: walk-forward (settings picked day by day from earlier days only, then held 7 days) or fixed settings (a named variant, your own settings, or a published shape). Settings: dip-grid and ladder-strategy {parts, step, takeProfit} (fractions, take-profit after fees) or a shape {repeat, legs: [{buyOffsetTicks, sellOffsetTicks, weightBps}]}; take-profit-ladder {takeProfits}; dca-average {levels, step, sells}. Returns past results per start, the latest start's trades, data flags, the run parameters for the prepare tools and the relative shape. Every run is recorded in Ticker Spring's attempt log (token, strategy, settings hash, shape hash); runs through this server carry no signed identity, so they count market-wide only. Six runs a minute. Results are Ticker Spring's own backtests on Robinhood Chain (chain id 4663) in USDG: past results, labelled as such, never a promise.
Input schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"token": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$",
"description": "The token to backtest."
},
"strategy": {
"type": "string",
"enum": [
"dip-grid",
"take-profit-ladder",
"ladder-strategy",
"dca-average"
],
"description": "dip-grid, take-profit-ladder, ladder-strategy or dca-average."
},
"variant": {
"description": "Optional: a named variant such as \"5x10-50\" (5 buys 10% apart, +50% after fees).",
"type": "string",
"pattern": "^[a-z0-9-]{1,20}$"
},
"settings": {
"description": "Optional fixed settings (see the description); without variant or settings the backtest is walk-forward.",
"type": "object",
"properties": {
"parts": {
"type": "integer",
"minimum": 1,
"maximum": 16
},
"step": {
"type": "number",
"minimum": 0.005,
"maximum": 0.5
},
"takeProfit": {
"type": "number",
"minimum": 0.01,
"maximum": 10
},
"takeProfits": {
"minItems": 1,
"maxItems": 5,
"type": "array",
"items": {
"type": "number",
"minimum": 0.01,
"maximum": 10
}
},
"levels": {
"type": "integer",
"minimum": 1,
"maximum": 16
},
"sells": {
"minItems": 1,
"maxItems": 3,
"type": "array",
"items": {
"type": "number",
"minimum": 0.01,
"maximum": 10
}
},
"repeat": {
"type": "boolean"
},
"legs": {
"minItems": 1,
"maxItems": 16,
"type": "array",
"items": {
"type": "object",
"properties": {
"buyOffsetTicks": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"sellOffsetTicks": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"weightBps": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"buyOffsetTicks",
"sellOffsetTicks",
"weightBps"
],
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"budgetUsd": {
"default": "500",
"description": "USDG per start (default \"500\").",
"type": "string",
"maxLength": 40,
"pattern": "^(0|[1-9][0-9]{0,17})(\\.[0-9]{1,18})?$"
},
"days": {
"default": 45,
"description": "Days of hourly history, 21 to 60 (default 45).",
"type": "integer",
"minimum": 21,
"maximum": 60
},
"identity": {
"description": "Optional: who is testing (a wallet, or the agent tag from your brief). Recorded as given, without verification.",
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"wallet",
"agentTag"
]
},
"value": {
"type": "string",
"maxLength": 42
}
},
"required": [
"kind",
"value"
],
"additionalProperties": false
}
},
"required": [
"token",
"strategy"
]
}