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.
20 lines
590 B
20 lines
590 B
from huobi.connection.restapi_sync_client import RestApiSyncClient
|
|
from huobi.constant import *
|
|
from huobi.utils.json_parser import *
|
|
from huobi.model.algo import *
|
|
|
|
|
|
class GetOrderHistoryService:
|
|
|
|
def __init__(self, params):
|
|
self.params = params
|
|
|
|
def request(self, **kwargs):
|
|
channel = "/v2/algo-orders/history"
|
|
|
|
def parse(dict_data):
|
|
data = dict_data.get("data", {})
|
|
return default_parse_list_dict(data, OrderHistoryItem)
|
|
|
|
return RestApiSyncClient(**kwargs).request_process(HttpMethod.GET_SIGN, channel, self.params, parse)
|