Skip to content

Incorrect AccountStreamDataModel schema #67

@sampocs

Description

@sampocs

Issue

I believe their might be a mismatch between the AccountStreamDataModel (more specifically the OpenOrderModel) in the SDK, and the response returned from the API.

I often see the following error when subscribing to account updates.

2025-11-13 12:48:58,939 - ERROR - Websocket disconnected: 1 validation error for WrappedStreamResponse[AccountStreamDataModel]
data.orders.0.price
  Field required [type=missing, input_value={'id': 198904203008855654... 'GTT', 'payedFee': '0'}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.12/v/missing

I'm on SDK version 0.0.17

Solution

Not sure what the intended behavior is, but I think either the price should be optional in the model or the API should include a price in the response.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions