vnstock-quote-best-practices

Configure VNStock Quote with VCI source for batch historical data retrieval.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/gahoccode/PRDs --skill vnstock-quote-best-practices
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vnstock-quote-best-practices
Source: https://github.com/gahoccode/PRDs/tree/main/skills/vnstock-best-practices
Command: npx skills add https://github.com/gahoccode/PRDs --skill vnstock-quote-best-practices

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides best practices for using the vnstock Quote class (VCI source) to fetch Vietnamese stock data reliably and efficiently, including batching, caching, retries, validation, and fallback strategies.

Core Features & Use Cases

  • Batch Processing: reuse a single Quote instance across multiple symbols
  • Caching: file-based TTL caches or session caches
  • Retry Logic: robust retry patterns
  • Data Validation: verify OHLC data integrity
  • Source Fallback: switch sources if primary fails

Quick Start

Use Quote(source='VCI', symbol='VCI') and reuse across multiple symbols, enable caching, add retries, and implement fallback strategies as needed.

Frequently Asked Questions about vnstock-quote-best-practices

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

FAQPage Schema
How do I fetch Vietnamese stock data reliably from VNStock without frequent failures?

Use the VNStock Quote class with VCI source configured, implement retry logic to handle temporary failures, and add caching to reduce redundant API calls. This ensures consistent data retrieval for historical stock queries.

What's the best way to process multiple stock symbols efficiently with VNStock?

Batch processing with a single reused Quote instance across symbols reduces overhead and improves performance. Combine this with file-based or session caching and retry patterns to handle failures gracefully across the entire batch.

How do I validate OHLC data integrity when fetching historical stock prices?

Implement data validation checks after each fetch to verify OHLC (open, high, low, close) values are correct and complete. Pair validation with fallback source switching to recover from corrupted or incomplete responses.

Can I use caching and retry logic together for VNStock queries?

Yes. Caching with TTL (time-to-live) reduces repeated requests, while retry logic handles transient failures. Together they create a resilient pattern that minimizes API load and improves success rates for historical data retrieval.

What should I do if VNStock VCI source fails during batch processing?

Implement source fallback strategies to switch to alternative sources when the primary VCI source fails. Combined with retry logic and error handling, fallback ensures batch jobs complete even when one source is temporarily unavailable.

Do I need to create a new Quote instance for each stock symbol?

No. Reusing a single Quote instance configured with VCI source across multiple symbols is more efficient and reduces memory overhead. This pattern is core to performant batch symbol processing.