How hot is this market? I let Claude Code pull options data

Everyone I talk to is asking the same question right now. Is this market too hot? Positioning decides how fragile a rally is. When everyone is already long, there is nobody left to buy. But how would you actually measure that? Is the crowd all-in or still hedged? Is the bullishness broad, or stuffed into a few names? You can feel a hot market. Proving it with data is the hard part. So I had Claude Code build me a full market positioning study off an options flow API. I built a market-positioning scanner. It reads options activity to measure how bullish or bearish investors are and identify which trades are becoming crowded. Think of it as a market thermometer. I used Unusual Whales for my setup. Any options data API with flow and volatility endpoints works, like Polygon or Cboe DataShop. Here’s the plan:
The PromptI started with a fresh Claude Code session and one “goal-based” prompt. The prompt sets the goal, defines the data workflow, and tells the agent to check what the API can actually answer before designing the study. Full prompt here: Market_Positioning_Study_Prompt.pdf If you want to customize it, swap in your own universe or your own question. The structure holds for any options API. You need two things: Claude Code and an options data subscription with API access. The full study used about 4,500 API calls, inside a single day’s allowance on my plan. The ResultFull report here: Market_Positioning_Consensus.pdf. It came back at 103 pages. The short version: the market flipped from cautious to bullish in the last week of August, and the study called it overly bullish on August 26. Here is what that means in practice:
None of that says the market must fall. It says the easy part of this move already happened, and the crowd is leaning one way with no seatbelt on. I also had the agent zoom into semiconductors, since that is where everyone’s book is concentrated. Two practical reads there:
Here’s the bigger takeaway. A study like this used to require a quant team and a serious data budget. The models are commoditized now. What is scarce is the data your agent can reach. My entire edge in this study was one API subscription. Research capacity is becoming a function of which feeds you can query. The funds building proprietary data pipes understand this, and the advantage compounds. I want to note the limits. This is one data vendor, one year of history, and positioning describes where the crowd stands today. It is a weak forecaster on its own, and none of this is investment advice. Run the prompt against your own coverage universe and see where your names rank. Let’s check back in a month on whether the August 26 signal meant anything. PersonalI’m making these API-driven studies a regular rotation in the letter. If there’s a dataset you want the agents pointed at next (13F filings, credit, prediction markets), hit the reply button. I read everything. |

Enjoyed this article?
Get more AI for finance content delivered to your inbox.