API Reference
Pricing
API Reference

🔐 身份验证

所有对 CoinGlass API 的请求都需要使用唯一且与用户绑定的 API Key 进行身份验证。

如果请求中缺少有效的 API Key 或请求头不完整,将会被拒绝,并返回身份验证错误。


🧾 如何获取 API Key

请登录您的账号,并在 API Key 管理页面生成您的 API Key 以开始使用。.

示例用法

curl -request GET
--url  'https://open-api-v4.coinglass.com/api/futures/supported-coins'
--header 'accept: application/json'\
--header 'CG-API-KEY: API\_KEY'

📦 请求头要求:

每一个请求必须包含以下 HTTP 请求头:

CG-API-KEY: '你的API Key'

如果缺少该请求头,或提供的 API Key 无效,请求将被拒绝,并返回 401 Unauthorized(未授权)错误。❗