Get the PTAX exchange rate
get_ptax_rateRetrieves the official PTAX closing rate for a foreign currency in BRL; if the date has no quote, returns the previous available quote.
Instructions
Returns the official PTAX closing rate (BRL per unit of foreign currency) published by Banco Central do Brasil. If the date has no quote (weekend or holiday), returns the latest previous quote.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_ptax_rate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Reference date, YYYY-MM-DD. Defaults to today in Brasília time. | |
| currency | No | USD |