downloadhistoricdata

Download and cache historic OHLC and feature data into CSV files.

Updated Feb 5, 2024
One-click install
npx skills add https://github.com/mailashishrawat/ml --skill downloadhistoricdata
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: downloadhistoricdata
Source: https://github.com/mailashishrawat/ml/tree/main/code/anthropic/tradingagent/.claude/skills/downloadhistoricdata
Command: npx skills add https://github.com/mailashishrawat/ml --skill downloadhistoricdata

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires Read, Bash, Write, WebFetch, mcp__kite__search_instruments, mcp__kite__get_historical_data, mcp__kite__login, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the download of historical stock OHLC and features, making it easy to access and process data for backtesting and analysis.

Core Features & Use Cases

  • Ad-hoc Data Downloader: Fetches historic OHLC and stock feature data.
  • Flexible Inputs: Supports date ranges, stock lists, and indicators.
  • Output to CSV: Generates self-contained CSV files with meta information.
  • Use Case: A user could request the download of the past 6 months of data for the 'nifty50' index.

Quick Start

Use the downloadhistoricdata skill to fetch the historic OHLC data for the 'nifty50' index from the past 6 months.

Frequently Asked Questions about downloadhistoricdata

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

FAQPage Schema
How do I download historical OHLC stock data for backtesting?

You can download historic OHLC data for backtesting by specifying a stock list and date range. This Skill fetches data from stock APIs and generates CSV files containing extended features for analysis.

Can I fetch historic stock data for a specific index like nifty50?

Yes, you can fetch historic data for indices like nifty50 by providing the index name and desired date range. The Skill processes these inputs to download and cache the relevant OHLC data.

Do I need a Kite login to download historic OHLC data?

Yes, a Kite login is required to authenticate and fetch historic OHLC data. The Skill uses Kite API endpoints to search instruments and retrieve historical data for your specified stocks.

What format is the downloaded historic stock data saved in?

Downloaded historic stock data is output as self-contained CSV files. These files include meta information and extended features, making them directly usable for backtesting and analysis.

What are the limitations of using cached historic data for stock analysis?

Cached historic data is limited by the availability and rate limits of the underlying stock APIs. The Skill requires active API access to fetch accurate OHLC data and does not support real-time data streaming.