feat(fundamental): add economic_indicator_list and economic_indicator#540
Open
hogan-yuan wants to merge 4 commits into
Open
feat(fundamental): add economic_indicator_list and economic_indicator#540hogan-yuan wants to merge 4 commits into
hogan-yuan wants to merge 4 commits into
Conversation
… 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>
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
Two new methods on
FundamentalContextacross all language SDKs (Rust, Python, Node.js, Java):economic_indicator_list(offset, limit)—GET /v1/quote/macrodata, lists all ~619 macroeconomic indicatorseconomic_indicator(indicator_code, start_time, end_time, limit)—GET /v1/quote/macrodata/{indicator_code}, fetches historical data for a specific indicatorNew 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
rust/src/fundamental/types.rs,context.rspython/src/fundamental/types.rs,context.rs,context_async.rs,mod.rs,pysrc/openapi.pyinodejs/src/fundamental/types.rs,context.rs,index.d.tsjava/src/fundamental_context.rs,classes.rs, 4 new Java classes,SdkNative.java,FundamentalContext.javaRelated
docs/economic-indicator-api.md