Skip to content

Get subaccount

GET
/accounts/{address}/subaccounts/{subaccount_id}

Parameters

Path Parameters

address*

Owner address (20-byte Ethereum-style, 0x-hex).

Required
subaccount_id*
Type
integer
Required
Format
"uint16"
Minimum
0
Maximum
65535

Responses

Subaccount margin state and delegations.

application/json
JSON
{
  
"address": "string",
  
"subaccount_id": 0,
  
"cross_margin_balance": "-12500",
  
"total_isolated_margin": "-12500",
  
"equity": "-12500",
  
"available_margin": "-12500",
  
"transferable_margin": "-12500",
  
"initial_margin_requirement": "1000000",
  
"maintenance_margin_requirement": "1000000",
  
"status": 0,
  
"created_at_ms": 0,
  
"delegations": [
  
  
{
  
  
  
"delegate": "string",
  
  
  
"permissions": 0,
  
  
  
"expiry": 0,
  
  
  
"name": "string"
  
  
}
  
]
}

Playground

Variables
Key
Value

Samples

Powered by VitePress OpenAPI