Skip to main content
POST
Create a swap

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
requestId
string<uuid>
required

Unique identifier for the swap request (recommend using uuid v4)

Example:

"1ab3e6e0-4839-4dbe-89c3-b06d9645ae86"

source
object
required

Source wallet information for the swap

destination
object
required

Destination wallet information for the swap

limitPrice
string

Optional positive limit price, expressed as destination-currency units per one source-currency unit. Supported only for direct USDT/USDC swaps in either direction and limited to four decimal places. Omit to use market pricing.

Pattern: ^(?=.*[1-9])\d+(?:\.\d{1,4})?$
Example:

"0.9990"

cancelAfterSeconds
integer

Optional number of seconds after creating the swap when execution should be cancelled if it has not already started. Supported only for direct USDT/USDC swaps in either direction. Omit to disable automatic cancellation.

Required range: 60 <= x <= 86400
Example:

3600

Response

Success

transferType
string
Example:

"WALLET.SWAP"

transferDetails
object