curl --request GET \
--url https://test.deribit.com/api/v2/private/create_subaccount \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 5414,
"method": "private/create_subaccount",
"params": {}
}
'{
"jsonrpc": "2.0",
"id": 5414,
"result": {
"email": "user_AAA@email.com",
"id": 13,
"is_password": false,
"login_enabled": false,
"portfolio": {
"eth": {
"available_funds": 0,
"available_withdrawal_funds": 0,
"balance": 0,
"currency": "eth",
"equity": 0,
"initial_margin": 0,
"maintenance_margin": 0,
"margin_balance": 0
},
"btc": {
"available_funds": 0,
"available_withdrawal_funds": 0,
"balance": 0,
"currency": "btc",
"equity": 0,
"initial_margin": 0,
"maintenance_margin": 0,
"margin_balance": 0
}
},
"receive_notifications": false,
"system_name": "user_1_4",
"security_keys_enabled": false,
"type": "subaccount",
"username": "user_1_4"
}
}Creates a new subaccount under the authenticated main account. Subaccounts allow you to organize trading activities and manage risk separately from the main account.
This method takes no parameters. The new subaccount will be created with default settings and can be configured using other subaccount management methods.
๐ Related Article: Managing Subaccounts
Scope: account:read_write and mainaccount
curl --request GET \
--url https://test.deribit.com/api/v2/private/create_subaccount \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 5414,
"method": "private/create_subaccount",
"params": {}
}
'{
"jsonrpc": "2.0",
"id": 5414,
"result": {
"email": "user_AAA@email.com",
"id": 13,
"is_password": false,
"login_enabled": false,
"portfolio": {
"eth": {
"available_funds": 0,
"available_withdrawal_funds": 0,
"balance": 0,
"currency": "eth",
"equity": 0,
"initial_margin": 0,
"maintenance_margin": 0,
"margin_balance": 0
},
"btc": {
"available_funds": 0,
"available_withdrawal_funds": 0,
"balance": 0,
"currency": "btc",
"equity": 0,
"initial_margin": 0,
"maintenance_margin": 0,
"margin_balance": 0
}
},
"receive_notifications": false,
"system_name": "user_1_4",
"security_keys_enabled": false,
"type": "subaccount",
"username": "user_1_4"
}
}Success response
The JSON-RPC version (2.0)
2.0 Hide child attributes
User email
"user@example.com"
Informs whether login to the subaccount is enabled
true when password for the subaccount has been configured
When true - receive all notification emails on the main email
System generated user nickname
"username_1"
Whether the Security Keys authentication is enabled
Names of assignments with Security Keys assigned
Account name (given by user)
Account type
subaccount Subaccount identifier
Margin model
List of disabled trading products
hashed identifier used in the Proof Of Liability for the subaccount. This identifier allows you to find your entries in the Deribit Proof-Of-Reserves files. IMPORTANT: Keep it secret to not disclose your entries in the Proof-Of-Reserves.
signature used as a base string for proof_id hash. IMPORTANT: Keep it secret to not disclose your entries in the Proof-Of-Reserves.
Number of referrals
Portfolio information for the subaccount
Hide child attributes
Hide child attributes
The account's margin balance. When cross collateral is enabled, this aggregated value is calculated by converting the sum of each cross collateral currency's value to the given currency, using each cross collateral currency's index.
The selected currency
btc, eth The maintenance margin. When cross collateral is enabled, this aggregated value is calculated by converting the sum of each cross collateral currency's value to the given currency, using each cross collateral currency's index.
The account's initial margin. When cross collateral is enabled, this aggregated value is calculated by converting the sum of each cross collateral currency's value to the given currency, using each cross collateral currency's index.
The account's current equity
The account's balance
The account's available to withdrawal funds
The account's available funds. When cross collateral is enabled, this aggregated value is calculated by converting the sum of each cross collateral currency's value to the given currency, using each cross collateral currency's index.
The account's balance reserved in other orders
0.3
The account's balance reserved in active spot orders
The id that was sent in the request
Was this page helpful?