Skip to main content
POST
/
v1
/
quote
curl --request POST \
--url https://api.dkit.xyz/v1/quote \
--header 'Content-Type: application/json' \
--data '{
"sellAsset": "ETH.USDC-0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"sellAmount": "150",
"buyAsset": "ETH.ETH",
"slippage": 5,
"affiliate": "dz",
"affiliateFee": 88,
"includeTx": true,
"providers": [
"THORCHAIN"
],
"sourceAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb7",
"destinationAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb7"
}'
{
"quoteId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"routes": [
{
"providers": [
"THORCHAIN"
],
"sellAsset": "ETH.USDC-0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"sellAmount": "150",
"buyAsset": "ETH.ETH",
"expectedBuyAmount": "43567890123456789",
"expectedBuyAmountMaxSlippage": "41389345617284210",
"fees": [
{
"type": "NETWORK",
"asset": "ETH.ETH",
"amount": "2000000000000000",
"chain": "ETH",
"protocol": "THORCHAIN"
},
{
"type": "AFFILIATE",
"asset": "ETH.ETH",
"amount": "383396073076470",
"chain": "ETH",
"protocol": "THORCHAIN"
}
],
"estimatedTime": {
"inbound": 600,
"swap": 10,
"outbound": 600,
"total": 1210
},
"meta": {
"priceImpact": 0.05,
"slippagePercent": 5
}
}
]
}

Body

application/json
sellAsset
string
required

Asset to sell

buyAsset
string
required

Asset to buy

sellAmount
string
required
slippage
number
required

Slippage tolerance in percentage (e.g., 0.5 = 0.5%, 3 = 3%). Rounded to bps internally.

Required range: 0 <= x <= 100
providers
enum<string>[]
sourceAddress
string

Address to send asset from

destinationAddress
string

Address to send asset to

affiliate
string

Affiliate thorname

affiliateFee
number
includeTx
boolean

Set to true to include an transaction object (EVM only)

Response

Successful quote response

quoteId
string
required

Quote ID

routes
object[]
required
error
string

Error message

providerErrors
object[]

List of errors from different providers

I