Skip to main content

RFQ Order Structure

RFQ orders are a stripped down version of standard limit orders, supporting fewer fields and a leaner settlement process. These orders are fielded just-in-time, directly from market makers, during the construction of a swap quote on 0x API, and can be filled through the fillRfqOrder() function on the Exchange Proxy.

Some notable differences from regular limit orders are:

  • There is no sender field.
  • There is no taker fee.
  • Must restrict transaction.origin via the order.txOrigin field.
  • There is currently no protocol fee paid when filling an RFQ order.

The RFQOrder struct has the following fields:

FieldTypeDescription
makerTokenaddressThe ERC20 token the maker is selling and the maker is selling to the taker. [required]
takerTokenaddressThe ERC20 token the taker is selling and the taker is selling to the maker. [required]
makerAmountuint128The amount of makerToken being sold by the maker. [required]
takerAmountuint128The amount of takerToken being sold by the taker. [required]
makeraddressThe address of the maker, and signer, of this order. [required]
takeraddressAllowed taker address. Set to zero to allow any taker. [optional; default 0]
txOriginaddressThe allowed address of the EOA that submitted the Ethereum transaction. This must be set. Multiple addresses are supported via registerAllowedRfqOrigins. [required]
poolbytes32The staking pool to attribute the 0x protocol fee from this order. Set to zero to attribute to the default pool, not owned by anyone. [optional; default 0]
expiryuint64The Unix timestamp in seconds when this order expires. [required]
saltuint256Arbitrary number to enforce uniqueness of the order hash. [required]