Skip to main content
GET
Get token rate (v2)
Get buy and/or sell quotes on a specific network—either a token + fiat pair or a fiat + fiat corridor (via USDC). This is the recommended public rates URL for v2 integrations.
The legacy endpoint GET /v1/rates/{token}/{amount}/{fiat} (optional network query) returns a single numeric data field. The v2 path below returns a structured buy / sell payload.

Path parameters

Token + fiat: exactly one fiat and one token (.../USDT/100/NGN.../NGN/100/USDT). from/to cannot both be tokens. Path order does not imply trade direction—use side or read data.buy / data.sell for on-ramp vs off-ramp display. Fiat + fiat: both are fiat codes; the server quotes through USDC on the same network. sell.rate = to per 1 from. buy.rate = from per 1 to (inverse corridor, not the reciprocal of sell—each side uses the appropriate leg bid/ask).

Query parameters

Example

Success response (data)

Each populated side includes:
When side=buy or side=sell, only that key is present under data.

Errors

Rate resolution

Behavior matches the priority-queue–based resolution used when creating orders: the quote reflects provider selection and validation for the requested side (buy vs sell). Path segment order (from / to) does not select direction—use ?side=, or read data.sell for off-ramp (crypto → fiat) display and data.buy for on-ramp (fiat → crypto) before POST /v2/sender/orders. See also Get Token Rate (v1) for the legacy scalar response.

Path Parameters

network
enum<string>
required

Blockchain network identifier (lowercase in URL).

Available options:
ethereum,
base,
bnb-smart-chain,
lisk,
celo,
arbitrum-one,
polygon,
starknet,
tron
from
string
required

Fiat code or token symbol on network (paired with to).

amount
string
required

For token+fiat pairs, the token notional. For fiat+fiat pairs, the amount in from fiat.

to
string
required

Fiat code or token symbol on network (paired with from).

Query Parameters

side
enum<string>

Return only the buy or sell quote. Omit for both sides.

Available options:
buy,
sell
from_source
enum<string>

When from matches both a fiat and a crypto asset on network, set to fiat or crypto to disambiguate. Ignored when from is unambiguous.

Available options:
fiat,
crypto
to_source
enum<string>

When to matches both a fiat and a crypto asset on network, set to fiat or crypto to disambiguate. Ignored when to is unambiguous.

Available options:
fiat,
crypto
provider_id
string

Optional. When set, limits the quote to this provider. Must be exactly 8 alphabetic characters (A–Z, a–z).

Pattern: ^[A-Za-z]{8}$

Response

Token rate quote(s)

status
string
Example:

"success"

message
string
Example:

"Operation successful"

data
object

Public token rate quote. Omit side to receive both buy and sell; use side=buy or side=sell for a single side.