> ## 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 Historical Chart Data within Time Range by ID

> Historical series for one coin between two explicit timestamps — note seconds in, milliseconds out.

Historical series for one coin between two explicit points in time. `from` and `to` are Unix timestamps in seconds, while the timestamps inside the response are in milliseconds — the two are not the same unit, which is the usual source of empty or misaligned results. Returns `prices`, `market_caps` and `total_volumes` as timestamp-and-value pairs; CoinGecko picks granularity from the window length. Use it to line a series up with a known event window. For a trailing window ending now, [`get_coingecko_coins_id_market_chart`](https://aisa.one/docs/api-reference/coingecko/get_coingecko-coins-id-market-chart) takes a `days` count instead.

> [!NOTE]
>
> **First time?** Point any MCP client at `https://mcp.aisa.one/mcp` — Claude
> Code, Codex, Cursor, VS Code and the rest. Authorization is OAuth: the client
> opens a browser, you click Allow once, and there is no key to paste. Your
> agent then reaches every endpoint through a few meta tools: `search`,
> `list_categories`, `get_details` and `batch_quote` are free, `batch_use` is
> billed per call. Setup per client is in
> [Connect via MCP](https://aisa.one/docs/agent-quickstart.md); the live tool list and what each call
> costs are on [aisa.one/mcp](https://aisa.one/mcp#connect).

[Set this endpoint up in your agent →](https://aisa.one/mcp?from=/api-reference/coingecko/get_coingecko-coins-id-market-chart-range)

## Request contract

* **Method and path:** GET /apis/v1/coingecko/coins/\{id}/market\_chart/range
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/coingecko/coins/{id}/market_chart/range`
* **id:** path; required
* **from:** query; required
* **interval:** query; optional
* **precision:** query; optional
* **to:** query; required
* **vs\_currency:** query; required

[Complete OpenAPI definition](https://aisa.one/docs/openapi/coingecko.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "get_coingecko_coins_id_market_chart_range",
  "method": "GET",
  "path": "/apis/v1/coingecko/coins/{id}/market_chart/range",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [
    {
      "description": "Coin ID. \n*refers to [`/coins/list`](/reference/coins-list).",
      "in": "path",
      "name": "id",
      "required": true,
      "schema": {
        "default": "bitcoin",
        "type": "string"
      }
    },
    {
      "description": "Starting date in ISO date string (`YYYY-MM-DD` or `YYYY-MM-DDTHH:MM`) or UNIX timestamp. \n**Use ISO date string for best compatibility.**",
      "in": "query",
      "name": "from",
      "required": true,
      "schema": {
        "default": "2025-12-22",
        "type": "string"
      }
    },
    {
      "description": "Data interval, leave empty for auto granularity.",
      "in": "query",
      "name": "interval",
      "required": false,
      "schema": {
        "enum": [
          "1m",
          "5m",
          "hourly",
          "daily"
        ],
        "type": "string"
      }
    },
    {
      "description": "Decimal place 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": "Ending date in ISO date string (`YYYY-MM-DD` or `YYYY-MM-DDTHH:MM`) or UNIX timestamp. \n**Use ISO date string for best compatibility.**",
      "in": "query",
      "name": "to",
      "required": true,
      "schema": {
        "default": "2025-12-31",
        "type": "string"
      }
    },
    {
      "description": "Target currency of market data. \n*refers to [`/simple/supported_vs_currencies`](/reference/simple-supported-currencies).",
      "in": "query",
      "name": "vs_currency",
      "required": true,
      "schema": {
        "default": "usd",
        "type": "string"
      }
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Published reference price: \$0.008 USD per successful request. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi/coingecko.json GET /apis/v1/coingecko/coins/{id}/market_chart/range
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/coins/{id}/market_chart/range:
    get:
      tags:
        - default
      summary: Coin Historical Chart Data within Time Range by ID
      description: >-
        To get the historical chart data of a coin within certain time range in
        UNIX along with price, market cap and 24hrs volume based on particular
        coin ID


        This endpoint allows you to **get the historical chart data of a coin
        within certain time range in UNIX along with price, market cap and 24hr
        volume based on particular coin ID**
      operationId: get_coingecko_coins_id_market_chart_range
      parameters:
        - description: |-
            Coin ID. 
            *refers to [`/coins/list`](/reference/coins-list).
          in: path
          name: id
          required: true
          schema:
            default: bitcoin
            type: string
        - description: >-
            Starting date in ISO date string (`YYYY-MM-DD` or
            `YYYY-MM-DDTHH:MM`) or UNIX timestamp. 

            **Use ISO date string for best compatibility.**
          in: query
          name: from
          required: true
          schema:
            default: '2025-12-22'
            type: string
        - description: Data interval, leave empty for auto granularity.
          in: query
          name: interval
          required: false
          schema:
            enum:
              - 1m
              - 5m
              - hourly
              - daily
            type: string
        - description: Decimal place 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: >-
            Ending date in ISO date string (`YYYY-MM-DD` or `YYYY-MM-DDTHH:MM`)
            or UNIX timestamp. 

            **Use ISO date string for best compatibility.**
          in: query
          name: to
          required: true
          schema:
            default: '2025-12-31'
            type: string
        - description: >-
            Target currency of market data. 

            *refers to
            [`/simple/supported_vs_currencies`](/reference/simple-supported-currencies).
          in: query
          name: vs_currency
          required: true
          schema:
            default: usd
            type: string
      responses:
        '200':
          content:
            application/json:
              example:
                market_caps:
                  - - 1779027899041
                    - 1560631481361.8042
                  - - 1779028199661
                    - 1562027330524.267
                prices:
                  - - 1779027899041
                    - 77953.82550382407
                  - - 1779028199661
                    - 78052.87543398788
                total_volumes:
                  - - 1779027899041
                    - 18688431751.857048
                  - - 1779028199661
                    - 18974828816.446976
              schema:
                $ref: '#/components/schemas/Response39E58Aba19F7_CoinsMarketChart'
          description: Coin historical chart data within time range
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  schemas:
    Response39E58Aba19F7_CoinsMarketChart:
      properties:
        market_caps:
          description: Market cap data points as [timestamp, market_cap] pairs
          items:
            items:
              type: number
            type: array
          type: array
        prices:
          description: Price data points as [timestamp, price] pairs
          items:
            items:
              type: number
            type: array
          type: array
        total_volumes:
          description: Total volume data points as [timestamp, volume] pairs
          items:
            items:
              type: number
            type: array
          type: array
      required:
        - prices
        - market_caps
        - total_volumes
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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