Skip to main content

Create Quote

Create a quote. Up to 50 requests per second. The quoting party sends a quote in response to the inquirier.

info
  • Only support UTA2.0 accounts
  • Cannot quote for your own inquiry
  • One request reports in two directions
  • You must pass at least one quoteBuyList and quoteSellList

HTTP Request

POST /v5/rfq/create-quote

Request Parameters

ParameterRequiredTypeComments
rfqIdtruestringInquiry ID
quoteLinkIdfalsestringCustom quote ID:
  • The length should be between 1-32 bits
  • Combination of letters (case sensitive) and numbers
  • An rfqLinkId expires after three months – after which it can be reused
  • Open orders must have a unique ID whereas orders that have reached a final/terminated status do not have to be unique.
  • anonymousfalsebooleanWhether or not it is anonymous quote. The default value is false. When it is true the identity of the quoting party will not be revealed even after the transaction is concluded.
    expireInfalseintegerDuration of the quote (in secs). [10, 120]. Default: 60
    quoteBuyListfalsearray of objectsQuote direction
  • In the Buy direction, for the maker (the quoting party), the execution direction is the same as the direction of the legs
  • For the taker (the inquiring party) it is opposite direction
  • > categorytruestringProduct type: Unified account: spot, linear,option
    > symboltruestringName of the trading contract
    > pricetruestringQuote price
    quoteSellListfalsearray of objectsAsk direction
  • In the Sell direction, for the maker (the quoting party), the execution direction is opposite to the direction of the legs
  • For the taker (the inquiring party) it is the same direction
  • > categorytruestringProduct type: Unified account: spot, linear,option
    > symboltruestringName of the trading contract
    > pricetruestringQuote price

    Response Parameters

    ParameterTypeComments
    resultobject
    > rfqIdstringInquiry ID
    > quoteIdstringQuote ID
    > quoteLinkIdstringCustom quote ID
    > expiresAtstringThe quote's expiration time (ms)
    > deskCodestringQuoter's unique identification code
    > statusstringStatus of quotation: Active Canceled Filled Expired Failed

    Request Example

    POST /v5/rfq/create-quote HTTP/1.1
    Host: api-testnet.bybit.com
    X-BAPI-SIGN: XXXXXX
    X-BAPI-API-KEY: XXXXXX
    X-BAPI-TIMESTAMP: 1744083949347
    X-BAPI-RECV-WINDOW: 5000
    Content-Type: application/json
    Content-Length: 115

    {
    "rfqId":"1754364447601610516653123084412812",
    "quoteBuyList": [
    {
    "category": "linear",
    "symbol": "BTCUSDT",
    "price": "106000"
    }
    ],
    "quoteSellList":[
    {
    "category": "linear",
    "symbol": "BTCUSDT",
    "price": "126500"
    }
    ]
    }

    Response Example

    {
    "retCode": 0,
    "retMsg": "OK",
    "result": {
    "rfqId": "175740578143743543930777169307022",
    "quoteId": "1757405933130044334361923221559805",
    "quoteLinkId": "",
    "expiresAt": "1757405993126",
    "deskCode": "test0904",
    "status": "Active"
    },
    "retExtInfo": {},
    "time": 1757405933132
    }