Author |
Topic: RequestTicks (2 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
LLuigi Posts: 2 Joined: Jul 11, 2009 |
Sorry for my bad English.
I'm testing the demo platform using vb.net and .net remoting I've some problems because my software receive loss data. I would be very glad if you have links to get tick in real-time in .net The 'Core' of my software is this: 1) I've 1 timer, every 5 seconds the timer request ticks calling this API function: OECClient.RequestTicks(OECClient.Contracts.GetContract(mySett.IdContract), _TimeStart, _TimeEnd) ' //TimeEnd - TimeStart is 5 seconds 2) with: Public Sub OnTicksReceived(ByVal Subscription As OEC.API.Subscription, ByVal Ticks As OEC.API.Ticks) I save received data in my computer. The question is: Sometimes it works, sometime the function doesn't receive all data. where is the problem? Am I using the wrong function? Can you help me? Can I've some sample code of function OECClient.RequestTicks? Luigi Tedde |
||||
SergeK -Developer- Posts: 475 Joined: Jan 26, 2007 |
I would recommend to use SubscribeTicks, so you will receive all ticks as they come.
|
||||