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)




"It’s so nice to be working with real professionals!" - Comment from Len
"Its working FABULOUSLY for me!! Holy cow...there has been so much I've been missing lately, and with this feed and Linnsoft software...I'm in the game now." - Comment from Chris R.
"I'm satisfied with IQFeed. It's the most reliable and fastest quote feed I have ever used. Although I'm a resident in China, it's still very fast!" - Comment from Xiaofei
"I started a trial a few weeks back before the market went wild. DTN.IQ didn’t miss anything and beat my other provider. I decided to stay with you because of the great service through all the volatility." - Comment from Mike
"You have an excellent feed. Very few spikes for Spot Forex." - Comment from Public Forum Post
"IQ feed works very well, does not have all of the normal interruptions I have grown used to on *******" - Comment from Mark
"The people at Nirvana have very nice things to say about your company and I can see why! Price and service is a potent combination." - Comment from Ed
"With HUGE volume on AAPL and RIMM for 2 days, everyone in a trading room was whining about freezes, crashes and lag with *******, RealTick, TS and Cyber. InvestorRT with IQFeed was rock solid. I mean SOLID!" - Comment from Public IRC Chat
"Awesome response, as usual. It is a sincere and refreshing pleasure to do business with DTN, compared to your competition." - Comment from Ryan
"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
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 »Novice Questions: tick or minute data, Lev2 historical, linux headless launching
Author Topic: Novice Questions: tick or minute data, Lev2 historical, linux headless launching (3 messages, Page 1 of 1)

ChainsawDR
-Interested User-
Posts: 29
Joined: Jan 4, 2019


Posted: Jan 4, 2019 08:20 PM          Msg. 1 of 3
Hi,
I'm hoping to please ask for some advice from the forum members who are more experienced than me regarding some novice/basic system design questions (as I'm new to building an algorithmic trading system from scratch). I’ve 3 questions (#1-#2 are relevant together, #3 I could post as its own thread if preferred but didn’t want to clog up the forum with lots of novice questions so grouping in one thread).

Context: The end result I'm working towards is a live trading system that uses minute bars to make trading decisions (in future I may go down to N second bars). I've signed up for DTN IQFeed and have consumed historical minute data for my tickers (using request: "HIT,%s,60,20180601 075000,,,093000,160000,1\n" % sym) so I think I’m now in good shape with the 'backfill' piece of work and currently building a backtester.

Q1: I'm now struggling with the design aspect of keeping the minute data updated (every minute) and being able to use it for future paper & live trading. As I understand it, the most common option is to consume live tick data and compile minute bars from this, every minute. Are there any other options people recommend? For example, I wasn't sure if it'd be possible to consume 'historical' minute data, every minute (using the same HIT request format). If so, do you know how frequently the historical data is updated? For example, if I make a request for 11.03am-11.04am data at 11.04am+1sec, would the data be available then? I’ll never be running a HFT system where millisecond data is needed for decision making.

Q2: I can’t discern from the documentation if it’s possible to request and retrieve historical level 2 data, does anyone know if this is possible and what command to use? If it’s not available, then I suppose that dictates needing to consume and compile tick level data? (signed up for Nasdaq level 2 data)

Q3: I’ve read a lot of forum threads regarding how Linux isn’t properly supported and requires wine to launch. I’ve got it working in quite a manual way currently so hoping if I outline my approach, others might be able to point me in the right direction for an automated alternative so that I can cron job turning iqfeed on and off... I’ve setup an AWS EC2 instance with Ubuntu 18.04 LTS, installed vncserver and an Ubuntu desktop GUI that I access via tightvnc, installed wine and iqfeed via the GUI. To launch my iqfeed python file I start vncserver via an ssh terminal, then connect to the GUI via tightvnc, navigate to the wine DTN folder and manually launch iqconnect and iqlinklauncher, clicking ‘startiqlink’ and ‘connect’ on each pop up. Finally, from the ssh terminal I launch the python file. I’ve tried a whole bunch of different methods for launching iqconnect and iqlinklauncher from the terminal in headless mode but each has their own errors - I can state each option attempted and errors faced, but if anyone is able to share the terminal commands they use to launch without a GUI then I can try to recreate and debug via the error prompts (knowing that it’s a solvable problem).

Thanks in advance for any help you can provide
Edited by ChainsawDR on Jan 4, 2019 at 08:57 PM

altmany
-Interested User-
Posts: 73
Joined: Jul 30, 2018

IQML - IQFeed-MATLAB connector


Posted: Jan 5, 2019 10:00 AM          Msg. 2 of 3
Q1) IQFeed has a very handy feature called "streaming derivative data", which means you can request a stream of 1-minute data bars. This provides you with both historic and ongoing (streaming data), avoiding the need to construct such bars by yourself. Details: http://www.iqfeed.net/dev/api/docs/Derivatives_Overview.cfm and http://www.iqfeed.net/dev/api/docs/Derivatives_StreamingIntervalBars_TCPIP.cfm

Q2) AFAIK, Level-2 (market-depth) data is only available as live streaming data, not historical.

Q3) You don't need to turn the IQFeed client off - simply disconnecting your program from the client will do this automatically - once the client sees that it has no active connections, it automatically exits. I'll let other answer the part of your question related to launching the client. BTW, I think this part of the question warrants a dedicated thread.

Note: I am not a DTN employee; my post reflects my personal opinion and not necessarily DTN's

- Yair
IQML - IQFeed-Matlab connector
https://UndocumentedMatlab.com/IQML

ChainsawDR
-Interested User-
Posts: 29
Joined: Jan 4, 2019


Posted: Jan 7, 2019 03:18 AM          Msg. 3 of 3
Thank you altmany, that’s very helpful! I’ll post a separate question for #3.

Thanks again
 

 

Time: Tue April 23, 2024 4:44 AM CFBB v1.2.0 9 ms.
© AderSoftware 2002-2003