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

# Rate history

> Charting or trend analysis of one pair. For a single past date across all currencies use historical_table.

## Request contract

* **Method and path:** POST /apis/v1/xe-com/exchange-rates/rate-history
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/xe-com/exchange-rates/rate-history`

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

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "xe-com.exchange-rates.rate-history",
  "method": "POST",
  "path": "/apis/v1/xe-com/exchange-rates/rate-history",
  "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": {
              "from": "EUR",
              "range": "1M",
              "to": "JPY"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "from": {
              "description": "from",
              "type": "string"
            },
            "interval": {
              "description": "One closing value per UTC day (default) or per hour (ranges up to 1M).\n\nProvider reference: allowed values [\"day\", \"hour\"].",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body",
                "oneOf": [
                  "day",
                  "hour"
                ]
              }
            },
            "range": {
              "description": "How far back from XE's latest point. Default 1M.\n\nProvider reference: allowed values [\"1D\", \"1W\", \"1M\", \"3M\", \"6M\", \"1Y\", \"2Y\", \"5Y\", \"10Y\"].",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body",
                "oneOf": [
                  "1D",
                  "1W",
                  "1M",
                  "3M",
                  "6M",
                  "1Y",
                  "2Y",
                  "5Y",
                  "10Y"
                ]
              }
            },
            "to": {
              "description": "to",
              "type": "string"
            }
          },
          "required": [
            "from",
            "to"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Usage-based pricing. Default request estimate: \$0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi/xe-com.json POST /apis/v1/xe-com/exchange-rates/rate-history
openapi: 3.1.0
info:
  description: ''
  title: XE currency data
  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:
    xe-com:
      description: ''
      title: XE currency data
      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: db0d487323c0b2b55143a7ab66a1c2c417d6818b85539d1b3870920b65a7fa21
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
        seed_month: 2026-10
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/xe-com/exchange-rates/convert
    - /apis/v1/xe-com/exchange-rates/currency-profile
    - /apis/v1/xe-com/exchange-rates/historical-table
    - /apis/v1/xe-com/exchange-rates/list-currencies
    - /apis/v1/xe-com/exchange-rates/live-rates
    - /apis/v1/xe-com/exchange-rates/rate-history
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:97c4537b77f2c1e867d2a9dbc5334fa6c3350708313bdba4f47cfe18c847f6d9
    facts_hash: db0d487323c0b2b55143a7ab66a1c2c417d6818b85539d1b3870920b65a7fa21
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
    seed_month: 2026-10
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: xe-com
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/xe-com/exchange-rates/rate-history:
    post:
      tags:
        - XE currency data
      summary: Rate history
      description: >-
        Charting or trend analysis of one pair. For a single past date across
        all currencies use historical_table.
      operationId: xe-com.exchange-rates.rate-history
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  from: EUR
                  range: 1M
                  to: JPY
            schema:
              additionalProperties: true
              properties:
                from:
                  description: from
                  type: string
                interval:
                  description: >-
                    One closing value per UTC day (default) or per hour (ranges
                    up to 1M).


                    Provider reference: allowed values ["day", "hour"].
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                    oneOf:
                      - day
                      - hour
                range:
                  description: >-
                    How far back from XE's latest point. Default 1M.


                    Provider reference: allowed values ["1D", "1W", "1M", "3M",
                    "6M", "1Y", "2Y", "5Y", "10Y"].
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                    oneOf:
                      - 1D
                      - 1W
                      - 1M
                      - 3M
                      - 6M
                      - 1Y
                      - 2Y
                      - 5Y
                      - 10Y
                to:
                  description: to
                  type: string
              required:
                - from
                - to
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-04.
                  summary: Official provider example
                  value:
                    count: 31
                    from: EUR
                    interval: day
                    observed_at_ms: 1791138149116
                    points:
                      - rate: 181.5467827188504
                        time: '2026-09-04T23:00:00Z'
                      - rate: 181.46023265875257
                        time: '2026-09-05T23:00:00Z'
                      - rate: 181.4243612439205
                        time: '2026-09-06T23:00:00Z'
                      - rate: 179.24112988736468
                        time: '2026-09-07T23:00:00Z'
                      - rate: 178.74330616683793
                        time: '2026-09-08T23:00:00Z'
                      - rate: 178.45636513380703
                        time: '2026-09-09T23:00:00Z'
                      - rate: 179.25722327721917
                        time: '2026-09-10T23:00:00Z'
                      - rate: 178.17237539053545
                        time: '2026-09-11T23:00:00Z'
                      - rate: 178.12774782134622
                        time: '2026-09-12T23:00:00Z'
                      - rate: 178.15564295434916
                        time: '2026-09-13T23:00:00Z'
                      - rate: 178.2045772231668
                        time: '2026-09-14T23:00:00Z'
                      - rate: 178.98892401788382
                        time: '2026-09-15T23:00:00Z'
                      - rate: 179.17021299771832
                        time: '2026-09-16T23:00:00Z'
                      - rate: 179.01858865637524
                        time: '2026-09-17T23:00:00Z'
                      - rate: 180.21141634168953
                        time: '2026-09-18T23:00:00Z'
                      - rate: 180.17425481492657
                        time: '2026-09-19T23:00:00Z'
                      - rate: 180.3205419528557
                        time: '2026-09-20T23:00:00Z'
                      - rate: 180.36279501736547
                        time: '2026-09-21T23:00:00Z'
                      - rate: 180.2523180953012
                        time: '2026-09-22T23:00:00Z'
                      - rate: 180.2081763423373
                        time: '2026-09-23T23:00:00Z'
                      - rate: 180.64162129597315
                        time: '2026-09-24T23:00:00Z'
                      - rate: 179.19751198676266
                        time: '2026-09-25T23:00:00Z'
                      - rate: 179.18248845970078
                        time: '2026-09-26T23:00:00Z'
                      - rate: 179.23111261823215
                        time: '2026-09-27T23:45:00Z'
                      - rate: 178.89841529284155
                        time: '2026-09-28T23:45:00Z'
                      - rate: 178.50093605209736
                        time: '2026-09-29T23:45:00Z'
                      - rate: 178.42650810236285
                        time: '2026-09-30T23:45:00Z'
                      - rate: 177.54230465955996
                        time: '2026-10-01T23:45:00Z'
                      - rate: 177.65872165548544
                        time: '2026-10-02T23:50:00Z'
                      - rate: 177.64271760506725
                        time: '2026-10-03T23:50:00Z'
                      - rate: 177.70288930566767
                        time: '2026-10-04T18:21:00Z'
                    range: 1M
                    series_timestamp: '2026-10-04T18:22:00Z'
                    source_url: https://www.xe.com/en-us/currencycharts/?from=EUR&to=JPY
                    to: JPY
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            A time series of XE's mid-market rate for one pair over the last 1
            day to 10 years, decoded from XE's charting API and collapsed to one
            closing value per UTC day (`interval` day, default) or per hour
            (`hour`, ranges up to 1M). Points are `{time, rate}` with `rate` in
            units of `to` per 1 `from`. Ranges: 1D, 1W, 1M, 3M, 6M, 1Y, 2Y, 5Y,
            10Y.


            The response contains the tool result directly.


            The provider identifies `points` as the primary payload key.


            | Documented field | Provider type | Description |

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

            | `rate` | number |  |

            | `time` | string | Time of the last observation in the bucket, ISO
            8601 UTC. |



            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.