Skip to main content

Confirm a Quote

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

HTTP Request

POST /v5/fiat/trade-execute

Request Parameters

ParameterRequiredTypeComments
quoteTxIdtruestringThe quote tx ID from Request a Quote
subUserIdtruestringThe user's sub userId in bybit
webhookUrlfalsestringAPI URL to call when order is successful or failed (max 256 characters)
MerchantRequestIdfalsestringCustomised request ID(maximum length of 36)
  • Generally it is useless, but it is convenient to track the quote request internally if you fill this field
  • Response Parameters

    ParameterTypeComments
    tradeNostringTrade order No
    merchantRequestIdstringCustomised request ID

    Request Example

    POST /v5/fiat/trade-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": "QuoteTaxId123456",
    "subUserId":"43456"
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "success",
    "result": {
    "tradeNo": "TradeNo123456",
    "merchantRequestId": ""
    }
    }