Retrieve UniswapX orders
Changed onRetrieve orders filtered by query parameter(s). At least one of orderHash, orderHashes, chainId, orderStatus, swapper, filler, or pair must be provided. swapper cannot be combined with chainId. Results are a single page of the newest orders (createdAt descending, at most 50); there is no pagination or alternative ordering: sortKey=createdAt, sort=gt(0) and desc=true are accepted and ignored, any other value or any cursor returns 400. To enumerate limit orders beyond one page use /limit-orders. The shape of each entry in orders depends on the order's type; filter with orderType to receive a single shape.
Request
- Base URL: https://api.uniswap.org/v2
- URL: https://api.uniswap.org/v2/orders
- Auth: none declared
Query parameters
Maximum number of orders to return.
Filter by order status. A comma-separated list of statuses is also accepted.
Filter by order hash.
Filter by comma-separated order hashes (maximum 50). Cannot be combined with sortKey.
Filter by swapper address. Cannot be combined with chainId.
Filter by filler address.
Order type accepted by the orderType query parameter. Dutch_V1_V2 returns both Dutch V1 and Dutch V2 orders.
Filter by order type. Determines the entity shape of the returned orders.
Filter by token pair, formatted as <tokenAddress>-<tokenAddress>-<chainId>.
Chains supported by UniswapX.
Filter by chain id. Cannot be combined with swapper.
Response
Request Successful
Example response
{
"orders": [
{
"chainId": 1,
"swapper": "0x50EC05ADe8280758E2077fcBC08D878D4aef79C3",
"input": {
"token": "0x50EC05ADe8280758E2077fcBC08D878D4aef79C3"
},
"outputs": [
{
"token": "0x50EC05ADe8280758E2077fcBC08D878D4aef79C3",
"recipient": "0x50EC05ADe8280758E2077fcBC08D878D4aef79C3"
}
]
}
]
}Changes
- ●
deleted the
queryrequest parameterexecuteAddress - ●
removed the optional property
//////from the response with the status - ●
removed the optional property
//////from the response with the status - ●
removed the optional property
//////from the response with the status
- ●
- ○
added the optional property
//////to the response with the status - ○
added the optional property
//////to the response with the status - ○
added the optional property
//////to the response with the status - ○
added the optional property
//////to the response with the status - ○
added the optional property
//////to the response with the status - ○
added the optional property
//////to the response with the status - ○
added the optional property
//////to the response with the status
- ○