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)




"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
"If you are serious about your trading I would not rely on IB data for serious daytrading. Took me a while to justify the cost of IQ Feed and in the end, it's just a 2 point stop on ES. Better safe than sorry" - Comment from Public Forum
"I am very happy I changed. I love the product, but more so I am thrilled with Tech Support. You are knowledgeable, polite, pleasant and professional." - Comment from Pat
"IQ feed is brilliant. The support is mind-bending. What service!" - Comment from Public Forum Post
"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
"Awesome response, as usual. It is a sincere and refreshing pleasure to do business with DTN, compared to your competition." - Comment from Ryan
"Just a thank you for the very helpful and prompt assistance and services. You provided me with noticeably superior service in my setup compared to a couple of other options I had looked at." - Comment from John
"I've been using IQFeed 4 in a multi-threaded situation for the last week or two on 2600 symbols or so with 100 simultaneous daily charts, and I have had 100% responsiveness." - Comment from Scott
"I am enjoying the feed very much - so superior to the broker provided feed I was previously using." - Comment from George
"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 »market snapshot api
Author Topic: market snapshot api (10 messages, Page 1 of 1)

Larry jag
-Interested User-
Posts: 31
Joined: Dec 28, 2015


Posted: Aug 29, 2019 09:02 AM          Msg. 1 of 10
I'd like to know some more info on the market snapshot being added to iqfeed 6.1.

Any documentation on what can be received in the snapshot, and a sample API to call? Are there any limitations etc?

There was an older thread about getting a snapshot of expired options:
http://forums.iqfeed.net/index.cfm?page=topic&topicID=3326

But is this all what this new feature is about?

Larry jag
-Interested User-
Posts: 31
Joined: Dec 28, 2015


Posted: Aug 30, 2019 10:51 AM          Msg. 2 of 10
It would also be nice to see a snapshot sample file.

Thanks.

Larry jag
-Interested User-
Posts: 31
Joined: Dec 28, 2015


Posted: Sep 3, 2019 03:55 PM          Msg. 3 of 10
Hi...Any updates?

DTN_Gary_Stephen
-DTN Guru-
Posts: 396
Joined: Jul 3, 2019


Posted: Sep 3, 2019 05:14 PM          Msg. 4 of 10
Larry,

Hello, this is Gary with DTN IQFeed API Support. I apologize for the delay in responding.

Here's the documentation about the Market Summary info: http://www.iqfeed.net/dev/api/docs/docsBeta/MarketSummaryviaTCPIP.cfm

To summarize, there are three types of requests: EDS, FDS, and 5MS. Each allows you to retrieve a market summary, based on a commodity type and exchange. EDS and FDS are daily, while 5MS is a five minute snapshot.

The syntax is:

EDS,Security Type,Group ID,Date

For example:

EDS,1,5,20190903

would return a daily market summary for Equities (code 1) on the NASDAQ exchange (code 5) for September 3, 2019.

You can view a list of the codes with the following commands (which are also listed at http://www.iqfeed.net/dev/api/docs/docsBeta/SymbolLookupviaTCPIP.cfm):

SST

returns a list of security types:

1,EQUITY,Equity,
2,IEOPTION,Index/Equity Option,
3,MUTUAL,Mutual Fund,
4,MONEY,Money Market Fund,
5,BONDS,Bond,
6,INDEX,Index,
7,MKTSTATS,Market Statistic,
8,FUTURE,Future,
9,FOPTION,Future Option,
10,SPREAD,Future Spread,
...
38,PETROCHEMWIRE,PetroChemWire,
39,FOPTION_IV,FOption Implied Volatility,
40,GENERICRPT,Generic Report,

SLM returns a list of markets:

1,NGM,Nasdaq Global Market,5,NASDAQ,
2,NCM,National Capital Market,5,NASDAQ,
3,OTC,Nasdaq other OTC,5,NASDAQ,
4,OTCBB,Nasdaq OTC Bulletin Board,5,NASDAQ,
5,NASDAQ,Nasdaq,5,NASDAQ,
6,NYSE_AMERICAN,NYSE American (Equities and Bonds),6,NYSE_AMERICAN,
7,NYSE,New York Stock Exchange,7,NYSE,
...
181,COP-LION,Crude Oil Postings Lion,170,COP-HUNT,
182,COP-SUNOCO,Crude Oil Postings SUNOCO,170,COP-HUNT,
183,RIM,RIM Intelligence,182,COP-SUNOCO,

The response is a list of all symbols that match your commodity type and market:

20190903,AAAIF,3,1,0.0550,50000000,3,20190624,140225,,,,0.0550,,,,,,,0,250,0,0,0,0,0,0,0,,,,,,,,
20190903,AAALF,3,1,30.4900,58000,3,20190325,110919,,,,30.4900,,,,,,,0,1400,0,0,0,0,0,0,0,,,,,,,,
20190903,AAALY,3,1,27.2772,100,3,20160429,102841,,,,27.2772,,,,,,,0,13,0,0,0,0,0,0,0,,,,,,,,
20190903,AAARF,3,1,0.7800,1000,3,20171229,132835,,,,0.7800,,,,,,,0,3,0,0,0,0,0,0,0,,,,,,,,
...
20190903,ZZHGF,3,1,3.7500,200,3,20190410,134508,,,,3.7500,,,,,,,0,13600,0,0,0,0,0,0,0,,,,,,,,
20190903,ZZLL,3,1,0.1100,300,3,20190827,111802,,,,0.1100,,,,,,,0,300,0,0,0,0,0,0,0,,,,,,,,
20190903,ZZZOF,3,1,0.0169,842,3,20190903,143407,0.0245,0.0245,0.0169,0.0200,,,,,,,4467,122500,292,3842,333,5,1,2,1,0.0227,,,,,,,

I hope that answers your question! If you have any follow-up questions, please let me know!

Sincerely,
Gary Stephen
DTN IQFeed Implementation Support Specialist

Larry jag
-Interested User-
Posts: 31
Joined: Dec 28, 2015


Posted: Sep 3, 2019 07:22 PM          Msg. 5 of 10
I tried the above with v6.1 client.

I just used telnet, and set the protocol to 6.1 (worked)
Then did your command above (EDS,1,5,20190903)
and got an app crash in iqconnect.exe...but the data did come in all the way to zzzof....i guess thats why it is in beta still :)

Problem signature:
Problem Event Name: APPCRASH
Application Name: iqconnect.exe
Application Version: 6.1.0.19
Application Timestamp: 5d650e2b
Fault Module Name: StackHash_a3f4
Fault Module Version: 6.1.7601.18247
Fault Module Timestamp: 521ea8e7
Exception Code: c0000374
Exception Offset: 000ce753
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 1033
Additional Information 1: a3f4
Additional Information 2: a3f47b376b11670e11c776e7705e851d
Additional Information 3: 31a3
Additional Information 4: 31a3586f4bc16981f46e1165fc9612cf

DTN_Gary_Stephen
-DTN Guru-
Posts: 396
Joined: Jul 3, 2019


Posted: Sep 4, 2019 08:35 AM          Msg. 6 of 10
Larry,

We are aware of this error and are working on a fix.

Sincerely,
Gary Stephen

Sincerely,
Gary Stephen
DTN IQFeed Implementation Support Specialist

DTN_Gary_Stephen
-DTN Guru-
Posts: 396
Joined: Jul 3, 2019


Posted: Sep 4, 2019 01:21 PM          Msg. 7 of 10
UPDATE: Beta version 6.1.0.20 has been posted, which will resolve this issue. It can be downloaded from the usual location, http://www.iqfeed.net/index.cfm?displayaction=support§ion=download .

Please let me know if this does not resolve this issue, or if you run into any other problems!

Sincerely,
Gary Stephen
DTN IQFeed Implementation Support Specialist

Larry jag
-Interested User-
Posts: 31
Joined: Dec 28, 2015


Posted: Sep 11, 2019 09:42 PM          Msg. 8 of 10
Correct me if I am wrong, but the EDS command looks like it only returns the last trade of the security for the day.
ie:
EDS,2,14,20190911

Returns the last option trade for the day for all symbols from the OPRA exchange. It would have been nice to get all trades for each symbol on the exchange. (any plans for that in the future)?


Does the 5MS do the same thing on a 5 min basis? the most recent trade in the last 5 min?

DTN_Gary_Stephen
-DTN Guru-
Posts: 396
Joined: Jul 3, 2019


Posted: Sep 13, 2019 11:16 AM          Msg. 9 of 10
Larry,

You are correct. The EDS and FDS commands are End of Day summaries, so that's the data they will return.

5MS retrieves a snapshot of the market where data is collected every 5 minutes.

I don't know if a command to return all trades from a market would be feasible, as that would return a very large amount of data. You could put together your own function, by gathering symbols from an EDS or FDS command, then doing a history command on each. Bear in mind the API limits you to 15 concurrent history requests, so it would take a long time to process all of them.

Sincerely,
Gary Stephen
DTN IQFeed Implementation Support Specialist

Larry jag
-Interested User-
Posts: 31
Joined: Dec 28, 2015


Posted: Sep 13, 2019 10:22 PM          Msg. 10 of 10
Thank you Gary.

Before I dig into this deeper development wise, do you know if there will be an extra charge for these new APIs?

I wouldn't want to spend time on these if the cost is high, and new sub fees would be required.
 

 

Time: Mon May 6, 2024 10:53 PM CFBB v1.2.0 12 ms.
© AderSoftware 2002-2003