MCPcopy Create free account
hub / github.com/binance/binance-connector-python / parse_user_event

Function parse_user_event

common/src/binance_common/utils.py:873–900  ·  view source on GitHub ↗

Parse user event to response model. Args: payload (dict): The payload dictionary containing event data. response_model_cls (Type[BaseModel]): The response model class. Returns: BaseModel: The parsed response model instance.

(payload: dict, response_model_cls: Type[BaseModel])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

receive_loopMethod · 0.90
test_invalid_eventMethod · 0.90
test_invalid_payloadMethod · 0.90

Calls 3

resolve_model_from_eventFunction · 0.85
get_validator_field_mapFunction · 0.85
model_validateMethod · 0.80

Tested by 2

test_invalid_eventMethod · 0.72
test_invalid_payloadMethod · 0.72