Join the 80,000 other DTN customers who enjoy the fastest, most reliable data available. There is no better value than DTN!

(Move your cursor to this area to pause scrolling)




"I like you guys better than *******...much more stable and a whole lot fewer issues." - Comment from Philip
"I used to have *******, but they are way more money for the same thing. I have had no probs with data from DTN since switching over." - Comment from Public Forum Post
"I am keeping IQFeed, much better reliabilty than *******. I may refer a few other people in the office to switch as well." - Comment from Don
"Excellent datafeed !!!" - Comment from Arely
"I just wanted to let you know how fast and easy I found it to integrate IQFeed into our existing Java code using your JNI client. In my experience, such things almost never go so smoothly - great job!" - Comment from Nate
"I was on the phone with a friend who uses CQG and right after the Fed announcement, CQG was as much as 30 seconds behind DTN.IQ. Some quotes were off by as much as 15-18 cents. Your feed never missed a beat." - Comment from Roger
"I ran your IQFeed DDE vs. my broker vs. a level II window for some slow-moving options. I would see the level II quote change, then your feed update instantaneously. My broker's DDE, however, would take as much as 30 seconds to update. I am not chasing milliseconds, but half a minute is unacceptable." - Comment from Rob
"I am very pleased with the DTNIQ system for quotes and news." - Comment from Larry
"I have been using IQFeed now for a few years in MultiCharts and I have zero complaints. Very, very rare to have any data hiccups or anything at all go wrong." - Comment from Public Forum
"As a past ******* customer(and not a happy one), IQ Feed by DTN is a much better and cheaper product with great customer support. I have had no problems at all since switching over." - Comment from Public Forum
Home  Search  Register  Login  Recent Posts

Information on DTN's Industries:
DTN Oil & Gas | DTN Trading | DTN Agriculture | DTN Weather
Follow DTNMarkets on Twitter
DTN.IQ/IQFeed on Twitter
DTN News and Analysis on Twitter
»Forums Index »Archive (2017 and earlier) »IQFeed Developer Support »OHLC for today
Author Topic: OHLC for today (8 messages, Page 1 of 1)

oxford
-Interested User-
Posts: 12
Joined: Oct 4, 2013


Posted: Feb 4, 2014 08:11 AM          Msg. 1 of 8
Hi,

What is the best way to get OHLC data for current trading day?

Thanks!

oxford
-Interested User-
Posts: 12
Joined: Oct 4, 2013


Posted: Feb 4, 2014 08:14 AM          Msg. 2 of 8
Some background may be helpful:

Looking at IQWatchQuote I see ES opened at 1738.25, but the first tick I receive for today tradet has a last price of 1740.50.

Probably I'm misunderstanding something.
Edited by oxford on Feb 4, 2014 at 08:36 AM

DTN_Tim Walter
-DTN Guru-
Posts: 1238
Joined: Apr 25, 2006


Posted: Feb 4, 2014 08:46 AM          Msg. 3 of 8
Where are you seeing that first trade? I see a trade at 18:00:00.005 at 1738.25. Are you looking at the first trade since midnight perhaps?

DTN_Tim Walter
-DTN Guru-
Posts: 1238
Joined: Apr 25, 2006


Posted: Feb 4, 2014 08:55 AM          Msg. 4 of 8
If you issue a watch on any symbol you can get the current OHLC from there. Details are available in the Level 1 documentation and sample apps.

Tim

oxford
-Interested User-
Posts: 12
Joined: Oct 4, 2013


Posted: Feb 4, 2014 08:57 AM          Msg. 5 of 8
Hi Tim,

Yes, this is the case. Can I get openning times from the feed?

Thanks.

DTN_Tim Walter
-DTN Guru-
Posts: 1238
Joined: Apr 25, 2006


Posted: Feb 4, 2014 09:34 AM          Msg. 6 of 8
I am sorry, but no, market schedules are not available in our feed currently, though it is something we would like to add in the future. Right now, the data specifications sheets available on the exchange websites would be the best source for this data. We'll be sure to let everyone know if we can get this added in a future release.

Tim

oxford
-Interested User-
Posts: 12
Joined: Oct 4, 2013


Posted: Feb 4, 2014 10:20 AM          Msg. 7 of 8
Hi Tim,

Can you point me to the right example? I'm trying to get the OHLC for the day only (so smaller interval). Using ReqHistoryDailyTimeframe I'm not able to receive the current day (last day = previous day).

Many thanks again.

DTN_Tim Walter
-DTN Guru-
Posts: 1238
Joined: Apr 25, 2006


Posted: Feb 4, 2014 10:30 AM          Msg. 8 of 8
http://www.iqfeed.net/dev/api/docs/Level1viaTCPIP.cfm

You will want to create a connection to the appropriate socket, set your protocol to 5.1, and then issue a watch. The watch will return a comma delimited field set that you can iterate through to get the data you need. Current fields being viewed can be requested to help with the order, or you can choose your own by setting up a dynamic fieldset, whichever you prefer.

Once you have the data you want, you can unwatch your symbol. Or you can continue to watch and process the update messages. This functionality is also in the level one sample applications which are part of the API download if you want to see an actual implementation of how this can be done.

Tim
 

 

Time: Fri May 17, 2024 11:01 AM CFBB v1.2.0 12 ms.
© AderSoftware 2002-2003