TIPO DE CAMBIO
Búsqueda de TIPO DE CAMBIO POR FECHAS
POST
https://api.consultasperu.com/api/v1/query/exchange-rate
Headers
Name | |
---|---|
Content-Type | application/json |
Body
{
"token": "tu_token_aqui",
"start_date":"2024-04-17",
"end_date": "2024-04-17",
"currency": "USD" OR "EUR"
}
Response
{
"success": true,
"message": "Successful response",
"data": {
"date": "2024-04-17",
"buy": "3.747",
"sale": "3.755",
"currency": "USD"
}
}
{
"success": true,
"message": "Successful response",
"data": [
{
"date": "2024-04-15",
"buy": "3.698",
"sale": "3.707",
"currency": "USD"
},
{
"date": "2024-04-16",
"buy": "3.711",
"sale": "3.725",
"currency": "USD"
},
{
"date": "2024-04-17",
"buy": "3.747",
"sale": "3.755",
"currency": "USD"
}
]
}
{
"success": false,
"message": "No data found",
"data": null
}
{
"success": false,
"message": "Invalid Token",
"data": null
}
Última actualización