Live data from Hacker News

Trading with Claude, and writing your own MCP server

dangelov.com

11–20 of 90 posts

Re: Trading with Claude, and writing your own MCP server

#11
post #4

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 par…

Did you benchmark it against holding the same value in S&P 500 or similar ETF over the same period?

Re: Trading with Claude, and writing your own MCP server

#12
post #6

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.

Go is pretty miserable for dealing with JSON compared to Python

Interesting, Go is actually a language I tend to reach for when dealing with JSON.

Re: Trading with Claude, and writing your own MCP server

#14
post #12

Earlier quoted context omitted.

Go is pretty miserable for dealing with JSON compared to Python

Interesting, Go is actually a language I tend to reach for when dealing with JSON.

I feel the same way, but to defend GP, if you're dealing with unknown JSON, the experience of deserializing `any` (or `map[string]any` if you know the top-level entity is an object) can be extremely tedious.

For things like structured API requests/responses, Go's struct tags are basically exactly how I want my JSON ser/de to look.

Re: Trading with Claude, and writing your own MCP server

#15
post #11
post #4

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 par…

Did you benchmark it against holding the same value in S&P 500 or similar ETF over the same period?

they said their paper account did 2% over a few months, which is not beating the s&p 500, and is probably why they said "someone could make money off this, but not me"

Re: Trading with Claude, and writing your own MCP server

#16
post #10

Yikes! I can only imagine an LLM hallucinating my portfolio to zero.

It may not hallucinate yours to zero, or mine, or franks, or Mary's, but at some point it will do it to someone. That's the issue I have with these approaches *at scale*.

I'm sure one day we'll get 100.00% reliable outputs such that autonomous agents can do this, however that's not today.

Re: Trading with Claude, and writing your own MCP server

#17
post #11

Earlier quoted context omitted.

Did you benchmark it against holding the same value in S&P 500 or similar ETF over the same period?

they said their paper account did 2% over a few months, which is not beating the s&p 500, and is probably why they said "someone could make money off this, but not me"

eh depending on what he means by 'specific set of criteria'. The vol might be lower than benchmark (i doubt it since they are pennystocks)

Pretty sure OP sharpe ratio is higher than benchmark for the last two months.

Re: Trading with Claude, and writing your own MCP server

#19
algo trading already there for decades but addition with AI that can process corporate performance, trends etc can make it to another level

but if we do this, does this good for market??? since if everyone have access to this tool. meaning that market would get optimized to the ground and what happen to daily trader etc ???

does that mean everyone just win/lose money equally???

Re: Trading with Claude, and writing your own MCP server

#20
post #5
post #2

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.

What do you mean by "regressions"?

OP likely means statistical regressions.
Post reply on HN