VNBroker: Python Library for Vietnam Market Data
A unified data access layer pulling directly from providers (Direct Provider), supporting stock, forex, crypto, world indices, and fund data in Vietnam. The library standardizes output as Pandas DataFrames, integrates Private Brokerage APIs, and does not depend on PAT or Gateway.
pip install vnbrokerSystem Audit & Architecture Analysis
A detailed internal technical review of the VNBroker library’s Python class structure, data routing algorithms, concurrency control, and data standardization policies.
1.1. Core Package Components
Top-level client that orchestrates all data flows for stock, FX, crypto, world indices, and funds using Direct Provider Architecture.
Provides historical OHLCV price data, intraday matched trades, and price depth information.
Corporate profiles, board of directors, insider transactions, and ownership ratios.
Balance sheets, income statements, cash flow statements, and financial ratios.
Listed stock codes, index groupings (VN30, HNX30), and industry sector classifications.
Real-time trading data and market board display.
Dynamic stock screener with TCBS data source integration.
Standardized news aggregated from reputable sources (Cafef, Vneconomy, etc.).
Market snapshot for heatmap visualization and rapid sector statistics.
Fund certificate info and growth history from the FMarket portal.
Real-time alerts and notifications via Webhook to Slack, Telegram, Discord, and Lark.
Direct private brokerage account management supporting order placement (buy/sell/cancel/modify), balance queries, and portfolio retrieval via TCBS iFlash OpenAPI, DNSE (VNDirect API), and SSI.
1.2. Supported Data Providers
The library manages connections and automatically standardizes data from both official partner APIs and public extraction tools (scraping):