Skip to main content

Confirm a Quote

info
  1. The exchange is async; please check the final status by calling the query result API.
  2. Make sure you confirm the quote before it expires.

HTTP Request

POST /v5/asset/exchange/convert-execute

Request Parameters

ParameterRequiredTypeComments
quoteTxIdtruestringThe quote tx ID from Request a Quote

Response Parameters

ParameterTypeComments
quoteTxIdstringQuote transaction ID
exchangeStatusstringExchange status
  • init
  • processing
  • success
  • failure

Request Example

POST /v5/asset/exchange/convert-execute HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXXX
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1720071899789
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json
Content-Length: 52

{
"quoteTxId": "10100108106409343501030232064"
}

Response Example

{
"retCode": 0,
"retMsg": "ok",
"result": {
"exchangeStatus": "processing",
"quoteTxId": "10100108106409343501030232064"
},
"retExtInfo": {},
"time": 1720071900529
}