history-payload-validator

Validate and fix OpenAlgo history API payloads before strategy runs.

1|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/sayujks0071/probable-fiesta --skill history-payload-validator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: history-payload-validator
Source: https://github.com/sayujks0071/probable-fiesta/tree/main/.cursor/skills/history-payload-validator
Command: npx skills add https://github.com/sayujks0071/probable-fiesta --skill history-payload-validator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

OpenAlgo history API payloads frequently fail validation, causing strategy runs to error or fetch incorrect data. This skill validates required fields, ensures proper date ranges, and prechecks master contracts to prevent failed history requests.

Core Features & Use Cases

  • Validation of required fields: ensure symbol, exchange, interval, start_date, and end_date are present.
  • Date range and field sanitization: normalize formats and catch invalid values before dispatch.
  • Master contract prechecks: verify presence of master contracts for the target exchange/symbol and refresh if needed.

Quick Start

Run a payload validation pass against your history endpoint to verify required fields are present and correctly formatted, then retry the history call.

Frequently Asked Questions about history-payload-validator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why does my OpenAlgo history API request fail with a 400 error during a strategy run?

OpenAlgo history API requests fail with 400 errors when required fields like symbol, exchange, interval, start_date, or end_date are missing. Validating the payload beforehand ensures these fields are present and properly formatted to prevent failed runs.

How do I validate an OpenAlgo history payload before fetching data?

Run a validation pass against your history endpoint to check that required fields are present, normalize date ranges, and sanitize values. This precheck prevents invalid data from reaching the API and stops execution errors before dispatch.

Does OpenAlgo history validation support legacy fields like resolution and from?

OpenAlgo history validation supports legacy fields like resolution and from/to as applicable. It enforces the standard required fields first, while allowing optional legacy parameters to maintain compatibility with older payload structures.

Can I validate history payloads for multiple exchanges like NSE, NFO, and MCX?

History payload validation applies across NSE, NFO, and MCX workflows. It prechecks the master contracts for the target exchange and symbol, refreshing them if needed, to ensure data requests are valid before execution.

What causes missing data fields in OpenAlgo history requests?

Missing data fields in OpenAlgo history requests are caused by incomplete payloads or outdated master contracts. Validating required fields and prechecking master contracts for the target exchange resolves these gaps before the API call is made.

How do I fix invalid interval errors in OpenAlgo API history requests?

Invalid interval errors occur when the interval field in the history payload is missing or incorrectly formatted. Field sanitization during payload validation normalizes the format and catches invalid values before the request is dispatched.