Quantcast

Dukascopy and quickfix/C++

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Dukascopy and quickfix/C++

Jeff2004
hello,
      I am connecting to the Dukascopy Server in quickfix/C++. But it is reset by it's fix server and my IP in his whitelist. I try to connect the server in quickfix/J ,that's Ok. but the message  are same .
      I used capture the message in wireshark . The server  replyed to me " Malforme packet", but the support  team of Dukascopy can't tell the reason.
      this is my message of logon:
20151209-03:25:57.428 : 8=FIX.4.49=11635=A34=149=DEMO2EEgcw_DEMOFIX52=20151209-03:25:57.40056=DUKASCOPYFIX98=0108=30141=Y553=DEMO2EEgcw554=EEgcw10=036
     
     Who can give me some help? Thanks very much!

Jeff
   
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Dukascopy and quickfix/C++

Christoph John
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


Hi,

"malformed packet" sounds like an error on TCP/IP level rather than FIX.
Are you maybe trying to connect with SSL to a non-SSL session or vice versa?

Cheers,
Chris.

On 09/12/15 04:28, Jeff2004 wrote:

> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>
>
> hello,
>        I am connecting to the Dukascopy Server in quickfix/C++. But it is
> reset by it's fix server and my IP in his whitelist. I try to connect the
> server in quickfix/J ,that's Ok. but the message  are same .
>        I used capture the message in wireshark . The server  replyed to me "
> Malforme packet", but the support  team of Dukascopy can't tell the reason.
>        this is my message of logon:
> 20151209-03:25:57.428 :
> 8=FIX.4.49=11635=A34=149=DEMO2EEgcw_DEMOFIX52=20151209-03:25:57.40056=DUKASCOPYFIX98=0108=30141=Y553=DEMO2EEgcw554=EEgcw10=036
>        
>       Who can give me some help? Thanks very much!
>
> Jeff
>      
>
>
>
> --
> View this message in context: http://quickfix-j.364392.n2.nabble.com/Dukascopy-and-quickfix-C-tp7579321.html
> Sent from the QuickFIX/J mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Quickfixj-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users

--
Christoph John
Development & Support
Direct: +49 241 557080-28
Mailto:[hidden email]
       


http://www.macd.com <http://www.macd.com/>
----------------------------------------------------------------------------------------------------
       
----------------------------------------------------------------------------------------------------
MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: +49 241 557080-0 | Fax: +49 241 557080-10
         Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald
----------------------------------------------------------------------------------------------------
       
----------------------------------------------------------------------------------------------------

take care of the environment - print only if necessary

------------------------------------------------------------------------------
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Dukascopy and quickfix/C++

Christoph John
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



Hi,

just for tests: please remove all SocketUseSSL properties. I assume the latter one is taken which means that SSL should be used.
Apart from that I think that this is no FIX or QuickFIX problem but rather a problem of SSL or network setup. Are you able to establish a connection? Maybe you should post some information from the message and event log file.

Regards,
Chris.




On 09/12/15 10:53, 王金福 wrote:
Hi Chris
    Thank you very much!
     In my fix config file
     The effect of "SocketUseSSL=N " or "SocketUseSSL=Y"  are same.
 
      My fix config file  as  follow :
      [DEFAULT]
ConnectionType=initiator
ReconnectInterval=60
FileStorePath=store
FileLogPath=logs
HttpAcceptPort=9911
SocketUseSSL=Y
SocketKeepAlive=N
ResetOnLogon=Y
SocketUseSSL=N 
[SESSION]
BeginString=FIX.4.4
SenderCompID=DEMO2EEgcw_DEMOFIX
TargetCompID=DUKASCOPYFIX
StartTime=22:00:00
EndTime=21:59:59
StartDay=sunday
EndDay=sunday
#friday
HeartBtInt=30
SocketConnectHost=demo-api.dukascopy.com
SocketConnectPort=10443
SendResetSeqNumFlag=Y
ValidateFieldsOutOfOrder=N
UseDataDictionary=Y
MaxLatency=240
DataDictionary=./spec/DUKAFIX44.xml
SendBufferSize=1024
ReceiveBufferSize=1024
ResetOnLogon=Y
ResetOnLogout=Y
ResetOnDisconnect=Y
Username=DEMO2EEgcw
Password=EEgcw
CheckLatency=N
MaxLatency=240
 
 
     the fix config in quickfix/java ,that's ok,
      the message of fix in wireshark shows "Expert Info(Error/Malformed)"
     and "Severity level:error".
     I could't find the reason of it.
    
 
Best regards,

Jeff
 
 
 
     

--
Christoph John
Development & Support
Direct: +49 241 557080-28
Mailto:Christoph.John@...



http://www.macd.com


MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: +49 241 557080-0 | Fax: +49 241 557080-10
 Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald


take care of the environment - print only if necessary

------------------------------------------------------------------------------

_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: 回复: Dukascopy and quickfix/C++

Christoph John
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



Check if your Sender/TargetCompID, Username and Password are correct. If any of these is wrong it is likely that the connection is dropped without sending a message back.

Chris.


On 09/12/15 12:51, 王金福 wrote:
Hi Chris
      I take off the SocketUseSSL properties. it can't connect to dukascopy server.
      My log of fix client as follow:
     FIX.4.4-DEMO2EEgcw_DEMOFIX-DUKASCOPYFIX.event.current.log
 
 20151209-11:41:53.189 : Created session
20151209-11:41:53.329 : Connecting to demo-api.dukascopy.com on port 10443
20151209-11:41:53.713 : Initiated logon request
20151209-11:41:54.080 : Socket Error: Connection reset by peer.
20151209-11:41:54.080 : Disconnecting
20151209-11:42:53.332 : Connecting to demo-api.dukascopy.com on port 10443
20151209-11:42:53.735 : Initiated logon request
20151209-11:42:54.105 : Socket Error: Connection reset by peer.
20151209-11:42:54.105 : Disconnecting
20151209-11:43:53.336 : Connecting to demo-api.dukascopy.com on port 10443
20151209-11:43:53.722 : Initiated logon request
20151209-11:43:54.071 : Socket Error: Connection reset by peer.
20151209-11:43:54.071 : Disconnecting
20151209-11:44:53.339 : Connecting to demo-api.dukascopy.com on port 10443
20151209-11:44:53.728 : Initiated logon request
20151209-11:44:54.092 : Socket Error: Connection reset by peer.
20151209-11:44:54.092 : Disconnecting
 
FIX.4.4-DEMO2EEgcw_DEMOFIX-DUKASCOPYFIX.messages.current.log
 
   20151209-11:41:53.713 : 8=FIX.4.49=11635=A34=149=DEMO2EEgcw_DEMOFIX52=20151209-11:41:53.70256=DUKASCOPYFIX98=0108=30141=Y553=DEMO2EEgcw554=EEgcw10=034
20151209-11:42:53.734 : 8=FIX.4.49=11635=A34=149=DEMO2EEgcw_DEMOFIX52=20151209-11:42:53.71656=DUKASCOPYFIX98=0108=30141=Y553=DEMO2EEgcw554=EEgcw10=040
20151209-11:43:53.722 : 8=FIX.4.49=11635=A34=149=DEMO2EEgcw_DEMOFIX52=20151209-11:43:53.69956=DUKASCOPYFIX98=0108=30141=Y553=DEMO2EEgcw554=EEgcw10=051
20151209-11:44:53.727 : 8=FIX.4.49=11635=A34=149=DEMO2EEgcw_DEMOFIX52=20151209-11:44:53.71556=DUKASCOPYFIX98=0108=30141=Y553=DEMO2EEgcw554=EEgcw10=041
20151209-11:45:53.749 : 8=FIX.4.49=11635=A34=149=DEMO2EEgcw_DEMOFIX52=20151209-11:45:53.73756=DUKASCOPYFIX98=0108=30141=Y553=DEMO2EEgcw554=EEgcw10=046

 

    My message follows the dukascopy FIX API Programming Guide ,and my quickfix/j client is ok.

 

Best regards,

Jeff

 



--
Christoph John
Development & Support
Direct: +49 241 557080-28
Mailto:Christoph.John@...



http://www.macd.com


MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: +49 241 557080-0 | Fax: +49 241 557080-10
 Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald


take care of the environment - print only if necessary

------------------------------------------------------------------------------

_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Loading...