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.

29 lines
754 B

from huobi.connection.restapi_sync_client import RestApiSyncClient
from huobi.constant import *
from huobi.model.trade import *
from huobi.utils import *
from huobi.utils.json_parser import default_parse_data_as_long
class PostCancelWithdrawService:
def __init__(self, params):
self.params = params
def request(self, **kwargs):
withdraw_id_params = self.params["withdraw-id"]
def get_channel():
path = "/v1/dw/withdraw-virtual/{}/cancel"
return path.format(withdraw_id_params)
def parse(dict_data):
return default_parse_data_as_long(dict_data, None)
return RestApiSyncClient(**kwargs).request_process(HttpMethod.POST_SIGN, get_channel(), self.params, parse)