跳转到主要内容

Documentation Index

Fetch the complete documentation index at: https://docs.tickdb.ai/llms.txt

Use this file to discover all available pages before exploring further.

本指南帮助您在 10 分钟内开始使用 TickDB。

步骤 1:创建 API 密钥

https://tickdb.ai 注册并从控制台创建 API 密钥。

步骤 2:身份验证

TickDB 使用 API 密钥身份验证。所有 REST API 请求必须包含以下请求头:
X-API-Key: YOUR_API_KEY

步骤 3:基础 URL

https://api.tickdb.ai

步骤 4:第一个请求

curl -H "X-API-Key: YOUR_API_KEY" \
     "https://api.tickdb.ai/v1/market/ticker?symbols=700.HK,AAPL.US"

响应示例

{
  "code": 0,
  "message": "success",
  "data": [
    {
      "symbol": "700.HK",
      "last_price": "543",
      "volume_24h": "11205874",
      "high_24h": "557",
      "low_24h": "543",
      "price_change_24h": "-9",
      "price_change_percent_24h": "-1.63",
      "timestamp": 1773292807000
    },
    {
      "symbol": "AAPL.US",
      "last_price": "260.81",
      "volume_24h": "26218927",
      "high_24h": "262.13",
      "low_24h": "259.55",
      "price_change_24h": "-0.02",
      "price_change_percent_24h": "-0.01",
      "timestamp": 1773259201000
    }
  ]
}