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.

21 lines
706 B

from huobi.connection.restapi_sync_client import RestApiSyncClient
from huobi.constant import *
from huobi.model.margin.general_repay_loan_result import GeneralRepayLoanResult
from huobi.utils.json_parser import default_parse_list_dict
class PostGeneralRepayLoanService:
def __init__(self, params):
self.params = params
def request(self, **kwargs):
def get_channel():
path = "/v2/account/repayment"
return path
def parse(dict_data):
return default_parse_list_dict(dict_data.get("data", {}), GeneralRepayLoanResult)
return RestApiSyncClient(**kwargs).request_process(HttpMethod.POST_SIGN, get_channel(), self.params, parse)