feat: sync new SDK APIs from openapi to docs site#962
Draft
endless-bot wants to merge 19 commits into
Draft
Conversation
# 任务:将 openapi commit 523035611 新增的 SDK 接口同步到 developers 文档站 你的任务是将 openapi 仓库 commit `523035611c81 🤖 Generated with Endless Co-authored-by: 老袁 Yuan Zhanghong <zhanghong.yuan@longbridge-inc.com>
# 任务:将 openapi commit 523035611 新增的 SDK 接口同步到 developers 文档站 你的任务是将 openapi 仓库 commit `523035611c81 🤖 Generated with Endless Co-authored-by: 老袁 Yuan Zhanghong <zhanghong.yuan@longbridge-inc.com>
- Fix CalendarContext: unify 5 calendar pages to use finance_calendar SDK method with CalendarCategory enum; fix HTTP URL to /v1/quote/finance_calendar - Add Meeting and Merge calendar pages - Fix PortfolioContext: rename capital_flow → profit_analysis_flows - Add 11 missing FundamentalContext methods (institution_rating, institution_rating_detail, dividend_detail, forecast_eps, consensus, valuation_history, industry_valuation, industry_valuation_dist, invest_relation, operating, buyback) - Add 3 missing MarketContext methods (broker_holding_detail, broker_holding_daily, ah_premium_intraday) - Add 2 missing AlertContext methods (enable, disable) - Add 7 missing DCAContext methods (pause, resume, stop, stats, check_support, calc_date, set_reminder) - Add 5 missing SharelistContext methods (detail, popular, add_securities, remove_securities, sort_securities) - Add icons and collapse subdirectories for Fundamental and Account sections - Add Overview pages for Fundamental and Account sections - Translate zh-CN/zh-HK SDK docs; remove duplicate CLI tabs Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
- Add srcExclude for superpowers/** (fixes Vue parse error in local files) - Add buildConcurrency: 10 and manualChunks to reduce build memory - Add mark.js to ssr.noExternal to fix Tailwind v4 ESM loader conflict - Add GC plugin (fire global.gc() between client/server bundles) - Add --expose-gc to CI workflow NODE_OPTIONS for GC plugin to work - Fix skill install URL/package name: developers.longbridge.com → open.longbridge.com, longbridge/developers → longbridge/skills Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
document is not available during SSR; move dark-mode color detection into onMounted so it only runs in the browser. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
- Replace all _rsp schema names with PascalCase Response (492 changes)
- Fix company_profile: expand to 32 actual fields from API response
- Fix shareholders: use shareholder_list + total structure, add ShareholderItem
- Fix institution_rating: nested analyst + instratings structure
- Fix executives: professional_list → ExecutiveGroup + Executive
- Fix market_status: actual {market, status} list structure
- Fix index_components: rise_num/fall_num/flat_num + ConstituentStock fields
- Fix list_dca: all 20 DcaPlan fields from live API
- Remove non-existent CLI commands from ratings.md and buyback.md
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
All response schemas now verified against actual SDK Python calls: FundamentalContext: - company_profile: phone (lowercase), sector (integer) - institution_rating: latest/summary structure (was analyst/instratings) - ratings: StockRatings fields (multi_score, multi_letter, etc.) - fund_holdings: FundHolders.lists with symbol/code/position_ratio - buyback: 3 nested types (history/ratios/recent_buybacks) MarketContext: - market_status: market_time list with delay fields - broker_positions: BrokerHoldingTop buy/sell/updated_at structure - index_components: symbol (not counter_id), no total field - unusual_items: AnomalyResponse all_off/changes - trading_stats: statistics object + trades price-level list CalendarContext: - All 5 calendar docs: unified CalendarEventsResponse/DateGroup/EventInfo AccountContext: - list_alerts: AlertList.lists with AlertSymbolGroup + AlertItem - list_dca: DcaList.plans (not list), added aaid/account_channel - check_support: DcaSupportList.infos with support_regular_saving - exchange_rates: ExchangeRates.exchanges with bid/offer/average rates - list_sharelist/popular: SharelistList fields - profit_analysis_summary: ProfitAnalysis sublist structure Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
- financial_report: params kind/period use enum types not strings (IncomeStatement/Annual etc.), schema updated to actual nested FinancialReportIndicator/Account/Value structure - profit_analysis_detail: fix param names (start/end not start_date/ end_date), add symbol as required, fix schema to ProfitAnalysisDetail with underlying_details + derivative_pnl_details (ProfitDetails type) Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
- operating: expand OperatingList → OperatingItem → OperatingFinancial → OperatingIndicator (was empty list at runtime) - unusual_items: add AnomalyItem sub-schema to changes[] field - list_sharelist/popular_sharelist: expand SharelistInfo + SharelistStock - dca_stats: add nearest_plans field with cross-ref to DcaPlan Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
- broker_holding_daily: BrokerHoldingDailyHistory with list[DailyItem] - dca_history: DcaHistoryResponse with records[] + has_more - profit_analysis_flows: ProfitAnalysisFlows with flows_list[] + has_more, FlowItem fields from .pyi (direction/executed_*/describe) - profit_analysis_detail: add updated_at + updated_date fields - Update sdk_call_results.md with all 48 interface results Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
…l schema Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
AlertContext: add/delete=None(void); enable/disable=None(void) [API err on test data]
SharelistContext: create=None(void on mock), detail=SharelistDetail{sharelist,scopes},
add/remove/sort/delete securities=None(void)
sharelist_detail schema: expanded with SharelistInfo+SharelistScopes nested types
unusual_items.changes, profit_analysis_flows.flows_list remain empty (no data)
Update sdk_call_results.md with full 48-interface result table
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
…esults
- disable/enable: SDK bug (missing frequency field); API returns {id,status}
verified via CLI; documented expected response structure
- delete_dca: clarified as stop() which permanently ends plan, returns None
- sdk_call_results.md: add row numbers, show first field only
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.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
Syncs new SDK interfaces introduced in openapi to the developers documentation site, along with a range of docs, UI, and infrastructure improvements.
New API Documentation (EN / zh-CN / zh-HK)
Quote APIs
option_volume— option volume queryoption_volume_daily— daily option volume queryshort_positions— short position dataupdate_pinned— update pinned securitiesFundamental APIs
Account APIs
UI / Site Improvements
useLoginStatecomposableDocs Updates
finance-calendarsubcommand examplesBug Fixes
font-feature-settingsclassresult.rootnull guard inpostcss.config.mjsto prevent PostCSS crash🤖 Auto-generated by Endless.