Back to blog

July 2026 · 2 min read

Test Post/Financial Portfolio weighting Part 1

This used to be a test, but I have stuff to write now! Yaaaaaay

finance

Whyyyyy IBKR

So up until recently (maybe a few months ago), I used this neat web app called passiv to help me manage my finance portfolio. While it has plenty of interesting features, I mainly used to tell me where I should put my investments. No, not a roboadvisor. I would give it a target portfolio of "groups" of stock/etf selections, give it target weightings for each, and it tells me where I can put my cash.

UNFORTUNATELY, Interactive Brokers decided that API access was too fancy for regular users, and I would have to upgrade my subscription to continue using a COMPLETELY DIFFERENT TOOL.

So, sorry passiv, but IBKR wants money, and... well, I already have a ChatGPT+ sub, and a hankering for a new project. Plus, this way I get to implement some features that I've always wanted but passiv never thought to ask.

Gameplan

While this is a very interesting project to flex my ability to whip up new projects, as I said, I have at least Codex available and limited time, as a fairly newly-born dad. We'll see if it ends up being completely vibe-coded or not, but I'll at least work with python/react primarly, should be understandable in the end.

So far, I've got a plan.md (I mean its a personal app but the functionality is big enough to split across implementation steps) and a pretty mermaid diagram. Lets see how things go! I'll probably push this to my gitlab profile at some point, no need to lose things locally, but use at your own risk!

The... other plan(.md)

Shortly put, I want the same rebalancing feature: given a portfolio model and some data about current holdings, tell me what I should buy in order to most increase the accuracy of my portfolio according to my model. Let's say you own 40% stock A and 60% stock B at 100 Andrew-Marks total. But your target is 50% each. So, you would need an injection of 20 Andrew-Marks and put them into Stock A in order to match the target.

Some other nice to haves that I've thought of:

  • passiv doesn't account for future cash flows, so I was often left wondering whether I should shove new money into IBKR or Questrade. On top, I also have an invested BaV (sorry, but its a Germany only thing, so the only link is in German. You got a translator don't you?) which I should reflect in my portfolio as well, theoretically (this one is up in the air: on one hand, its money I have invested somewhere. However, I can't access it until retirement, I only get updates on the total value [not the holdings, ugh, but luckily its all in World ETF] onve a year, and I get dinged with service fees constantly. Hard to model). Ok anyway, long story short, I want to say "hey, I have X cash saved up, which brokerage purchase would help me balance this best?"
  • sorta related, but it should grab stuff from Questrade automagically but IBKR and other positions will need to be manually entered to some degree... hopefully I can find a free API to get current values for the ticker symbols