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
- There is no taker fee.
- Must restrict
transaction.originvia the order.txOrigin field.
- There is currently no protocol fee paid when filling an RFQ order.
RFQOrderstruct has the following fields:
The ERC20 token the maker is selling and the maker is selling to the taker. [required]
The ERC20 token the taker is selling and the taker is selling to the maker. [required]
The amount of makerToken being sold by the maker. [required]
The amount of takerToken being sold by the taker. [required]
The address of the maker, and signer, of this order. [required]
Allowed taker address. Set to zero to allow any taker. [optional; default 0]
The allowed address of the EOA that submitted the Ethereum transaction. This must be set. Multiple addresses are supported via registerAllowedRfqOrigins. [required]
The 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]
The Unix timestamp in seconds when this order expires. [required]
Arbitrary number to enforce uniqueness of the order hash. [required]