🐍 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ả.
Metadata
Release files for fin68 0.1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 18.2 MB
Release files / fin68-0.1.11-cp313-cp313-win_amd64.whl
| Download URL | fin68-0.1.11-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 480.8 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
9adf087b8ebee89f59cbf0cb8e744b41ada994830231b268ab0230c64946ae42
|
|
BLAKE2b-256 checksum How to use checksums |
b72336a42dbc6c462c64576a147d0d23eb521aea0dd02f9d861e9f5a2550f70e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / fin68-0.1.11-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
| Download URL | fin68-0.1.11-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 3.1 MB |
| Tags | CPython 3.13 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
bc4349e985192842faf4838e61f643e975ca9872e0f655f72c325ecf7fe753ef
|
|
BLAKE2b-256 checksum How to use checksums |
506ca83741b2fedd5d2c26c1cfa2b922c3573ad3c519de209fb6c366d8e249fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / fin68-0.1.11-cp313-cp313-macosx_10_13_universal2.whl
| Download URL | fin68-0.1.11-cp313-cp313-macosx_10_13_universal2.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.13 macOS 10.13+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
dbe1cd9075a7dbfa32ba18fce9f27ebd4e87b8570a60543228c8cb488d1b14dd
|
|
BLAKE2b-256 checksum How to use checksums |
d4f4d8222e6c689935241a141019e8648be2ed6d0a1a6bd079bc9fc3bb42e1a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / fin68-0.1.11-cp312-cp312-win_amd64.whl
| Download URL | fin68-0.1.11-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 485.7 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
7cea491c9978030da954cdfc0d0edd72a34a9c87731b7415a980b20b8f417c41
|
|
BLAKE2b-256 checksum How to use checksums |
5b6ce4f45dadc0346658f03aa83d24ed0e774915ed748ffca0a52fc2ea017678
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / fin68-0.1.11-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
| Download URL | fin68-0.1.11-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 3.2 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
d845c5d2d37bfddac81e6001991447d3bc5a41c943064a7db03afb7c65b89139
|
|
BLAKE2b-256 checksum How to use checksums |
cdb0c197f62f1da074b2a1090d6a270f35e42124c2c7ac72848c0fca8e00bafe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / fin68-0.1.11-cp312-cp312-macosx_10_13_universal2.whl
| Download URL | fin68-0.1.11-cp312-cp312-macosx_10_13_universal2.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.12 macOS 10.13+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
0ec0fa45d8d83b3cf3bc2e02449576f26851b93270874985184c01b1932b56dc
|
|
BLAKE2b-256 checksum How to use checksums |
157033e34f30f8b4c4c70c9af7a54c9354966b8618f3d31b95151d6bdc7871bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / fin68-0.1.11-cp311-cp311-win_amd64.whl
| Download URL | fin68-0.1.11-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 491.7 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
0f0f59047303f036dcd5ac48947b4cb516a83af5f95b6bed5dff7c520d0bfe59
|
|
BLAKE2b-256 checksum How to use checksums |
d700955dd077d7f3e2807418b553573cda938e881a3480a0fd134546c0204fcd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / fin68-0.1.11-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
| Download URL | fin68-0.1.11-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 3.0 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
6f94bbfc5759252aaa519e6d9f2e08f966c9f3cd23e082cc730a4cd6cf5719c0
|
|
BLAKE2b-256 checksum How to use checksums |
b60720c63544b6e7edae0f3f0a5c413f175a6e9e2a7eef1955a1daa407d5ea0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / fin68-0.1.11-cp311-cp311-macosx_10_9_universal2.whl
| Download URL | fin68-0.1.11-cp311-cp311-macosx_10_9_universal2.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
6ec3753471b1130f6466c89a3dcb499dd0e1d9bd0a38efa8696f90a3a10fb4f6
|
|
BLAKE2b-256 checksum How to use checksums |
4aeba608d9f19332e6b530243a2451f52da5867a127e4dc9e594ac9d6e469d1d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / fin68-0.1.11-cp310-cp310-win_amd64.whl
| Download URL | fin68-0.1.11-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 491.0 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
45c619e3bc8b0d02664022d761731ec658751f2ebcb834047928964d2f67fc6a
|
|
BLAKE2b-256 checksum How to use checksums |
aeaf28687ca42f413d89e7c0bf8f21b3252704def1bfd3c188a7d06486222a95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / fin68-0.1.11-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
| Download URL | fin68-0.1.11-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.9 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
2774e6b32109f4c6e9fb6163243965b25dc44d5bb38b54f6186c3742c1074469
|
|
BLAKE2b-256 checksum How to use checksums |
844d06ed892d7f303a605cddaeee4a629352cf71ded559ca7d3a3ed9e341c8b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / fin68-0.1.11-cp310-cp310-macosx_10_9_universal2.whl
| Download URL | fin68-0.1.11-cp310-cp310-macosx_10_9_universal2.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
c6e6d29c120abec492f248393caf2cf3681b81f8fe72e9fd4d25601f9f9a24d7
|
|
BLAKE2b-256 checksum How to use checksums |
7a4e0af021fb5cef934b058045c98fb2e93cfe09ec23625c41a9b8914f245ffc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|