Skip to main content

hodlvn — HODL Lab SDK

Viết chỉ báo, chiến lược và backtest danh mục cổ phiếu Việt Nam trên dữ liệu của HODL. Lõi này cũng là thứ chạy trong trình duyệt ở hodl.vn/lab, nên kết quả ở SDK và trên web giống nhau tới đồng.

pip install hodlvn
export HODL_API_KEY=hodl_...        # tạo ở hodl.vn/tai-khoan/ket-noi-ai (hạng Loyalty)
import hodl
lab = hodl.Client()
res = lab.run('universe("HX-BANK")\nrebalance("M")\npick(top(momentum(63), 3))', kind="portfolio", start="2021-01-04")
print(res["summary"])

Backtest đã áp sẵn luật thị trường Việt Nam: lô 100, biên độ trần / sàn theo sàn, T+2,5, phí 0,15%, thuế bán 0,1%, cổ tức tiền (thuế 5%) và cổ phiếu thưởng theo đúng ngày GDKHQ, khớp lệnh ở giá mở phiên sau tín hiệu, giá thật.

Hướng dẫn đầy đủ: https://hodl.vn/lab/docs

Metadata

Release files for hodlvn 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hodlvn 0.1.0
File Size Uploaded Provenance Actions
hodlvn-0.1.0.tar.gz 22.4 kB Without provenance Details for hodlvn-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hodlvn 0.1.0
File Interpreter ABI Platform Actions
hodlvn-0.1.0-py3-none-any.whl Python 3 none any Details for hodlvn-0.1.0-py3-none-any.whl

Total release size: 44.9 kB

Release files / hodlvn-0.1.0.tar.gz

Download URL hodlvn-0.1.0.tar.gz
Size 22.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f9d25912ba6de3feaed4d47af2bcb639cda4dbe2f1a424529c353340b1416990
BLAKE2b-256 checksum
How to use checksums
482635fd04c6dee9844fcd1f776116c3a12a81195827f5e2022db7091b3b94b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / hodlvn-0.1.0-py3-none-any.whl

Download URL hodlvn-0.1.0-py3-none-any.whl
Size 22.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a2d684596158b62b52a47fa61d87dda58bdc96048a5b78654d5325db1e9800f5
BLAKE2b-256 checksum
How to use checksums
7ece3a35f3f179d69beb3ddfe9a4e82a6d246c2ee7ad59386dd69ca90a5c041a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for hodlvn 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page