Skip to main content

Trade Notify

Trade Notify

Webhook URL

Webhook Method

  • HTTP Method: POST

Authentication

  • Share the IP whitelist with each other.
  • Bybit Pay will encrypt the callbacks via RSA_SHA256.
    • Partners can provide their public key.
    • The signed data will be put in the response header.
    • For details, see Signature Algorithm.

Headers

Content-Type: application/json
timestamp: xxx
publicKey: xxx
signature: xxx

Request Body

The request body is in JSON format with the following fields:

Field NameTypeDescription
tradeNostringTrade order number
statusstringTrade status: processing, success, or failed
quoteTxIdstringQuote transaction ID. System generated, used to confirm the quote
exchangeRatestringExchange rate
fromCoinstringConvert from coin (coin to sell)
fromCoinTypestringCoin type of fromCoin, either fiat or crypto
toCoinstringConvert to coin (coin to buy)
toCoinTypestringCoin type of toCoin, either fiat or crypto
fromAmountstringFrom coin amount (amount to sell)
toAmountstringTo coin amount (amount to buy according to the exchange rate)
createdAtstringTrade created time