* fix(cli): price decimals per instrument + minute time column 1) 价格按品种小数位显示:可转债 128.892 原被 %8.2f 截成 128.89; 新增 _price_fmt/_display_dp,宽度随小数位走(%8.2f -> %9.3f)不破坏对齐。 可转债(沪 110/111/113/118、深 123/127/128)解码是 4 位但报价步长 0.001, 显示降到 3 位;ETF 3 位、国债/回购 4 位、股票/指数 2 位沿用 price_decimal_digits。 2) tdx minute 时间列原按序号推算(i//60, i%60)打印成 00:00~03:59, 改用 MinuteBar.hour/minute。 3) cmd_transactions/cmd_minute 改调 get_ticks/get_minutes,消掉 DeprecationWarning。 新增 tests/test_cli_format.py(8 项);全量 354 passed。 * chore: release 0.6.8(CLI 价格小数位 + 分时时间列修复) - 版本号 0.6.7 -> 0.6.8(pyproject / __init__.py / uv.lock / CHANGELOG 四处对齐) - CHANGELOG:`[未发布]` -> `[0.6.8] - 2026-10-23` - docs/cli.md:补「价格小数位按品种适配」对照表 + `tdx minute` 时间列说明 功能改动见 cd8227f(CLI 价格按品种小数位显示、分时时间列改真实时钟、 cmd_transactions/cmd_minute 改调 get_ticks/get_minutes 消 DeprecationWarning)。 实测 `tdx minute sh113708` -> 时间 09:30 起、价格 127.631(3 位); `tdx transactions sh113708` -> 11:29:47 / 127.141 / 44 手 / 买(4笔)。 测试 354 全通过(310 + 16 + 23 + 5)。 --------- Co-authored-by: openbot-coder <openbot-coder@users.noreply.github.com>
63 lines
1.7 KiB
TOML
63 lines
1.7 KiB
TOML
[project]
|
|
name = "pytdxdata"
|
|
version = "0.6.8"
|
|
description = "通达信(TongDaXin)行情数据客户端:动态连接池 + 双层TTL缓存 + 3连接并发分页,纯asyncio零运行时依赖,支持A股/港股/美股/期货/期权"
|
|
readme = "README.md"
|
|
requires-python = ">=3.11"
|
|
license = "MIT"
|
|
license-files = ["LICENSE"]
|
|
keywords = ["tdx", "trading", "stock", "kline", "quote", "通达信", "A股", "港股", "美股", "期货", "asyncio", "quant"]
|
|
authors = [
|
|
{ name = "openbot-coder", email = "openbot-coder@users.noreply.github.com" }
|
|
]
|
|
classifiers = [
|
|
"Development Status :: 4 - Beta",
|
|
"Intended Audience :: Developers",
|
|
"Intended Audience :: Financial and Insurance Industry",
|
|
"Topic :: Office/Business :: Financial :: Investment",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Programming Language :: Python :: 3.13",
|
|
"Operating System :: OS Independent",
|
|
"Framework :: AsyncIO",
|
|
"Typing :: Typed",
|
|
]
|
|
dependencies = []
|
|
|
|
[project.urls]
|
|
Homepage = "https://github.com/openbot-coder/pytdxdata"
|
|
Repository = "https://github.com/openbot-coder/pytdxdata"
|
|
Documentation = "https://openbot-coder.github.io/pytdxdata/"
|
|
|
|
[project.optional-dependencies]
|
|
uvloop = ["uvloop>=0.21"]
|
|
dev = ["pytest>=8.0", "pytest-asyncio>=0.24", "ruff>=0.6"]
|
|
|
|
[project.scripts]
|
|
tdx = "pytdxdata.cli:main"
|
|
|
|
[build-system]
|
|
requires = ["uv_build>=0.11.1,<0.12.0"]
|
|
build-backend = "uv_build"
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py313"
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = "auto"
|
|
testpaths = ["tests"]
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"pytest>=9.1.1",
|
|
"pytest-asyncio>=1.4.0",
|
|
]
|
|
docs = [
|
|
"mkdocs-material>=9.5",
|
|
"mkdocstrings[python]>=0.26",
|
|
"ruff>=0.6",
|
|
"jieba>=0.42",
|
|
]
|
|
|