Ir al contenido
UnoPagoDocumentación
Referencia de la APIAccountExchange rates

Get the latest stored exchange rate per currency

GET
/v1/public/exchange-rates/latest

This API is public and returns the most recently published stored rate for each tracked currency, or for a single currency when currency is given. date is the day the rate applies to, and which side of today it falls on depends on the currency. USD and EUR come from the BCV at its Fecha Valor, which is published ahead of the day itself — so the newest row can be dated in the future, and is the rate that will apply then. USDT is an average of the previous day's Binance P2P quotes, published the morning after — so the newest row is dated in the past, normally yesterday.

currency?string

Restrict the result to a single tracked currency.

Valor en"USD""USDT""EUR"

Cuerpo de la respuesta

Successful response

application/json
  1. response
[index: integer]?
Ejemplo de solicitud
curl -X GET 'https://api.unopago.com/v1/public/exchange-rates/latest'
Ejemplo de respuesta
[  {    "currency": "USD",    "date": "2019-08-24",    "rate": 0  }]