What This Example Shows
- A
ConcurrentWorkflowof three specialist agents — Flow Scanner, Greeks Analyzer, Vol Surface Watcher — fanning out in parallel on the same options snapshot - Per-agent
tools_dictionarywired 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 blows through Free per-hour caps inside the first 60 minutes — Premium is not optional for production
- 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 — that is well past Free per-hour rate limits within the first hour, and Pro limits by mid-morning. You need Premium for the priority queue and the headroom. 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 viatools_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
Step 5: The 5-Minute Cron
Drop the script behind a cron line that only fires during the US cash session, Monday through Friday.| Window | Passes |
|---|---|
| Per hour | 12 |
| Per 6.5-hour session | ~78 |
| Per week | ~390 |
| Per month | ~1,700 |
Premium queue priority matters more than raw call count here. A 5-minute window that completes at minute 6 is a missed window — the next cron fires before the last alert lands in Slack. Priority routing keeps the wall time inside the cadence on busy days.
Real Cost vs. Bloomberg Options Scanner
| Stack | Setup | Annual |
|---|---|---|
| This swarm (4 agents × ~78 passes/day) | ~$15/day in API + data fees | ~$3,750/yr |
| Bloomberg AIM seat (with options analytics) | $2,000/mo per seat | ~$24,000/yr |
| Tradeshift / OptionsPlay enterprise | $1,500–$3,000/mo | ~$18,000–$36,000/yr |
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
HierarchicalSwarmbatch 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