diff --git a/clients/derivatives_trading_usds_futures/src/binance_sdk_derivatives_trading_usds_futures/websocket_streams/models/user_data_stream_events_response.py b/clients/derivatives_trading_usds_futures/src/binance_sdk_derivatives_trading_usds_futures/websocket_streams/models/user_data_stream_events_response.py index 084c79f2..267e0ea8 100644 --- a/clients/derivatives_trading_usds_futures/src/binance_sdk_derivatives_trading_usds_futures/websocket_streams/models/user_data_stream_events_response.py +++ b/clients/derivatives_trading_usds_futures/src/binance_sdk_derivatives_trading_usds_futures/websocket_streams/models/user_data_stream_events_response.py @@ -19,6 +19,7 @@ ConfigDict, ValidationError, field_validator, + model_validator, ) from typing import Any, Optional from binance_sdk_derivatives_trading_usds_futures.websocket_streams.models.account_config_update import ( @@ -133,6 +134,10 @@ def __init__(self, *args, **kwargs) -> None: else: super().__init__(**kwargs) + @model_validator(mode="before") + def wrap_actual_instance(cls, values): + return {"actual_instance": values} + @field_validator("actual_instance") def actual_instance_must_validate_oneof(cls, v):