mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-09 16:28:06 +00:00
2.5 KiB
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
| Parameter | Type | Required | Description |
|---|---|---|---|
| subaccount | string | No | Hex string of the parent subaccount to filter by. |
| start_idx | number / string | No | Starting index for pagination. Defaults to 0. |
| limit | number | No | Max 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 name | Description |
|---|---|
| subaccount | Hex string of the parent subaccount |
| isolated_subaccount | Hex string of the isolated margin subaccount |
| product_id | Product ID for which this isolated subaccount was created |
| created_at | Unix epoch time in seconds when the isolated subaccount was created |