derivative

Get Assets

Fetches a list of assets deposited in dYdX for the specified address and sub-account.

💡 Compute Unit Value: 25 (Fixed)

get/defi/v1/derivative/getassets

Request

  • Base URL
    https://svc.blockdaemon.com
  • URL
    https://svc.blockdaemon.com/defi/v1/derivative/getassets
  • 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": {
    "assets": [
      {
        "size": "189.229062",
        "symbol": "USDC",
        "side": "SHORT",
        "assetId": "0"
      }
    ]
  }
}

Changes

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