module connection_server

Dummy FIX server module.


class AsyncFIXDummyServer

Simple server which supports only single connection (just for testing).

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: server sender_comp_id tag
  • target_comp_id: server target_comp_id tag
  • journaler: message journaler
  • host: fix host to listen
  • port: fix port to bind
  • 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()

Starts the server and infinitely runs it.

Raises:

  • FIXConnectionError: when already connected

This file was automatically generated via lazydocs.