API Support Forum
OEC API > API Support > Latest API version
Author Topic: Latest API version
(9 messages, Page 1 of 1)
Moderators: VPfau
WBuchanan28
Posts: 7
Joined: Aug 05, 2007


Posted: Aug 05, 2007 @ 05:18 PM             Msg. 1 of 9
Received the memo, but when I download the API, it tells me that the version is 3.1.0.19. The version of the file itself doesn't say 3.1.1.0 either. How do I know that I have the latest and greatest?

Bill Buchanan
RightEdge Systems, LLC
http://www.rightedgesystems.com
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Aug 06, 2007 @ 08:21 AM             Msg. 2 of 9
3.1.0.19 is the version of the trader application, which was not updated yet. Make sure to download the API included into one of our samples. The API.DLL version should be 3.1.1.0.
WBuchanan28
Posts: 7
Joined: Aug 05, 2007


Posted: Aug 06, 2007 @ 08:24 AM             Msg. 3 of 9
That's the thing, the version according to Windows is 3.1.2740.27665 which doesn't make it clear if that's 3.1.1.0.

Bill Buchanan
RightEdge Systems, LLC
http://www.rightedgesystems.com
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Aug 06, 2007 @ 08:31 AM             Msg. 4 of 9
please download either "Basic API Example"
or "Advanced API Example".
WBuchanan28
Posts: 7
Joined: Aug 05, 2007


Posted: Aug 06, 2007 @ 08:35 AM             Msg. 5 of 9
Got it.

Thanks.

Bill Buchanan
RightEdge Systems, LLC
http://www.rightedgesystems.com
estrader
Posts: 55
Joined: May 04, 2007


Posted: Aug 06, 2007 @ 01:03 PM             Msg. 6 of 9
I'm not much of a software writer (my trading isn't much better either). But I want to trade, I don't want to have to spend hours and hours and hours and hours and hours rewriting and debugging the code in your example to make it work the way I want. Can I continue using the current API with the previous Advanced Example?
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Aug 06, 2007 @ 01:54 PM             Msg. 7 of 9
The sample code is almost intact (except just a few bugfixes and minor typename changes).
You should be able to take the API.DLL file from the new sample and use it with your existing application.
estrader
Posts: 55
Joined: May 04, 2007


Posted: Aug 06, 2007 @ 02:00 PM             Msg. 8 of 9
I get these errors when I change the API

Error 1 The best overloaded method match for 'OEC.API.Example.ContractDOMAskEntry.ContractDOMAskEntry(float, ushort)' has some invalid arguments C:\Documents and Settings\Broadband\My Documents\open_ecry\Advanced Example\OEC API Advanced Example 11\DOMControl.cs 111 18 OEC API Trader


Error 2 Argument '2': cannot convert from 'uint' to 'ushort' C:\Documents and Settings\Broadband\My Documents\open_ecry\Advanced Example\OEC API Advanced Example 11\DOMControl.cs 111 61 OEC API Trader


Error 3 The best overloaded method match for 'OEC.API.Example.ContractDOMBidEntry.ContractDOMBidEntry(float, ushort)' has some invalid arguments C:\Documents and Settings\Broadband\My Documents\open_ecry\Advanced Example\OEC API Advanced Example 11\DOMControl.cs 127 18 OEC API Trader


Error 4 Argument '2': cannot convert from 'uint' to 'ushort' C:\Documents and Settings\Broadband\My Documents\open_ecry\Advanced Example\OEC API Advanced Example 11\DOMControl.cs 127 61 OEC API Trader
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Aug 06, 2007 @ 02:16 PM             Msg. 9 of 9
either get the DOMControl.cs file from the new sample, or, if you have already changed it -replace these four "ushort" entries to "uint" - that will help.