rgourley/quant-garage/massive-api-patterns
Claude Code and agent skill by rgourley/quant-garage
- community
Checking that the SKILL.md file is still in the repository.
Foundation skill for any REST workflow hitting api.massive.com. Use when calling any /v1, /v2, /v3 endpoint. Covers auth header, rate limit handling, pagination, and the best-price fallback chain. Every other REST-using skill depends on this.
Install
npx vskill@latest install rgourley/quant-garage/massive-api-patternsSKILL.md
The same SKILL.md was published earlier as rgourley/quant-garage/massive-api-patterns.
massive-api-patterns
The REST foundation. Every skill that calls api.massive.com reads these rules first.
Auth
API key goes in the Authorization header as a bearer token:
Query-string auth (?apiKey=...) also works but logs the key in URLs. Use the header.
Rate limits
- Free Basic: 5 requests per minute. Hard cap. 429 if you exceed it.
- Any paid tier: unlimited requests per minute. Soft cap at 100
requests per second to avoid throttling.
The skills in this repo declare their rate assumptions in requires.yml. A skill that fans out parallel calls will warn the user if it detects a free key.
Always handle 429 explicitly: back off with exponential delay, retry once, then surface the error.
Pagination
List endpoints return a next_url field when more results exist:
Follow next_url directly, don't reconstruct it. The cursor is opaque and includes auth context.
The best-price fallback chain
Never quote a price from a single field. The v2 snapshot response nests everything under ticker, so all reads start there. Walk this 4-step chain and stop at the first non-null value:
snapshot.ticker.lastTrade.p(most recent trade across exchanges)snapshot.ticker.min.c(current minute bar close, intraday only)snapshot.ticker.day.c(today's session close)snapshot.ticker.prevDay.c(previous session close, off-hours or
quiet names)
Always emit the timestamp of whichever field won so the caller knows how stale the price is. lastTrade.t and min.t are nanosecond epochs; the daily fields don't always carry a timestamp.
lib/quant_garage/snapshot.py::resolve_price is the canonical implementation. Every skill in this repo that needs a current price imports it rather than rewriting the walk.
This is the generic REST pattern. Massive's proprietary FMV metric is a different thing (Business plan, stream-only on the WebSocket FMV channel) and not what these skills mean by "fair value." It is not a field on the v2 snapshot response.
Error codes
| Code | Meaning | What to do | |
|---|---|---|---|
| 401 | Bad or missing API key | Surface immediately, don't retry | |
| 403 | Endpoint not available on user's plan | Surface with plan upgrade hint | |
| 404 | Ticker or contract not found | Skip, don't retry | |
| 429 | Rate limited | Back off, retry once | |
| 5xx | Server error | Retry with exponential backoff, max 3 attempts |
Real-time vs delayed
Stocks REST is 15-minute delayed on Basic, Starter, and Developer tiers. Real-time stocks need Advanced. Options REST is real-time on Developer and above. Crypto REST is real-time on Developer.
If a skill needs real-time, declare realtime: yes in requires.yml and fail fast if the user's tier doesn't support it.
Example: snapshot a ticker
The response includes the full snapshot. Walk the fallback chain to pick the price field, then emit {ticker, price, source_field, timestamp}.
What does NOT live here
WebSocket streaming patterns (see `massive-websockets`) and bulk flat-file downloads (see `massive-flat-files`).
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/massive-api-patterns/SKILL.md
Popularity
- Repository stars
- 7
- 7-day trend score
- 10
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/rgourley/quant-garage/massive-api-patterns)