fetch-quotes

Fetch OHLCV bars and latest quotes from yfinance with optional MT5 pricing.

10|2|Updated Mar 8, 2026
One-click install
npx skills add https://github.com/mahmoud20138/Tradecraft --skill fetch-quotes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fetch-quotes
Source: https://github.com/mahmoud20138/Tradecraft/tree/main/plugins/tradecraft/skills/fetch-quotes
Command: npx skills add https://github.com/mahmoud20138/Tradecraft --skill fetch-quotes

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires yfinance, MetaTrader5, and includes scripts (resource) components.

What problem does it solve?

Provides fast access to market data by fetching OHLCV bars and a latest quote for any symbol, with optional broker-exact pricing via MT5.

Core Features & Use Cases

  • Free data path via yfinance for OHLCV bars and quotes; supports multi-timeframe requests.
  • Broker-exact pricing via MT5 when the local terminal is available.
  • Rich output returns JSON with bars, latest quote, and optional PNG chart for visualization.

Quick Start

Install dependencies and run the fetch-quotes script to retrieve data for a symbol.

Frequently Asked Questions about fetch-quotes

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

FAQPage Schema
How do I fetch OHLCV bars and latest quotes for a symbol?

You can fetch OHLCV bars and latest quotes for a symbol using this tool, which retrieves data via yfinance with an optional broker-exact fallback through MT5. It supports multiple timeframes and bar counts, returning results in JSON format.

Does yfinance market data work with MetaTrader 5 broker prices?

Yes, yfinance market data works alongside MetaTrader 5 broker prices by providing a free baseline path for OHLCV bars, while MT5 integration offers broker-exact pricing when the local terminal is available. The tool automatically maps canonical symbols to both platform variants.

Can I get a PNG chart from yfinance OHLCV data?

Yes, you can get a PNG chart from yfinance OHLCV data. When requested, the tool renders a PNG chart for visualization alongside the JSON output containing the bars and latest quotes for the specified symbol.

Do I need a local MetaTrader 5 terminal to fetch quotes?

You do not need a local MetaTrader 5 terminal to fetch quotes, because the tool defaults to fetching free OHLCV bars and quotes via yfinance. The MT5 terminal is strictly optional and only required if you need broker-exact pricing.

What is the best way to normalize symbols for yfinance and MT5?

The best way to normalize symbols for yfinance and MT5 is to use the tool's built-in mapping feature, which translates canonical symbols into the specific format variants required by both yfinance and MetaTrader 5 before fetching data.

Limitations of using yfinance for market data quotes?

The main limitation of using yfinance for market data quotes is that prices may not match your broker exactly. To overcome this limitation, the tool provides an optional MT5 fallback to fetch broker-exact pricing when the local terminal is available.