Skip to main content
Every 5 minutes during market hours, an unusual-activity watchlist lands in Slack — and the engineer who built it goes back to actually trading.

What This Example Shows

  • A ConcurrentWorkflow of three specialist agents — Flow Scanner, Greeks Analyzer, Vol Surface Watcher — fanning out in parallel on the same options snapshot
  • Per-agent tools_list_dictionary wired to live options market-data endpoints (Polygon / Tradier) and a Slack webhook
  • An intraday cron firing every 5 minutes (*/5 9-16 * * 1-5) that turns into ~80 swarm runs per session
  • The rate-limit math: a 5-minute cadence is 12 requests per hour, comfortably inside the Free tier’s 350/hour cap — this workload doesn’t require Premium on request volume alone
  • Model diversification across providers — gpt-4.1-mini, gpt-4.1, claude-haiku-4-5, claude-sonnet-4-5 — each picked for what that node actually needs
  • A Trade Idea Generator merging the three parallel briefs into a ranked watchlist and posting to a Slack channel before the next 5-minute window
A 5-minute cron during the 6.5-hour cash session generates ~78 swarm runs per day, each launching 4 agents. Rate limits count API requests, not agents, so that is 12 requests/hour against the Free tier’s 350/hour and 1,200/day caps — this cadence fits comfortably within the Free tier’s request limits on its own. Full limit table at Rate Limits.

Why This Matters

Unusual options activity has historically led equity returns by 10 to 30 minutes — large sweeps, abnormal volume-vs-OI ratios, IV expansions, and skew shifts are exactly the footprints big books leave when they take a directional view before it shows up in the tape. A single human eyeballing a Bloomberg flow scanner can cover maybe 20 names attentively in a session. The S&P 500 has 500 names, the Russell 3000 has 3,000, the optionable US equity universe is roughly 5,000. You cannot scan that manually, and you cannot scan it once a day either — flow that mattered at 10:05 is dead by 10:35. The only way to win this is a 5-minute heartbeat with parallel specialist agents that survive the firehose and only escalate the names that actually deserve a look.

The Architecture

Step 1: Setup

Grab your Swarms key at https://swarms.world/platform/api-keys, then wire up the options data vendor and Slack.

Step 2: Define the Function Tools

Tools are OpenAI function-call schemas attached per-agent via tools_list_dictionary. The agents decide when to call them — your backend executes them against Polygon / Tradier / Slack and feeds results back into the loop.

Step 3: Define the Four Agents

Four agents, four models, four jobs. Cheap and fast on the wide scan; reasoning-heavy where the math actually matters; Sonnet at the top to merge.
The cheapest model (gpt-4.1-mini) does the widest pass because flow scanning is mostly pattern recognition over structured data — Greeks reasoning and final ranking is where the smarter models earn their tokens. Diversifying providers across OpenAI and Anthropic also means if one provider has a 5-minute outage, three out of four agents still ship.

Step 4: Run One Intraday Pass

A single 21-ticker pass typically runs ~$0.18–$0.25 and completes in 30–45 seconds — well inside the 5-minute window, with a generous buffer for slow data calls.

Step 5: The 5-Minute Cron

Drop the script behind a cron line that only fires during the US cash session, Monday through Friday.
The math on a 5-minute heartbeat: Each pass launches the swarm, which kicks off 4 agents and the underlying tool calls. That is roughly 312 agent-runs per hour during market hours, but rate limits count requests, not agents: 12 requests/hour sits well inside the Free tier’s 350/hour and 1,200/day caps. This single-watchlist cadence does not require Premium on request volume — if you fan this out across multiple watchlists or tighten the cadence below 5 minutes, watch your X-RateLimit-Remaining-* headers so you know how much headroom is left before Premium’s higher per-minute/hour/day caps (2,000/10,000/100,000) become necessary. Full numbers at Rate Limits.
A 5-minute window that completes at minute 6 is a missed window — the next cron fires before the last alert lands in Slack. That is a latency/tuning problem (model choice, max_tokens, tool round-trips), not a rate-limit one at this cadence; watch wall time on each pass and cut max_tokens on the specialist agents if a pass runs long.

Real Cost vs. Bloomberg Options Scanner

This is not a Bloomberg replacement. Nobody is canceling their Terminal because of a Slack bot — Bloomberg owns the ground truth, the chat, and the workflow your counterparties live in. What this stack is: a focused alpha layer on top of the data you already pay for, doing the one thing humans cannot do — scanning the full optionable universe every 5 minutes without getting tired. Cheap enough to run from a side server, cheap enough to fail occasionally, cheap enough that you do not have to justify the spend to a CFO.

Next Steps

  • Crypto Quant Agent — the same intraday cron pattern applied to 24/7 crypto markets where the heartbeat can stay tight all weekend
  • AI Hedge Fund Research Pipeline — the overnight HierarchicalSwarm batch pattern that pairs with this intraday loop for a complete research stack
  • Rate Limits — exact per-tier numbers, the upgrade path, and how priority queueing changes the cadence math