SkillPedia Skills Encyclopedia
中文 EN

Skills 2026-09-14 04:55 UTC

claude-for-financial-services-cn

Committed by fintech-python-java. Update Category: Bug Fixes & Stability Improvements. Commit details: fix(akshare-mcp): get_financials always returned [] due to wrong THS indicator and stale annual filter (#4). This update resolves known runtime errors and enhances system reliability.

fintech-python-java d7585ca jwangkun/claude-for-financial-services-cn

CommitRaw commit message

fix(akshare-mcp): get_financials always returned [] due to wrong THS indicator and stale annual filter (#4)

- stock_financial_abstract_ths expects a period granularity indicator
  (按年度/按单季度), not a statement type (利润表 etc.); akshare
  silently falls back on unknown values
- the 12-31 annual filter never matched THS annual rows (plain years
  like 2014), leaving an empty frame -> []
- rows are ordered oldest-first, so head() picked the oldest periods;
  use tail(5)/tail(8) to return the most recent ones
- document that the THS abstract is one combined table and
  statement_type is kept only for backward compatibility

Verified: get_financials(300750) now returns FY2021-2025 annual
abstracts and 8 quarters through 2026Q2.


Claude-Session: https://claude.ai/code/session_0187DduMMD4D45pb7sCd81JL

Co-authored-by: 王和全 <wanghequan@staff.hexun.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>