{"slug":"grok-backtest-api-fly-dev-optimize-ccd685","title":"Grid-search up to 50 parameter combos of a backtest strategy; ranks by worst-hal","host":"grok-backtest-api.fly.dev","method":"POST","resource":"https://grok-backtest-api.fly.dev/optimize","category":"search","description":"Grid-search up to 50 parameter combos of a backtest strategy; ranks by worst-half (H1/H2) return with neighbourhood smoothing, flags overfitting, and recommends the most robust parameters rather than the best-fit ones.","price_listed":0.5,"price_asked":0.5,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":411,"reported_calls_30d":0,"reported_payers_30d":0,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"end":"2026-10-25","fee":0.009,"grid":{"atr_mult":[1.5,2,3],"lookback":[10,20,30],"risk_per_trade":[0.03,0.05]},"initial_capital":150,"slippage":0.002,"start":"2026-04-25","strategy":{"params":{"gate":"btc_ma50"},"type":"breakout"},"universe":{"mode":"point_in_time","top_n":30}},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"end":{"anyOf":[{"type":"string"},{"type":"null"}]},"fee":{"maximum":0.05,"minimum":0,"type":"number"},"grid":{"additionalProperties":{"items":{"anyOf":[{"type":"integer"},{"type":"number"},{"type":"string"},{"type":"null"}]},"type":"array"},"type":"object"},"initial_capital":{"exclusiveMinimum":0,"maximum":1000000000,"type":"number"},"rank_by":{"enum":["robust","return"],"type":"string"},"slippage":{"maximum":0.05,"minimum":0,"type":"number"},"start":{"anyOf":[{"type":"string"},{"type":"null"}]},"strategy":{"additionalProperties":false,"properties":{"params":{"additionalProperties":true,"type":"object"},"type":{"enum":["breakout","momentum","dip","ma_trend"],"type":"string"}},"required":["type"],"type":"object"},"universe":{"additionalProperties":false,"properties":{"coins":{"anyOf":[{"items":{"type":"string"},"maxItems":200,"type":"array"},{"type":"null"}]},"min_age_days":{"maximum":120,"minimum":0,"type":"integer"},"min_avg_dollar_volume":{"minimum":0,"type":"number"},"mode":{"enum":["point_in_time","current_top","fixed"],"type":"string"},"top_n":{"maximum":200,"minimum":5,"type":"integer"}},"type":"object"}},"required":["strategy","grid"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.5,"price_match":true,"latency_ms":411,"error":null}],"description_full":"Grid-search up to 50 parameter combos of a backtest strategy; ranks by worst-half (H1/H2) return with neighbourhood smoothing, flags overfitting, and recommends the most robust parameters rather than the best-fit ones.","last_updated":"2026-10-26T15:43:37.535Z","schemes":["exact"]}