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.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
from huobi . connection . restapi_sync_client import RestApiSyncClient
from huobi . constant import *
from huobi . utils . json_parser import default_parse_data_as_long
'''
https://huobiapi.github.io/docs/spot/v1/cn/#4e53c0fccd
撤销订单( 基于client order ID)
API Key 权限:交易
限频值( NEW) : 100次/2s
此接口基于client-order-id( 24小时内有效) 发送一个撤销订单的请求。
撤单个订单建议通过接口/v1/order/orders/ { order-id}/submitcancel, 会更快更稳定
请求参数:
client-order-id 用户自编订单号, 必须24小时内已有该订单存在, 否则下次下单时不允许用此值
'''
class PostCancelClientOrderService :
def __init__ ( self , params ) :
self . params = params
def request ( self , * * kwargs ) :
channel = " /v1/order/orders/submitCancelClientOrder "
def parse ( dict_data ) :
return default_parse_data_as_long ( dict_data , None )
return RestApiSyncClient ( * * kwargs ) . request_process ( HttpMethod . POST_SIGN , channel , self . params , parse )