Skip to main content
POST
/
api
/
v1
/
swaps
cURL
curl --request POST \
  --url https://api.lidian.finance/api/v1/swaps \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "orderId": "<string>",
  "quoteId": "<string>",
  "signature": "<string>"
}
'
{
  "message": "<string>",
  "data": {
    "orderId": "<string>",
    "blockchainOrderId": "<string>",
    "order": {}
  }
}
Execute a swap given an accepted quote.

Authorizations

x-api-key
string
header
required

Body

application/json

Swap execution parameters

orderId
string
required
quoteId
string
required
signature
string
required

Response

200 - application/json

Swap executed successfully

message
string
data
object