Skip to content

The Subscribe to Order Book link in the SDK stream is inaccurate. #9

@leveleven

Description

@leveleven

`def subscribe_depth(self, contract_id: str, handler: Callable[[str], None]):
client = self.get_public_client()

# Register handler
client.on_message("depth", handler)

# Subscribe to depth channel
channel = f"depth.{contract_id}"
client.subscribe(channel)`

In the API documentation, the WebSocket API description for the channel should be depth.{contractId}.{depth}, not depth.{contract_id} as in the SDK.

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