Samples :: Simple FIX

Simple BuySide Sample

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: SimpleBuySide.bat
    • linux: SimpleBuySide.sh
  • Clean everything:
    • win: clean.bat
    • linux: clean.sh

Simple SellSide Sample

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: SimpleBuySide.bat
    • linux: SimpleBuySide.sh
  • Clean everything:
    • win: clean.bat
    • linux: clean.sh