Skip to content

Dev#1012

Closed
gjh-ustc0311 wants to merge 58 commits intomassive-com:masterfrom
gjh-ustc0311:dev
Closed

Dev#1012
gjh-ustc0311 wants to merge 58 commits intomassive-com:masterfrom
gjh-ustc0311:dev

Conversation

@gjh-ustc0311
Copy link
Copy Markdown

No description provided.

gjh-ustc0311 and others added 30 commits April 22, 2026 13:24
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Copy eastmoney_patch.py from reference repo into provider/_patch/
- Update imports in efinance_fetcher.py and akshare_fetcher.py
- Add requests, tenacity, fake-useragent to core dependencies
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace market_cap_min/request_interval/data_dir with multi-source support:
exchanges list, per-source intervals (akshare/yfinance/massive), separate
list_dir/daily_dir, and data_source_priority for priority-based failover.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@justinpolygon
Copy link
Copy Markdown
Collaborator

Hey @gjh-ustc0311, looks like this might have been some internal project you're working on vs a PR you wanted to push up here. Was there a change you wanted pushed into the library here?

gjh-ustc0311 and others added 15 commits April 24, 2026 00:00
…Fetcher

Adds _us_code_map cache field to __init__ and _to_us_em_symbol method that
converts plain tickers (AAPL) to eastmoney format (105.AAPL) via ak.stock_us_spot_em,
with caching, error handling, and case-insensitive lookup.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…y fallback

Replace static DataFetchError for US stocks in AkshareFetcher._fetch_raw_data with
a two-strategy _fetch_us_data method: try stock_us_hist (东方财富) first, fall back
to stock_us_daily (新浪) on failure, raise DataFetchError only when both fail.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
For US stock codes (detected via _is_us_code), retain amplitude, change,
and turnover_rate columns in addition to STANDARD_COLUMNS; A-share behavior
is unchanged.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…back

Upgrade AkshareSource.fetch_daily to use stock_us_hist (East Money API, more fields)
as the primary source with stock_us_daily as fallback. Adds symbol resolution via
stock_us_spot_em with result caching to avoid redundant API calls.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@justinpolygon
Copy link
Copy Markdown
Collaborator

Hi @gjh-ustc0311, this is the public client library repo and it looks like you're doing personal development here. I'm going to close the pull request. It likely makes sense to move this to a private repo under your github account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants