Requests a quote for an exchange transfer.
RippleNet account name and address of the sender, in the format accountname@ripplenetaddress. For example, new_york@rn.us.ny.new_york.
RippleNet account name and address of the receiver, in the format accountname@ripplenetaddress. For example, new_york@rn.us.ny.new_york.
Amount transferred, expressed in the curency of the account indicated by the amount_type value.
Amount type of the exchange transfer.
To indicate that the amount is expressed in the currency of the account provided by the sender_address value, set to SENDER_AMOUNT.
To indicate that the amount is expressed in the currency of the account provided by the receiver_address value, set to RECEIVER_AMOUNT.
- Mock serverhttps://docs.ripple.com/_mock/products/payments-odl/api-docs/ripplenet/reference/openapi/exchange_transfers/quote
- https://[domainPrefix].ripplexcurrent.com/v4https://[domainPrefix].ripplexcurrent.com/v4/exchange_transfers/quote
curl -i -X POST \
https://docs.ripple.com/_mock/products/payments-odl/api-docs/ripplenet/reference/openapi/exchange_transfers/quote \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"sender_address": "alias_usd_lon@rn.eur.uk.london",
"receiver_address": "conct_gbp_lon@rn.eur.uk.london",
"amount": 100,
"amount_type": "SENDER_AMOUNT"
}'Successfully quoted exchange transfer.
Indicates the exchange transfer's quoted FX rate type.
| Enum Value | Description |
|---|---|
| FIRM | A firm exchange rate ensures that the quoted and delivered transfer amounts are equal. |
| INDICATIVE | An indicative exchange rate allows for movement between quoted rate and transfer execution, such that the quoted amount and delivered amount may differ. |
RippleNet account name and address of the sender, in the format accountname@ripplenetaddress. For example, new_york@rn.us.ny.new_york.
RippleNet account name and address of the receiver, in the format accountname@ripplenetaddress. For example, new_york@rn.us.ny.new_york.
{ "type": "INDICATIVE", "sender_address": "alias_usd_lon@rn.eur.uk.london", "receiver_address": "conct_gbp_lon@rn.eur.uk.london", "source_amount": 100, "destination_amount": 89, "source_currency": "USD", "destination_currency": "GBP", "fx_transfer_rate": { "rate": 0.89, "base_currency": "USD", "counter_currency": "GBP", "rate_type": "BUY" } }