Skip to content

Commit 46a1ab4

Browse files
author
AdvancingTitans
committed
feat: add multi-source market fallbacks
1 parent e0e969e commit 46a1ab4

6 files changed

Lines changed: 436 additions & 53 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.1.3] - 2026-05-31
9+
10+
### Added
11+
- Added Tencent Finance as an additional no-login quote fallback, with Hong Kong indices using Tencent's close-oriented quote first.
12+
- Added a news fallback chain: Futu news, Futu feed, then Sina Finance rolling news.
13+
14+
### Changed
15+
- Market reports now show friendlier source/quality notes, explicit fund-flow source, and a less technical footer.
16+
- Global/HK index tables distinguish turnover from volume and show the active data source.
17+
818
## [0.1.2] - 2026-05-31
919

1020
### Fixed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ It is also a foundation for analysis pipelines: every subcommand maps to a Pytho
6363

6464
## What's in the box
6565

66-
- **Eastmoney public endpoints**no login, no token. The same endpoints the official web UI uses.
66+
- **Multiple public quote sources**Tencent Finance, Sina Finance, and Eastmoney are tried in sequence so temporary source failures can be filled by another no-login endpoint.
6767
- **Smart caching**`~/.young_stock/cache/`, 7-day TTL, auto-pruned. Pass `--refresh` to skip.
6868
- **Trade-day awareness** — nearest-trade-day resolution including weekends and (best-effort) holidays.
6969
- **Rich terminal tables** — readable on dark and light terminals.
@@ -119,6 +119,6 @@ young a -d 20260530 --refresh # 指定日期 + 强制刷新
119119
young update # 在当前 Python 环境中更新 CLI
120120
```
121121

122-
数据来源:东方财富公开行情接口(`push2.eastmoney.com` / `push2ex.eastmoney.com`),与官网网页同源。本地缓存 7 天,目录 `~/.young_stock/cache/`,可用 `young cache-clear` 清理。
122+
数据来源:腾讯财经、新浪财经、东方财富公开行情接口(`qt.gtimg.cn` / `hq.sinajs.cn` / `push2.eastmoney.com` / `push2ex.eastmoney.com`),多源自动切换。本地缓存 7 天,目录 `~/.young_stock/cache/`,可用 `young cache-clear` 清理。
123123

124124
适用人群:每天盘后想用一条命令看完五张图的开发者 / 量化研究者 / 自动化爱好者。欢迎 issue / PR。

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "young-stock-cli"
7-
version = "0.1.2"
7+
version = "0.1.3"
88
description = "A-share (China stock market) after-hours CLI — no login, no scraping tricks, just data."
99
readme = "README.md"
1010
requires-python = ">=3.10"

src/young_stock/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""young-stock-cli: A-share after-hours CLI."""
22

3-
__version__ = "0.1.2"
3+
__version__ = "0.1.3"

0 commit comments

Comments
 (0)