API Support Forum
OEC API > Market Data > Receiving only 2 bars
Author Topic: Receiving only 2 bars
(4 messages, Page 1 of 1)
Moderators: VPfau
HReyneke1498
Posts: 5
Joined: Nov 06, 2017


Posted: Apr 20, 2018 @ 06:21 AM             Msg. 1 of 4
When requesting bars, I am always receiving only 2 bars in OnBars:

RequestBars(cont, Duration.Amount(10), BarDescription.HoursMinutes(1));

How can this be corrected please?
CMicciche902
Posts: 367
Joined:


Posted: Apr 20, 2018 @ 09:47 AM             Msg. 2 of 4
Which contract? Does this occur with all symbols or some?
Chris M
ETrifonov
Posts: 63
Joined:


Posted: Apr 20, 2018 @ 09:51 AM             Msg. 3 of 4
Hello,

Initially, you should receive requested amount.
After that you will receive incremental updates for bars.
Evgeny
HReyneke1498
Posts: 5
Joined: Nov 06, 2017


Posted: Apr 20, 2018 @ 10:37 AM             Msg. 4 of 4
Thanks Evgeny. It works as it should.