code: def bars(self, symbol='000001', category='9', start='0', offset='100'):
          '''
          获取实时日K线数据
  
          :param symbol: 股票代码
          :param category: 数据类别
          :param market: 证券市场
          :param start: 开始位置
          :param offset: 每次获取条数
          :return: pd.dataFrame or None
          '''
          market = get_stock_market(symbol)
  
          with self.client.connect(*self.bestip):
              data = self.client.get_security_bars(
                  int(category), int(market), str(symbol), int(start), int(offset))
              return self.client.to_df(dataf bars(self, symbol='000001', category='9', start='0', offset='100'):
          '''
          获取实时日K线数据
  
          :param symbol: 股票代码
          :param category: 数据类别
          :param market: 证券市场
          :param start: 开始位置
          :param offset: 每次获取条数
          :return: pd.dataFrame or None
          '''
          market = get_stock_market(symbol)
  
          with self.client.connect(*self.bestip):
              data = self.client.get_security_bars(
                  int(category), int(market), str(symbol), int(start), int(offset))
              return self.client.to_df(data)
docs: 获取实时日K线数据
  
          :param symbol: 股票代码
          :param category: 数据类别
          :param market: 证券市场
          :param start: 开始位置
          :param offset: 每次获取条数
          :return: pd.dataFrame or None