Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

SnapQuote#6

Unanswered
SriniKancharla asked this question inQ&A
Nov 1, 2021· 2 comments· 1 reply
Discussion options

Is there a way to get the snapQuote by a Symbol?

You must be logged in to vote

Replies: 2 comments 1 reply

Comment options

I don't believe there is currently a way in the IQFeed API to get a quote snapshot of a symbol. Your options are to quickly subscribe to the Level 1 feed of a symbol in order to receive theFundamentalData andSummaryUpdate messages, and then unsubscribe that symbol from the Level 1 feed, or you can request a 5 minute snapshot of the entire market for a givensecurityType (stocks, options, futures, etc.) andgroupID (exchange) using theMarketSummaryFeed.

You must be logged in to vote
0 replies
Comment options

When I try to get the merket summary I get the following exception

12:33:06.432 [msFeed Market Summary Lookup Feed] DEBUG net.jacobpeterson.iqfeed4j.feed.lookup.marketsummary.MarketSummaryFeed - Protocol version validated: [S, CURRENT PROTOCOL, 6.2]
12:33:06.460 [main] DEBUG net.jacobpeterson.iqfeed4j.feed.lookup.marketsummary.MarketSummaryFeed - Sending message: FDS,EQUITY,334220,20211105,1

java.util.concurrent.ExecutionException: net.jacobpeterson.iqfeed4j.feed.exception.IQFeedRuntimeException: 50007,No file available.
at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)
at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1895)
at net.jacobpeterson.iqfeed4j.feed.message.MultiMessageAccumulator.getMessages(MultiMessageAccumulator.java:52)
at net.jacobpeterson.iqfeed4j.feed.lookup.marketsummary.MarketSummaryFeed.requestFundamentalSummary(MarketSummaryFeed.java:406)
at com.srini.iqDataFetcher.fundamental.FundamentalUtil.main(FundamentalUtil.java:17)
Caused by: net.jacobpeterson.iqfeed4j.feed.exception.IQFeedRuntimeException: 50007,No file available.
at net.jacobpeterson.iqfeed4j.feed.lookup.marketsummary.MarketSummaryFeed.handleMultiMessage(MarketSummaryFeed.java:257)
at net.jacobpeterson.iqfeed4j.feed.lookup.marketsummary.MarketSummaryFeed.onMessageReceived(MarketSummaryFeed.java:213)
at net.jacobpeterson.iqfeed4j.feed.AbstractFeed.run(AbstractFeed.java:232)
at java.lang.Thread.run(Thread.java:748)

Any idea what I might be doing wrong?

You must be logged in to vote
1 reply
@Petersoj
Comment options

Take a look at the error message in your stacktrace:IQFeedRuntimeException: 50007,No file available. That usually means that there is no market summary data for the requested security type, exchange group ID, and date. Try your request using a different security type, exchange group ID, orLocalDate (like2021-11-04 (yesterday) instead of today (2021-11-05)) and it should work.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@SriniKancharla@Petersoj

[8]ページ先頭

©2009-2025 Movatter.jp