class_docstr: A class for handling connections and interactions with the CoinBase API.
  
  Attributes:
      api_key (str): API key
      api_secret (str): API secret
      is_connected (bool): Whether or not the API client is connected to CoinBase.
docstr: Gets aggregate trade data for a symbol based on given parameters
  
  Returns results as a pandas DataFrame.
  
  Args:
      params (Dict): Trade data params (symbol, interval)
docstr_tok: ["Gets","aggregate","trade","data","for","a","symbol","based","on","given","parameters","Returns","results","as","a","pandas","DataFrame",".","Args",":","params","(","Dict",")",":","Trade","data","params","(","symbol",",","interval",")"]
code: def _get_candle(self, params: Dict = None) -> pd.DataFrame:
      """Gets aggregate trade data for a symbol based on given parameters
  
      Returns results as a pandas DataFrame.
  
      Args:
          params (Dict): Trade data params (symbol, interval)
      """
      if "symbol" not in params:
          raise ValueError(
              'Missing "symbol" param to fetch trade data for.'
          )
      if "interval" not in params:
          raise ValueError(
              'Missing "interval" param (60, 300, 900, 3600, 21600, 86400).'
          )
  
      candle = self.get_coinbase_candle(
          params["symbol"], int(params["interval"])
      )
      return candle
  
imports: import pandas
  from typing import Dict
  import datetime
  import hmac
  import hashlib
  import time
  import requests
  from collections import OrderedDict
  import base64
  from mindsdb.integrations.handlers.coinbase_handler.coinbase_tables import CoinBaseAggregatedTradesTable
  from mindsdb.integrations.libs.api_handler import APIHandler
  from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE
  from mindsdb.integrations.libs.response import HandlerStatusResponse, HandlerResponse
  from mindsdb_sql import parse_sql
label_desc: Use image node_id 5 for calling the CoinBaseHandler obj's underlying member method code with example usage: obj._get_candle(params) and returns: candle