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…
Trading with Claude, and writing your own MCP server
11–20 of 90 posts
Re: Trading with Claude, and writing your own MCP server
#12Sometimes 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
Re: Trading with Claude, and writing your own MCP server
#13Re: Trading with Claude, and writing your own MCP server
#14Earlier 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.
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
#15I 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
#16Yikes! I can only imagine an LLM hallucinating my portfolio to zero.
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
#17Earlier 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"
Pretty sure OP sharpe ratio is higher than benchmark for the last two months.
Re: Trading with Claude, and writing your own MCP server
#18Any Claude desktop MCP recommendations?
Re: Trading with Claude, and writing your own MCP server
#19but 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
#20I’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"?