High-performance Python client for the Fin68 financial data platform.
Project description
🐍 Fin68 Python SDK
Fin68 mang tới bộ client Python hiệu năng cao để truy cập hệ sinh thái dữ liệu tài chính Việt Nam.
Thư viện được thiết kế an toàn, linh hoạt và tối ưu cho ba nền tảng:
🪟 Windows | 🐧 Linux | 🍎 macOS
🚀 Cài đặt
Cài đặt trực tiếp từ PyPI:
pip install fin68
Yêu cầu:
- Python ≥ 3.10
- pandas ≥ 2.1.2
- requests
⚙️ Khởi tạo nhanh
Ví dụ cơ bản để lấy dữ liệu giá đóng cửa của cổ phiếu HPG | chỉ số VNINDEX | ngành Ngân hàng trong năm 2023:
import fin68 as fn
client = fn.client(apiKey="YOUR_API_KEY")
# Dữ liệu cổ phiếu
Stock = client.eod.stock
data = Stock.ohlcv(symbol="HPG", start="2023-01-01", end="2023-12-31")
# Dữ liệu chỉ số index
Market = client.eod.market
data = Market.ohlcv(symbol="VNINDEX", start="2023-01-01", end="2023-12-31")
# Dữ liệu ngành
Sector = client.eod.sector
data = Sector.ohlcv(symbol="Ngân hàng", start="2023-01-01", end="2023-12-31")
print(data)
📘 Kết quả trả về là pandas.DataFrame gồm các cột: Date, Open, High, Low, Close, Volume.
🧩 Cấu trúc thư viện
Fin68 được chia thành nhiều client module riêng biệt, mỗi module phụ trách một mảng dữ liệu:
| Module | Mô tả | Ví dụ truy cập |
|---|---|---|
client.eod |
Dữ liệu cuối ngày (EOD) | client.eod.stock.ohlcv(symbol="HPG")client.eod.stock.flow(symbol="HPG", group='local_individual')Các nhóm group phổ biến: - "foreign" — Nhà đầu tư nước ngoài (tổng hợp)- "proprietary" — Tự doanh công ty chứng khoán- "local_institutional" — Tổ chức trong nước- "local_individual" — Cá nhân trong nước- "foreign_institutional" — Tổ chức nước ngoài- "foreign_individual" — Cá nhân nước ngoài |
client.info |
Thông tin doanh nghiệp & cổ phiếu | client.info.overview("VNM") (đang phát triển) |
client.financials |
Báo cáo tài chính | client.financials.statement("HPG") (đang phát triển) |
Tất cả đều trả về DataFrame hoặc dict để dễ dàng xử lý trong phân tích định lượng.
🔐 Bảo mật & hiệu năng
- Tự động xác thực bằng
apiKey - Kết nối HTTP được tối ưu hóa với
requests.Session - Tuân thủ chuẩn PEP 561 – hỗ trợ gợi ý kiểu (type hints)
📚 Bắt đầu khám phá
👉 Tiếp tục đọc tại:
Hoặc tra cứu chi tiết từng hàm trong sidebar bên trái.
🧠 Giấy phép & Liên hệ
- License: MIT
- Tác giả: Fin68 Development Team
- Website: https://fin68.vn
- Liên hệ hỗ trợ: client@fin68.vn
- SĐT: Zalo - 035.905.2501
💡 Fin68 – Nền tảng dữ liệu mở, giúp nhà đầu tư, doanh nghiệp và lập trình viên tiếp cận dữ liệu tài chính Việt Nam một cách nhanh chóng và hiệu quả.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
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 fin68-0.1.9-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: fin68-0.1.9-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 474.0 kB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5cb1a341f151c81055f04f08b78dcced4e06784beb5efa8b7d4fe2c8a78095a0
|
|
| MD5 |
b648912a37afe5db71e944ba20842abe
|
|
| BLAKE2b-256 |
179be4fc517f6193d555f50df8774b83e621a7cdeddeecd19677eb46264e1989
|
File details
Details for the file fin68-0.1.9-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: fin68-0.1.9-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 2.9 MB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02b72cab5cea7ced129b3a5cbfc402f336e1ffebcb867c912f20dc67c29f0676
|
|
| MD5 |
8c16642dc95c548fbf037aef4fe3d104
|
|
| BLAKE2b-256 |
6a48827fd31abed038cf204e52f85f3e00c1869a7f18494ca7cd4b2d910c4ee0
|
File details
Details for the file fin68-0.1.9-cp313-cp313-macosx_10_13_universal2.whl.
File metadata
- Download URL: fin68-0.1.9-cp313-cp313-macosx_10_13_universal2.whl
- Upload date:
- Size: 978.4 kB
- Tags: CPython 3.13, macOS 10.13+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f5bc8a4f6df4413bcda3a534737a1df5f43dc9ddcf220e523dac06800b0d506
|
|
| MD5 |
610176f481839ba72bd3363be2fd7dc0
|
|
| BLAKE2b-256 |
a8971ddcad1df7bd02513151217684c798b95fd4369fcdb48b8754809f754a57
|
File details
Details for the file fin68-0.1.9-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: fin68-0.1.9-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 478.8 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee42c0bf957053269eb7fef02e0d452ad588738d180f000fc50ca5f5488ed4ea
|
|
| MD5 |
89d9007d1a0739f2ce8a938b27a465b9
|
|
| BLAKE2b-256 |
273a4a736feae7ee3c9bf10d578d7d6edd471d776a41536a8c24422a5f0b1e94
|
File details
Details for the file fin68-0.1.9-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: fin68-0.1.9-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 3.0 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
194acdd8335ec7436bc77fa1449c30936d47f6c60fcb77b6155e551c3718d741
|
|
| MD5 |
1b8b3a54446f3d6a6f0961a988c5bdcb
|
|
| BLAKE2b-256 |
62fb025cc6809de3bbd33a0a8b601787f50d987de77f310db2d91e62f4f2dd40
|
File details
Details for the file fin68-0.1.9-cp312-cp312-macosx_10_13_universal2.whl.
File metadata
- Download URL: fin68-0.1.9-cp312-cp312-macosx_10_13_universal2.whl
- Upload date:
- Size: 991.0 kB
- Tags: CPython 3.12, macOS 10.13+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ddeff55fb40d714d32931cf0a3cdabdbb35856ef11d9a7d105ec170bfbe2b73b
|
|
| MD5 |
3c8706e5f804317b59eebf536f6de24b
|
|
| BLAKE2b-256 |
c8c2b72b4da5b0d92c733b836c64f0df4851ec819286a593eb8068d4f9ed670b
|
File details
Details for the file fin68-0.1.9-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: fin68-0.1.9-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 484.1 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d852033dc41915c97ecdcaf3871e23d9983ca8c288125991749baacbc7171f17
|
|
| MD5 |
aad4831d633568068d3c4b2d9cba98a1
|
|
| BLAKE2b-256 |
b1f9927b2f936bf9a3dd94260da0cfc24593c8820d7b4e5d7afc322070e5e68d
|
File details
Details for the file fin68-0.1.9-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: fin68-0.1.9-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 2.9 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea28f031dd045147addbd25d530180316af8f11856253c4f521197ff1a6d95b4
|
|
| MD5 |
3c5abd09a9bb37632d20d7d5c814b10a
|
|
| BLAKE2b-256 |
a682c1ff5def5d0549034805bad64f3af15e6e1695194fcb74bcd76c665f8984
|
File details
Details for the file fin68-0.1.9-cp311-cp311-macosx_10_9_universal2.whl.
File metadata
- Download URL: fin68-0.1.9-cp311-cp311-macosx_10_9_universal2.whl
- Upload date:
- Size: 990.1 kB
- Tags: CPython 3.11, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2213b1fba03dd0f4e23061217b41883cde1923ec4f873109dc32ee78668ef17a
|
|
| MD5 |
543b0ba7abcd30516e6637e60b9eb2d0
|
|
| BLAKE2b-256 |
acd248acb52c74df95be564b4cfb561dd4b8e6039c8d2e3c6dda4e7155d25af6
|
File details
Details for the file fin68-0.1.9-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: fin68-0.1.9-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 483.7 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cccd1744b5cc869742ca56edebdefaaf65de277edc063ec74ba8e9bfaea6a3b6
|
|
| MD5 |
5faa0dc22a0fff3327c37a3ef66d83bb
|
|
| BLAKE2b-256 |
8f62cefd99c4b7bcb081067029218ae6a6dee795f63bc888fe6217e5caa0add0
|
File details
Details for the file fin68-0.1.9-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: fin68-0.1.9-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 2.7 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6797c81b412f9c53d083d8eeca69d179f301ddcbac364147182f722cbc2484be
|
|
| MD5 |
2a4b9bb35aed84119ca523bad8fed465
|
|
| BLAKE2b-256 |
8cec78cff1e2e63741188d5b1619458f5b0611746d3963e0625cb2f4c0cf9862
|
File details
Details for the file fin68-0.1.9-cp310-cp310-macosx_10_9_universal2.whl.
File metadata
- Download URL: fin68-0.1.9-cp310-cp310-macosx_10_9_universal2.whl
- Upload date:
- Size: 982.4 kB
- Tags: CPython 3.10, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da48c45735a89e1e75b6649d8385be9da7eb7dd01e4df404edfef9045398a395
|
|
| MD5 |
84401984263fc4fc7a94767e2bf22f89
|
|
| BLAKE2b-256 |
51ffb00097b51f9ee7a8a9086687f4806b6a88ba55758cf23bfed2472e033331
|