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.

Name
Lite
Type Required
Default
Description
from_currency
fc
string True The currency converted from.
to_currency
tc
string True The currency converted into.
exchange_rate
er
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_rate
sr
string True The current spot rate from the latest oracle prices, 9 decimal places.
fee_rate_centi_beeps
fr
integer True The conversion fee configured for the pair, in centibeeps (1 = 0.0001%).
window_seconds
ws
integer True The length of the window the rate is the highest of, in seconds.
valid_until
vu
string True When the price sample the rate comes from leaves the window, in unix nanoseconds. Show a validity no longer than this.
event_time
et
string True The time of the newest oracle price the rate uses, in unix nanoseconds.
from_num_tokens
fn
string False
None
The amount of fromCurrency the request named, if any.
to_num_tokens
tn
string False
None
What fromNumTokens converts into at exchangeRate, floored to toCurrency decimals. Omitted without fromNumTokens.