Vietnamese Stock Market Toolkit — real-time quotes, technical analysis, sentiment, money flow signals for HOSE/HNX stocks
Project description
lotusmarket
Vietnamese Stock Market Toolkit for Go & Python.
Real-time quotes, historical OHLCV, technical analysis, sentiment, money flow signals, and more for HOSE/HNX stocks.
Install
Go:
go get github.com/ducnhd/lotusmarket/go
Python: (coming soon)
pip install lotusmarket
Quick Start (Go)
package main
import (
"context"
"fmt"
"github.com/ducnhd/lotusmarket/go/fetchers"
"github.com/ducnhd/lotusmarket/go/technical"
"github.com/ducnhd/lotusmarket/go/sentiment"
)
func main() {
ctx := context.Background()
// Real-time quote (no API key needed)
stock, _ := fetchers.VPS(ctx, "ACB")
fmt.Printf("ACB: %v VND, volume: %d\n", stock.Close, stock.Volume)
// Historical data + technical analysis
history, _ := fetchers.EntradeHistory(ctx, "ACB", 200)
closes := make([]float64, len(history))
for i, h := range history {
closes[i] = h.Close
}
dashboard := technical.Dashboard(closes)
fmt.Printf("RSI: %.1f, Signal: %s, Score: %.0f\n", dashboard.RSI, dashboard.Signal, dashboard.Score)
// Vietnamese sentiment
result := sentiment.Analyze("Ngân hàng tăng mạnh, khối ngoại mua ròng")
fmt.Printf("Sentiment: %s (%.2f)\n", result.Label, result.Score)
}
Modules
| Module | Description | API Key |
|---|---|---|
technical |
RSI, MA20/50/200, Momentum, Signal, Score, Dashboard, Weekly aggregation | No |
sentiment |
Vietnamese financial keyword analysis (70+ keywords), score -1 to +1 | No |
signals |
Volume surge detection (z-score), domestic buy/sell pressure | No |
market |
Market pulse scoring (0-100), sector flow ranking, risk indicators | No |
portfolio |
Time-weighted returns (TWR), 6-factor confidence scoring | No |
nlu |
Vietnamese intent classification, ticker extraction | No |
fetchers |
VPS (real-time), Entrade (OHLCV), KBS (fundamentals), with fallback | No |
types |
Shared types: StockData, KBSQuote, VN30 list, sector mappings | No |
Data Sources
| Source | Data | Key Required |
|---|---|---|
| VPS | Real-time quotes, foreign flow, bid/ask | No |
| Entrade | Historical daily OHLCV (up to 1000 days) | No |
| KBS | Fundamentals: P/E, P/B, EPS, Beta, Dividend Yield | No |
| SSI | VN30/HNX30 index components | No |
Support
If you find this useful, consider supporting the project:
- PayPal: paypal.me/ducnhd
- Telegram Stars:
@lotusmarket_bot /donate
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lotusmarket-0.1.1.tar.gz.
File metadata
- Download URL: lotusmarket-0.1.1.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0243d371ab962d5f572ee37a4fe4decdfdcca3b3e0479a07a3174cd663ef3bca
|
|
| MD5 |
631924a24036ad7d44d28450e7479bdf
|
|
| BLAKE2b-256 |
ba1f8e8bf1f3c89643d6cf4e0f18b35d404eca5726a32fd419b04b891f6a6dae
|
File details
Details for the file lotusmarket-0.1.1-py3-none-any.whl.
File metadata
- Download URL: lotusmarket-0.1.1-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be27db5cd2bb28a69ef03c60a57dc7de0e65e426c3adfbffff365f089e55629f
|
|
| MD5 |
acd98699f23e2a50afc2ac53e720f135
|
|
| BLAKE2b-256 |
f00aff40e3f2033ec52bf1c2eb5df1ed9ae4d17938818314b0caaa1e00d5730d
|