from huobi.connection.restapi_sync_client import RestApiSyncClient
from huobi.constant.system import HttpMethod
from huobi.model.generic import *
from huobi.utils import *


class GetExchangeSymbolsService:

    def __init__(self, params):
        self.params = params

    def request(self, **kwargs):
        channel = "/v1/common/symbols"

        def parse(dict_data):
            data_list = dict_data.get("data", [])
            return default_parse_list_dict(data_list, Symbol, [])

        return RestApiSyncClient(**kwargs).request_process(HttpMethod.GET, channel, self.params, parse)

4ce0d7e608b960b2ad1970832710b84d4e2c3356
<mask token>


class GetExchangeSymbolsService:
    <mask token>
    <mask token>

<mask token>


class GetExchangeSymbolsService:

    def __init__(self, params):
        self.params = params
    <mask token>

<mask token>


class GetExchangeSymbolsService:

    def __init__(self, params):
        self.params = params

    def request(self, **kwargs):
        channel = '/v1/common/symbols'

        def parse(dict_data):
            data_list = dict_data.get('data', [])
            return default_parse_list_dict(data_list, Symbol, [])
        return RestApiSyncClient(**kwargs).request_process(HttpMethod.GET,
            channel, self.params, parse)

from huobi.connection.restapi_sync_client import RestApiSyncClient
from huobi.constant.system import HttpMethod
from huobi.model.generic import *
from huobi.utils import *


class GetExchangeSymbolsService:

    def __init__(self, params):
        self.params = params

    def request(self, **kwargs):
        channel = '/v1/common/symbols'

        def parse(dict_data):
            data_list = dict_data.get('data', [])
            return default_parse_list_dict(data_list, Symbol, [])
        return RestApiSyncClient(**kwargs).request_process(HttpMethod.GET,
            channel, self.params, parse)

from huobi.connection.restapi_sync_client import RestApiSyncClient
from huobi.constant.system import HttpMethod
from huobi.model.generic import *
from huobi.utils import *


class GetExchangeSymbolsService:

    def __init__(self, params):
        self.params = params

    def request(self, **kwargs):
        channel = "/v1/common/symbols"

        def parse(dict_data):
            data_list = dict_data.get("data", [])
            return default_parse_list_dict(data_list, Symbol, [])

        return RestApiSyncClient(**kwargs).request_process(HttpMethod.GET, channel, self.params, parse)
