API Support Forum
OEC API > API Support > RequestTicks returns data with .volume = 0
Author Topic: RequestTicks returns data with .volume = 0
(5 messages, Page 1 of 1)
Moderators: VPfau
TLau471
Posts: 70
Joined:


Posted: Mar 18, 2019 @ 09:52 AM             Msg. 1 of 5
Hi,

The following is excerpt from LIVE software connected to SIM server
Why is it suddenly returning 0 today?
It was all ok last friday.

m_Client.RequestTicks(Contract, Start, [End])

...
...
...

Private Sub m_Client_OnTicksReceived(ByVal Subscription As OEC.API.Subscription, ByVal Ticks As OEC.API.Ticks) Handles m_Client.OnTicksReceived
DataLength = Ticks.Prices.Length

For i = 0 To DataLength - 1
e.size = Ticks.Volumes(i) ' why is Ticks.Volumes(i) always 0???
next
end sub
TLau
SRuscak
Posts: 50
Joined: Aug 24, 2017


Posted: Mar 18, 2019 @ 01:27 PM             Msg. 2 of 5
Ticks.Volume is obsolete. You should use Ticks.Volume32 instead, because it uses a larger datatype that better represents the data.

That said, we will release a fix that restores Ticks.Volume data.
TLau471
Posts: 70
Joined:


Posted: Mar 18, 2019 @ 06:23 PM             Msg. 3 of 5
Thanks. Where can I subscribe to changes like this?
TLau
TLau471
Posts: 70
Joined:


Posted: Mar 20, 2019 @ 03:54 AM             Msg. 4 of 5
Hi,

How can I get notified of such deprecation info?
TLau
SRuscak
Posts: 50
Joined: Aug 24, 2017


Posted: Mar 26, 2019 @ 01:38 PM             Msg. 5 of 5
Typically we mark obsolete members with the [Obsolete] tag. That should make it clear in intellisense, documentation, and compiler warnings. But in this case Tick.Volume should have been marked but wasn't. Our apologies for the confusion.