Fetching exchange rates - Quotes API

Payin - Fiat to Stablecoin

Retrieves the current quotes for paying in fiat currencies and converting to stablecoins. This provides the exchange rate and the equivalent stablecoin amount for a given fiat deposit, allowing users to understand the conversion rate and associated fees when exchanging fiat for stablecoin. You can use the forward direction for calculating the conversion from fiat to stablecoin, and the reverse direction for converting from stablecoin to fiat. You can also use the quoteId from the response in order to reserve the quotes for 1 minute.

Request Example for Payin (Fiat to Stablecoin)

curl --request GET \
  --url 'https://sandbox-api.transfi.com/v2/exchange-rates/deposit?amount=1000&currency=EUR&paymentCode=sepa_bank&direction=forward' \
  --header 'Accept: application/json' \
  --header 'Authorization: Basic Og=='

Payout - Stablecoin to Fiat

This API allows businesses to fetch exchange rates for converting stablecoins to fiat currencies during payout operations. It helps businesses facilitate stablecoin withdrawals and convert them to fiat currencies like EUR, USD, etc., through various payment methods. You can use the forward direction for calculating the conversion from fiat to stablecoin, and the reverse direction for converting from stablecoin to fiat. You can also use the quoteId from the response in order to reserve the quotes for 1 minute.

Request Example for Payout (Stablecoin to Fiat)

curl --request GET \
  --url 'https://sandbox-api.transfi.com/v2/exchange-rates/withdraw?amount=100&currency=EUR&paymentCode=sepa_bank&direction=forward' \
  --header 'Accept: application/json' \
  --header 'Authorization: Basic Og=='

Onramp - Fiat to Cryptocurrency

This API allows businesses to fetch exchange rates for converting fiat currencies to cryptocurrencies during onramp operations. It helps businesses facilitate transactions where users can convert their fiat into cryptocurrency through supported payment methods.

Request Example for Onramp (Fiat to Cryptocurrency)

curl --request GET \
  --url 'https://sandbox-api.transfi.com/buy/quotes?fiatTicker=EUR&amount=1000&cryptoTicker=BTC&paymentCode=sepa_bank' \
  --header 'Accept: application/json' \
  --header 'Authorization: Basic Og=='

Offramp - Cryptocurrency to Fiat

This API allows businesses to fetch exchange rates for converting cryptocurrency to fiat currencies during offramp operations. It helps businesses facilitate transactions where users can convert their cryptocurrency into fiat currency using supported payment methods.

Request Example for Offramp (Cryptocurrency to Fiat)

curl --request GET \
  --url 'https://sandbox-api.transfi.com/sell/quotes?fiatTicker=EUR&amount=1000&cryptoTicker=BTC&baseTicker=fiat' \
  --header 'Accept: application/json' \
  --header 'Authorization: Basic Og=='

TransFi live rates for the fiat will be refreshed on every 5 minutes.