Replies: 3 comments 5 replies
-
Nothing wrong with this, IMO. Rob recently merged a PR (from me) to address this issue in a slightly different way. In the code that checks this dictionary, if nothing is found, instead of raising an exception, it now uses resolve_ib_cash_position as the default. There are A LOT of different asset types that IB could potentially return. It would be tedious to support all of them with separate methods. The cash resolver expects only a minimum set of attributes that any financial asset would likely have. The method name could possibly be improved, but other than that, I can't think of a better way to handle it. Of course, if you need a particular attribute of an unsupported asset class, you can always implement your own resolver for it and add it to dictionary. |
Beta Was this translation helpful? Give feedback.
-
Also, regarding T-bills...allow me to suggest that ETFs are probably more efficient than buying T-bills directly. Especially for retail investors, but I even saw some research a few years suggesting that ETFs were superior even at institutional scale. I've used VGSH in the past, but there are numerous others. |
Beta Was this translation helpful? Give feedback.
-
Costs are an important factor, but also consider if it makes sense to spend your time managing a portfolio of T-bills, or if you could be doing something more valuable (or fun!), while someone who specializes in managing a portfolio of T-bills does that. Even if an ETF ends up costing a bit more (which may not be the case), it could be worth it. You are paying a management fee to the ETF, but with their scale they can pay far lower commissions and get better executions than you would. I don't understand what you mean regarding MTM hits. The MTM value of T-bills will fluctuate too. |
Beta Was this translation helpful? Give feedback.
-
Hello All
Given the slight rise in interest rates it appears that buying a few TBILLS to pick up a a percent or two in yield would be a good idea.
I have done so, and in so doing have broken the reports.
I repaired it with a shameless hack and the reports are running.
The error message:
The hack in the following file: ~/pysystemtrade/sysbrokers/IB/ib_positions.py
in the function
from_ib_positions_to_dict
in the position_methods_dict
Reports ran without breaking. Now to find how to do a proper fix.
As is usual an appeal to the hive mind.
Beta Was this translation helpful? Give feedback.
All reactions