derivative

Get Orders

Retrieves a comprehensive list of all orders for a given address and sub-account.

💡 Compute Unit Value: 15 (Fixed)

get/defi/v1/derivative/getorders

Request

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

Query parameters

addressstring required

The dYdX wallet address of the user.

Example:0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402
derivativeId'1000'

The unique identifier for dYdX V4.

Example:1000
subAccountNumberstring required

The sub-account number for the user. This specifies which sub-account's orders should be retrieved.

Example:0

Response

Successful response

statusinteger
msgstring
dataobject

Example response

{
  "status": 200,
  "msg": "success",
  "data": {
    "orders": [
      {
        "id": "5724e441-654f-5dc6-ac02-e8e4a7ecda2e",
        "subaccountId": "8845f855-4943-5f72-9ad2-d0a2a416c5bd",
        "clientId": "3711471933",
        "clobPairId": "1",
        "side": "SELL",
        "size": "0.01",
        "totalFilled": "0",
        "price": "2600",
        "type": "LIMIT",
        "status": "CANCELED",
        "timeInForce": "GTT",
        "reduceOnly": false,
        "orderFlags": "64",
        "goodTilBlockTime": "2024-01-10T10:42:45.000Z",
        "createdAtHeight": "4993716",
        "clientMetadata": "0",
        "updatedAt": "2024-01-10T10:42:45.385Z",
        "updatedAtHeight": "4993921",
        "postOnly": true,
        "ticker": "ETH-USD"
      },
      {
        "id": "ff494eb3-d74e-5852-8aea-1ddabc4d9a37",
        "subaccountId": "8845f855-4943-5f72-9ad2-d0a2a416c5bd",
        "clientId": "1594632561",
        "clobPairId": "1",
        "side": "BUY",
        "size": "0.01",
        "totalFilled": "0.01",
        "price": "2600",
        "type": "LIMIT",
        "status": "FILLED",
        "timeInForce": "GTT",
        "reduceOnly": false,
        "orderFlags": "64",
        "goodTilBlockTime": "2024-01-10T10:31:42.000Z",
        "createdAtHeight": "4993244",
        "clientMetadata": "0",
        "updatedAt": "2024-01-10T10:26:43.386Z",
        "updatedAtHeight": "4993245",
        "postOnly": false,
        "ticker": "ETH-USD"
      }
    ]
  }
}

Changes

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