Files

2.5 KiB

Isolated Subaccounts

Rate limits

  • 1200 requests/min or 200 requests/10secs per IP address. (weight = 2)

{% hint style="info" %} See more details in API Rate limits {% endhint %}

Request

{% tabs %} {% tab title="List all isolated subaccounts" %} Query all isolated subaccounts.

POST [ARCHIVE_ENDPOINT]

Body

{
  "isolated_subaccounts": {
    "start_idx": 0,
    "limit": 100
  }
}

{% endtab %}

{% tab title="List isolated subaccounts for a subaccount" %} Query isolated subaccounts associated with a specific subaccount.

POST [ARCHIVE_ENDPOINT]

Body

{
  "isolated_subaccounts": {
    "subaccount": "0x79cc76364b5fb263a25bd52930e3d9788fcfeea864656661756c740000000000",
    "limit": 100
  }
}

{% endtab %} {% endtabs %}

Request Parameters

ParameterTypeRequiredDescription
subaccountstringNoHex string of the parent subaccount to filter by.
start_idxnumber / stringNoStarting index for pagination. Defaults to 0.
limitnumberNoMax number of isolated subaccounts to return. Defaults to 100. Max of 500.

Response

{
  "isolated_subaccounts": [
    {
      "subaccount": "0x79cc76364b5fb263a25bd52930e3d9788fcfeea864656661756c740000000000",
      "isolated_subaccount": "0x79cc76364b5fb263a25bd52930e3d9788fcfeea800000000000000010069736f",
      "product_id": 1,
      "created_at": "1683315718"
    }
  ]
}

Response Fields

Isolated Subaccounts

Field nameDescription
subaccountHex string of the parent subaccount
isolated_subaccountHex string of the isolated margin subaccount
product_idProduct ID for which this isolated subaccount was created
created_atUnix epoch time in seconds when the isolated subaccount was created