API Support Forum
OEC API > API Support > Live API didn't work like production API
Author Topic: Live API didn't work like production API
(12 messages, Page 1 of 1)
Moderators: VPfau
estrader
Posts: 55
Joined: May 04, 2007


Posted: Jul 21, 2010 @ 10:35 AM             Msg. 1 of 12
I tested my remoted application on the production server and everything worked fine. I then remoted it on the Live server and it didn't work the same. It seems the 'OnOrderFilled' event didn't work.
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Jul 21, 2010 @ 12:08 PM             Msg. 2 of 12
What difference between production and Live servers in your terms?

Victor Vins
Software Developer
estrader
Posts: 55
Joined: May 04, 2007


Posted: Jul 21, 2010 @ 12:33 PM             Msg. 3 of 12
Quote: What difference between production and Live servers in your terms?

--- Original message by VictorV on Jul 21, 2010 12:08 PM
Hi Victor,

"api.openecry.com" - Production

"prod.openecry.com" - Live

Sorry, I may have confused you. I should have said test api and production api.

My application works fine when I am remoted onto "api.openecry.com"

Today, I made a LIVE trade using the SAME application I tested but this time with OEC Trader connected to my account ( so I imagine it is on "prod.openecry.com") and it seems as if the 'OnOrderFilled" event didn't trigger.

I checked the API version on the LIVE account and it is the same version.
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Jul 21, 2010 @ 02:00 PM             Msg. 4 of 12
What version and timestamp of API.DLL did you use and what version of Trader for prod.openecry.com?

Victor Vins
Software Developer
estrader
Posts: 55
Joined: May 04, 2007


Posted: Jul 22, 2010 @ 04:18 AM             Msg. 5 of 12
Quote: What version and timestamp of API.DLL did you use and what version of Trader for prod.openecry.com?

--- Original message by VictorV on Jul 21, 2010 02:00 PM
Hello Victor,

The versions:

OEC Trader V3.4.0.8
API: 02/02/2010 10:12


I tested the application using the Basic example you provide with remoting enabled. I tested it on a PC running Windows XP. I copied the API from OEC trader so that the version I use in my application is the same as OEC trader.

I then copied my application onto my trading PC which is running Windows Vista. OEC trader is exactly the same version but the API time stamp is different by 1 hour, it is 11:12. The 'OnPriceChanged' event works fine, The Order Entry works fine, but for some reason the fill didn't work the way it did on test.
estrader
Posts: 55
Joined: May 04, 2007


Posted: Jul 22, 2010 @ 03:09 PM             Msg. 6 of 12
Any clues a to how I can move forward with this? How can I test an application without putting real money at risk?
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Jul 23, 2010 @ 08:18 AM             Msg. 7 of 12
Please use OECAPI 3.5. OECAPI 3.4 will be discontinued soon.

Victor Vins
Software Developer
estrader
Posts: 55
Joined: May 04, 2007


Posted: Jul 26, 2010 @ 05:32 AM             Msg. 8 of 12
Quote: Please use OECAPI 3.5. OECAPI 3.4 will be discontinued soon.

--- Original message by VictorV on Jul 23, 2010 08:18 AM
Does this mean my application will not work properly until OEC trader is using OECAPI 3.5? When will it be upgraded?
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Jul 26, 2010 @ 09:10 AM             Msg. 9 of 12
You can download OECAPI 3.5 and OEC Trader 3.5 at any time for any environment. It was realeased several months ago.

For issue with OECAPI 3.4: could you check the same issue with OEC API Advanced Example for 3.4 on your end?

Victor Vins
Software Developer
estrader
Posts: 55
Joined: May 04, 2007


Posted: Jul 26, 2010 @ 09:27 AM             Msg. 10 of 12
Quote: You can download OECAPI 3.5 and OEC Trader 3.5 at any time for any environment. It was realeased several months ago.

For issue with OECAPI 3.4: could you check the same issue with OEC API Advanced Example for 3.4 on your end?

--- Original message by VictorV on Jul 26, 2010 09:10 AM
Whenever there is a new version of OEC trader I get a dialog box alert and the option to install it. I will try the advanced example.
estrader
Posts: 55
Joined: May 04, 2007


Posted: Jul 26, 2010 @ 10:59 AM             Msg. 11 of 12
Quote: You can download OECAPI 3.5 and OEC Trader 3.5 at any time for any environment. It was realeased several months ago.

For issue with OECAPI 3.4: could you check the same issue with OEC API Advanced Example for 3.4 on your end?

--- Original message by VictorV on Jul 26, 2010 09:10 AM
My Application seems to work fine with BASIC example OECAPI 3.5 but does not work properly with ADVANCED example OECAPI 3.5.
estrader
Posts: 55
Joined: May 04, 2007


Posted: Jul 26, 2010 @ 11:13 AM             Msg. 12 of 12
Hi Victor,

Don't worry about this issue for now, thanks for your help. I am redeveloping my application and so far everything works with ADVANCED Example OECAPI 3.5.

From now on I will use ADVANCED example.