codex-supergraph
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCodex Supergraph Data
Codex Supergraph 数据
API Key Guard
API密钥校验
This skill requires a valid . When the key is missing or empty, fall back to the codex-mpp skill instead — do not attempt keyless requests or public endpoints unless the user explicitly asks for one. Check for the key before making any network calls.
CODEX_API_KEYSwitching back: If a user later provides a key and asks to use this skill, re-check at that point. A key simply appearing in the environment does not auto-activate this skill.
If both a local and global copy of this skill exist, the local copy takes precedence.
本技能需要有效的。当密钥缺失或为空时,请切换至codex-mpp技能——除非用户明确要求,否则请勿尝试无密钥请求或使用公开端点。在发起任何网络请求前,请先检查密钥是否存在。
CODEX_API_KEY切换回本技能:若用户后续提供了密钥并要求使用本技能,请再次检查密钥。仅当密钥出现在环境中不会自动激活本技能。
若本技能同时存在本地副本和全局副本,本地副本优先。
Summary
概述
Use this skill to produce valid Codex GraphQL requests using API key authentication.
| HTTP endpoint | |
| WebSocket endpoint | |
| Schema (SDL) | |
| Introspection JSON | |
| API-key auth | |
使用本技能可生成经过API密钥认证的合法Codex GraphQL请求。
| 项目 | 详情 |
|---|---|
| HTTP端点 | |
| WebSocket端点 | |
| 模式(SDL) | |
| 自省JSON | |
| API密钥认证 | |
Authentication
认证方式
- Use or
Authorization: <key>for all queries, mutations, and subscriptions.Authorization: Bearer <token> - If the user already has a valid key, use this path.
- 所有查询、变更和订阅请求均需使用或
Authorization: <key>进行认证。Authorization: Bearer <token> - 若用户已持有有效密钥,请使用此方式。
Session preflight (required)
会话预检(必填)
Run once and cache:
bash
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.
运行一次并缓存结果:
bash
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 } }"}'在发起高开销请求前,请使用此结果中的网络ID。
Operation selection
操作选择
| Need | Operation |
|---|---|
| Networks | |
| Token discovery/search | |
| Token prices | |
| Pair metadata | |
| Pair OHLCV | |
| Token OHLCV | |
| Maker events | |
| Holders | |
| Top-10 concentration | |
| Live single price | |
| Live multi-price | |
| Live bars/pairs | |
| Short-lived keys | |
Default discovery path: start with .
filterTokens| 需求 | 操作 |
|---|---|
| 网络 | |
| 代币发现/搜索 | |
| 代币价格 | |
| 交易对元数据 | |
| 交易对OHLCV | |
| 代币OHLCV | |
| 做市商事件 | |
| 持有者 | |
| 前10持有者集中度 | |
| 实时单代币价格 | |
| 实时多代币价格 | |
| 实时K线/交易对 | |
| 短期密钥 | |
默认发现路径:从开始。
filterTokensRules
规则
- Never print raw API keys.
- Validate first.
networkId - Keep selection sets minimal until shape is confirmed.
- Use instead of many single-token subscriptions.
onPricesUpdated
- 绝不要打印原始API密钥。
- 先验证的有效性。
networkId - 在确认数据结构前,保持选择集最小化。
- 优先使用而非多个单代币订阅。
onPricesUpdated
References
参考资料
| File | Purpose |
|---|---|
| references/apis.md | Endpoint/auth matrix, constraints, errors |
| references/query-templates.md | Query + websocket templates |
| references/endpoint-playbook.md | Operation selection heuristics by intent |
| references/tooling-and-mcp.md | Codex Docs MCP setup for coding tools |
| 文件 | 用途 |
|---|---|
| references/apis.md | 端点/认证矩阵、约束条件、错误信息 |
| references/query-templates.md | 查询及WebSocket模板 |
| references/endpoint-playbook.md | 基于需求意图的操作选择指南 |
| references/tooling-and-mcp.md | 为编码工具配置Codex Docs MCP |