Author |
Topic: Getting Example Code to Work (7 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
MPhillips8718 Posts: 11 Joined: Feb 09, 2017 |
I am trying to run the OECAPI BasicExample and Advanced Example and they do not work.
I am using VS2010 to compile. The username and password works with the OEC Trade Developer 3.5 application. In both cases they fail to connect. Do I need to do something to get them to work? |
||||
CMicciche902 Posts: 367 Joined: |
I do not see attempts from other applications other than OEC Trader Developer. Make sure the domain name used is api.gainfutures.com. If you still see api.openecry.com in Samples, change and try again.
Bitbucket has updated domain name, follow this example - https://bitbucket.org/GainFuturesDev/advancedexample/src/2f828076ce7bd06a3b0737eb8d243384af3b745f/LoginForm.cs?at=master Chris M
|
||||
MPhillips8718 Posts: 11 Joined: Feb 09, 2017 |
I changed connect to api.gainfutures.com and now I get the error "Login Failed:SoftwareNotPermitted"
|
||||
CMicciche902 Posts: 367 Joined: |
Make sure you send the "samples" UUID key when logging in:
OECClient.Global.UUID = "9e61a8bc-0a31-4542-ad85-33ebab0e4e86"; When your application goes through Conformance, once your Development has finished, we will provide unique UUID for our production and simulation environments to identify your application. Chris M
|
||||
MPhillips8718 Posts: 11 Joined: Feb 09, 2017 |
Thanks for your reply.
It seems to have all boiled down to me downloading the example from a different link. It must have been out of date. OECClient didn't even have a UUID member in the version I have. I got the latest from bitbucket.org and it worked right off the bat. |
||||
CMicciche902 Posts: 367 Joined: |
If you know where you obtained the older sample, let me know so I can revise our website or make necessary corrections. That way the next person does not have as many troubles. :)
Chris M
|
||||
MPhillips8718 Posts: 11 Joined: Feb 09, 2017 |
http://api.gainfutures.com/WebAPI/api/Files/DownloadClientUpdateLast?brandId=0&clientTypeId=0&branchId=1
This is the installer for OEC TraderD Developer 3.5.15.251. It installs two zip files under C:\Program Files (x86)\OEC\Samples This is the advanced example I was trying to get to work. |
||||