工具 API

get_simple_price

使用此工具时,请始终使用 `jq_filter` 参数来减少响应大小并提升性能。除非您确定不需要这些数据。此端点允许您通过使用代币的唯一 API ID 查询一个或多个代币的价格

finance1 积分

调用信息

工具标识
coingecko-demo.get_simple_price
服务提供方
CoinGecko
平均响应
0 ms
近 7 天调用
0

输入参数

vs_currencies必填

target currency of coins, comma-separated if querying more than 1 currency. *refers to [`/simple/supported_vs_currencies`](/reference/simple-supported-currencies).

ids

coins' IDs, comma-separated if querying more than 1 coin. *refers to [`/coins/list`](/reference/coins-list).

include_24hr_change

include 24hr change percentage, default: false

include_24hr_vol

include 24hr volume, default: false

include_last_updated_at

include last updated price time in UNIX, default: false

include_market_cap

include market capitalization, default: false

include_tokens

for `symbols` lookups, specify `all` to include all matching tokens Default `top` returns top-ranked tokens (by market cap or volume)

names

coins' names, comma-separated if querying more than 1 coin.

precision

decimal place for currency price value

symbols

coins' symbols, comma-separated if querying more than 1 coin.

jq_filter

A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available. For example: to include only the `name` field in every object of a results array, you can provide ".results[].name". For more information, see the [jq documentation](https://jqlang.org/manual/).