diff --git a/lib/prices.js b/lib/prices.js
index <HASH>..<HASH> 100644
--- a/lib/prices.js
+++ b/lib/prices.js
@@ -93,8 +93,9 @@ Prices.prototype.getValues = function(opts, callback) {
           // console.log('invalid date ' + row.StartTime)
           continue
         }
-        else if ((startDate && date.isBefore(startDate)) ||
-          (endDate && date.isAfter(endDate))) {
+        else if ((opts.url != config.priceUrlHourly) &&
+                 (((startDate && date.isBefore(startDate))) ||
+                  ((endDate && date.isAfter(endDate))))) {
           // console.log('date out of given range ' + row.StartTime)
           continue
         }
diff --git a/test/pricesTest.js b/test/pricesTest.js
index <HASH>..<HASH> 100644
--- a/test/pricesTest.js
+++ b/test/pricesTest.js
@@ -42,7 +42,7 @@ describe('Prices ', function () {
       area: 'FI',
       endDate: '2016-04-01T23:59:59+0300'
     }, function (error, response) {
-      response.should.have.property('length', 23)
+      response.should.have.property('length', 24)
       response[0].should.have.property('value', 20.69)
       response[0].date.format('YYYY-MM-DD').should.equal('2016-04-01')
       done()
return also out-of-bounds values for hourly()