I’ve been doing this as well it also works well when you hook it up to Edgar or feed in investor relations documents or earnings transcripts. You can extract a lot of data at scale for regressions using small models with few shot prompts running locally.
whinvik•2h ago
What do you mean by "regressions"?
peterldowns•3h ago
Great writeup! I was just working at Alpaca --- if you're interested in using Alpaca via MCP (or another way of integrating with LLMs), reach out with your usecase and I'd be happy to put you in touch with the right people.
dokka•3h ago
I also did this a few months ago using a custom MCP server I built for the Alpaca API, the yfinance MCP server, and a reddit MCP server, and the "sequential thinking" mcp server. I hade claude write a prompt that combined them all together starting with checking r/pennystocks for any news, looking up the individual ticker symbols with alpaca and yfinance, checking account balance and making a trade only if a very particular set of criteria was met. I used claude code instead of desktop so that I could run it as a cron job, and it all works! I mostly built it to see if I could, not for any financial gain. I had it paper trading for a few months and it made a 2% profit on 100k. I really think someone that knows more about trading could do quite well with a setup like this, but it's not for me.
duggan•28m ago
Did you benchmark it against holding the same value in S&P 500 or similar ETF over the same period?
maxwellg•2h ago
Sometimes Go can get under my skin.
The MCP SDK makes you jump through all these hoops to configure tools according to a JSON schema, but when it comes to handling the actual request you need to deal with parsing everything again out of a `map[string]any`. It's such a pain to need to reach for codegen all the time.
UltraSane•1h ago
Go is pretty miserable for dealing with JSON compared to Python
shibayu36•53m ago
I recently built an MCP server in Go too, so the use cases and implementation guide were very helpful, thank you.
drob518•37m ago
Yikes! I can only imagine an LLM hallucinating my portfolio to zero.
faizshah•3h ago
whinvik•2h ago