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

# Ptax currency

> Rates for EUR, GBP, JPY, ... against BRL. Take `moeda` from `ptax_currencies`.

## Request contract

* **Method and path:** POST /apis/v1/bcb-gov-br/economic-data/ptax-currency
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/bcb-gov-br/economic-data/ptax-currency`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/bcb-gov-br.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "bcb-gov-br.economic-data.ptax-currency",
  "method": "POST",
  "path": "/apis/v1/bcb-gov-br/economic-data/ptax-currency",
  "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": {
              "date": "2026-09-18",
              "moeda": "EUR"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "allOf": [
            {
              "anyOf": [
                {
                  "properties": {
                    "date": {}
                  },
                  "required": [
                    "date"
                  ]
                },
                {
                  "properties": {
                    "end_date": {}
                  },
                  "required": [
                    "end_date"
                  ]
                },
                {
                  "properties": {
                    "start_date": {}
                  },
                  "required": [
                    "start_date"
                  ]
                }
              ]
            }
          ],
          "properties": {
            "date": {
              "description": "One quotation date, YYYY-MM-DD. Mutually exclusive with the range. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.",
              "type": "string"
            },
            "end_date": {
              "description": "Range end (inclusive), YYYY-MM-DD. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.",
              "type": "string"
            },
            "moeda": {
              "description": "Currency symbol from `ptax_currencies`, e.g. EUR. Pattern: ^[A-Za-z]{3}$.",
              "type": "string"
            },
            "skip": {
              "default": 0,
              "description": "skip\n\nProvider reference: minimum 0; default 0.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "min": 0
              }
            },
            "start_date": {
              "description": "Range start (inclusive), YYYY-MM-DD. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.",
              "type": "string"
            },
            "top": {
              "default": 100,
              "description": "top\n\nProvider reference: minimum 1; maximum 1000; default 100.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 1000,
                "min": 1
              }
            }
          },
          "required": [
            "moeda"
          ],
          "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/bcb-gov-br.json POST /apis/v1/bcb-gov-br/economic-data/ptax-currency
openapi: 3.1.0
info:
  description: ''
  title: Banco Central do Brasil open 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:
    bcb-gov-br:
      description: ''
      title: Banco Central do Brasil open 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: edf117a93e133da791cf67abc30c140208ddd53704a4d60fb611ef7732fc8019
        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/bcb-gov-br/economic-data/credit-rates
    - /apis/v1/bcb-gov-br/economic-data/datasets-search
    - /apis/v1/bcb-gov-br/economic-data/focus-expectations
    - /apis/v1/bcb-gov-br/economic-data/olinda-service
    - /apis/v1/bcb-gov-br/economic-data/payment-statistics
    - /apis/v1/bcb-gov-br/economic-data/pix-statistics
    - /apis/v1/bcb-gov-br/economic-data/ptax-currencies
    - /apis/v1/bcb-gov-br/economic-data/ptax-currency
    - /apis/v1/bcb-gov-br/economic-data/ptax-usd
    - /apis/v1/bcb-gov-br/economic-data/sgs-series
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:4edcea99b08503cd6d2aef834decda628d24b96c03a614ddb47811005eabf63d
    facts_hash: edf117a93e133da791cf67abc30c140208ddd53704a4d60fb611ef7732fc8019
    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: bcb-gov-br
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/bcb-gov-br/economic-data/ptax-currency:
    post:
      tags:
        - Banco Central do Brasil open data
      summary: Ptax currency
      description: >-
        Rates for EUR, GBP, JPY, ... against BRL. Take `moeda` from
        `ptax_currencies`.
      operationId: bcb-gov-br.economic-data.ptax-currency
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  date: '2026-09-18'
                  moeda: EUR
            schema:
              additionalProperties: true
              allOf:
                - anyOf:
                    - properties:
                        date: {}
                      required:
                        - date
                    - properties:
                        end_date: {}
                      required:
                        - end_date
                    - properties:
                        start_date: {}
                      required:
                        - start_date
              properties:
                date:
                  description: >-
                    One quotation date, YYYY-MM-DD. Mutually exclusive with the
                    range. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.
                  type: string
                end_date:
                  description: >-
                    Range end (inclusive), YYYY-MM-DD. Pattern:
                    ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.
                  type: string
                moeda:
                  description: >-
                    Currency symbol from `ptax_currencies`, e.g. EUR. Pattern:
                    ^[A-Za-z]{3}$.
                  type: string
                skip:
                  default: 0
                  description: |-
                    skip

                    Provider reference: minimum 0; default 0.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    min: 0
                start_date:
                  description: >-
                    Range start (inclusive), YYYY-MM-DD. Pattern:
                    ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.
                  type: string
                top:
                  default: 100
                  description: |-
                    top

                    Provider reference: minimum 1; maximum 1000; default 100.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 1000
                    min: 1
              required:
                - moeda
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-09-22.
                  summary: Official provider example
                  value:
                    count: 5
                    date: '2026-09-18'
                    end_date: null
                    moeda: EUR
                    next_skip: null
                    observed_at_ms: 1790048479947
                    quotes:
                      - cotacao_compra: 5.8993
                        cotacao_venda: 5.9005
                        data_hora_cotacao: '2026-09-18 10:02:17.05066'
                        paridade_compra: 1.1468
                        paridade_venda: 1.1469
                        tipo_boletim: Abertura
                      - cotacao_compra: 5.9112
                        cotacao_venda: 5.9124
                        data_hora_cotacao: '2026-09-18 11:10:13.770843'
                        paridade_compra: 1.1458
                        paridade_venda: 1.1459
                        tipo_boletim: Intermediário
                      - cotacao_compra: 5.9175
                        cotacao_venda: 5.9187
                        data_hora_cotacao: '2026-09-18 12:07:11.945424'
                        paridade_compra: 1.1461
                        paridade_venda: 1.1462
                        tipo_boletim: Intermediário
                      - cotacao_compra: 5.9163
                        cotacao_venda: 5.9175
                        data_hora_cotacao: '2026-09-18 13:03:34.528962'
                        paridade_compra: 1.1463
                        paridade_venda: 1.1464
                        tipo_boletim: Intermediário
                      - cotacao_compra: 5.9114
                        cotacao_venda: 5.9126
                        data_hora_cotacao: '2026-09-18 13:03:34.742036'
                        paridade_compra: 1.1463
                        paridade_venda: 1.1464
                        tipo_boletim: Fechamento PTAX
                    start_date: null
                    url: >-
                      https://olinda.bcb.gov.br/olinda/servico/PTAX/versao/v1/odata/CotacaoMoedaDia(moeda=@moeda,dataCotacao=@dataCotacao)?@moeda=%27EUR%27&@dataCotacao=%2709-18-2026%27&$top=100&$skip=0&$format=json
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            PTAX bulletins for one non-BRL currency from the Olinda PTAX
            service: every bulletin of one `date` (CotacaoMoedaDia: opening,
            intermediates, closing) or of a `start_date`..`end_date` range
            (CotacaoMoedaPeriodo), paged with `top`/`skip`. Each row carries the
            parity against USD (`paridade_*`), the BRL rate (`cotacao_*`), the
            timestamp and the bulletin type (`tipo_boletim`: Abertura,
            Intermediário, Fechamento PTAX, ...). An empty `quotes` list on a
            weekend or holiday is legitimate; a symbol that is not in
            `ptax_currencies` is `not_found`.


            The response contains the tool result directly.


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


            | Documented field | Provider type | Description |

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

            | `cotacao_compra` | number |  |

            | `cotacao_venda` | number |  |

            | `data_hora_cotacao` | string |  |

            | `paridade_compra` | number |  |

            | `paridade_venda` | number |  |

            | `tipo_boletim` | string |  |



            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.