跳到主要内容

Change Sub Account Api Permission

HTTP Request

POST /sapi/v1/broker/subAccountApi/permission

Request Parameters

NameTypeMandatoryDescription
subAccountIdSTRINGYES
subAccountApiKeySTRINGYES
canTradeENUMYES
marginTradeENUMYES
futuresTradeENUMYES
recvWindowLONGNO
timestampLONGYES

Caution:

  • This request will change the api permission for a sub account.
  • You need to enable "trade" option for the api key which requests this endpoint.
  • Sub account should be enable margin before its api-key's marginTrade being enabled.
  • Sub account should be enable futures before its api-key's futuresTrade being enabled.

Example Response

{
"subaccountId": "1",
"apikey":"vmPUZE6mv9SD5VNHk4HlWFsOr6aKE2zvsw0MuIgwCIPy6utIco14y7Ju91duEh8A",
"canTrade": true,
"marginTrade": true,
"futuresTrade": true
}