Connection management
Get cpty status
Get the status of a cpty connection.
status = await client.cpty_status(kind="binance")Returned fields:
connected: true iff all component connections are connected, e.g. sockets are connectedstale: true iff any component connection is stale, e.g. missed a protocol heartbeatlogged_in: true iff all component connections are logged in (if relevant)connections: map of individual connections statuses relevant to the cptyconnections.connected: connection is physically established, e.g. socket is connectedconnections.last_heartbeat: UNIX timestamp (seconds) of last heartbeat from connection, or-1for neverconnections.last_heartbeat_stale_threshold: threshold in seconds for considering a connection stale, e.g. if a heartbeat is missedconnections.logged_in: true if connection is logged in, ornullif not relevant
Last updated