---
updatedAt: 2026-06-22T07:09:27.000Z
agentTools:
  projectIndex: https://element.readme.io/llms.txt
---

# Query aggregate orders

This endpoint can be used to Query Aggregate Orders from multiple markets (Element,OpenSea,LooksRare).You must use the 'v1/orders/fetchExchangeData' API to fetch exchangeData of this order, then use 'exchangeData.erc20Token' to interact with contracts.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Element Open API",
    "description": "OpenAPI 3.0 based swagger docs for Element Public API.</br></br>If you have questions, Please review <a href=\"https://docs.element.market/welcome-to-element/support/faq\">HelpCenter</a> for help, Or <a href=\"mailto:api@element.market\">Contact Us</a>.",
    "contact": {
      "name": "Element",
      "url": "https://element.market/",
      "email": ""
    },
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.element.market",
      "description": "Mainnet API"
    }
  ],
  "security": [
    {
      "X-Api-Key": []
    }
  ],
  "tags": [
    {
      "name": "Aggregate Orders",
      "description": "Aggregated orders are high level data, open to our partners, please contact us."
    }
  ],
  "paths": {
    "/openapi/v1/orders/aggregated": {
      "get": {
        "tags": [
          "Aggregate Orders"
        ],
        "summary": "Query aggregate orders",
        "description": "This endpoint can be used to Query Aggregate Orders from multiple markets (Element,OpenSea,LooksRare).You must use the 'v1/orders/fetchExchangeData' API to fetch exchangeData of this order, then use 'exchangeData.erc20Token' to interact with contracts.",
        "operationId": "ordersAggregated",
        "parameters": [
          {
            "name": "contract_address",
            "in": "query",
            "description": "The contract address for query",
            "required": true,
            "schema": {
              "type": "string",
              "default": "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d"
            },
            "example": "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d"
          },
          {
            "name": "chain",
            "in": "query",
            "description": "Chain name, which the asset belongs, Supported chains: eth, polygon, bsc, arbitrum, zksync, linea, starknet, opbnb, base, manta_pacific, mantle, zkfair, merlin, mode, cyber, bob, lightlink,zeta,nibiru,bitlayer,mantra. eth is default",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "eth",
                "polygon",
                "bsc",
                "arbitrum",
                "zksync",
                "linea",
                "opbnb",
                "base",
                "manta_pacific",
                "mantle",
                "zkfair",
                "merlin",
                "mode",
                "cyber",
                "bob",
                "lightlink",
                "zeta",
                "nibiru",
                "bitlayer",
                "mantra",
                "monad",
                "ink",
                "robinhood"
              ]
            },
            "example": "eth"
          },
          {
            "name": "markets",
            "in": "query",
            "description": "Filter by the market, support markets: element, opensea, looksrare. empty for all market.",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "element",
                  "opensea",
                  "looksrare"
                ]
              }
            }
          },
          {
            "name": "tokens",
            "in": "query",
            "description": "Filter by the asset token ids, comma separated.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort_type",
            "in": "query",
            "description": "Sort type for the result. bestLowToHigh is default.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "bestLowToHigh",
                "bestHighToLow",
                "bestListingTime",
                "bestExpiringSoon"
              ]
            },
            "example": "bestLowToHigh"
          },
          {
            "name": "direction",
            "in": "query",
            "description": "Support -asc (positive order) desc (reverse order) default desc.",
            "required": false,
            "schema": {
              "type": "string",
              "default": "desc"
            },
            "example": "desc"
          },
          {
            "name": "page_index",
            "in": "query",
            "description": "Result page index, from 1",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            },
            "example": 1
          },
          {
            "name": "page_size",
            "in": "query",
            "description": "Result page size, max 50, 20 for default.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 20
            },
            "example": 20
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiResponseOrdersAggregatedResp"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TooManyRequestsErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "BadRequestErrorResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "integer",
            "format": "int32",
            "example": 400
          },
          "error": {
            "type": "string",
            "example": "Bad Request"
          },
          "message": {
            "type": "string",
            "example": "Missing Header: X-api-key"
          },
          "path": {
            "type": "string",
            "example": "/openapi/v1/orders/list"
          }
        }
      },
      "TooManyRequestsErrorResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "integer",
            "format": "int32",
            "example": 429
          },
          "error": {
            "type": "string",
            "example": "Too Many Requests"
          },
          "message": {
            "type": "string",
            "example": "You have exhausted your API Request Quota"
          },
          "path": {
            "type": "string",
            "example": "/openapi/v1/orders/list"
          }
        }
      },
      "InternalServerErrorResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "integer",
            "format": "int32",
            "example": 500
          },
          "error": {
            "type": "string",
            "example": "Internal server error"
          }
        }
      },
      "QueryOrderItem": {
        "type": "object",
        "properties": {
          "chain": {
            "type": "string",
            "description": "Chain Name",
            "example": "eth"
          },
          "chainId": {
            "type": "string",
            "description": "Chain ID",
            "example": "0x1"
          },
          "orderHash": {
            "type": "string",
            "description": "Order Hash",
            "example": "0x99a2d68bda1a946dc71f1b45b59f173d592382c2fc5b4cc87c350e9e0d19a001"
          },
          "orderId": {
            "type": "string",
            "description": "Order Id",
            "example": "974967556489302561"
          },
          "expirationTime": {
            "type": "integer",
            "description": "Order expiration time",
            "format": "int64",
            "example": 1668136793
          },
          "listingTime": {
            "type": "integer",
            "description": "Order listing time",
            "format": "int64",
            "example": 1667531933
          },
          "createTime": {
            "type": "integer",
            "description": "Order create time",
            "format": "int64",
            "example": 1667531999
          },
          "maker": {
            "type": "string",
            "description": "The order maker's wallet address",
            "example": "0xea199722372dea9df458dbb56be7721af117a9bc"
          },
          "taker": {
            "type": "string",
            "description": "The order taker's wallet address",
            "example": "0x0000000000000000000000000000000000000000"
          },
          "side": {
            "type": "integer",
            "description": "Side of the order. 0 for buy orders and 1 for sell orders.",
            "format": "int32",
            "example": 1
          },
          "saleKind": {
            "type": "integer",
            "description": "Kind of sell order. 0 for standard order, 3 for bulk listings, 7 for collection offer.",
            "format": "int32",
            "example": 0
          },
          "paymentToken": {
            "type": "string",
            "description": "The address of the smart contract of the payment token that is accepted or offered by the order",
            "example": "0x0000000000000000000000000000000000000000"
          },
          "quantity": {
            "type": "string",
            "description": "The asset quantity of order.",
            "example": "1"
          },
          "priceBase": {
            "type": "number",
            "description": "The price in the base currency of the current chain (Ethereum is converted to eth, bsc is bnb), the unit is ether.",
            "example": 0.2
          },
          "priceUSD": {
            "type": "number",
            "description": "The order price in USD.",
            "example": 309.7634
          },
          "price": {
            "type": "number",
            "description": "The order price in paymentToken, the unit is ether.",
            "example": 0.2
          },
          "standard": {
            "type": "string",
            "description": "The order trading Standards.",
            "example": "element-ex-v3"
          },
          "contractAddress": {
            "type": "string",
            "description": "Asset contract address",
            "example": "0x5fecbbbaf9f3126043a48a35eb2eb8667d469d53"
          },
          "tokenId": {
            "type": "string",
            "description": "Asset token id",
            "example": "177004"
          },
          "schema": {
            "type": "string",
            "description": "Asset schema",
            "example": "ERC721"
          },
          "extra": {
            "type": "string",
            "description": "Additional information",
            "example": "0"
          },
          "exchangeData": {
            "type": "string",
            "description": "Additional information",
            "example": "0"
          }
        },
        "description": "Order List"
      },
      "ApiResponseOrdersAggregatedResp": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": "Error Code",
            "format": "int32"
          },
          "msg": {
            "type": "string",
            "description": "Error Message"
          },
          "data": {
            "$ref": "#/components/schemas/OrdersAggregatedResp"
          },
          "message": {
            "type": "string",
            "writeOnly": true
          }
        }
      },
      "OrderAggregatedItem": {
        "type": "object",
        "properties": {
          "contractAddress": {
            "type": "string",
            "description": "Contract Address",
            "example": "0xba592c7d486226af95569c565f6c73cbcb5778a2"
          },
          "tokenId": {
            "type": "string",
            "description": "Asset token id",
            "example": "19"
          },
          "bestAskValid": {
            "type": "boolean",
            "description": "When the field is true, bestAskOrder has data, and when it is false, there is no data",
            "example": true
          },
          "bestAskOrder": {
            "$ref": "#/components/schemas/QueryOrderItem"
          },
          "bestBidValid": {
            "type": "boolean",
            "description": "When the field is true, bestBidOrder has data, and when it is false, there is no data",
            "example": true
          },
          "bestBidOrder": {
            "$ref": "#/components/schemas/QueryOrderItem"
          }
        },
        "description": "Order List"
      },
      "OrdersAggregatedResp": {
        "type": "object",
        "properties": {
          "pageSize": {
            "type": "integer",
            "description": "Result page size",
            "format": "int32",
            "example": 1
          },
          "recordCount": {
            "type": "integer",
            "description": "Result record count",
            "format": "int32",
            "example": 1
          },
          "currentPage": {
            "type": "integer",
            "description": "Result current page index",
            "format": "int32",
            "example": 1
          },
          "pageNum": {
            "type": "integer",
            "description": "Result total page count",
            "format": "int32",
            "example": 1
          },
          "inforList": {
            "type": "array",
            "description": "Order List",
            "items": {
              "$ref": "#/components/schemas/OrderAggregatedItem"
            }
          }
        },
        "description": "Return data, Generic"
      }
    },
    "securitySchemes": {
      "X-Api-Key": {
        "type": "apiKey",
        "name": "X-Api-Key",
        "in": "header"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```