Skip to main content

High-performance Python client for the FinLens financial data platform.

Project description

🐍 FinLens Python SDK

FinLens 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 finlens

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 finlens 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

FinLens đượ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ệ


💡 FinLens – 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.

finlens-0.1.11-cp313-cp313-win_amd64.whl (488.9 kB view details)

Uploaded CPython 3.13Windows x86-64

finlens-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

finlens-0.1.11-cp313-cp313-macosx_10_13_universal2.whl (990.4 kB view details)

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

finlens-0.1.11-cp312-cp312-win_amd64.whl (493.4 kB view details)

Uploaded CPython 3.12Windows x86-64

finlens-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

finlens-0.1.11-cp312-cp312-macosx_10_13_universal2.whl (999.9 kB view details)

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

finlens-0.1.11-cp311-cp311-win_amd64.whl (496.8 kB view details)

Uploaded CPython 3.11Windows x86-64

finlens-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

finlens-0.1.11-cp311-cp311-macosx_10_9_universal2.whl (999.7 kB view details)

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

finlens-0.1.11-cp310-cp310-win_amd64.whl (496.0 kB view details)

Uploaded CPython 3.10Windows x86-64

finlens-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

finlens-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 finlens-0.1.11-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: finlens-0.1.11-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 488.9 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 finlens-0.1.11-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f843fbd8c0462d0cd461c2d7fb6d15f981472c475de39f58163c9d47fd66e0aa
MD5 1c566b1fcf1a1e21e38d5aba12d4dac7
BLAKE2b-256 3bc5a665134c3611b731a9bb093eefaa16a5ed2d8016cb34bc5557fb332b98bc

See more details on using hashes here.

File details

Details for the file finlens-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 finlens-0.1.11-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f4f84098e07e32759e541fc64299a4c15f2a624762bf56c374f255db595d113e
MD5 27f54aa4bf08e5abdbcaa755890b588e
BLAKE2b-256 32b65a14874935ab0b565e5ecda6eb1c0ece601a83814a1eba0fc575e93f0047

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for finlens-0.1.11-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 f5da96055ec2d84f55062d9b503d2efe494fcbaafd4bb26020484ec0a4b2d215
MD5 4273aa2ae219a48fbd1c5ac1d9828907
BLAKE2b-256 00ad04f9297b7e31bcd2660bdd19e8f4bbed0abaa90816db6cad32b8ee6c810e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: finlens-0.1.11-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 493.4 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 finlens-0.1.11-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 02d600e6b1973756fbb5286aca3eef17538af91ccbfea402900ecc9a8feed8c9
MD5 6a5e7cafad86b9d9fa9463d28c60500a
BLAKE2b-256 02a318281bee43d7fc403338e4ede7b15b0d23f693bf0c7592f1269bde6a9dc4

See more details on using hashes here.

File details

Details for the file finlens-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 finlens-0.1.11-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6d40e9b7271f4ea03222e596b2b44c3e2e8758d858501b229bcdefe850ad06af
MD5 4b561d8682587416321b421b097a9bcf
BLAKE2b-256 1b45b580b0a32a9415a87920848caacbfb134a018957ef0f375e064121e9202d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for finlens-0.1.11-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 84271b0182653a62ed601294f0809a09262abc7178e450b5fe40a8f8d055fe17
MD5 e69e440d175fa82658205b7c4dd515e3
BLAKE2b-256 be706b3799a330aeec2589d96a829d4fdf1f0fb4e610c1b5e5150f3202f4f0a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: finlens-0.1.11-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 496.8 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 finlens-0.1.11-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c015a9d349adccf4b9b91e056196f6e8214e56d35717ee1b2b2da4385d052976
MD5 ef155b0b5ab0ecfd7fae15d0553ed130
BLAKE2b-256 1ae025429c00ba03bb86207d9bf24c13895e32ecf64b89bfc5db47deb7a195fc

See more details on using hashes here.

File details

Details for the file finlens-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 finlens-0.1.11-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 09b3d68e40ce7d69e03578326c26f56b1a5517991b30fd84c86f69550f7adc0b
MD5 f782901239356b5311d1f1d4b6036df3
BLAKE2b-256 91d8be649c922476877ab8ee6779682b2fe7298e3023d38b6382319281a81702

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for finlens-0.1.11-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 5516ab1e79af5beb18f1e4c42afcc5381e087e4afa11a140afcfbb6d59f852a3
MD5 36000d9662f4615a5d98e5a9fb1e664d
BLAKE2b-256 851cf7d046b97764ccb6ac0f2bb36a611bfe4701b8dd63886fee2a931e3d2491

See more details on using hashes here.

File details

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

File metadata

  • Download URL: finlens-0.1.11-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 496.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 finlens-0.1.11-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3b9231fffef92231b0cbbda81df9ed6116d0b2da849ae265d073740a8f4f1cc9
MD5 db52fbe38b4c526a31998ed801042451
BLAKE2b-256 c31c14df72b4a4b812fce9153e927911d9cb89cb4d1a816aaddd9bce1bcdb8a0

See more details on using hashes here.

File details

Details for the file finlens-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 finlens-0.1.11-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8a4cc0593bc53a8ae0f821bab02c463eec7b178d9ce0e9c7fe6310b046db3b0b
MD5 1159598cc123909d70ee6b7e1dfaea04
BLAKE2b-256 e0b7c89b2dc25e0d1e67a0d4e1cbcc4be247e88d5e35ac064b6bc10ab31d7c1e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for finlens-0.1.11-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 eb6125f2202c8048db68e8e9ff8b08fa474a6ab2e1d9ddb7180e13c36306f688
MD5 a89da31f63ffd355ae08435b1498b07c
BLAKE2b-256 f43c8a07f8459ea786c40af8a47c335a18e35fbfb80e6da3ef8507639da95e14

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