Skip to main content
GET
Price a fiat amount in a token

Authorizations

X-Suby-Api-Key
string
header
required

Secret API key. sk_live_… (production) or sk_sandbox_… (sandbox).

Query Parameters

chainId
integer
required
Example:

8453

asset
string
required

The token's ticker on that chain, case-insensitive.

Required string length: 2 - 12
Example:

"ETH"

priceCents
string
required

Minor units as a string of digits.

Pattern: ^[1-9]\d*$
Example:

"1999"

currency
string
required
Pattern: ^[A-Z]{3}$

Response

Quote

success
boolean
required
Example:

true

data
object
required

Endpoint-specific payload.

message
string