Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to login to the BTCC Pro Exchange FIX Server #3

Open
rcappuccio opened this issue Dec 22, 2015 · 0 comments
Open

No way to login to the BTCC Pro Exchange FIX Server #3

rcappuccio opened this issue Dec 22, 2015 · 0 comments

Comments

@rcappuccio
Copy link

Hi, I compiled thecode that I found here.

I tried it out of the box and it worked, giving me a full market snapshot of the Spot Trading market.
I wanted to use the same code for accessing the Pro Exchange, so I changed my client-config.txt in order to connect to the BTCC Pro Exchange FIX server.
The documentation states that for market data requests no authentication is required, so the code should work out of the box. Sadly, It does not.

The logon request is the following:

8=FIX.4.4�9=122�35=A�34=1�49=MY ACCESS KEY�52=20151222-13:58:35.566�56=BTCC-PRO-EXCHANGE-SERVER�98=0�108=300�141=Y�10=136�@FIX.4.4:b6468412-d0fa-4a38-bbf9-09b7e231f883->BTCC-PRO-EXCHANGE-SERVER

I always get logged out immediately:

Logout - FIX.4.4:b6468412-d0fa-4a38-bbf9-09b7e231f883->BTCC-PRO-EXCHANGE-SERVER

My client-config.txt file is as follows:

[SESSION]
BeginString=FIX.4.4
SocketConnectPort=9880
FileStorePath=data/btccclient
FileLogPath=data/btccclientlog
ConnectionType=initiator
SenderCompID=MY ACCSS KEY
SocketConnectHost=pro-fix.btcc.com
TargetCompID=BTCC-PRO-EXCHANGE-SERVER
StartTime=00:00:00
EndTime=00:00:00
HeartBtInt=300
ReconnectInterval=5
ResetOnDisconnect=Y
ResetOnLogon=Y
ResetOnLogout=Y
ResetOnError=Y
DataDictionary=FIX.4.4.xml
SocketUseSSL=Y

[KEYS]
AccessKey=MY ACCESS KEY
SecretKey=MY SECRET KEY

If I finally manage, possibly with your help, to pass the logon phase, I would like to use the trading part of the API. Therefore it will be necessary for me to know how to modify the code in order to send the encrypted string inside the messages.

Thanks in advance for your precious help

R

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant