Skip to content

代币价格

查询 Slash 平台上的加密货币 token 价格。

List Token Prices

POST/partner/channel/slash/token-prices/query internal

返回所有可用 token 的价格列表。

Request Body

使用 SecureChannelRequest<Void> 包裹,不需要业务 payload。

Response

返回 List<TokenPrice>

Success 200
{
  "data": [
    {
      "symbol": "USDC",
      "price": "1.0000",
      "currency": "USD"
    },
    {
      "symbol": "ETH",
      "price": "3245.50",
      "currency": "USD"
    }
  ]
}

Get Token Price

POST/partner/channel/slash/token-prices/get internal

获取单个 token 的价格。不存在时返回 404

Request Body

使用 SecureChannelRequest<TokenPriceGetRequest> 包裹:

NameTypeRequiredDescription
tokenSymbolstringRequiredtoken symbol,例如 USDC、ETH

Response

返回 TokenPrice

SlaunchX Internal Documentation