Samples :: Credential
Credential Buy Side 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 “CredentialSellSide” sample. The “CredentialSellSide” must be started first.
Usage
- Run the sample:
- win: 2-CredentialBuySide.bat
- linux: 2-CredentialBuySide.sh
- Clean everything:
- win: clean.bat
- linux: clean.sh
Source Code
Error during retrieving content skip as ignoreDownloadError activated.
Credential Sell Side Sample
Description
This is a FIX Acceptor that waits for incoming connections on the pre-defined port (ListenPort). It demonstrates how to process the username and password from the counterparty.
If the incoming application-level message is “SingleOrder - New” (MsgType=‘D’) then the “ExecutionReport” (MsgType=‘8’) message is send to the counterparty. Otherwise the “Email” (MsgType=‘C’) message is sent back.
This sample can be run together with the “CredentialBuySide” sample. The “CredentialSellSide” must be started first.
Usage
- Run the sample:
- win: 1-CredentialSellSide.bat
- linux: 1-CredentialSellSide.sh
- Clean everything:
- win: clean.bat
- linux: clean.sh
Source Code
Error during retrieving content skip as ignoreDownloadError activated.
The following class is used in the sample:
Error during retrieving content skip as ignoreDownloadError activated.