dex

Get Orders

Fetches all active orders on a specified DEX, filtered by maker and taker assets. It returns order details (IDs, asset addresses, pricing, etc.) to support real-time order book monitoring and trading integrations.

💡 Compute Unit Value: 15 (Fixed)

get/defi/v1/dex/getorders

Request

  • Base URL
    https://svc.blockdaemon.com
  • URL
    https://svc.blockdaemon.com/defi/v1/dex/getorders
  • Auth
    API key in header X-API-Key

Query parameters

dexId'1900' | '2200' | '2201' | '2202' | '2203' | '2204' | '2205' | '2206'

The unique ID to specify the decentralized exchange (DEX) within a particular blockchain. Find more here.

Example:1900
statusstring

The current status of the order. Accepted values: open, expired, error, cancelled, filled, or insufficient-funds.

orderHashesstring

Comma-separated list of order hashes.

Example:0xe788217d7450116385e71cc754ead242c21f5ec7f533ed48f9be47ccc2afc7a8
fillerstring

Address of the filler (entity responsible for filling the order).

Example:0xb07508e0de659b7d6dd550a1cf1a796fec4fc9aa
sort'desc' | 'asc'

Sort order of the results. Accepted values: asc or desc. Default is desc.

Example:desc
makerAssetstring required

The token address of the asset the Maker is selling.

Example:0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270
takerAssetstring required

The token address of the asset the Maker expects in return.

Example:0xc2132d05d31c914a87c6611c10748aeb04b58e8f

Response

Successful response

statusinteger
msgstring
dataobject

Example response

{
  "status": 200,
  "msg": "success",
  "data": {
    "totalPages": "1",
    "currentPage": "1",
    "orders": [
      {
        "id": "3822",
        "chainId": "137",
        "signature": "5282e03196e58d74c7e633f89a67a7f65d5ff781789ff576b9820253f7139efe3a66b1b8e818280af4b03859360941f2746b6beb2985b53ed609527bc6cee5501b",
        "salt": "70625134037672101032634555633607691523",
        "makerAsset": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
        "takerAsset": "0xc2132d05d31c914a87c6611c10748aeb04b58e8f",
        "maker": "0x503d741356f80b919458f0599666c4f00120f6c1",
        "contractAddress": "0x227b0c196ea8db17a665ea6824d972a64202e936",
        "receiver": "0x503d741356f80b919458f0599666c4f00120f6c1",
        "allowedSenders": "0x0000000000000000000000000000000000000000",
        "makingAmount": "1000000",
        "takingAmount": "4900000000000",
        "filledMakingAmount": "0",
        "filledTakingAmount": "0",
        "feeConfig": "0",
        "feeRecipient": "0x0000000000000000000000000000000000000000",
        "makerTokenFeePercent": "0",
        "makerAssetData": "",
        "takerAssetData": "",
        "getMakerAmount": "f4a215c300000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000000474dec26800",
        "getTakerAmount": "296637bf00000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000000474dec26800",
        "predicate": "961d5b1e000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000227b0c196ea8db17a665ea6824d972a64202e936000000000000000000000000227b0c196ea8db17a665ea6824d972a64202e9360000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000044cf6fc6e3000000000000000000000000503d741356f80b919458f0599666c4f00120f6c1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002463592c2b000000000000000000000000000000000000000000000000000000006a8024b400000000000000000000000000000000000000000000000000000000",
        "permit": "",
        "interaction": "",
        "expiredAt": "1786782900",
        "orderHash": "8312abeb662786741364702d5858da05394a7e441dab1bd753daf1a5369d1011",
        "availableMakingAmount": "1000000",
        "makerBalanceAllowance": "3309150",
        "rate": "0.0000002041"
      }
    ]
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.