Skip to content

Create a new swap

POST
/v2/swap

Request Body

Body

object
in_asset
required
string
Allowed values: BTC USD
out_asset
required
string
Allowed values: BTC USD
in_amount
required
number
{
"in_asset": "BTC",
"out_asset": "USD",
"in_amount": 1337
}

Responses

200

200

object
inAmount
required
number
> 0
inAsset
required
string
Allowed values: BTC USD
outAmount
required
number
> 0
outAsset
required
string
Allowed values: BTC USD
{
"inAsset": "BTC",
"outAsset": "USD",
"inAmount": 1337,
"outAmount": 0.5969
}

400

400