async def get_kline(self, market_name: str, resolution: int, limit: int=None, start_time: int=None, end_time: int=None) -> dict:
    params = {'resolution': resolution}
    if limit:
        params['limit'] = limit
    if start_time:
        params['start_time'] = start_time
    if end_time:
        params['end_time'] = end_time
    return (await self._request('GET', f'markets/{market_name}/candles', params=params))
async def get_kline(self, market_name: str, resolution: int, limit: int=None, start_time: int=None, end_time: int=None) -> dict:
    params = {'resolution': resolution}
    if limit:
        params['limit'] = limit
    if start_time:
        params['start_time'] = start_time
    if end_time:
        params['end_time'] = end_time
    return (await self._request('GET', f'markets/{market_name}/candles', params=params))