Skip to main content

Module models

Module models 

Source
Expand description

The messages of the WebSocket streams: the requests we send and the frames that come back.

Every request is {"op": ..., "req_id": ..., "args": [...]}. The exchange answers a subscription once with {"success": true/false, "ret_msg": ..., "op": "subscribe", "req_id": ...}, then data frames arrive with the topic of the subscription until it is cancelled.

Structs§

WsRequest
A request to the stream.

Enums§

DataKind
How a data frame relates to the earlier ones.
WsIncoming
A frame from the stream.

Constants§

PRIVATE_PATH
The path of the private stream.

Functions§

parse_incoming
Reads one text frame.
public_path
The path of the public stream of a category.