Author |
Topic: COM API does not support OECClient property AllocationBlocks? (6 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
CWeber984 Posts: 226 Joined: Apr 24, 2012 |
From the documentation and from the OEC Advanced API Example, I can see that OECClient has a property allocation blocks, and I can access it effectively.
Unfortunately, as a user of the COM version of the api, I have not been able to access this AllocationBlocks property. I can see that this property does not exist within the generated OECAPICOM.tlh file when I run the cppCOMExample program example. (I downloaded the most recent versions of OECTrader and OEC Samples to get the most recent API.DLL, CommLib.DLL and ProtoSharp.Core.dll.) Is there a way to work with AllocationBlocks within the COM version of the api? If not, do you have any time table for when you will begin supporting AllocationBlocks in the COM api? Thanks, CHW CHW |
||||
VictorV Posts: 746 Joined: May 08, 2007 |
We will release a version of OEC COM API that supports OECClient.AllocationBlocks property over weekend.
Actually, you can place an order with allocation block without using this collection: the goal of this collection is to keep pre-configured allocation blocks on server-side. Victor Vins Lead Software Developer |
||||
CWeber984 Posts: 226 Joined: Apr 24, 2012 |
I've been working with the new version of OEC COM API for C++. I am able to get the allocation blocks for the the demo account DemoBlockTestTM through the OECClient.AllocationBlocks property. :)
However, I'm having difficulty with the OnAllocationBlocksChanged callback. The setup steps on my side: - Reinstalled the OEC COM API to the latest version - Placed the new versions of API.dll, CommLib.dll, OECAPICOM.dll, ProtoSharp.Core.dll and OECAPIEvents.h into our app folder. - Wired up to the OnAllocationBlocksChanged callback just as the new CppComSample does. After deleting a block in the Trader Demo , I was hoping to receive the callback in our own software, but its not received. The first reason for that would be that I have not wired up our own software correctly. So I went to the provided samples. Unfortunately: - I can't use any combo of the CppComSample, the OEC API Adv Example, and the Trader Demo at the same time. - I am unable to log in at all to DemoBlockTestTM using the CppComSample or the OEC API Adv Example samples, though I can do so with CWeber327, another demo account, if I change the server to sim (not api). Any suggestions for: - Getting the callback - Being able to use CppComSample, the OEC API Adv Example, and the Trader Demo together - How to log in to the samples with DemoBlockTestTM, or another demo account that has a wash account? - any other suggestions you might have? Thanks CHW |
||||
VictorV Posts: 746 Joined: May 08, 2007 |
We are looking the issue with callback.
You can connect all three applications, if all of them will have three different UUID. DemoBlockTestTM is entitled for OEC Trader only. I will ask Customer Service to help with these questions. Victor Vins Lead Software Developer |
||||
CWeber984 Posts: 226 Joined: Apr 24, 2012 |
Thanks, this helped quite a bit:
- Tested demo account CWeber327 using different UUIDs today in the OEC API COM C++ Sample and can now open OEC Trader Demo and OEC API COM C++ Sample at the same time (without one disconnecting). Previously, I had tested changing the base UUID in the sample by the last number only, and that wasn't a sufficient enough change. - Hopefully the constraint on using DemoBlockTestTM only in Trader Demo can be relaxed. Have a nice weekend. CHW Edited by CWeber984 on May 17, 2013 at 16:29:33 |
||||
CWeber984 Posts: 226 Joined: Apr 24, 2012 |
OEC support set up a dev account with the ability to place block trades from OEC Samples, OEC Trader Developer, and our own software. Together with my regular dev account, this should provide all the functionality needed to implement and test this much feature.
Thanks again, CHW |
||||