Get Price
Fetch a quote for fiat-to-crypto or crypto-to-fiat conversion.
<Callout intent="important"> **1.** Although **fiatAmount** and **cryptoAmount** are both not required together, you need to pass at least one of them in all isBuyOrSell: "BUY" cases. Our recommendation would be to pass **fiatAmount** in such cases. If both **fiatAmount** and **cryptoAmount** are passed in case of isBuyOrSell: "BUY" then **cryptoAmount** would take precedence.2. In case of isBuyOrSell: "SELL", cryptoAmount is a required param. If fiatAmount is passed in such cases, then it will be ignored.
3. quoteCountryCode is an optional param which should be passed in case you want to ensure consistency in pricing that user sees on your platform as well as ours. In case an invalid ISO 3166 Alpha-2 country code is passed then this param will not be honored. Please refer to this page for detailed information about the usage of quoteCountryCode. </Callout>
Request
- Base URL: https://api-stg.transak.com
- URL: https://api-stg.transak.com/api/v1/pricing/public/quotes
- Auth: none declared. Required headers: x-api-key
Query parameters
Partner API key from your Transak dashboard.
Fiat currency code.
Crypto currency symbol.
Blockchain network name.
Transaction direction.
Amount in fiat currency. For BUY, pass at least one of fiatAmount or cryptoAmount.
Amount in crypto currency. For SELL, this parameter is required.
Payment method identifier.
Optional ISO 3166 Alpha-2 country code used to keep quote pricing consistent.
Headers
Your Partner API key. You can find this in the Partner Dashboard.
Response
Price quote fetched successfully
Changes
No recorded changes to this operation across all 1 revision of this API.