Samples :: Simple FIX

SimpleBuySide

Description

This is a FIX initiator that connects to the pre-defined host and port. When the session is established, the "SingleOrder - New"(MsgType='D') FIX message is sent to the counterparty.

This sample can be run together with the "SimpleSellSide" sample. The "SimpleSellSide" must be started first.

Usage

  • Run the sample:
    • win: 2-SimpleBuySide.bat
    • linux: 2-SimpleBuySide.sh
  • Clean everything:
    • win: clean.bat
    • linux: clean.sh

SimpleSellSide

Description

This is a FIX acceptor that waits for incoming connections on the pre-defined port (ListenPort). If the incoming application-level message is "SingleOrder - New" (MsgType='D') then the "ExecutionReport" (MsgType='8') message is sent to the counterparty. Otherwise the "Email" (MsgType='C') message is sent back.

This sample can be run together with the "SimpleBuySide" sample. The "SimpleSellSide" must be started first.

Usage

  • Run the sample:
    • win: 2-SimpleSellSide.bat
    • linux: 2-SimpleSellSide.sh
  • Clean everything:
    • win: clean.bat
    • linux: clean.sh