v1
latestOpenAPI 3.0.02026-08-04134348905.1 KBTrading
Accept a quote
Permissions required: Execute trades
Accept a quote by its quoteID and side.
Idempotent Requests
This endpoint supports idempotent requests so that a quote cannot be accepted twice if an API call was interrupted and is retried. To send an idempotent request, include the idempotentId field in the body of the POST request.
post/trading/quote/accept
Headers
Api-Signaturestring required
A hex-encoded Ed25519 signature of timestamp_epoch_seconds + uppercase(http_method) + request_path + request_body.
Construction example:
toHex(
ed25519Sign(
signing_key,
'{}{}{}{}'.format(timestamp_epoch_seconds, toUpper(httpMethod), httpRequestPath, httpBody)
)
)
Api-Timestampinteger required
Current timestamp, represented as unix epoch seconds
Request body
Example request
{
"accountId": "6290d9bd-494f-11ed-975e-2e567b4c0e09",
"allowedSlippage": "0.0005",
"idempotentId": "01944c42-5ad3-4108-b376-f78cd6ff0393",
"side": "BUY",
"vaultID": "1c920f4241b78a1d483a29f3c24b6c4c"
}Response
Successfully accepted the quote
Example response
{
"data": {
"side": "BUY"
}
}