Light Mode
Add SubAccount
POST
/api/v2/sub/user/created:::info[Description]
This endpoint can be used to create sub-accounts.
:::
Request
Body Params application/json
password
string
required
Password(7-24 characters, must contain letters and numbers, cannot only contain numbers or include special characters)
remarks
string
optional
Remarks(1~24 characters)
subName
string
required
Sub-account name(must contain 7-32 characters, at least one number and one letter. Cannot contain any spaces.)
access
enum<string>
required
Permission (types include Spot, Futures, Margin permissions, which can be used alone or in combination).
Allowed values:
SpotFuturesMargin
Example
{
"password": "1234567",
"remarks": "TheRemark",
"subName": "Name1234567",
"access": "Spot"
}
Request samples
Responses
OK(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
code
string
required
data
object
required
uid
integer
required
Sub-account UID
subName
string
required
Sub-account name
remarks
string
required
Remarks
access
string
required
Permission
Example
{
"code": "200000",
"data": {
"currentPage": 1,
"pageSize": 10,
"totalNum": 1,
"totalPage": 1,
"items": [
{
"userId": "63743f07e0c5230001761d08",
"uid": 169579801,
"subName": "testapi6",
"status": 2,
"type": 0,
"access": "All",
"createdAt": 1668562696000,
"remarks": "remarks",
"tradeTypes": [
"Spot",
"Futures",
"Margin"
],
"openedTradeTypes": [
"Spot"
],
"hostedStatus": null
}
]
}
}
Last modified: a month ago