Author |
Topic: How can I subscribe no. of TickBar Data through the following method (3 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
SSprikut637 Posts: 12 Joined: Apr 04, 2011 |
Hello, my developer asked me to post a question. The issue we're having is to get Range Bar and Tick Data versus regular Time intervals.
Please, help us out to resolve the current problem. Thank you very much. ============ How can we subscribe no. of TickBar Data through method Subscription s = oec.SubscribeBars(oec.Contracts[Contract], DateTime, barType, interval); -------------- Question is how can I identify for each OHLC the required no. of Ticks in the response. Also How can I subscribe for Price range through this method.?? What is the role of DateTime in subscribing "TickBar" and "PrinceRangeBar" through this method..??? ====================== After making request of DateTime= "DateTime-30Min" and barType="TickBar" and Interval='1" I m getting Open=> 1275 High=> 1275 Low=> 1275 Close=> 1275 Volume=> 2 TimeStamp=> 06-Jan-12 12:29:20 PM CloseTimeStamp=> 06-Jan-12 12:29:20 PM Open=> 1274.75 High=> 1274.75 Low=> 1274.75 Close=> 1274.75 Volume=> 18 TimeStamp=> 06-Jan-12 12:29:24 PM CloseTimeStamp=> 06-Jan-12 12:29:24 PM Open=> 1274.75 High=> 1274.75 Low=> 1274.75 Close=> 1274.75 Volume=> 1 TimeStamp=> 06-Jan-12 12:29:24 PM CloseTimeStamp=> 06-Jan-12 12:29:24 PM Open=> 1274.75 High=> 1274.75 Low=> 1274.75 Close=> 1274.75 Volume=> 4 TimeStamp=> 06-Jan-12 12:29:24 PM CloseTimeStamp=> 06-Jan-12 12:29:24 PM Open=> 1274.75 High=> 1274.75 Low=> 1274.75 Close=> 1274.75 Volume=> 1 TimeStamp=> 06-Jan-12 12:29:24 PM CloseTimeStamp=> 06-Jan-12 12:29:24 PM .........................and counting Sergey Sprikut |
||||
VictorV Posts: 746 Joined: May 08, 2007 |
Parameter "DateTime StartDate" is intended to specify start date/time of the first historical bar that you would like to receive in the response. Interval specifies how many ticks should be included in every bars. You can find out number of ticks inside bars in field http://www.openecry.com/api/api/OEC.API.Bar.Ticks.html
For range bars, you need to use RangeBar of http://www.openecry.com/api/api/OEC.Data.SubscriptionType.html: Interval=1 will mean that bars should have price range equals one tick size (see http://www.openecry.com/api/api/OEC.API.Contract.TickSize.html) Victor Vins Lead Software Developer |
||||
SSprikut637 Posts: 12 Joined: Apr 04, 2011 |
Ruslan, I've sent e-mail with screen shot to api@openecry.com
Please, give us a hand for number of bar subscription for Tick Data Sergey Sprikut |
||||