-
Notifications
You must be signed in to change notification settings - Fork 41
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
ibflex.parser.FlexParserError: Can't convert '20200406;214347' to <class 'datetime.date'> #15
Comments
Well, it's trying to convert a date/time into a date. Of course it's failing; the semicolon and everything after it isn't supposed to be there. This means your data doesn't match the ibflex data model. What field is it, exactly, that has '20200406;214347' where my code is expecting a date type? |
I think it is in the
The problem happened after I brought some shares in HK stock exchange. There is no problem in US stocks. I have looked at the data model. The date in TransactionTax Class is |
For me it looks like IB reporting problem rather than ibflex issue. From what I see this '20200406;214347' value should be inside 'dateTime' field, not 'date'... |
Do we have a reference for the TransactionTax element? IB is not completely consistent in their reporting formats. IIRC, I allowed Try changing the data type of |
Solved by changing But I also need to add a new class |
Please submit a PR once you've tested the changes. I don't have any data for TransactionTax etc. Thanks. |
I receive this error
ibflex.parser.FlexParserError: Can't convert '20200406;214347' to <class 'datetime.date'>
today.The same code works before.
The text was updated successfully, but these errors were encountered: