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.11-cp313-cp313-win_amd64.whl (480.8 kB view details)

Uploaded CPython 3.13Windows x86-64

fin68-0.1.11-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (3.1 MB view details)

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

fin68-0.1.11-cp313-cp313-macosx_10_13_universal2.whl (1.0 MB view details)

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

fin68-0.1.11-cp312-cp312-win_amd64.whl (485.7 kB view details)

Uploaded CPython 3.12Windows x86-64

fin68-0.1.11-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (3.2 MB view details)

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

fin68-0.1.11-cp312-cp312-macosx_10_13_universal2.whl (1.0 MB view details)

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

fin68-0.1.11-cp311-cp311-win_amd64.whl (491.7 kB view details)

Uploaded CPython 3.11Windows x86-64

fin68-0.1.11-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (3.0 MB view details)

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

fin68-0.1.11-cp311-cp311-macosx_10_9_universal2.whl (1.0 MB view details)

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

fin68-0.1.11-cp310-cp310-win_amd64.whl (491.0 kB view details)

Uploaded CPython 3.10Windows x86-64

fin68-0.1.11-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (2.9 MB view details)

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

fin68-0.1.11-cp310-cp310-macosx_10_9_universal2.whl (1.0 MB view details)

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

File details

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

File metadata

  • Download URL: fin68-0.1.11-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 480.8 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for fin68-0.1.11-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 9adf087b8ebee89f59cbf0cb8e744b41ada994830231b268ab0230c64946ae42
MD5 7c504e1d42d05fcb2085dccd4679641e
BLAKE2b-256 b72336a42dbc6c462c64576a147d0d23eb521aea0dd02f9d861e9f5a2550f70e

See more details on using hashes here.

File details

Details for the file fin68-0.1.11-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.11-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bc4349e985192842faf4838e61f643e975ca9872e0f655f72c325ecf7fe753ef
MD5 de88855e25dc5f5b58010bb2a0861551
BLAKE2b-256 506ca83741b2fedd5d2c26c1cfa2b922c3573ad3c519de209fb6c366d8e249fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fin68-0.1.11-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 dbe1cd9075a7dbfa32ba18fce9f27ebd4e87b8570a60543228c8cb488d1b14dd
MD5 7e8b4cb12a6e83fd77015d58e66d3f8d
BLAKE2b-256 d4f4d8222e6c689935241a141019e8648be2ed6d0a1a6bd079bc9fc3bb42e1a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fin68-0.1.11-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 485.7 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for fin68-0.1.11-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7cea491c9978030da954cdfc0d0edd72a34a9c87731b7415a980b20b8f417c41
MD5 ae13d07aa75bd0a51a88271dd60774bc
BLAKE2b-256 5b6ce4f45dadc0346658f03aa83d24ed0e774915ed748ffca0a52fc2ea017678

See more details on using hashes here.

File details

Details for the file fin68-0.1.11-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.11-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d845c5d2d37bfddac81e6001991447d3bc5a41c943064a7db03afb7c65b89139
MD5 d919daf867e66a13270b01fc3108dfa4
BLAKE2b-256 cdb0c197f62f1da074b2a1090d6a270f35e42124c2c7ac72848c0fca8e00bafe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fin68-0.1.11-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 0ec0fa45d8d83b3cf3bc2e02449576f26851b93270874985184c01b1932b56dc
MD5 daf260f543e634bf5d916154123d0c42
BLAKE2b-256 157033e34f30f8b4c4c70c9af7a54c9354966b8618f3d31b95151d6bdc7871bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fin68-0.1.11-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 491.7 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for fin68-0.1.11-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0f0f59047303f036dcd5ac48947b4cb516a83af5f95b6bed5dff7c520d0bfe59
MD5 c427b6861d2895c27b4836a03fc641f1
BLAKE2b-256 d700955dd077d7f3e2807418b553573cda938e881a3480a0fd134546c0204fcd

See more details on using hashes here.

File details

Details for the file fin68-0.1.11-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.11-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6f94bbfc5759252aaa519e6d9f2e08f966c9f3cd23e082cc730a4cd6cf5719c0
MD5 70ac97dd8bad307c22abc3963e6ddb2d
BLAKE2b-256 b60720c63544b6e7edae0f3f0a5c413f175a6e9e2a7eef1955a1daa407d5ea0f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fin68-0.1.11-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 6ec3753471b1130f6466c89a3dcb499dd0e1d9bd0a38efa8696f90a3a10fb4f6
MD5 d1ebaea3eb8520f1b311c7fdd1c8f894
BLAKE2b-256 4aeba608d9f19332e6b530243a2451f52da5867a127e4dc9e594ac9d6e469d1d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fin68-0.1.11-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 491.0 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for fin68-0.1.11-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 45c619e3bc8b0d02664022d761731ec658751f2ebcb834047928964d2f67fc6a
MD5 b5f170f2bc7499af3b2bc99d9683b1c7
BLAKE2b-256 aeaf28687ca42f413d89e7c0bf8f21b3252704def1bfd3c188a7d06486222a95

See more details on using hashes here.

File details

Details for the file fin68-0.1.11-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.11-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2774e6b32109f4c6e9fb6163243965b25dc44d5bb38b54f6186c3742c1074469
MD5 1ec7912f3f1f1d1efb32968557ec39f8
BLAKE2b-256 844d06ed892d7f303a605cddaeee4a629352cf71ded559ca7d3a3ed9e341c8b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fin68-0.1.11-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 c6e6d29c120abec492f248393caf2cf3681b81f8fe72e9fd4d25601f9f9a24d7
MD5 a83be139144aa7daecf3a1db8dc4645e
BLAKE2b-256 7a4e0af021fb5cef934b058045c98fb2e93cfe09ec23625c41a9b8914f245ffc

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