工具 API
get_ id_ simple_ token_ price
使用此工具时,请始终使用 `jq_filter` 参数来减少响应大小并提升性能。除非您确定不需要这些数据。此端点允许您使用代币合约地址查询一个或多个代币价格
调用信息
- 工具标识
- coingecko-demo.get_id_simple_token_price
- 服务提供方
- CoinGecko
- 平均响应
- 0 ms
- 近 7 天调用
- 0
输入参数
id必填string
contract_addresses必填the contract addresses of tokens, comma-separated if querying more than 1 token's contract address
vs_currencies必填target currency of coins, comma-separated if querying more than 1 currency. *refers to [`/simple/supported_vs_currencies`](/reference/simple-supported-currencies).
include_24hr_changeinclude 24hr change default: false
include_24hr_volinclude 24hr volume, default: false
include_last_updated_atinclude last updated price time in UNIX , default: false
include_market_capinclude market capitalization, default: false
precisiondecimal place for currency price value
jq_filterA 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/).