Skip to main content

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ạttố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

📘 Tài liệu hướng dẫn


⚙️ 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ề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ệ


💡 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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

fin68-0.1.10-cp313-cp313-win_amd64.whl (457.2 kB view details)

Uploaded CPython 3.13Windows x86-64

fin68-0.1.10-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

fin68-0.1.10-cp313-cp313-macosx_10_13_universal2.whl (961.7 kB view details)

Uploaded CPython 3.13macOS 10.13+ universal2 (ARM64, x86-64)

fin68-0.1.10-cp312-cp312-win_amd64.whl (461.9 kB view details)

Uploaded CPython 3.12Windows x86-64

fin68-0.1.10-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

fin68-0.1.10-cp312-cp312-macosx_10_13_universal2.whl (974.3 kB view details)

Uploaded CPython 3.12macOS 10.13+ universal2 (ARM64, x86-64)

fin68-0.1.10-cp311-cp311-win_amd64.whl (467.2 kB view details)

Uploaded CPython 3.11Windows x86-64

fin68-0.1.10-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

fin68-0.1.10-cp311-cp311-macosx_10_9_universal2.whl (973.4 kB view details)

Uploaded CPython 3.11macOS 10.9+ universal2 (ARM64, x86-64)

fin68-0.1.10-cp310-cp310-win_amd64.whl (466.8 kB view details)

Uploaded CPython 3.10Windows x86-64

fin68-0.1.10-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

fin68-0.1.10-cp310-cp310-macosx_10_9_universal2.whl (965.8 kB view details)

Uploaded CPython 3.10macOS 10.9+ universal2 (ARM64, x86-64)

File details

Details for the file fin68-0.1.10-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: fin68-0.1.10-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 457.2 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

Hashes for fin68-0.1.10-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 7ae069eb33f47547b441becd702090637bedd1bfa78469c534132d826c8387bf
MD5 b9bfd3c9b424110a16b4c4ee7bff5060
BLAKE2b-256 dceca69618ca37cf6a6b429f77b1c65e686d84d4c75e801f0229c7f3c204ecee

See more details on using hashes here.

File details

Details for the file fin68-0.1.10-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fin68-0.1.10-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 860062008fe353d408152a4fb1ae16aa05df395bd34e84618f29f8da258a2b5a
MD5 3ad14e219851fc13a6826b659590063d
BLAKE2b-256 858655be2b52087265bc90205beb76a85cede6927f2f8fa53c253333708d9454

See more details on using hashes here.

File details

Details for the file fin68-0.1.10-cp313-cp313-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for fin68-0.1.10-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 99f18fd2afe6d63a3420fd8e1e4950b64370f4c0960e9ebe49a1b1c6f7a53143
MD5 04af18571b5f182cb7cc2cf82229ff2e
BLAKE2b-256 d2b9767a39efe5ddc161fc3efd8b7e96dec24ca8ab2fedc351d88862ed7403c8

See more details on using hashes here.

File details

Details for the file fin68-0.1.10-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: fin68-0.1.10-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 461.9 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

Hashes for fin68-0.1.10-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bd4abe8e1d61cb0b112f01018ab85d5fe82474a7849d93f8c0dc151d353acac7
MD5 094a0b2501c41849d3f5b7c23f446170
BLAKE2b-256 f9f54c56c19cbc3c360273828ab8a541285a3ede1fd1793158eee87a4515813b

See more details on using hashes here.

File details

Details for the file fin68-0.1.10-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fin68-0.1.10-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 41590f4039f8850a782da86016f006c5989fd19b513a81da0c00e1657cb3938a
MD5 42a3d510c91668a0c2fd87da081875e1
BLAKE2b-256 b4eade0ec86967f6bbe131712c2241a690ea24191e2856237cca0c1b38a1b126

See more details on using hashes here.

File details

Details for the file fin68-0.1.10-cp312-cp312-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for fin68-0.1.10-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 4e29b601f8350a26778d9b19bc3ab25c07141e8a831f8208d4d31dd72ef30b89
MD5 18531238fc75ac15152ca63a85b78662
BLAKE2b-256 d9706332f1a47917646bab81d70821b0002773df7b69226b5c23592b493a0575

See more details on using hashes here.

File details

Details for the file fin68-0.1.10-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: fin68-0.1.10-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 467.2 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

Hashes for fin68-0.1.10-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 34ef552cce9bf8ab5c3ac096bc415e9ddb29ffa876c4ede73682fe207e23932f
MD5 bf50110b1a7a2f4df41a8ec0ad1e2220
BLAKE2b-256 509a9355cf341c3b2ac9e498ed0f5162f87df009e19ebaaca36a81910f685da4

See more details on using hashes here.

File details

Details for the file fin68-0.1.10-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fin68-0.1.10-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9999cf9c6020a4bfad7fc71e9b9a6aca266641ef9ae4ef2c18783720fad6c0d0
MD5 4fc11c93008df7f5c1296a6c892a2bd2
BLAKE2b-256 0105b24d2c0c4e3c6b6804e1b7291fa83ad7d54278129abc9dc1adc6666b914d

See more details on using hashes here.

File details

Details for the file fin68-0.1.10-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for fin68-0.1.10-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 4cb1c665e24c84805d41e1195c77864d4779b3071f182a838e969eb687e89a48
MD5 a8429dfa71c2cfea9a9977cbe740ee09
BLAKE2b-256 c71e8586a89da61d6fa3a36af89fd5eb1b68c87dd2a40d4302aa44edddda7910

See more details on using hashes here.

File details

Details for the file fin68-0.1.10-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: fin68-0.1.10-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 466.8 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

Hashes for fin68-0.1.10-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 400b9a2001a05e6cc831bd4ba7d5f44dbfe60d93dd21b9bc79f974805ab9b913
MD5 05c2d70a356e13765c5647676b15d1ce
BLAKE2b-256 3ef8c7f48430399ded91092b5a45af9338ead0042a5df379b2659fd44cfcdf5e

See more details on using hashes here.

File details

Details for the file fin68-0.1.10-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fin68-0.1.10-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3359da68f21fdfa362ff459838210f8e2ad3f9669ac9407adcd706ae2a049a43
MD5 14ec91655a785915d59498054e481219
BLAKE2b-256 cdfb5b22d004551144ebad0bd696e28bea7be9239fe4d1be64176826a51544dd

See more details on using hashes here.

File details

Details for the file fin68-0.1.10-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for fin68-0.1.10-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 ba253ca750b1247a6403c6e8b02d4a953e06c2f0662a006105482890784d8bef
MD5 f118d32d548b87d22ace99cc1a5a0905
BLAKE2b-256 5bd7ff173d5c9452ad36fcd5859deede7b9012b5f057117593778b7896e07996

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page