{"slug":"agents-x402stock-xyz-api-v1-backtest-ticker-946b14","title":"Backtests a simple rule on a US stock and returns a finished report PNG","host":"agents.x402stock.xyz","method":"GET","resource":"https://agents.x402stock.xyz/api/v1/backtest/:ticker","category":"market","description":"Backtests a simple rule on a US stock and returns a finished report PNG. Runs an SMA crossover (?strategy=sma_cross&fast=50&slow=200) or RSI mean-reversion (?strategy=rsi_reversion&period=14&lower=30&upper=70) over daily history (?years=, max 5), no lookahead, rendered as an equity curve vs buy & ho","price_listed":0.5,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":2,"reported_payers_30d":1,"networks":["eip155:8453","zeroclick:card"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","pathParams":{"ticker":"AAPL"},"queryParams":{},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"pathParams":{"ticker":{"type":"string"},"type":"object"},"queryParams":{"properties":{"capital":{"default":10000,"exclusiveMinimum":0,"maximum":1000000000,"type":"number"},"fast":{"default":50,"exclusiveMinimum":0,"maximum":200,"type":"integer"},"lower":{"default":30,"maximum":99,"minimum":1,"type":"number"},"period":{"default":14,"exclusiveMinimum":0,"maximum":100,"type":"integer"},"slow":{"default":200,"exclusiveMinimum":0,"maximum":400,"type":"integer"},"strategy":{"default":"sma_cross","enum":["sma_cross","rsi_reversion"],"type":"string"},"upper":{"default":70,"maximum":99,"minimum":1,"type":"number"},"years":{"default":3,"exclusiveMinimum":0,"maximum":5,"type":"number"}},"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"Backtests a simple rule on a US stock and returns a finished report PNG. Runs an SMA crossover (?strategy=sma_cross&fast=50&slow=200) or RSI mean-reversion (?strategy=rsi_reversion&period=14&lower=30&upper=70) over daily history (?years=, max 5), no lookahead, rendered as an equity curve vs buy & hold. Returns full stats plus a hosted `artifact.png_url`. From x402stock","last_updated":"2026-08-26T20:34:52.455Z","schemes":["exact"]}