> ## Documentation Index
> Fetch the complete documentation index at: https://developers.uqpay.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 选择资产

> 查询可交易资产，并取得报价所需的资产标识。

[Stablecoin Account API Publisher Disclaimer](/zh/stablecoin-account/v1.6/guide/stablecoin-account-api-publisher-disclaimer)

开始前，为账户开通 Stocks，并取得 [API Token](/zh/account-center/v1.6/api-reference/access-token)。请求地址和请求头见各接口的 API Reference。

## 1. 查询资产列表

调用 [List assets](/zh/stocks/api-reference/list-assets)（`GET /asset`）。查询特定资产时传入 `symbol`，否则分页浏览列表。从 `data` 中选择资产并保存 `asset_id`。

根据交易方向检查 `can_buy` 或 `can_sell`。`symbol` 和 `name` 用于展示，后续接口使用 `asset_id`。

## 2. 查询资产详情

将上一步的标识传给 [Retrieve asset](/zh/stocks/api-reference/retrieve-asset)（`GET /asset/{asset_id}`）。读取资产和网络的可用能力，以及 `funding_currencies`，为报价选择资金币种。

报价请求传入 `asset_id` 和 `funding_currency`，不传 `token_id` 或网络选择参数。实际使用的 `network` 从报价响应读取。

## 3. 按需展示历史行情

使用相同的 `asset_id` 调用 [Retrieve price history](/zh/stocks/api-reference/retrieve-price-history)（`GET /asset/{asset_id}/price-history`）。`range` 可选 `1d`、`1w` 或 `1m`，默认 `1d`。

返回的价格点用于展示历史行情。客户决定交易时，再获取新的[报价](/zh/stocks/guide/quotes-and-orders)。
