API Support Forum
OEC API > API Support > RequestTickBars interval (ambiguous)
Author Topic: RequestTickBars interval (ambiguous)
(3 messages, Page 1 of 1)
Moderators: VPfau
ESwanson
Posts: 6
Joined: Jul 18, 2008


Posted: Jul 18, 2008 @ 06:06 PM             Msg. 1 of 3
What is the proper way to use the interval argument in the RequestTickBars function?

I was assuming you would use it like a Time span (measured in amount of ticks), much like the SubscribeBars interval argument.

For an example: what is the correct way to get a history of bars, with an interval of 4 hours (240 minutes), from 2/1/08 to 4/1/08?
ESwanson
Posts: 6
Joined: Jul 18, 2008


Posted: Jul 23, 2008 @ 03:08 PM             Msg. 2 of 3
any updates to this?
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Jul 25, 2008 @ 08:30 AM             Msg. 3 of 3
The last parameter of RequestTickBars is a size of bars in ticks.

To request 240-min bars you need RequestBars method that uses the same TimeSpan parameter as SubscribeBars.