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

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Coin Price by IDs, Symbols, or Names

> 最经济的价格查询——按已知币种 id 获取当前价格，可选附带市值、成交量和 24 小时涨跌。

最经济的价格查询：传入逗号分隔的 CoinGecko `ids` 和 `vs_currencies`，返回以币种 id 为键的映射。字段名由计价货币拼接而成——当 `vs_currencies` 设为 usd 时，会返回 `usd`，并在设置了对应的 `include_market_cap`、`include_24hr_vol`、`include_24hr_change` 和 `include_last_updated_at` 标志时额外返回 `usd_market_cap`、`usd_24h_vol`、`usd_24h_change` 和 `last_updated_at`。当 id 已知且只需要当前数值时使用它。如需排名、供应量或历史最高价数据，请使用 [`get_coingecko_coins_markets`](https://aisa.one/docs/zh/api-reference/coingecko/get_coingecko-coins-markets)；如果你手上是合约地址而不是 id，请使用 [`get_coingecko_simple_token_price_id`](https://aisa.one/docs/zh/api-reference/coingecko/get_coingecko-simple-token-price-id)。

> [!NOTE]
>
> **第一次用？** 把任意 MCP 客户端指向 `https://mcp.aisa.one/mcp` —— Claude Code、
> Codex、Cursor、VS Code 都可以。鉴权走 OAuth：客户端打开浏览器，你点一次
> Allow，不需要粘贴任何 key。之后智能体通过几个元工具调用所有端点：
> `search`、`list_categories`、`get_details` 和 `batch_quote` 免费，`batch_use`
> 按次计费。各客户端的接入步骤见[通过 MCP 连接](https://aisa.one/docs/zh/agent-quickstart.md)；实时工具列表和
> 每次调用的价格见 [aisa.one/zh-cn/mcp](https://aisa.one/zh-cn/mcp#connect)。

[在你的 agent 里把这个端点跑起来 →](https://aisa.one/mcp?from=/zh/api-reference/coingecko/get_coingecko-simple-price)

## 请求规范

* **方法与路径:** GET /apis/v1/coingecko/simple/price
* **可用状态:** enabled
* **请求 URL 模板:** `https://api.aisa.one/apis/v1/coingecko/simple/price`
* **ids:** query; 可选
* **include\_24hr\_change:** query; 可选
* **include\_24hr\_vol:** query; 可选
* **include\_last\_updated\_at:** query; 可选
* **include\_market\_cap:** query; 可选
* **include\_tokens:** query; 可选
* **names:** query; 可选
* **precision:** query; 可选
* **symbols:** query; 可选
* **vs\_currencies:** query; 必填

[完整 OpenAPI 定义](https://aisa.one/docs/openapi/zh/coingecko.json)

有效请求声明（包括认证和引用的 schema）：

```json theme={null}
{
  "operationId": "get_coingecko_simple_price",
  "method": "GET",
  "path": "/apis/v1/coingecko/simple/price",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [
    {
      "description": "Coins' IDs, comma-separated if querying more than 1 coin. \n*refers to [`/coins/list`](/reference/coins-list)",
      "in": "query",
      "name": "ids",
      "required": false,
      "schema": {
        "default": "bitcoin",
        "type": "string"
      }
    },
    {
      "description": "Include 24-hour change percentage. \nDefault: false",
      "in": "query",
      "name": "include_24hr_change",
      "required": false,
      "schema": {
        "type": "boolean"
      }
    },
    {
      "description": "Include 24-hour trading volume. \nDefault: false",
      "in": "query",
      "name": "include_24hr_vol",
      "required": false,
      "schema": {
        "type": "boolean"
      }
    },
    {
      "description": "Include last updated price time as a UNIX timestamp. \nDefault: false",
      "in": "query",
      "name": "include_last_updated_at",
      "required": false,
      "schema": {
        "type": "boolean"
      }
    },
    {
      "description": "Include market capitalization. \nDefault: false",
      "in": "query",
      "name": "include_market_cap",
      "required": false,
      "schema": {
        "type": "boolean"
      }
    },
    {
      "description": "For `symbols` lookups, specify `all` to include all matching tokens. \nDefault `top` returns top-ranked tokens by market cap or volume.",
      "in": "query",
      "name": "include_tokens",
      "required": false,
      "schema": {
        "enum": [
          "top",
          "all"
        ],
        "type": "string"
      }
    },
    {
      "description": "Coins' names, comma-separated if querying more than 1 coin.",
      "in": "query",
      "name": "names",
      "required": false,
      "schema": {
        "default": "Bitcoin",
        "type": "string"
      }
    },
    {
      "description": "Decimal places for currency price value",
      "in": "query",
      "name": "precision",
      "required": false,
      "schema": {
        "enum": [
          "full",
          "0",
          "1",
          "2",
          "3",
          "4",
          "5",
          "6",
          "7",
          "8",
          "9",
          "10",
          "11",
          "12",
          "13",
          "14",
          "15",
          "16",
          "17",
          "18"
        ],
        "type": "string"
      }
    },
    {
      "description": "Coins' symbols, comma-separated if querying more than 1 coin.",
      "in": "query",
      "name": "symbols",
      "required": false,
      "schema": {
        "default": "btc",
        "type": "string"
      }
    },
    {
      "description": "Target currency of coins, comma-separated if querying more than 1 currency. \n*refers to [`/simple/supported_vs_currencies`](/reference/simple-supported-currencies). \n\nFor the complete list of fiat currencies supported by this endpoint, see [Fiat Currencies Support List](/docs/fiat-currencies-support).",
      "in": "query",
      "name": "vs_currencies",
      "required": true,
      "schema": {
        "default": "usd",
        "type": "string"
      }
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## 费用与请求规则

公开参考价格：每次成功请求 \$0.008 USD。 账户适用价格可能不同；支持报价的接口可按实际请求获取报价。


## OpenAPI

````yaml openapi/zh/coingecko.json GET /apis/v1/coingecko/simple/price
openapi: 3.1.0
info:
  description: ''
  title: CoinGecko
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    coingecko:
      description: ''
      title: CoinGecko
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 2cebdc98d47ae0d3c355af637caf87081b8a62f7794a0c3667fcd49e4539823e
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/coingecko/api/{id}/volume_chart
    - /apis/v1/coingecko/coins/categories
    - /apis/v1/coingecko/coins/categories/list
    - /apis/v1/coingecko/coins/list
    - /apis/v1/coingecko/coins/markets
    - /apis/v1/coingecko/coins/{id}
    - /apis/v1/coingecko/coins/{id}/contract/{contract_address}
    - /apis/v1/coingecko/coins/{id}/contract/{contract_address}/market_chart
    - >-
      /apis/v1/coingecko/coins/{id}/contract/{contract_address}/market_chart/range
    - /apis/v1/coingecko/coins/{id}/history
    - /apis/v1/coingecko/coins/{id}/market_chart
    - /apis/v1/coingecko/coins/{id}/market_chart/range
    - /apis/v1/coingecko/coins/{id}/ohlc
    - /apis/v1/coingecko/coins/{id}/tickers
    - /apis/v1/coingecko/exchanges
    - /apis/v1/coingecko/exchanges/list
    - /apis/v1/coingecko/exchanges/{id}
    - /apis/v1/coingecko/exchanges/{id}/tickers
    - /apis/v1/coingecko/ping
    - /apis/v1/coingecko/search/trending
    - /apis/v1/coingecko/simple/price
    - /apis/v1/coingecko/simple/supported_vs_currencies
    - /apis/v1/coingecko/simple/token_price/{id}
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:907b027ae7bb3f1cda28caf6099bbb9f000d21ebbbcfc0cbd176a69f84296194
    facts_hash: 2cebdc98d47ae0d3c355af637caf87081b8a62f7794a0c3667fcd49e4539823e
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: coingecko
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/coingecko/simple/price:
    get:
      tags:
        - default
      summary: Coin Price by IDs, Symbols, or Names
      description: >-
        To query the prices of one or more coins by using their unique Coin API
        IDs, symbols, or names


        This endpoint allows you to **query the prices of one or more coins by
        using their unique Coin API IDs, symbols, or names**
      operationId: get_coingecko_simple_price
      parameters:
        - description: |-
            Coins' IDs, comma-separated if querying more than 1 coin. 
            *refers to [`/coins/list`](/reference/coins-list)
          in: query
          name: ids
          required: false
          schema:
            default: bitcoin
            type: string
        - description: |-
            Include 24-hour change percentage. 
            Default: false
          in: query
          name: include_24hr_change
          required: false
          schema:
            type: boolean
        - description: |-
            Include 24-hour trading volume. 
            Default: false
          in: query
          name: include_24hr_vol
          required: false
          schema:
            type: boolean
        - description: |-
            Include last updated price time as a UNIX timestamp. 
            Default: false
          in: query
          name: include_last_updated_at
          required: false
          schema:
            type: boolean
        - description: |-
            Include market capitalization. 
            Default: false
          in: query
          name: include_market_cap
          required: false
          schema:
            type: boolean
        - description: >-
            For `symbols` lookups, specify `all` to include all matching
            tokens. 

            Default `top` returns top-ranked tokens by market cap or volume.
          in: query
          name: include_tokens
          required: false
          schema:
            enum:
              - top
              - all
            type: string
        - description: Coins' names, comma-separated if querying more than 1 coin.
          in: query
          name: names
          required: false
          schema:
            default: Bitcoin
            type: string
        - description: Decimal places for currency price value
          in: query
          name: precision
          required: false
          schema:
            enum:
              - full
              - '0'
              - '1'
              - '2'
              - '3'
              - '4'
              - '5'
              - '6'
              - '7'
              - '8'
              - '9'
              - '10'
              - '11'
              - '12'
              - '13'
              - '14'
              - '15'
              - '16'
              - '17'
              - '18'
            type: string
        - description: Coins' symbols, comma-separated if querying more than 1 coin.
          in: query
          name: symbols
          required: false
          schema:
            default: btc
            type: string
        - description: >-
            Target currency of coins, comma-separated if querying more than 1
            currency. 

            *refers to
            [`/simple/supported_vs_currencies`](/reference/simple-supported-currencies). 


            For the complete list of fiat currencies supported by this endpoint,
            see [Fiat Currencies Support List](/docs/fiat-currencies-support).
          in: query
          name: vs_currencies
          required: true
          schema:
            default: usd
            type: string
      responses:
        '200':
          content:
            application/json:
              example:
                bitcoin:
                  last_updated_at: 1779092258
                  usd: 76975
                  usd_24h_change: -1.4093297098441402
                  usd_24h_vol: 29096603418.89408
                  usd_market_cap: 1542226908349.8406
              schema:
                $ref: '#/components/schemas/Response39E58Aba19F7_SimplePrice'
          description: Coin prices
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  schemas:
    Response39E58Aba19F7_SimplePrice:
      additionalProperties:
        properties:
          last_updated_at:
            description: Last updated timestamp in UNIX seconds
            type: number
          usd:
            description: Price in the target currency
            type: number
          usd_24h_change:
            description: 24-hour price change percentage in the target currency
            type: number
          usd_24h_vol:
            description: 24-hour trading volume in the target currency
            type: number
          usd_market_cap:
            description: Market capitalization in the target currency
            type: number
        type: object
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.