FIX Trading API

Session Messages

Logon

Client sends Logon message

8=FIX.4.3 9=120 35=A 34=1 49=FIXTEST 50=FX 52=20170330-18:35:06.778 
56=SAXOTRADE_TEST 98=0 108=30 141=Y 553=fixtestuser 554=fixtestpass 10=079 

Saxo responds with Login message 

8=FIX.4.3 9=94 35=A 49=SAXOTRADE_TEST 56=FIXTEST 34=1 57=FX 
52=20170330-18:35:08.567 369=1 98=0 108=30 141=Y 10=004 

Test Request

Saxo sends test request (in this case, right after logon) 

8=FIX.4.3 9=98 35=1 49=SAXOTRADE_TEST 56=FIXTEST 34=2 57=FX 
52=20170330-18:35:08.567 369=1 112=20170330-18:35:09 10=240 

Client replies with test heartbeat

8=FIX.4.3 9=92 35=0 34=2 49=FIXTEST 50=FX 52=20170330-18:35:08.634 
56=SAXOTRADE_TEST 112=20170330-18:35:09 10=204 

Heartbeat



Saxo sends and reply to heartbeats every 30 seconds (in this case a reply to the client heartbeat from a test request).

8=FIX.4.3 9=76 35=0 49=SAXOTRADE_TEST 56=FIXTEST 34=3 57=FX 
52=20170421-12:40:31.005 369=2 10=150 

 Client must reply with a heartbeat within 30 seconds

8=FIX.4.3 9=70 35=0 34=3 49=FIXTEST 50=FX 52=20170421-12:40:31.261 
56=SAXOTRADE_TEST 10=123 

Logoff

Client sends Logoff message

8=FIX.4.3 9=70 35=5 34=7 49=FIXTEST 50=FX 52=20170330-18:35:49.762 
56=SAXOTRADE_TEST 10=156 

Saxo responds with Logoff message (connection terminated)

8=FIX.4.3 9=76 35=5 49=SAXOTRADE_TEST 56=FIXTEST 34=9 57=FX 
52=20170330-18:35:49.734 369=7 10=193