Return a quote for a pair and amount.

  • For fixed trade method, the quoteId is returned.
post/quote

Request

  • Base URL: https://developers.ledger.com (the document declares no server; this is the origin it was published from)
  • URL: https://developers.ledger.com/quote
  • Auth: none declared

Request body

fromstring required

Currency ID in the partner's system.

tostring required

Currency ID in the partner's system.

amountstring required

Or the amountTo, it's the amount that user will spend for the swap. (required only for float quotes)

Example request

{
  "from": "btc",
  "to": "eth",
  "amount": "1"
}

Response

Successful quote response.

quoteIdstring

Unique identifier for the quote (Required only for fixed quotes).

amountstring

Should be the same as the input (optional, for consistency check).

amountTostring required

Estimated output amount sent to the user, in currencyTo.

providerFeesstring required

Amount paid to the provider, converted to currencyTo.

referralFeesstring required

Amount paid to Ledger, as a referral fee, converted to currencyTo.

payoutNetworkFeesstring required

Estimated gas fees for the payout transaction, converted to currencyTo.

tradeMethod'fixed' | 'float' required

Fixed or float

expirystring required

Quote expiration timestamp (required for fixed quotes)

defaultSlippagestring

Value between 0 to 1 (0.1 => 10%). Maximum difference between the amount the user has seen in his quote and the amount he might finally receive, as a ratio of the quoted amount. Otherwise, the user should be asked for his consent to the new trade or reimbursed in original coin.

minSlippagestring

Minimum allowable slippage. (0.1)

maxSlippagestring

Maximum allowable slippage. (0.3)

Changes

No recorded changes to this operation across all 1 revision of this API.