public static function rates($base = null, $date = null, $api = null, $https = null,
                                 $useCache = null, $cacheMin = null, $runastest = false) : array
    {
        $rates = new self($api, $https, $useCache, $cacheMin, $runastest);
        return $rates->getRateResults($base, $date);
    }
public static function rates($base = null, $date = null, $api = null, $https = null,
                                 $useCache = null, $cacheMin = null, $runastest = false) : array
    {
        $rates = new self($api, $https, $useCache, $cacheMin, $runastest);
        return $rates->getRateResults($base, $date);
    }
public static function rates ( $ base = null , $ date = null , $ api = null , $ https = null , $ useCache = null , $ cacheMin = null , $ runastest = false ) : array { $ rates = new self ( $ api , $ https , $ useCache , $ cacheMin , $ runastest ) ; return $ rates -> getRateResults ( $ base , $ date ) ; }
Get rates for given currency an optional date, defaults to USD

@param null|string $base
@param null|string $date
@param null|string $api override Provider setting
@param null|bool $https override https setting
@param null|bool $useCache override cache setting
@param null|int $cacheMin override cache setting
@param null|bool $runastest for testing, uses local test data.

@return array
Get rates for given currency an optional date defaults to USD