You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
591 B
19 lines
591 B
from huobi.connection.restapi_sync_client import RestApiSyncClient
|
|
from huobi.constant.system import HttpMethod
|
|
from huobi.utils import *
|
|
from huobi.model.subuser import *
|
|
|
|
|
|
class PostSubuserApikeyGenerationService:
|
|
|
|
def __init__(self, params):
|
|
self.params = params
|
|
|
|
def request(self, **kwargs):
|
|
channel = "/v2/sub-user/api-key-generation"
|
|
|
|
def parse(dict_data):
|
|
return default_parse(dict_data.get("data", {}), SubuserApikeyGeneration)
|
|
|
|
return RestApiSyncClient(**kwargs).request_process(HttpMethod.POST_SIGN, channel, self.params, parse)
|