Skip to main content
POST
Estimate Swap

Authorizations

Authorization
string
header
required

Personal API key, created in the Digital Surge app under Account Settings → API Keys. Send it with every request as Authorization: Bearer <your-api-key>.

Body

A swap quote: the estimated price, per-asset fees, and amounts for a proposed swap. No funds move.

src_asset
string
required
Minimum string length: 1
dst_asset
string
required
Minimum string length: 1
req_get_amount
string<decimal> | null

Net amount, after subtracting the fee

req_spend_amount
string<decimal> | null

Total amount, incl. the fee

Response

200 - application/json

A swap quote: the estimated price, per-asset fees, and amounts for a proposed swap. No funds move.

src_asset
string
required
dst_asset
string
required
src_fee
string<decimal> | null
required
read-only
dst_fee
string<decimal> | null
required
read-only
estimated_price
string<decimal>
required
read-only
estimated_price_exact
string<decimal>
required
read-only
est_sell_amount
string
required
read-only
est_buy_amount
string
required
read-only
estimate_id
string<uuid>
required
read-only
slippage
string<decimal>
required
read-only
req_get_amount
string<decimal> | null

Net amount, after subtracting the fee

req_spend_amount
string<decimal> | null

Total amount, incl. the fee