Skip to main content
GET
Try Cobo WaaS Skill in your AI coding assistant (Claude Code, Cursor, etc.). Describe your needs in natural language to auto-generate production-ready SDK code and debug faster 🚀

Authorizations

BIZ-API-KEY
string
header
required

The API key. For more details, refer to API key.

In the API playground, enter your API secret, and your API key will be accordingly calculated.

Query Parameters

wallet_id
string<uuid>
required

The wallet ID.

pay_token_id
string
required

The ID of the token to pay.

receive_token_id
string
required

The ID of the token to receive.

pay_amount
string

The amount of the token to pay.

receive_amount
string

The amount of the token to receive.

Response

The swap quote successfully retrieved.

quote_id
string
required

The unique id of quote.

Example:

"2ec094034044ffa50f4294d48363fef31eb5755fc783ba3837a03c91b4904659"

pay_token_id
string
required

The token ID to pay.

Example:

"BTC"

pay_amount
string
required

The amount of tokens to pay.

Example:

"100"

receive_token_id
string
required

The token ID to receive.

Example:

"ETH_WBTC"

receive_amount
string
required

The amount of tokens to receive.

Example:

"100"

fee_token_id
string
required

The token ID for the service fee.

Example:

"BTC"

fee_amount
string
required

The amount of tokens for the service fee.

Example:

"0.3"

quote_expired_timestamp
integer<int64>
required

The time when the quote will expire, in Unix timestamp format, measured in milliseconds.

Example:

1677587393000

min_receive_amount
string

The minimum amount of tokens to receive if the pay amount is specified.

Example:

"0"

max_pay_amount
string

The maximum amount of tokens to pay if the receive amount is specified.

Example:

"10000"