跳转到主要内容
GET
/
api
/
v1
/
prices
获取价格
curl --request GET \
  --url https://api.example.com/api/v1/prices
{
  "code": 0,
  "msg": "ok",
  "data": {
    "currency": "USD",
    "updatedAt": "2026-05-11T10:00:00.000Z",
    "items": [
      {
        "symbol": "ETH",
        "usdPrice": 3500.12,
        "usdChange24h": -1.24
      },
      {
        "symbol": "USDC",
        "usdPrice": 1,
        "usdChange24h": 0
      }
    ]
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.nexfi.robert.dpdns.org/llms.txt

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

查询参数

symbols
string

资产符号列表,例如 ETH,USDC

示例:

"ETH,USDC"

assets
string

资产标识列表,可扩展为链+地址键。

示例:

"8453:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"

currency
enum<string>

展示币种。

可用选项:
USD,
CNY
示例:

"USD"

响应

200 - application/json

成功返回价格结果

统一响应包裹结构。

code
integer
必填

业务状态码,0 表示成功。

示例:

0

msg
string
必填

可读返回消息。

示例:

"ok"

data
object