code: public function queryHistoricStats(array $parameters)
      {
          $uri = $this->_getHistoricalEndpoint()
              . '?region='.$parameters['region']
              . '&from='.$parameters['from']
              . '&to='.$parameters['to']
              . '&by='
              . $parameters['sample_rate'];
  
          $result = $this->_fetch($uri);
  
          return $result;
      }
docs: Query for historic stats
  
  @param array $parameters
  @return bool|mixed
  @throws LocalizedException