Api vault conversion rate response
ApiVaultConversionRateResponse
Response payload with the highest exchange rate the gateway currently accepts for the currency pair. Sign it as exchangeRate: any rate at or below it passes while the quote is valid.
NameLite |
Type | RequiredDefault |
Description |
|---|---|---|---|
from_currencyfc |
string | True | The currency converted from. |
to_currencytc |
string | True | The currency converted into. |
exchange_rateer |
string | True | The highest rate accepted now, toCurrency per unit of fromCurrency, floored to 9 decimal places. It is 1 when both currencies are the same. |
spot_ratesr |
string | True | The current spot rate from the latest oracle prices, 9 decimal places. |
fee_rate_centi_beepsfr |
integer | True | The conversion fee configured for the pair, in centibeeps (1 = 0.0001%). |
window_secondsws |
integer | True | The length of the window the rate is the highest of, in seconds. |
valid_untilvu |
string | True | When the price sample the rate comes from leaves the window, in unix nanoseconds. Show a validity no longer than this. |
event_timeet |
string | True | The time of the newest oracle price the rate uses, in unix nanoseconds. |
from_num_tokensfn |
string | FalseNone |
The amount of fromCurrency the request named, if any. |
to_num_tokenstn |
string | FalseNone |
What fromNumTokens converts into at exchangeRate, floored to toCurrency decimals. Omitted without fromNumTokens. |