derivative
Get Sub-Accounts
Retrieves details for sub-accounts linked to a given address.
💡 Compute Unit Value: 25 (Fixed)
get/defi/v1/derivative/getsubaccounts
Request
- Base URLhttps://svc.blockdaemon.com
- URLhttps://svc.blockdaemon.com/defi/v1/derivative/getsubaccounts
- AuthAPI 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
Response
Successful response
Example response
{
"status": 200,
"msg": "success",
"data": {
"subaccounts": [
{
"address": "dydx13uxwm6gyyggdz92z47h0h2xdfqdfa0wrtykp2d",
"subaccountNumber": 0,
"equity": "507.190302025",
"freeCollateral": "472.36933382375",
"openPerpetualPositions": {
"ETH-USD": {
"market": "ETH-USD",
"status": "OPEN",
"side": "LONG",
"size": "0.275",
"maxSize": "0.275",
"entryPrice": "2446.92727272727272727273",
"exitPrice": null,
"realizedPnl": "-0.30197",
"unrealizedPnl": "23.51436402499999999999925",
"createdAt": "2023-11-01T09:40:35.893Z",
"createdAtHeight": "882343",
"closedAt": null,
"sumOpen": "0.275",
"sumClose": "0",
"netFunding": "-0.30197"
}
},
"assetPositions": {
"USDC": {
"size": "189.229062",
"symbol": "USDC",
"side": "SHORT",
"assetId": "0"
}
},
"marginEnabled": true
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.