Forex quotes
The forex_quote object
A forex quote locks an exchange rate, including Paycose's spread, for a short time. Pass its ID when you convert money, such as on a transfer; a quote can be used once.
Attributes
idstringRequiredUnique identifier for the object.
objectstringRequiredString naming the object's type.
livemodebooleanRequiredtruewhen the object exists in live mode,falsein test mode.createdtimestampRequiredTime the object was created, in Unix seconds.
customer_idstringID of the customer given when the quote was created; omitted when none was given.
source_currencystringRequiredThree-letter ISO 4217 code of the currency converted from.
dest_currencystringRequiredThree-letter ISO 4217 code of the currency converted to.
source_amountintegerRequiredAmount to convert, in the smallest unit of
source_currency.dest_amountintegerRequiredsource_amountconverted ateffective_rate, in the smallest unit ofdest_currency.spot_rateobjectRequiredMarket rate when the quote was issued, before the spread.
Show child attributes
spot_rate.numintegerRequiredNumerator of the rate.
spot_rate.denintegerRequiredDenominator of the rate.
effective_rateobjectRequiredRate the quote converts at:
spot_ratewith the spread applied.Show child attributes
effective_rate.numintegerRequiredNumerator of the rate.
effective_rate.denintegerRequiredDenominator of the rate.
spread_bpsintegerRequiredSpread applied to the spot rate, in basis points (100 = 1%).
spread_directionstringRequiredWhether the spread is added to or subtracted from the spot rate.
addThe spread is added to the spot rate.
subThe spread is subtracted from the spot rate.
providerstringRequiredName of the rate source the spot rate came from.
statusenumRequiredWhether the quote can still be used.
activeThe quote can be used until
expires_at.consumedThe quote was used by a conversion.
expiredThe quote passed
expires_atwithout being used.canceledThe quote was canceled before it was used.
issued_attimestampRequiredWhen the quote was issued, in Unix seconds.
expires_attimestampRequiredWhen the quote stops being usable, in Unix seconds.
consumed_attimestampNullableWhen the quote was used, in Unix seconds; omitted until then.
journal_idstringID of the ledger journal that used the quote; omitted until the quote is used.