Skip to main content

xcals

安装

pip install -U xcals

使用示例

import xcals

print(xcals.__version__)

# 更新最新交易日数据(不定时更新)
xcals.update()

# 获取交易日列表
xcals.get_tradingdays()

# 获取最新交易日
xcals.get_recent_tradeday()

# 获取前5个交易日
xcals.shift_tradeday("2025-05-06", -5)

# 获取最新财报日期
xcals.get_recent_reportdate("2025-05-06") # 2025-03-31

# 获取前5个财报日期
xcals.shift_reportdate("2025-03-31", -5)

# 获取日内交易时间
xcals.get_tradingtime(freq="1s") # 分钟频: freq="1min"

# 移动交易时间
xcals.shift_tradetime("09:45:00", "10min5s") # 前推5秒: -5s

Metadata

Release files for xcals 0.1.6

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

Source distribution (sdist)

Source distribution for xcals 0.1.6
File Size Uploaded Provenance
xcals-0.1.6.tar.gz 5.3 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 10.9 kB

Release files / xcals-0.1.6.tar.gz

Download URL xcals-0.1.6.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
cab6ae30ab3aa15ca0158b22046e6c3af17981cee975c1d4840e498bc81c0770
BLAKE2b-256 checksum
How to use checksums
62439a83bf5d9f4cbf42ebc84f5c7418ae8643ff8b86e5e6ee272be692c0711e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.8

Release files / xcals-0.1.6-py3-none-any.whl

Download URL xcals-0.1.6-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b56710b1c5d8f313191691a2ca6d2d570cbdcb4a83c1c06bcb278f4df1a42c72
BLAKE2b-256 checksum
How to use checksums
26e31568c886838a9597a418ccf874edfdf7f620a553590ebf677c76ec897db3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.8

Security for xcals 0.1.6

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.

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