Huobi Global is going to allow parent user to set tradable market(s) or asset transfer permission for sub users through new API endpoints

Dear users,

Huobi Global is going to allow parent user to set tradable market(s) for sub users through a new API endpoint - POST /v2/sub-user/tradable-market;

Huobi Global is also going to allow parent user to set asset transfer permission for sub users through a new API endpoint - POST /v2/sub-user/transferability.

 

Effective Date: May 29, 2020 (GMT+8)
All the changes will be updated on https://huobiapi.github.io/docs/spot/v1/en/

Huobi Global
May 29, 2020

 

 

1) POST /v2/sub-user/tradable-market

Via this endpoint, a parent user should be able to activate or deactivate the sub user’s trading permission in isolated margin market and cross margin market. The sub user’s trading permission in futures market should not be configurable via this endpoint for now. By default, sub user’s trading permission in spot market is activated.

Request Parameters

Field NameData TypeMandatoryDefault ValueDescriptionPossible Value
subUidsintegerTRUE Sub user’s UID list (multiple input is allowed, supporting maximum 50 UIDs, separated by comma) 
accountTypestringTRUE Account typeisolated-margin,cross-margin
activationstringTRUE Account statusactivated,deactivated

Response

Field NameData TypeMandatoryDefault ValueDescriptionPossible Value
codeintegerTRUE Status code 
messagestringFALSE Error message (if any) 
dataobjectTRUE   
{ accountTypestringTRUE Account typeisolated-margin,cross-margin
activationstringTRUE Account statusactivated,deactivated
subUidintegerTRUE Sub user’s UID 
errCodeintegerFALSE Error code for rejection (only valid for rejected request) 
errMessage }stringFALSE Error message for rejection (only valid for rejected request) 

2) POST /v2/sub-user/transferability

Via this endpoint, a parent user should be able to set asset transfer permission for sub user, i.e. to transfer asset from spot account to another sub user’s spot account who is under same parent user. By default, the asset transfer from sub user’s spot account to parent user’s spot account is allowed.

Request Parameters

Field NameData TypeMandatoryDefault ValueDescriptionPossible Value
accountTypestringFALSEspotAccount typespot
transferrablebooleanTRUE Asset transfer permissiontrue,false
subUidsintegerTRUE Sub user’s UID list (multiple input is allowed, supporting maximum 50 UIDs, separated by comma) 

Response

Field NameData TypeMandatoryDescriptionPossible Value
codeintegerTRUEStatus code 
messagestringFALSEError message (if any) 
dataobjectTRUE  
{ accountTypestringTRUEAccount typespot
transferrablebooleanTRUEAsset transfer permissiontrue,false
subUidstringTRUESub user’s UID 
errCodeintegerFALSEError code for rejection (only valid for rejected request) 
errMessage }stringFALSEError message for rejection (only valid for rejected request) 

 API users should evaluate the business impact caused by the new feature, further to make relevant change in client’s application, if needed.

All the changes will be updated on Huobi API Docs on the effective date.