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 codec
  • sender_comp_id: client sender_comp_id tag
  • target_comp_id: client target_comp_id tag
  • journaler: message journaler
  • host: fix host
  • port: fix port
  • heartbeat_period: heartbeat_period in seconds
  • logger: 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.