API Support Forum
OEC API > API Support > Requesting/Receiving Range Bars
Author Topic: Requesting/Receiving Range Bars
(7 messages, Page 1 of 1)
Moderators: VPfau
MMedved86
Posts: 20
Joined: Sep 09, 2016


Posted: Oct 19, 2016 @ 12:00 PM             Msg. 1 of 7
In your DOM in OEC Trader there is the Volume by Price column where there is volume for each price level. In OEC Trader it shows instantaneously... How is that info received through API exactly? Is OEC trader using Range Bars to get that?
Edited by MMedved86 on Oct 19, 2016 12:25 PM
MMedved86
Posts: 20
Joined: Sep 09, 2016


Posted: Oct 19, 2016 @ 12:24 PM             Msg. 2 of 7
---
Edited by MMedved86 on Oct 19, 2016 12:25 PM
VPfau
Moderator
Posts: 154
Joined:


Posted: Oct 19, 2016 @ 12:25 PM             Msg. 3 of 7
MMedved86,

Please check OECClient.SubscribeHistogram and Contract.Histogram.GetVolumeAtPrice functions
Vitaliy Pfau
MMedved86
Posts: 20
Joined: Sep 09, 2016


Posted: Oct 19, 2016 @ 12:52 PM             Msg. 4 of 7
Thank you, that's what I was looking for.

Is there a way to unsubscribe from histogram? And if not, is there a limit on the histogram subscribes?
MMedved86
Posts: 20
Joined: Sep 09, 2016


Posted: Oct 20, 2016 @ 01:15 PM             Msg. 5 of 7
Ping... I'd really like to know if there is a way to unsub from histogram, and if there is a limit to such subs. Since, as the user may switch from DOM to DOM, that limit may be reached pretty quickly.
CMicciche902
Posts: 348
Joined:


Posted: Oct 20, 2016 @ 03:49 PM             Msg. 6 of 7
I'll have a Developer review your question and post a reply.
Chris M
NShine
Posts: 36
Joined:


Posted: Oct 24, 2016 @ 11:43 AM             Msg. 7 of 7
Hello,

You can unsubscribe from a histogram through the CancelSubscription method.

https://gainfutures.com/api/?topic=html/M_OEC_API_OECClient_CancelSubscription.htm

The limit for this type is equal to your DOM subscription limit plus your chart subscription limit. So if you have a 5 DOM limit and 10 chart limit (real-time data), you will have a 15 histogram limit.