Get Exchange Rates
Retrieves exchange rates, conversion rate, and full fee breakdown for converting between a source and destination currency. Use the orderType parameter to get rates specific to your flow.
Request
- Base URLhttps://sandbox-api.transfi.com
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Amount to convert (string input, must be greater than 0)
Source currency code (fiat or crypto)
Destination currency code (fiat or crypto)
Quote direction.
Order type used to derive fee product
Payment method code (relevant when orderType is payin, onramp, fiat_prefund, or swap [fiat])
Payment type. Relevant when orderType is payin, onramp, fiat_prefund, or swap [fiat].
Destination payment method code (relevant when orderType is swap [fiat])
Destination payment type (relevant when orderType is swap [fiat])
Headers
Merchant or sub-merchant MID
Response
Exchange rates retrieved successfully
Changes
No recorded changes to this operation across all 2 revisions of this API.