history-payload-validator
Installation
SKILL.md
History Payload Validator
Quick Start
- Check logs for
/api/v1/historyerrors (400/404, missing fields, symbol not found). - Verify payload has:
symbol,exchange,interval(e.g., 1m/3m/5m/15m/30m/1h/4h/D),start_date,end_date(ISO), and any requiredresolution/from/tofields per endpoint variant. - Confirm master contracts are present for the exchange/symbol before requesting history.
- Send a manual test call; only start strategies after it succeeds.
Required Fields Checklist
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.- Date range:
start_dateandend_dateinYYYY-MM-DD(or datetime ISO if needed). - Optional legacy fields: include
resolution,from,toif the endpoint expects TradingView-style params.
Master Contract Precheck
- Ensure master contracts exist for the exchange:
- If missing: run the platform’s master contract download/refresh step.
- Re-test history after refresh.