IBKR Imports missing Symbol
cainfe opened this issue · 5 comments
When I import trades from Interactive Brokers following the instructions in brokers. My trades import with their Symbols being blank. Looking at the CSV, the column for "UnderlyingSymbol" has blank data and the column for "Symbol" has the right data, if I switch their names (so that the previously named "Symbol" column becomes "UnderlyingSymbol") it imports correctly.
I think the line here
TradeNote/src/utils/brokers.js
Line 618 in 6fff582
I have the same issue, but for the futures it works correct(for example you want to see CL(UnderlyingSymbol) instead of CLH4(Symbol)), because Symbol changes every month and you want to see the whole statictics.
I think it would be nice to add something like this here:
https://github.com/Eleven-Trading/TradeNote/blob/6fff5826e61db88b5a5bf820011ba105894c9591/src/utils/brokers.js#L597C21-L597C25
line 597
temp.Type = "stock"
temp.Symbol = element["Symbol"]
if (element.AssetClass == "FUT") {
temp.Type = "future"
temp.Symbol = element["UnderlyingSymbol"]
}
I don't see you on our discord @HadronUA . Please connect to https://discord.gg/ZbHekKYb85