Exchange Rates
We offer an exchange rates endpoint which provides the current Wyre brokering rate. This is approximately the exchange rate that will be used for any relatively small exchange through our platform (larger exchanges may give different rates depending on market depth). It is a good way to track the Wyre exchange rates over time.
The ordering of the trading pair in the key represents the direction of an exchange. For example, BTCUSD
is the rate used for BTC into USD conversions (e.g. the sell rate). On the other hand, converting USD into BTC (the buy rate) would use the opposite rate under USDBTC
.
Different Views of the Exchange Rate
You can also view the rates in different formats according to your preference:
https://api.sendwyre.com/v2/rates?as=divisor - source amount / rate = destination amount (default)
https://api.sendwyre.com/v2/rates?as=multiplier - source amount * rate = destination amount
https://api.sendwyre.com/v2/rates?as=priced&pretty&format=json_numberstring - shows both divisor and multiplier values
https://api.sendwyre.com/v2/rates?as=priced&pretty&format=csv - downloads rates as CSV file
For example, if 1 BTC is selling at 9000 USD, USDBTC
will be 9000 in the divisor view and (1/9000) in the pretty view.
Rate Format
DIVISOR
(default)
Exchange rate as a single number:
starting total / rate = result total
MULTIPLIER
Exchange rate as a single number:
starting total * rate = result total
PRICED
Exchange rate as multiplier and divisor, keyed on exchange rate units ("price in").
Get Exchange Rates
GET
https://api.sendwyre.com/v3/rates
Path Parameters
as
string
One of DIVISOR
, MULTIPLIER
, or PRICED
. Dictates the structure and meaning of the numbers in the response
Last updated
Was this helpful?