feat: watchlist charts, fund detail, and quote circuit fix - #176
Merged
Conversation
…tail tabs Route quotes by InstrumentRef assetClass so SZ.000001 uses stock snapshot instead of index; align Vol/MACD panes; enrich fund detail from Fuyao APIs. Co-authored-by: Cursor <cursoragent@cursor.com>
Map official drawdown/allocation/manager/diagnosis shapes (ratio_pct, week/month, manager_info, nested resilience) so fund tabs stop showing Object or empty sections. Co-authored-by: Cursor <cursoragent@cursor.com>
Replace the handwritten REST client with a thin adapter over the official SDK so endpoint shapes and types stay aligned while keeping fromConfig and existing market method signatures. Co-authored-by: Cursor <cursoragent@cursor.com>
Align normalize/UI with official adj_nav, peer ranks, drawdowns, dividends, manager tenure and company metrics so fund detail shows real numbers. Co-authored-by: Cursor <cursoragent@cursor.com>
Route fund financials, market dumps, limit pools, and auction APIs through @opptrix/fuyao; merge limit-down into limitUpdown and drop raw HTTP get. Co-authored-by: Cursor <cursoragent@cursor.com>
Cut fund_detail parallel legs to snapshot/holdings/allocation, derive performance and holders from profile, and drop unused manager/dividend tabs so opening a fund hits fewer upstream calls. Co-authored-by: Cursor <cursoragent@cursor.com>
Watchlist polling treated business-empty responses as hard failures and tripped STOCK_REALTIME, leaving equity prices stuck while index quotes still worked. Empty misses no longer open the circuit; provider_test success resets health. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan
npm run check:uiand fund/quote related tests passMade with Cursor