code: def get_data(self, contract=None):
          
          if contract is None:
              return self._data
          if contract in self._data.keys():
              return {contract: self._data[contract]}
          raise PyHydroQuebecError("Contract {} not found".format(contract))
docs: Return collected data.