-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TickMessage.TotalVolume exceeded int.MaxValue #93
Comments
@Nucs did you contact IQFeed? this is definitely an error from their data. |
No, how are you sure it is an error? |
@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? |
|
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. |
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. |
@Nucs ill close the issue for now, please dont hesitate to reopen once you have more detail on the tickers. |
@mathpaquette Hello, yesterday our service crashed because it seems exactly the same issue. Here is the exception info:
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:
Was it supposed to be caught in the try/catch block? |
Currently TickMessage.TotalVolume is of type int.
I've received the following tick:
Might I suggest upgrading LastSize to 'long' as-well.
The text was updated successfully, but these errors were encountered: