API Support » Multiple client connections Oct 15, 2015 @ 08:32 AM (Total replies: 4) | |||||
Possible for me to connect to the same server using the same username/password and same uuid but in two instances? Whenever I tried to do so, the first instance that I started disconnects. |
|||||
API Support » Trade history Sep 23, 2015 @ 11:50 AM (Total replies: 1) | |||||
Hi all, Is there a method in oec api that allows one to retrieve the trade history, such as trades performed on previous days? I am looking for something similar to the data we can retrieve by opening the Zaner client, then go to Reports > Positions > Gross P/L Summary |
|||||
Market Data » Loading ticks from historic contracts Aug 14, 2015 @ 07:35 AM (Total replies: 1) | |||||
Hi moderators, Is it possible to load ticks from contracts that have already expired? I tried to do a SymbolLookup on an expired contract but no contract object is returned. Hence I cannot RequestTicks on that contract. |
|||||
API Support » Order rejection not captured Aug 11, 2015 @ 09:47 PM (Total replies: 3) | |||||
Yes, I eventually figured out that in C#, the latest state is stored in the Order.States.Current.OrderState argument rather than the OrderState argument. The arguments I'm referring to come from the event OnOrderStateChangedEvent(OEC.API.Order order, OEC.Data.OrderState state) Thanks anyway. |
|||||
API Support » Order rejection not captured Aug 10, 2015 @ 06:02 AM (Total replies: 3) | |||||
Hi all, I'm using C# to write my own program. However, when I try sending some invalid orders through the SendOrder method, I did not receive any OrderState.Rejected notification through the OnOrderStateChanged event. Which is the right event to use for capturing order rejections? Thanks. Wu liang Teng |
|||||
API Support » Different sized volume bars do not tally? (C#) Dec 18, 2014 @ 10:18 AM (Total replies: 3) | |||||
Can any moderator help? Why doesn't all 1512 volumed bars have 1512 as the volume when I receive them as part of the request? I would expect the volume to be 1512 before a new bar is created. Hence, all bars should have a volume of 1512 except the last bar. However, from the results, there are bars in the middle with volume smaller than 1512. Wu liang Teng |
|||||
API Support » Different sized volume bars do not tally? (C#) Dec 12, 2014 @ 10:32 AM (Total replies: 3) | |||||
Update: I looped through the bar arrays, and found that an element in the middle of the array will not have the intended volume. E.g. if there are 44 bars in a 1512-bar request, the last element has a volume of 101, element 14 has a volume of 823, and the rest has a volume of 1512. I would expect all elements prior to the last element to have a volume of 1512, but why is it not the case? Wu liang Teng |
|||||
API Support » Different sized volume bars do not tally? (C#) Dec 12, 2014 @ 10:12 AM (Total replies: 3) | |||||
Hi all, I am using C#, and was obtaining different sized volume bars through the method RequestBars. The method will trigger an OnBarsReceived event which gives the subscription and a bar array as arguments. Upon checking the volume of the last element of the bar array, I find that the volumes do not tally. For example, for 1512 volume bar array, the last bar had a volume of 1060, but for a 1000 volume bar array, the bar had a volume of 836. Logically, the last element of the 1000 volume bar array should have a volume of 60, as 1060 - 1000 = 60. But why is it not the case? Wu liang Teng |