跳转到主要内容
GET
/
v1
/
market
/
ticker
Market Ticker
curl --request GET \
  --url https://api.tickdb.ai/v1/market/ticker \
  --header 'X-API-Key: <api-key>'
{
  "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
    }
  ]
}

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.

注意事项

  • 最多可同时查询 50 个交易品种
  • 时间戳单位为毫秒(UTC)

支持的市场

外汇贵金属指数美股港股A股加密货币 示例:
  • 外汇:EURUSD、GBPUSD、USDJPY
  • 贵金属:XAUUSD、XAGUSD
  • 指数:SPX、NDX、DJI
  • 美股:AAPL.US、TSLA.US、MSFT.US
  • 港股:700.HK、9988.HK、3690.HK
  • A股:000001.SH、000001.SZ
  • 加密货币:BTCUSDT、ETHUSDT、ADAUSDT

请求参数

参数名是否必须描述
symbols交易产品代码,多个用逗号分隔,最多50个

返回字段说明

字段说明
symbol交易产品
last_price最新成交价
volume_24h24小时成交量
high_24h24小时最高价
low_24h24小时最低价
price_change_24h24小时价格变化
price_change_percent_24h24小时价格变化百分比
timestamp数据时间戳(毫秒,UTC)

授权

X-API-Key
string
header
必填

查询参数

symbols
string
默认值:700.HK,AAPL.US
必填

Comma-separated symbols (max 50)

示例:

"700.HK,AAPL.US"

响应

200 - application/json

Successful response

code
integer
示例:

0

message
string
示例:

"success"

data
object[]
示例:
[
  {
    "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
  }
]