Skip to content

fix(filters): ignore unknown filter variants during deserialization#258

Open
dwarfdruid wants to merge 1 commit into
ccxt:masterfrom
dwarfdruid:fix/ignore-unknown-filter
Open

fix(filters): ignore unknown filter variants during deserialization#258
dwarfdruid wants to merge 1 commit into
ccxt:masterfrom
dwarfdruid:fix/ignore-unknown-filter

Conversation

@dwarfdruid
Copy link
Copy Markdown

Binance added a new filter type (POSITION_RISK_CONTROL) which isn't recognized by the current enum in the binance crate, causing deserialization to fail.

This patch updates the Filters enum to use #[serde(other)] to ignore unknown variants, preventing panics and improving compatibility with future changes in Binance's API.

Binance added a new filter type (`POSITION_RISK_CONTROL`) which isn't recognized
by the current enum in the `binance` crate, causing deserialization to fail.

This patch updates the `Filters` enum to use `#[serde(other)]` to ignore unknown
variants, preventing panics and improving compatibility with future changes in
Binance's API.
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