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

Uploaded CPython 3.13Windows x86-64

fin68-0.1.8-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (2.1 MB view details)

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

fin68-0.1.8-cp313-cp313-macosx_10_13_universal2.whl (700.6 kB view details)

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

fin68-0.1.8-cp312-cp312-win_amd64.whl (341.6 kB view details)

Uploaded CPython 3.12Windows x86-64

fin68-0.1.8-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (2.1 MB view details)

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

fin68-0.1.8-cp312-cp312-macosx_10_13_universal2.whl (708.3 kB view details)

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

fin68-0.1.8-cp311-cp311-win_amd64.whl (345.3 kB view details)

Uploaded CPython 3.11Windows x86-64

fin68-0.1.8-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (2.1 MB view details)

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

fin68-0.1.8-cp311-cp311-macosx_10_9_universal2.whl (705.8 kB view details)

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

fin68-0.1.8-cp310-cp310-win_amd64.whl (345.0 kB view details)

Uploaded CPython 3.10Windows x86-64

fin68-0.1.8-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (2.0 MB view details)

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

fin68-0.1.8-cp310-cp310-macosx_10_9_universal2.whl (700.0 kB view details)

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

File details

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

File metadata

  • Download URL: fin68-0.1.8-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 339.3 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.8-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 5e870eb51e001a326f0a0fffe1f0707e1cffd62cd8989b03b5b4a41e27d7e099
MD5 4ce39e5974be13c4b41810fe9389fadb
BLAKE2b-256 f581453bc30ed5f53bee9130cdb92a7584faa9dbd849e9d2c8213f61a4597064

See more details on using hashes here.

File details

Details for the file fin68-0.1.8-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.8-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 038450f41c6f357c86f440dec11a8e7bec54769f255bb24b271f50ab1f61e359
MD5 f8ba8df87073156f0ad50e60820c4795
BLAKE2b-256 649e3f4902ef63205f88d972b4027b3511dfed9899670e54834f83adaf9a8f05

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fin68-0.1.8-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 7c946647b4c65bdf08f0da407383735b49513b63ee5eaea5245382f30cd4adb6
MD5 16f1ed75ce781c8f766700393cf0001f
BLAKE2b-256 32a59957140464bd6f021556505a9fc670c23f1de2428f6a9b45b7eda9f04684

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fin68-0.1.8-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 341.6 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.8-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bd38d208746931173ea57ffc0169004b1e626d79d095cd3ee6ef91eb6b771f02
MD5 b160d94018d99e6e80914f0ee97c1498
BLAKE2b-256 ba80424c20a9ffbe898023fb0402dcc77222e8fa591a855ab6c5496c9967a920

See more details on using hashes here.

File details

Details for the file fin68-0.1.8-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.8-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 24096a9f771f1bafc2027644755140672ffeb39da2fb3fcc3c25d65813a488ef
MD5 588968d6f339a91475987443a4028336
BLAKE2b-256 031acc954f7407e5b03d06f9c010082e32eae27e53cb67d4882325cebf6e1c2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fin68-0.1.8-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 5b695452533afb1641f4950e31934b1f1bbb8fcebc24816b4c8c3356fc2ace09
MD5 69416fe62b83639e69941b5ebfacd217
BLAKE2b-256 afc70b0756f1d0e282d25ac5cd7c688a69882496f0801353edecd4ffafafcc45

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fin68-0.1.8-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 345.3 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.8-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2a0e2e000c23c7897106f3cc9a31efe9faaf216bdeca8059f78a197ca145923e
MD5 ba8bbf1e05234218466f34364232ed91
BLAKE2b-256 aff1b4dea5b90d5e01100e9d2355e6dd5ea3f9f1a54d22025450dc10d139b072

See more details on using hashes here.

File details

Details for the file fin68-0.1.8-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.8-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1129f8ea439b7bf9e3663d1b92c041c3268ec6b299a0c720c743d9cfbbc73bd2
MD5 65ea5423d6d6dc439989fed911823825
BLAKE2b-256 54c00978f184e424ed366f0ff5af5efed68ae2a3c9d0128d819e68d75fe9704c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fin68-0.1.8-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 6b6b2a3ae80ef66aa3235f744aa827292a7a25ffe7a7866340530e67c84f534b
MD5 f3251836777064b99dfa9fa093ec9253
BLAKE2b-256 579bf97258f1a00cfe11ece45620affd20ade7450c200417c24990b8981a6b5a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fin68-0.1.8-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 345.0 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.8-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 045eeb0f3479a9fd930448f2d6d41b91a4e3127d98a7fd841e50edbb1f85a9ab
MD5 362ca8cea3dde6a8ce836c36afa68933
BLAKE2b-256 aa30d28c933ee4358e5f95bb4889a585687a89450e18d074d756766b03d8b8bd

See more details on using hashes here.

File details

Details for the file fin68-0.1.8-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.8-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 45d6c4a29d0eba43141d169d38aa8140fbe5dbb06caadecc84489fe7497bcfec
MD5 b2f8a302c1c2b6b909b4f32c0ceaf80f
BLAKE2b-256 cf82385f0967af433fd0d5574638ffb88a801592df366eac35b56d48e84ba01b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fin68-0.1.8-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 56384e99bd37801ac2a5554b540abd9d35d0d9a4b7e4a16b2f025990892f9977
MD5 8cc5f5bb58646d76f279ee58eaecd61e
BLAKE2b-256 af5775fce8e42cfbd38330fa6ea2886d629cc8e896e4290277b1331acdd5e53c

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