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 codecsender_comp_id
: server sender_comp_id tagtarget_comp_id
: server target_comp_id tagjournaler
: message journalerhost
: fix host to listenport
: fix port to bindheartbeat_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()
Starts the server and infinitely runs it.
Raises:
FIXConnectionError
: when already connected
This file was automatically generated via lazydocs.