Registry / analytics / vnai

vnai

JSON →
library2.4.8pypypiunverified

vnai (Vnstock Analytics Interface) is a Python library for Vietnamese stock market data analysis. It provides tools to fetch stock prices, financial statements, and market indices, targeting quantitative analysis and automated trading. Current version 2.4.8, release cadence monthly. Requires Python 3.10+.

analytics
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

import vnai

Initialize Vnstock, fetch stock data for VNM (Vinamilk) using an API token.

from vnai import Vnstock import os stock = Vnstock() # Use API token from environment variable token = os.environ.get('VNSTOCK_API_TOKEN', 'demo_token') data = stock.fetch_stock_data('VNM', token=token) print(data.head())
Debug
Known footguns
breakingVersion 2.x changed import paths. `vnai.Vnstock` replaces `vnstock.Vnstock` (v1.x).
gotchaThe library requires an API token (Vnstock API key). If omitted, many methods fail with 401.
deprecatedMethod `fetch_all` is deprecated since 2.3.0, will be removed in 3.0.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
19 hits · last 30 days
gptbot
3
amazonbot
3
bytedance
3
ahrefsbot
1
Resources

No resource links recorded.