Skip to content

feat(fundamental): add MacroeconomicIndicators and Macroeconomic methods#99

Open
hogan-yuan wants to merge 8 commits into
mainfrom
feat/macrodata-v2
Open

feat(fundamental): add MacroeconomicIndicators and Macroeconomic methods#99
hogan-yuan wants to merge 8 commits into
mainfrom
feat/macrodata-v2

Conversation

@hogan-yuan

@hogan-yuan hogan-yuan commented Jun 10, 2026

Copy link
Copy Markdown
Member

Summary

Two new methods on FundamentalContext:

  • MacroeconomicIndicators(ctx, country, offset, limit)GET /v1/quote/macrodata — list macroeconomic indicators; filter by country (MacroeconomicCountryHK/CN/US/EU/JP/SG); response includes Count (total matching)
  • Macroeconomic(ctx, indicatorCode, startDate, endDate, offset, limit)GET /v1/quote/macrodata/{indicator_code} — historical data for a specific indicator; startDate / endDate accept "YYYY-MM-DD" strings; response includes Count (total data points)

New Types

Type Description
MultiLanguageText Localized text (English / Simplified Chinese / Traditional Chinese)
MacroeconomicCountry Country filter (MacroeconomicCountryHK/CN/US/EU/JP/SG); converts to full name for API
MacroeconomicImportance MacroeconomicImportanceLow=1 / Medium=2 / High=3
MacroeconomicIndicator Indicator metadata
MacroeconomicIndicatorListResponse Data []MacroeconomicIndicator + Count int32
Macroeconomic One historical data point
MacroeconomicResponse Info MacroeconomicIndicator + Data []Macroeconomic + Count int32

Related

hogan-yuan and others added 7 commits June 10, 2026 17:50
- MacrodataIndicators: add country parameter (MacrodataCountry enum)
- MacrodataIndicators: return MacrodataIndicatorListResponse with count
- Macrodata: add offset parameter for pagination
- Macrodata: response includes count field
- Add MacrodataImportance enum (1=Low, 2=Medium, 3=High)

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
SDK accepts HK/CN/US/EU/JP/SG; converts to
'Hong Kong SAR China'/'China (Mainland)'/etc. when sending to API.

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>
…APIValue

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@hogan-yuan hogan-yuan changed the title feat(macrodata): add country filter, count field, and offset pagination feat(fundamental): add MacroeconomicIndicators and Macroeconomic methods Jun 11, 2026
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.

1 participant