path
is versioned independently using URI versioning. The format is: https://api.0x.org/<path>/<version>/<endpoint>
.https://api.0x.org/swap/v1/quote
which represents v1
of the quote
endpoint in the swap
path. URLs not adhering to this format are not supported.endpoint
, in which case every endpoint
in that path
will be on the next version. Old versions of the API will be deprecated and new features will be rolled out to them on a best-effort basis.
page
and perPage
parameters. This endpoint is paginated.
records
field.
By default, a request returns page 1 with 20 orders. It is possible to change which page and how many records are returned per page via the query parameters. For example, to fetch page 3 with 50 records per page:page
perPage
page
perPage
records
requested in the pagination, but not necessarily returned.total
records
in the collection (across all pages).records
records
returned for this page of the collection.perPage
value, the response can return a validation error as specified in the errors section. If the query specifies a page
that does not exist (ie. there are not enough records
), the response will return an empty records
array.allowanceTarget
returned in the quote response or in the ExchangeProxy Address column in the "Addresses by Network" table below.0x0000000000000000000000000000000000000000
is then returned instead.0xdef1c0ded9bec7f1a1670819833240f027b25eff
0x95e6f48254609a6ee006f7d493c8e5fb97094cef
0xa26e80e7dea86279c6d778d702cc413e6cffa777
0xdef1c0ded9bec7f1a1670819833240f027b25eff
0xf1ec7d0ba42f15fb5c9e3adbe86431973e44764c
0x6acab4c9c4e3a0c78435fdb5ad1719c95460a668
0xdef1c0ded9bec7f1a1670819833240f027b25eff
0x0000000000000000000000000000000000000000
0x0000000000000000000000000000000000000000
0xdef1c0ded9bec7f1a1670819833240f027b25eff
0x0000000000000000000000000000000000000000
0x0000000000000000000000000000000000000000
0xdef1abe32c034e558cdd535791643c58a13acc10
0x0000000000000000000000000000000000000000
0x0000000000000000000000000000000000000000
0xdef189deaef76e379df891899eb5a00a94cbc250
0x0000000000000000000000000000000000000000
0x0000000000000000000000000000000000000000
0xdef1c0ded9bec7f1a1670819833240f027b25eff
0x0000000000000000000000000000000000000000
0x0000000000000000000000000000000000000000
0xdef1c0ded9bec7f1a1670819833240f027b25eff
0x0000000000000000000000000000000000000000
0x0000000000000000000000000000000000000000
maker
taker
makerToken
takerToken
makerAmount
takerAmount
expiry
salt
feeRecipient
pool
takerTokenFeeAmount
sender
verifyingContract
chainId
verifyingContract
is located.signature
maker
. The fields of the signature object are documented in the table below.signatureType
r
s
v
1000000000000000000
base units by this API).0x
prefix.