Skip to main content
GET
/
api
/
quotes
/
onramp
/
best
Get Best Onramp Quote
curl --request GET \
  --url https://api.teel.finance/api/quotes/onramp/best
{
  "protocol": "rt_8QmVxT2pA9c",
  "fromCcy": "USD",
  "toToken": "USDC",
  "fromAmount": 500,
  "toAmount": 493.75,
  "rate": 1.0,
  "fee": 6.25
}
Returns the single best onramp quote across all providers for converting fiat currency into crypto tokens.

Query Parameters

source_currency
string
required
ISO 4217 currency code for the source fiat currency (e.g. USD, EUR).
amount
number
required
The amount in the source fiat currency to onramp.
payout_currency
string
Optional. The desired payout token (e.g. USDC). If omitted, the provider default is used.

Response

protocol
string
Opaque route token (rt_...) identifying the route. See Route tokens.
fromCcy
string
Source fiat currency code.
toToken
string
The crypto token being purchased.
fromAmount
number
Amount in the source fiat currency.
toAmount
number
Amount of crypto tokens the user will receive.
rate
number
The conversion rate applied.
fee
number
Total fee charged for the onramp.
{
  "protocol": "rt_8QmVxT2pA9c",
  "fromCcy": "USD",
  "toToken": "USDC",
  "fromAmount": 500,
  "toAmount": 493.75,
  "rate": 1.0,
  "fee": 6.25
}