> ## 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

# Get ticker

> Current price and 24h range of a pair; poll it instead of the order book when you only need best bid/ask.

## 请求规范

* **方法与路径:** POST /apis/v1/api-exchange-coinbase-com/markets/get-ticker
* **可用状态:** enabled
* **请求 URL 模板:** `https://api.aisa.one/apis/v1/api-exchange-coinbase-com/markets/get-ticker`

[完整 OpenAPI 定义](https://aisa.one/docs/openapi/zh/api-exchange-coinbase-com.json)

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

```json theme={null}
{
  "operationId": "api-exchange-coinbase-com.markets.get-ticker",
  "method": "POST",
  "path": "/apis/v1/api-exchange-coinbase-com/markets/get-ticker",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "examples": {
          "provider": {
            "summary": "Official provider example; checked against AIsa request constraints",
            "value": {
              "product_id": "BTC-USD"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "product_id": {
              "description": "Trading pair id `BASE-QUOTE` as listed by `list_products`, e.g. `BTC-USD`, `USELESS-USD`. Case-insensitive; the canonical upper-case id is returned. Pattern: ^[A-Za-z0-9]{1,20}-[A-Za-z0-9]{1,20}$.",
              "type": "string"
            }
          },
          "required": [
            "product_id"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## 费用与请求规则

按实际用量收费。 默认请求预估费用：\$0.0005 USD。 最终费用以实际用量为准。 账户适用价格可能不同；支持报价的接口可按实际请求获取报价。


## OpenAPI

````yaml openapi/zh/api-exchange-coinbase-com.json POST /apis/v1/api-exchange-coinbase-com/markets/get-ticker
openapi: 3.1.0
info:
  description: ''
  title: Coinbase Exchange
  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:
    api-exchange-coinbase-com:
      description: ''
      title: Coinbase Exchange
      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: 98886532755d0ccfd5be075974252658edca439cb28857f87a5c351a56feb1aa
        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/api-exchange-coinbase-com/markets/get-candles
    - /apis/v1/api-exchange-coinbase-com/markets/get-currency
    - /apis/v1/api-exchange-coinbase-com/markets/get-order-book
    - /apis/v1/api-exchange-coinbase-com/markets/get-product
    - /apis/v1/api-exchange-coinbase-com/markets/get-ticker
    - /apis/v1/api-exchange-coinbase-com/markets/get-wrapped-asset
    - /apis/v1/api-exchange-coinbase-com/markets/list-currencies
    - /apis/v1/api-exchange-coinbase-com/markets/list-products
    - /apis/v1/api-exchange-coinbase-com/markets/list-trades
    - /apis/v1/api-exchange-coinbase-com/markets/list-volume-summary
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:a32c032110fa3d3617775b7ea1a06dd6c914c876620f35c756423088b2831b02
    facts_hash: 98886532755d0ccfd5be075974252658edca439cb28857f87a5c351a56feb1aa
    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: api-exchange-coinbase-com
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/api-exchange-coinbase-com/markets/get-ticker:
    post:
      tags:
        - Coinbase Exchange
      summary: Get ticker
      description: >-
        Current price and 24h range of a pair; poll it instead of the order book
        when you only need best bid/ask.
      operationId: api-exchange-coinbase-com.markets.get-ticker
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  product_id: BTC-USD
            schema:
              additionalProperties: true
              properties:
                product_id:
                  description: >-
                    Trading pair id `BASE-QUOTE` as listed by `list_products`,
                    e.g. `BTC-USD`, `USELESS-USD`. Case-insensitive; the
                    canonical upper-case id is returned. Pattern:
                    ^[A-Za-z0-9]{1,20}-[A-Za-z0-9]{1,20}$.
                  type: string
              required:
                - product_id
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-09-24.
                  summary: Official provider example
                  value:
                    ask: '84528.11'
                    bid: '84525.99'
                    observed_at_ms: 1790268797121
                    price: '84525.99'
                    product_id: BTC-USD
                    rfq_volume: '44.427295'
                    size: '0.00000054'
                    source_url: https://api.exchange.coinbase.com/products/BTC-USD/ticker
                    stats:
                      high: '84929.78'
                      last: '84510.6'
                      low: '82708.96'
                      open: '84030.1'
                      rfq_volume_24hour: '44.406101'
                      rfq_volume_30day: '3072.450663'
                      volume: '7401.34907045'
                      volume_30day: '192387.3321936'
                    stats_url: https://api.exchange.coinbase.com/products/BTC-USD/stats
                    time: '2026-09-24T16:53:16.482700292Z'
                    trade_id: 1097948756
                    volume: '7384.66321691'
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Market snapshot for one trading pair: last trade price, size, id and
            time, best bid and ask and 24h volume (`GET
            /products/{product_id}/ticker`) together with the 24h/30d statistics
            (`GET /products/{product_id}/stats`: open, high, low, last, volume).
            Prices and sizes are decimal strings in the pair's quote and base
            currency.


            The response contains the tool result directly.


            | Documented field | Provider type | Description |

            | --- | --- | --- |

            | `ask` | string | Decimal string exactly as the exchange sends it
            (never converted to a float). Best ask; null when the exchange sends
            none. |

            | `bid` | string | Decimal string exactly as the exchange sends it
            (never converted to a float). Best bid; null when the exchange sends
            none (no resting bids). |

            | `observed_at_ms` | number | Milliseconds since the Unix epoch when
            this call ran. |

            | `price` | string | Decimal string exactly as the exchange sends it
            (never converted to a float). Last trade price. |

            | `product_id` | string | Canonical upper-case product id. |

            | `rfq_volume` | string | Decimal string exactly as the exchange
            sends it (never converted to a float). 24h RFQ volume; null when the
            exchange omits it. |

            | `size` | string | Decimal string exactly as the exchange sends it
            (never converted to a float). Last trade size. |

            | `source_url` | string | The upstream request URL this record was
            shaped from. |

            | `stats` | object | 24-hour statistics from `GET
            /products/{id}/stats`; a field is null when the exchange omits it or
            sends an empty string (thin or halted markets). |

            | `stats_url` | string | The `/stats` request URL. |

            | `time` | string | Time of the last trade, RFC 3339 UTC. |

            | `trade_id` | number | Id of the last trade; the same space as
            `list_trades` cursors. |

            | `volume` | string | Decimal string exactly as the exchange sends
            it (never converted to a float). 24h base-currency volume. |



            These are the provider's documented fields. Field requiredness,
            nullability and nested object structures are specified only where
            the descriptions explicitly say so.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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