Skip to Content
Paycose Docs
Forex quotes

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

  • idstringRequired

    Unique identifier for the object.

  • objectstringRequired

    String naming the object's type.

  • livemodebooleanRequired

    true when the object exists in live mode, false in test mode.

  • createdtimestampRequired

    Time the object was created, in Unix seconds.

  • customer_idstring

    ID of the customer given when the quote was created; omitted when none was given.

  • source_currencystringRequired

    Three-letter ISO 4217 code of the currency converted from.

  • dest_currencystringRequired

    Three-letter ISO 4217 code of the currency converted to.

  • source_amountintegerRequired

    Amount to convert, in the smallest unit of source_currency.

  • dest_amountintegerRequired

    source_amount converted at effective_rate, in the smallest unit of dest_currency.

  • spot_rateobjectRequired

    Market rate when the quote was issued, before the spread.

    Show child attributes
    • spot_rate.numintegerRequired

      Numerator of the rate.

    • spot_rate.denintegerRequired

      Denominator of the rate.

  • effective_rateobjectRequired

    Rate the quote converts at: spot_rate with the spread applied.

    Show child attributes
    • effective_rate.numintegerRequired

      Numerator of the rate.

    • effective_rate.denintegerRequired

      Denominator of the rate.

  • spread_bpsintegerRequired

    Spread applied to the spot rate, in basis points (100 = 1%).

  • spread_directionstringRequired

    Whether the spread is added to or subtracted from the spot rate.

    • add

      The spread is added to the spot rate.

    • sub

      The spread is subtracted from the spot rate.

  • providerstringRequired

    Name of the rate source the spot rate came from.

  • statusenumRequired

    Whether the quote can still be used.

    • active

      The quote can be used until expires_at.

    • consumed

      The quote was used by a conversion.

    • expired

      The quote passed expires_at without being used.

    • canceled

      The quote was canceled before it was used.

  • issued_attimestampRequired

    When the quote was issued, in Unix seconds.

  • expires_attimestampRequired

    When the quote stops being usable, in Unix seconds.

  • consumed_attimestampNullable

    When the quote was used, in Unix seconds; omitted until then.

  • journal_idstring

    ID of the ledger journal that used the quote; omitted until the quote is used.