Skip to main content
POST
/
swaps
/
quote
Create Swap Quote
curl --request POST \
  --url https://api.whop.com/api/v1/swaps/quote \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": "<string>",
  "from_token": "<string>",
  "to_token": "<string>",
  "from_address": "<string>",
  "from_chain": "<string>",
  "metadata": {},
  "slippage_bps": 123,
  "to_address": "<string>",
  "to_chain": "<string>"
}
'
{
  "amount_in": "<string>",
  "amount_out": "<string>",
  "fee_bps": 123,
  "from_token": {},
  "metadata": {},
  "rate": "<string>",
  "to_token": {},
  "amount_out_min": "<string>",
  "bridge_fee": "<string>",
  "estimated_duration_seconds": 123,
  "from_address": "<string>",
  "requires_token_approval": true,
  "to_address": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.whop.com/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
amount
string
required

Input token amount.

from_token
string
required

Source token contract address.

to_token
string
required

Destination token contract address.

from_address
string | null
from_chain
metadata
object
slippage_bps
integer | null
to_address
string | null
to_chain

Response

swap quote created

amount_in
string
required
amount_out
string
required
fee_bps
integer
required
from_token
object
required
metadata
object
required
object
enum<string>
required
Available options:
swap_quote
rate
string
required
to_token
object
required
amount_out_min
string
bridge_fee
string | null
estimated_duration_seconds
integer | null
from_address
string | null
requires_token_approval
boolean | null
to_address
string | null