Skip to content

feat: sync new SDK APIs from openapi to docs site#962

Draft
endless-bot wants to merge 19 commits into
mainfrom
endless/task-11
Draft

feat: sync new SDK APIs from openapi to docs site#962
endless-bot wants to merge 19 commits into
mainfrom
endless/task-11

Conversation

@endless-bot
Copy link
Copy Markdown
Collaborator

@endless-bot endless-bot commented May 8, 2026

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 query
  • option_volume_daily — daily option volume query
  • short_positions — short position data
  • update_pinned — update pinned securities

Fundamental APIs

  • Calendar: dividend, earnings, IPO, macro, split calendars
  • Fundamental: company profile, corporate actions, dividends, executives, financial reports, fund holdings, ratings, shareholders, valuations
  • Market: AH premium, broker positions, index components, market status, trading stats, unusual items

Account APIs

  • Alert: create, delete, list, update alerts
  • DCA (dollar-cost averaging): create, delete, list, update, history
  • Portfolio: capital flow, exchange rates, profit analysis (by market, detail, summary)
  • Sharelist: create, delete, list, update share lists

UI / Site Improvements

  • Pricing page: new tri-locale pricing comparison page for market data subscription tiers; fixes for responsive layout and static QR code on mobile
  • FeaturesMenu: mega-menu dropdown in main nav with 9 financial data product categories; full i18n support
  • Nav: moved API Reference from top nav to Docs sidebar (opens in new tab)
  • Homepage visual polish: neutral color vars on ArchCanvas, distinct card accent hues, section border delineation, ProductSkill gradient, flat GetStarted background
  • Quote permission: added permission notices across CLI docs, API docs, and API Reference; removed unreliable client-side permission status detection
  • Mock login toggle: dev-only panel to simulate login/logout state; shared reactive useLoginState composable

Docs Updates

  • CLI v0.19.2 release notes + updated finance-calendar subcommand examples
  • Corrected quote permission names to match Quote Store (pluralization, Nasdaq Basic rename)
  • Updated skill guide to use CLI-first flow
  • Fixed missing zh-HK translations

Bug Fixes

  • Fixed UnoCSS build error from arbitrary font-feature-settings class
  • Added result.root null guard in postcss.config.mjs to prevent PostCSS crash
  • Fixed home page footer rendering
  • Fixed pricing page build dist

🤖 Auto-generated by Endless.

endless-bot and others added 2 commits May 8, 2026 06:53
# 任务:将 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>
@hogan-yuan hogan-yuan marked this pull request as draft May 8, 2026 07:53
hogan-yuan and others added 8 commits May 8, 2026 21:51
- 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>
@hogan-yuan hogan-yuan changed the title feat: sync new SDK APIs from openapi commit 523035611 to docs site feat: sync new SDK APIs from openapi to docs site May 10, 2026
hogan-yuan and others added 9 commits May 11, 2026 11:38
- 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>
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