API Support Forum
OEC API > API Support > Volume histogram
Author Topic: Volume histogram
(4 messages, Page 1 of 1)
Moderators: VPfau
GGiovanni50
Posts: 8
Joined: Jun 09, 2010


Posted: Jun 15, 2010 @ 02:09 PM             Msg. 1 of 4
Hi, we are trying to recreate the volume histogram just like the one on the OEC Trader DOM. What is the best parameter to use to recall the current session data since opening until we connect?
We have tried using for example GetBars(ESM0, startdate,enddate,SubricptionType.Histogram,barsize) but it returns an error on SubricptionType.Histogram.


thanks,



Giovanni
Edited by GGiovanni50 on Jun 15, 2010 at 14:11:03
Edited by GGiovanni50 on Jun 15, 2010 at 14:12:07
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Jun 17, 2010 @ 08:42 AM             Msg. 2 of 4
Hello,

OEC Trader uses a ready-to-use histogram. You can subscribe to it via SubscribeHistogram(contract) method.

Victor Vins
Software Developer
GGiovanni50
Posts: 8
Joined: Jun 09, 2010


Posted: Jun 18, 2010 @ 04:32 PM             Msg. 3 of 4
We made it work, however we still have to request the histogram for each price. Is there a way to receive the comple histogram for the whole session instead?

thanks,

Giovanni
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Jun 18, 2010 @ 04:47 PM             Msg. 4 of 4
Histogram includes data for whole session.

Victor Vins
Software Developer