history-payload-validator

History Payload Validator

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "history-payload-validator" with this command: npx skills add sayujks0071/antidhan/sayujks0071-antidhan-history-payload-validator

History Payload Validator

Quick Start

  • Check logs for /api/v1/history errors (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 required resolution /from /to fields 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_date and end_date in YYYY-MM-DD (or datetime ISO if needed).

  • Optional legacy fields: include resolution , from , to if 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.

Manual Test Template

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" }'

  • If this passes, align strategy payload builders to match.

Debug Workflow

  • Read the failing log entry to see which fields were rejected.

  • Open the strategy payload builder and confirm every required field is populated.

  • Validate interval value against allowed list.

  • Confirm symbol exists in master contracts (and exchange matches).

  • Re-run the manual test; then restart the strategy.

Preventive Steps

  • Add unit-style checks in strategy code to assert payload completeness before calling history.

  • Default to a safe interval (e.g., 5m ) when config is missing.

  • Log the payload (without secrets) when a 400 occurs to speed up triage.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

risk-management

No summary provided by upstream source.

Repository SourceNeeds Review
General

strategy-startup-guardrails

No summary provided by upstream source.

Repository SourceNeeds Review
General

integration-patterns

No summary provided by upstream source.

Repository SourceNeeds Review
General

pr-49-review

No summary provided by upstream source.

Repository SourceNeeds Review