Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Crontab scripts examples for credentials: 

  • username - test
  • password - test
  • remote host - fixedgej.sever.com:2000
  • session name - session1
  1. It is needed to add 2 two additional commands to the crontab that will start the session at 7 PM Sat and 11 AM Sun:

    Code Block
    sshpass -p test ssh -t test@fixedgej.sever.com -p 2000 'session start session1'
  2. It is needed to add 2 two additional commands to the crontab that will stop the session at 11 AM Sun and 6 PM Sun

    Code Block
    sshpass -p test ssh -t test@fixedgej.sever.com -p 2000 'session start session1'

...

Code Block
plink.exe fixedgej.sever.com -P 2000 -l test -pw test -batch -t session start session1


How to configure Echo between FIXEdge Java and Simple Client

Echo configuration between FIXEdge Java and Simple Client is performed in the following way:

  1. Install FIXEdge Java.
  2. Create a new file fixedgej-x.x.x\conf\session\s_fix_TestEchoAcceptor.properties for add session TestEchoAcceptor.
    Configure session parameters there:

    Code Block
    titles_fix_TestEchoAcceptor.properties
    sessionType=acceptor
    senderCompID=FIXEdgeJ
    targetCompID=FIXECHOCLIENT
    fixVersion=FIX.4.4
    startOnload = true
  3. Configure BL rules in fixedgej-x.x.x\conf\rules.groovy

    Code Block
    titlerules.groovy
    RoutingContext rc = routingContext as RoutingContext;
    [
            messageRule("FIXEDGE -> FIXECHOCLIENT")
                    .sourceCondition({ source -> source.id == "TestEchoAcceptor" })
                    .action({
                        ctx ->
                            def destination = rc.getDestinationById("TestEchoAcceptor")
                            destination.send(ctx.getMessage())
                            ctx.exit()
                    })
                    .build(),
            getRejectionRule(routingContext)
    ]

    The session-id value in the rule source.id == "TestEchoAcceptor" is the same as the id in the session configuration file s_fix_TestEchoAcceptor.properties

  4. Run FIXEdge Java.
    E.g. via run script:
    • Windows: Go to the FIXEdge Java installation dir fixedgej-x.x.x\bat\ and run the runConsole.bat script
    • Linux: Go to the FIXEdge Java installation dir fixedgej-x.x.x/bin and run the runConsole.sh script
  5. Open FIX Client Simulator.
    Create a new session as Initiator:

    Code Block
    Session type: Initiator
    SenderCompID = FIXECHOCLIENT
    TargetCompID = FIXEdgeJ
    FIX Version = 4.4
    Remote Port = 8911 (server.port parameter in FEJ fixedge.properties -> fixedgej-x.x.x\conf\fixedge.properties )
    Remote Host = localhost (or IP address/hostname of the FIXEdge Java server)

    Image Added

    Info

    The default port for session acceptors is 8911 and specified as server.port parameter in fixedge.properties file.

    NOTE: SenderCompID on the FCS side should have the same value as TargetCompId on the FIXEdge side.
    And TargetCompId on the FCS side should be the same as SenderCompID on FIXEdge's side.

  6. Send the message from FIX Client Simulator (Pipe character is used to represent SOH character).

    Code Block
    titleNew Order - Echo test.msg
    8=FIX.4.4|9=156|35=D|49=FIXECHOCLIENT|56=FIXEdgeJ|34=2|52=20210625-22:16:38.867|11=Order#3|21=1|100=1|55=TESTSMBL|54=1|60=20131124-04:11:46.768|38=20000|40=2|44=34.7|10=026|

    The file contains SOH symbols: NewOrderEchoTestMessage.txt

  7. Echo message from FIXEdge is received.

    Code Block
    8=FIX.4.4|9=156|35=D|34=2|49=FIXEdgeJ|56=FIXECHOCLIENT|52=20210625-22:16:38.878|11=Order#3|21=1|100=1|55=TESTSMBL|54=1|60=20131124-04:11:46.768|38=20000|40=2|44=34.7|10=028|