API Support Forum
OEC API > Market Data > RequestBars for Equities
Author Topic: RequestBars for Equities
(7 messages, Page 1 of 1)
Moderators: VPfau
PArnoldson
Posts: 154
Joined: Oct 03, 2007


Posted: May 27, 2010 @ 06:25 PM             Msg. 1 of 7
I am using RequestBars() to get the history for a equity contract and I am reciving no bars. How do I get the historyical data for an Equity?

A bus station is where a bus stops. A train station is where a train stops. On my desk I have a work station.....
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Jun 01, 2010 @ 11:31 AM             Msg. 2 of 7
Hello.

There are no differences in equity and futures. Could you please specify what contract did you use, timeframe of bars, method and time range?
PArnoldson
Posts: 154
Joined: Oct 03, 2007


Posted: Jun 01, 2010 @ 01:01 PM             Msg. 3 of 7
con is for AAPL:
RequestBars(con,0,40330.713194444448,OECAPICOM::SubscriptionType_Bar,1440);
This gives my zero bars.

A bus station is where a bus stops. A train station is where a train stops. On my desk I have a work station.....
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Jun 01, 2010 @ 03:14 PM             Msg. 4 of 7
Please try to request
RequestBars(con,0,40330.713194444448,OECAPICOM::SubscriptionType_DayBar,1);
PArnoldson
Posts: 154
Joined: Oct 03, 2007


Posted: Jun 01, 2010 @ 03:43 PM             Msg. 5 of 7
yes this gives me 1 minute data, which is great and that is what I expected, but I want daily data. How do I get the daily data History?

A bus station is where a bus stops. A train station is where a train stops. On my desk I have a work station.....
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Jun 01, 2010 @ 03:44 PM             Msg. 6 of 7
Did you use OECAPICOM::SubscriptionType_DayBar instead of OECAPICOM::SubscriptionType_Bar?
PArnoldson
Posts: 154
Joined: Oct 03, 2007


Posted: Jun 01, 2010 @ 05:02 PM             Msg. 7 of 7
I overlooked that, Thank you. I have to look closer to the detail of things my bad.

A bus station is where a bus stops. A train station is where a train stops. On my desk I have a work station.....