module connection_client
FIX Initiator (client) connection.
class AsyncFIXClient
Generic FIX client.
method __init__
__init__(
protocol: FIXProtocolBase,
sender_comp_id: str,
target_comp_id: str,
journaler: Journaler,
host: str,
port: int,
heartbeat_period: int = 30,
logger: Logger | None = None
)
Initialization.
Args:
protocol
: FIX protocol used in codecsender_comp_id
: client sender_comp_id tagtarget_comp_id
: client target_comp_id tagjournaler
: message journalerhost
: fix hostport
: fix portheartbeat_period
: heartbeat_period in secondslogger
: custom logger instance
property connection_role
Current connection role.
property connection_state
Current connection state.
property heartbeat_period
Current connection heartbeat period in seconds.
property protocol
Underlying FIXProtocolBase of a connection.
method connect
connect()
Connects to the FIX server and initializes session.
Raises:
FIXConnectionError
: if already connected
This file was automatically generated via lazydocs.