Comments (10)
@Nucs did you contact IQFeed? this is definitely an error from their data.
from iqfeed.csharpapiclient.
No, how are you sure it is an error?
from iqfeed.csharpapiclient.
@Nucs it happened to me in the past and it was corrupted data from their side. 2 billion its a lot lot of volume. Whats the ticker?
from iqfeed.csharpapiclient.
https://finviz.com/screener.ashx?v=131&o=-averagevolume
from iqfeed.csharpapiclient.
2 billion its a lot lot of volume
Yeah it is.. we need a less destructive way to handle bad data if that's the case
We couldn't find what ticker that is
from iqfeed.csharpapiclient.
changing data type is a very impacting change for very rare exceptions like this. On top of that, you already need to try/catch every lookup requests because you can receive unordered data or NO_DATA exception. for me this has nothing to do with the library itself.
from iqfeed.csharpapiclient.
https://github.com/QuantConnect/Lean/blob/master/ToolBox/IQFeed/IQFeedFileHistoryProvider.cs#L278
from iqfeed.csharpapiclient.
Like I said, pretty sure this is corrupted data from their end and I won't merge it for now. Please come back with specific tickers and we can escalate that with IQFeed. It's better to have an overflow exception and discard the data than hiding something under the carpet.
from iqfeed.csharpapiclient.
@Nucs ill close the issue for now, please dont hesitate to reopen once you have more detail on the tickers.
from iqfeed.csharpapiclient.
@mathpaquette Hello, yesterday our service crashed because it seems exactly the same issue. Here is the exception info:
Application: IqFeedManager.exe
CoreCLR Version: 5.0.20.51904
.NET Version: 5.0.0
Description: The process was terminated due to an unhandled exception.
Exception Info: System.OverflowException: Value was either too large or too small for an Int32.
at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, TypeCode type)
at System.Number.ParseInt32(ReadOnlySpan`1 value, NumberStyles styles, NumberFormatInfo info)
at IQFeed.CSharpApiClient.Lookup.Historical.Messages.TickMessage.Parse(String message)
at IQFeed.CSharpApiClient.Lookup.Common.BaseLookupMessageHandler.ProcessMessages[T](Func`2 parserFunc, Func`2 errorParserFunc, Byte[] message, Int32 count)
at IQFeed.CSharpApiClient.Lookup.Historical.HistoricalMessageHandler.GetTickMessages(Byte[] message, Int32 count)
at IQFeed.CSharpApiClient.Lookup.Common.BaseLookupFacade.<>c__DisplayClass4_0`1.<GetMessagesAsync>g__SocketClientOnMessageReceived|1(Object sender, SocketMessageEventArgs args)
at IQFeed.CSharpApiClient.Socket.SocketClient.ProcessReceive(SocketAsyncEventArgs e)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pNativeOverlapped)
I think it was the error on IqFeed side though, because the service was requesting the set of tickers it always requests -- nothing unusual.
Also the corresponding call was in try/catch block with general catch(Exception), but anyway the unhandled exception crashed the app. -- it wasn't caught:
try {
... = await lookupClient.Historical.GetHistoryTickDatapointsAsync(...
} catch (Exception ex) {
...
}
Was it supposed to be caught in the try/catch block?
from iqfeed.csharpapiclient.
Related Issues (20)
- Support of new IqFeed version 6.2 HOT 2
- MarketSummary.GetEndOfDayFundamentalSummaryAsync throws Exception HOT 2
- getting stock symbol info (industry, sector etc) HOT 2
- Minute bars for various divisions of the trading day. HOT 2
- Enhancement - Add to items in enum DynamicFieldSet.cs HOT 1
- Enhancement? Dealing with Streaming Level2 HOT 3
- im trying to run with mono pythonnet HOT 5
- Examples HOT 5
- Streaming.Derivative
- startDate endDate HOT 6
- Save lookup data without the ENDMSG HOT 1
- The system cannot find the file specified Error HOT 4
- 1st timer 'ErrorMessage: Unauthorized user ID., MessageTrace: E,Unauthorized user ID., !ENDMSG!,' HOT 2
- how to pass retrieved data to a readable format HOT 3
- "The system cannot find the file specified" HOT 4
- - HOT 1
- IQFeed client causes webSite crash HOT 2
- How can I download Level 2 historical Tic data from yestereday? HOT 1
- IQFeed API, MacOS & Python
- AskTime and BidTime give timespan that shows no date HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iqfeed.csharpapiclient.