Skip to content

Conversation

dwarfdruid
Copy link

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