API Support Forum
OEC API > FIX Support > Python FIX API
Author Topic: Python FIX API
(5 messages, Page 1 of 1)
Moderators: VPfau
AShelest2803
Posts: 2
Joined: Jun 05, 2017


Posted: Sep 12, 2017 @ 06:02 AM             Msg. 1 of 5
Is anybody using python to connect to gain capital futures via FIX protocol?

I could not find one so I have written an open source FIX client.
it passed the GAIN CAPITAL FUTURES conformance tests and available on github

https://github.com/th3sys/transfixed
cheers
Alexy
GTann
Posts: 5
Joined: Oct 02, 2017


Posted: Oct 03, 2017 @ 08:48 AM             Msg. 2 of 5
Thanks, I'm interested in using this library. Will try to integrate this with my application.
ZZhaohui
Posts: 2
Joined: Oct 11, 2017


Posted: Oct 12, 2017 @ 01:26 AM             Msg. 3 of 5
Hi Alexy,

Thank you for the python lib. This is exactly what I'm looking for. I wanted to have a python script that goes in to check my balance, buying power, positions periodically and tell me what adjustment I need to do. And also download option data automatically and save for future reference.

However, I cannot get it to work for me. I got message "This software is not permitted to logon". Do you know what is wrong?

Also can you explain what I should put in the config.ini file for the following:

Account=
Username=
SenderCompID=
Password=
TargetCompID=

Thank you!
AShelest2803
Posts: 2
Joined: Jun 05, 2017


Posted: Oct 12, 2017 @ 02:27 AM             Msg. 4 of 5
like the example says its your OEC user name, password, account and UUID. You need to obtain UUID from gainfutures support. It's per environment and is the reason you cant login. Basically they say "we dont know this UUID"

Account=[OEC Account]
Username=[OEC UUID]
SenderCompID=[OEC Username]
Password=[OEC Password]
ZZhaohui
Posts: 2
Joined: Oct 11, 2017


Posted: Oct 12, 2017 @ 12:00 PM             Msg. 5 of 5
Thank you Alexy. I asked Gain again and they gave me the sample UUID and it works now.