Coinbase 与 OKX API Key 权限及 IP 白名单控制对照
已验证事实边界
- Coinbase Exchange says API keys are tied to a single portfolio and require selecting permissions, passphrase and an IP address whitelist.
- Coinbase lists View, Transfer, Trade and Manage as API-key permission categories.
- Coinbase says the API secret and passphrase are shown only once and cannot be retrieved if lost.
- OKX's API Agreement requires commercially reasonable security measures including MFA, minimum required permissions, IP allowlisting where available, encrypted storage and rotation after suspected compromise.
- OKX's API Agreement says users must notify OKX promptly if an Authorized AI Agent behaves anomalously or if an API credential security incident occurs.
收起完整分析
决策矩阵
文章表格:可横向滑动,或聚焦表格区域后使用方向键。
| 核对项 | 含义 | 具体做法 | 尚未确认的事项 |
|---|---|---|---|
| Permission model | Coinbase names product permissions while OKX frames minimum scope as a user obligation | map each integration action to the narrowest possible permission | whether a third-party bot requests broader access than the documented need |
| IP binding | Coinbase requires an IP whitelist field and OKX requires IP allowlisting where available | avoid creating trade or transfer keys for unknown or shifting infrastructure | whether the user's hosting environment has stable outbound IPs |
| Secret recovery | Coinbase says lost API secrets and passphrases cannot be retrieved | store secrets in a manager and rotate instead of asking support to recover them | whether existing old keys were copied into logs or code repositories |
| AI-agent risk | OKX explicitly names authorized AI agents and unexpected behavior reporting | add kill switches, logging and scope review before allowing automated order placement | whether future venue terms add new AI-agent obligations |
| Audit outcome | the comparison should produce a key inventory, not a venue ranking | list key owner, permission, IP range, rotation date and disabled status | the private state of any existing key |
来源地图
- Coinbase Help:How to create an API key(s1)
- OKX:OKX API Agreement(s2)
- OKX:OKX API Guide(s3)
- Coinbase Help:Is my API key secure?(s4)
- CISA:Securing APIs(s5)
控制说明
1. Permission model
这一项要求读者先把公开来源翻译成操作规则。这里的含义是:Coinbase names product permissions while OKX frames minimum scope as a user obligation。可执行动作是:map each integration action to the narrowest possible permission。仍然未知的是:whether a third-party bot requests broader access than the documented need。因此本文不会把未知部分包装成安全承诺、收益承诺、官方背书、审批保证、可用性保证或注册诱导。
2. IP binding
这里的含义是:Coinbase requires an IP whitelist field and OKX requires IP allowlisting where available。可执行动作是:avoid creating trade or transfer keys for unknown or shifting infrastructure。仍然未知的是:whether the user's hosting environment has stable outbound IPs。
3. Secret recovery
这里的含义是:Coinbase says lost API secrets and passphrases cannot be retrieved。可执行动作是:store secrets in a manager and rotate instead of asking support to recover them。仍然未知的是:whether existing old keys were copied into logs or code repositories。
4. AI-agent risk
这里的含义是:OKX explicitly names authorized AI agents and unexpected behavior reporting。可执行动作是:add kill switches, logging and scope review before allowing automated order placement。仍然未知的是:whether future venue terms add new AI-agent obligations。
5. Audit outcome
这里的含义是:the comparison should produce a key inventory, not a venue ranking。可执行动作是:list key owner, permission, IP range, rotation date and disabled status。仍然未知的是:the private state of any existing key。
仍需明确的未知项
- whether a third-party bot requests broader access than the documented need
- whether the user's hosting environment has stable outbound IPs
- whether existing old keys were copied into logs or code repositories
- whether future venue terms add new AI-agent obligations
- the private state of any existing key
实用结论
本文最有价值的地方是克制。Coinbase 与 OKX 都把 API key 权限视为安全决策,但控制方式并不相同。Coinbase Exchange 在创建 API key 时要求填写 IP 白名单,并区分 View、Transfer、Trade、Manage 权限;OKX API 协议强调最小权限、MFA、可用时启用 IP 白名单、加密存储以及疑似泄露后的轮换。 用户应获得一个更清楚的核验路径,而不是一个看似肯定、实则无法由公开证据承担的承诺。
来源与证据
05- 原文标题How to create an API key
- 原文标题OKX API Agreement · okx.com
- 原文标题OKX API Guide · okx.com
- 原文标题Is my API key secure?
- 原文标题Securing APIs
选择下一步研究路径
更多研究: OKX
本文提到OKX、Coinbase。