Validate and fix OpenAlgo history API payloads before strategy runs. Use when /api/v1/history returns 400/404, symbols are missing, intervals are invalid, or master contracts need refreshing.
/api/v1/history errors (400/404, missing fields, symbol not found).symbol, exchange, interval (e.g., 1m/3m/5m/15m/30m/1h/4h/D), start_date, end_date (ISO), and any required resolution/from/to fields per endpoint variant.symbol: Exact broker symbol (e.g., NIFTY, BANKNIFTY, or contract code).exchange: NSE, NFO, MCX, etc.interval: Use allowed values; avoid raw seconds unless API supports it.start_date and in (or datetime ISO if needed).end_dateYYYY-MM-DDresolution, from, to if the endpoint expects TradingView-style params.curl -X POST http://127.0.0.1:5001/api/v1/history \
-H "Content-Type: application/json" \
-d '{
"symbol": "NIFTY",
"exchange": "NSE",
"interval": "5m",
"start_date": "2026-01-29",
"end_date": "2026-01-29",
"resolution": "5"
}'
5m) when config is missing.