Skip to content

feat(fundamental): add economic_indicator_list and economic_indicator#540

Open
hogan-yuan wants to merge 4 commits into
mainfrom
feat/economic-indicator
Open

feat(fundamental): add economic_indicator_list and economic_indicator#540
hogan-yuan wants to merge 4 commits into
mainfrom
feat/economic-indicator

Conversation

@hogan-yuan

Copy link
Copy Markdown
Member

Summary

Two new methods on FundamentalContext across all language SDKs (Rust, Python, Node.js, Java):

  • economic_indicator_list(offset, limit)GET /v1/quote/macrodata, lists all ~619 macroeconomic indicators
  • economic_indicator(indicator_code, start_time, end_time, limit)GET /v1/quote/macrodata/{indicator_code}, fetches historical data for a specific indicator

New Types

  • MultiLanguageText — localized text (English / Simplified Chinese / Traditional Chinese)
  • EconomicIndicatorInfo — indicator metadata (code, country, category, periodicity, importance, etc.)
  • EconomicIndicatorData — one historical data point (period, actual/previous/forecast/revised values, release timestamps, unit)
  • EconomicIndicatorResponse — info + data[]

Files Changed

Layer Files
Rust core rust/src/fundamental/types.rs, context.rs
Python python/src/fundamental/types.rs, context.rs, context_async.rs, mod.rs, pysrc/openapi.pyi
Node.js nodejs/src/fundamental/types.rs, context.rs, index.d.ts
Java java/src/fundamental_context.rs, classes.rs, 4 new Java classes, SdkNative.java, FundamentalContext.java

Related

  • Go SDK: longbridge/openapi-go#feat/economic-indicator
  • API doc: docs/economic-indicator-api.md

hogan-yuan and others added 4 commits June 9, 2026 19:33
… methods

Two new methods on FundamentalContext across all language SDKs:
- economic_indicator_list: GET /v1/quote/macrodata
- economic_indicator: GET /v1/quote/macrodata/{indicator_code}

New types: MultiLanguageText, EconomicIndicatorInfo, EconomicIndicatorData,
EconomicIndicatorResponse.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
- EconomicIndicatorInfo.start_date: String -> Option<OffsetDateTime>
- EconomicIndicatorData.release_at/next_release_at: String -> Option<OffsetDateTime>
Python: PyOffsetDateTimeWrapper (datetime), Node.js: Option<i64> (unix seconds).

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
…FC3339)

Input params now accept OffsetDateTime and are serialized as RFC3339
(2024-01-01T00:00:00Z) to match API requirements.
- Rust/Python: Option<OffsetDateTime>
- Node.js: Option<i64> unix seconds (converted internally)
- Java: Option<OffsetDateTime>
- Go: *time.Time

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.

1 participant