history-payload-validator
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.
More from sayujks0071/antidhan
trading-strategy-development
Create and modify trading strategies for OpenAlgo with proper structure, risk management, entry/exit logic, and position management. Use when developing new strategies, modifying existing ones, debugging strategy logic, or implementing trading signals.
12risk-management
Implement and review risk controls, position sizing, portfolio heat limits, stop losses, and risk monitoring. Use when implementing risk management, reviewing risk controls, calculating position sizes, or analyzing portfolio risk exposure.
7trading-operations
Daily trading operations, monitoring, troubleshooting, deployment, and system health checks. Use when starting trading sessions, monitoring strategies, troubleshooting issues, checking system status, or deploying strategies.
7pr-49-review
Reviews pull request #49 for OpenAlgo observability changes, focusing on risks, security, and test coverage. Use when analyzing PR #49 or when the user asks about the local observability stack changes.
6log-monitoring
Monitor current logs in real-time, track log file sizes, watch for new entries, and check log health across system and strategy logs. Use when monitoring live logs, checking log status, watching for errors, or tracking log file growth.
6plan-based-skill-builder
Builds Cursor skills from plan documents by analyzing workflows, extracting key instructions, and creating structured skill files. Use when creating skills from restart plans, deployment plans, prioritization plans, retest plans, or any structured plan documents.
6