Skip to main content
POST
Ptax usd

Request contract

  • Method and path: POST /apis/v1/bcb-gov-br/economic-data/ptax-usd
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/bcb-gov-br/economic-data/ptax-usd
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

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.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
date
string
required

One quotation date, YYYY-MM-DD. Mutually exclusive with the range. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.

end_date
string

Range end (inclusive), YYYY-MM-DD. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.

skip
number
default:0

Rows to skip (OData $skip); pass next_skip from the previous page.

Provider reference: minimum 0; default 0.

start_date
string

Range start (inclusive), YYYY-MM-DD. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.

top
number
default:100

Rows per page (OData $top).

Provider reference: minimum 1; maximum 1000; default 100.

Response

PTAX USD/BRL official rate from the Olinda PTAX service: the closing quote for one date (CotacaoDolarDia) or the daily closing series for a start_date..end_date range (CotacaoDolarPeriodo), paged with top/skip. Rates are BRL per USD (cotacao_compra buy, cotacao_venda sell) with the bulletin timestamp. Weekends and holidays have no bulletin: count 0 and an empty quotes list is the server's legitimate answer.

The response contains the tool result directly.

The provider identifies quotes as the primary payload key.

These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.