Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Fixed

- Remove unused `pub(crate)` blocking wrappers `macroeconomic_indicators_v2` / `macroeconomic_v2` from `FundamentalContextSync`; the public blocking methods already proxy through v2 via the async chain
- **Python:** add `eq, eq_int, from_py_object` to `MacroeconomicCountry` pyclass to resolve pyo3 v0.28 deprecation of automatic `FromPyObject` for `Clone` types; also add `Hash, Eq, PartialEq` derives consistent with other argument enums in the file

## [4.3.2] - 2026-06-13

### Added
Expand Down
4 changes: 2 additions & 2 deletions python/src/fundamental/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1988,8 +1988,8 @@ impl From<lb::MultiLanguageText> for MultiLanguageText {
}

/// Country code for filtering macroeconomic indicators
#[pyclass]
#[derive(Debug, Copy, Clone)]
#[pyclass(eq, eq_int, from_py_object)]
#[derive(Debug, Copy, Clone, Hash, Eq, PartialEq)]
pub(crate) enum MacroeconomicCountry {
HongKong,
China,
Expand Down
29 changes: 0 additions & 29 deletions rust/src/blocking/fundamental.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,33 +320,4 @@ impl FundamentalContextSync {
})
}

/// List macroeconomic indicators (v2) with optional keyword filter
pub(crate) fn macroeconomic_indicators_v2(
&self,
country: Option<MacroeconomicCountry>,
keyword: Option<impl Into<String> + Send + 'static>,
offset: Option<i32>,
limit: Option<i32>,
) -> Result<MacroeconomicIndicatorListResponse> {
self.rt.call(move |ctx| async move {
ctx.macroeconomic_indicators_v2(country, keyword, offset, limit)
.await
})
}

/// Get historical data for a macroeconomic indicator (v2) with sort support
pub(crate) fn macroeconomic_v2(
&self,
indicator_code: impl Into<String> + Send + 'static,
start_date: Option<impl Into<String> + Send + 'static>,
end_date: Option<impl Into<String> + Send + 'static>,
offset: Option<i32>,
limit: Option<i32>,
sort: Option<impl Into<String> + Send + 'static>,
) -> Result<MacroeconomicResponse> {
self.rt.call(move |ctx| async move {
ctx.macroeconomic_v2(indicator_code, start_date, end_date, offset, limit, sort)
.await
})
}
}
Loading