codex-supergraph logo

codex-supergraph

codex supergraph

codex-data/skills170installs0stars

SKILL.md

Full skill instructions

Codex Supergraph Data

Codex provides real-time on-chain data — token prices, charts, holders, and prediction markets — via a single GraphQL API. Full documentation: docs.codex.io.

Authentication

Pass $CODEX_API_KEY in the Authorization header if available. Get a free API key at dashboard.codex.io/signup. If the server returns 402 Payment Required, use the codex-gateway skill to handle the payment flow.

If both a local and global copy of this skill exist, the local copy takes precedence.

Summary

Use this skill to produce valid Codex GraphQL requests using API key authentication.

HTTP endpointhttps://graph.codex.io/graphql
WebSocket endpointwss://graph.codex.io/graphql
Schema (SDL)https://graph.codex.io/schema/latest.graphql
Introspection JSONhttps://graph.codex.io/schema/latest.json
API-key authAuthorization: <key> or Authorization: Bearer <token>

Session preflight (required)

Run once and cache:

curl -sS https://graph.codex.io/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: $CODEX_API_KEY" \
  --data-binary '{"query":"query GetNetworks { getNetworks { id name } }"}'

Use network IDs from this result before expensive requests.

Operation selection

NeedOperation
NetworksgetNetworks
Token discovery/searchfilterTokens
Trending tokensfilterTokens with trendingScore24 ranking
Token pricesgetTokenPrices
Pairs for a tokenlistPairsWithMetadataForToken
Pair metadatapairMetadata
Pair OHLCVgetBars
Token OHLCVgetTokenBars
Token eventsgetTokenEvents
Maker eventsgetTokenEventsForMaker
Wallet leadersfilterTokenWallets
Wallet chart/statswalletChart, detailedWalletStats
Holdersholders
Top-10 concentrationtop10HoldersPercent
Live single priceonPriceUpdated
Live multi-priceonPricesUpdated
Live token eventsonTokenEventsCreated, onEventsCreatedByMaker
Live bars/pairsonBarsUpdated, onPairMetadataUpdated, onTokenBarsUpdated
Launchpad streamsonLaunchpadTokenEventBatch, onLaunchpadTokenEvent
Unconfirmed Solana eventsonUnconfirmedEventsCreated
Short-lived keyscreateApiTokens, apiTokens, apiToken, deleteApiToken
Webhooks (server-side alerts)createWebhooks, deleteWebhooks, getWebhooks
Windowed token change statsgetDetailedTokenStats
Prediction event discoveryfilterPredictionEvents
Prediction market discoveryfilterPredictionMarkets
Prediction event detaildetailedPredictionEventStats
Prediction market chartpredictionMarketBars
Prediction multi-market chartpredictionEventTopMarketsBars
Prediction event chartpredictionEventBars
Prediction tradespredictionTrades
Prediction token holderspredictionTokenHolders
Prediction categoriespredictionCategories
Prediction trader leaderboardfilterPredictionTraders
Prediction trader profiledetailedPredictionTraderStats
Prediction trader positionsfilterPredictionTraderMarkets
Prediction trader chartpredictionTraderBars

Default discovery path: start with filterTokens.

Rules

  • Never print raw API keys.
  • Validate networkId first.
  • Keep selection sets minimal until shape is confirmed.
  • Use onPricesUpdated instead of many single-token subscriptions.

References

FilePurpose
references/gotchas.mdCommon failure points — check here first
references/query-templates.mdQuery + websocket templates with examples
references/endpoint-playbook.mdOperation selection heuristics by intent
references/apis.mdEndpoint/auth matrix, pagination, rate limits
references/prediction-markets.mdPrediction market queries — events, markets, traders, charts
references/tooling-and-mcp.mdCodex Docs MCP setup for coding tools

Links