Get exchange rates
GET /iou/exchange_rates/{base}/{counter}
Retrieve an exchange rate for a given currency pair at a specific time.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”-
Base currency of the pair as
issuer address
, followed by_
and thecurrency code
. (OrXAH
with no issuer) -
Examples:
XAH
orrEvernodee8dJLaFsujS6q1EiXvZYmHXr8_EVR
-
Counter currency of the pair as
issuer address
, followed by_
and acurrency code
. (OrXAH
with no issuer) -
Examples:
XAH
orrEvernodee8dJLaFsujS6q1EiXvZYmHXr8_EVR
Query Parameters
Section titled “Query Parameters ”-
Specific date time the request should be based on. Defaults to
now
. -
Format:
1970-01-01T00:00:00Z
Responses
Section titled “ Responses ”Success response
-
rate
= The latest exchange rate, or 0 if the exchange rate could not be determined -
ledger_index
= The ledger_index the rate was taken from -
tx_hash
= The transaction hash which this rate is taken from -
timestamp
= The timestamp of the rate
object
The latest exchange rate, or 0 if the exchange rate could not be determined
The ledger_index the rate was taken from.
The transaction hash which this rate is taken from.
The timestamp of the rate.
Query input malformed
object
Headers
Section titled “Headers ”Maximum number of requests in the rate limit window.
Number of remaining request in current rate limit window.
The seconds until the current rate limit window resets.
Too Many Requests
Headers
Section titled “Headers ”Maximum number of requests in the rate limit window.
Number of remaining request in current rate limit window.
The seconds until the current rate limit window resets.