π©Get a Quote
For a merchant, if you have a fiat amount you expect the customer to pay-in, and you want to know how much of a given cryptocurrency for them to deposit.
Get a Quote via API
Example
GET https://pay-api.swapped.com/v1/quotes?fromAmount=25&fromFiatCurrency=EUR&toCurrency=TRX&toBlockchain=tron
Response:
{
success: true,
message: "success",
data: {
exchangeRateSnapshotId: "e29af432-8775-4642-b71c-fe4987681fa1",
fromAmount: {
amount: "25.00",
currency: {
symbol: "EUR",
precision: 2,
type: "FIAT",
blockchain: null
}
},
toAmount: {
beforeFees: "103.802",
afterFees: "103.802",
currency: {
symbol: "TRX",
precision: 3,
type: "CRYPTO",
blockchain: {
name: "tron"
}
}
}
}
}API Spec
Last updated