santiment / sanpy

Santiment API Python Client
MIT License
96 stars 29 forks source link

Fix to_date parameter #95

Closed spiderjako closed 4 years ago

spiderjako commented 4 years ago

The following script:

get(
    "transaction_volume/santiment",
    from_date="2018-01-01T00:00:00Z",
    to_date="2018-01-01T01:00:00Z",
    interval="5m"
)

Returns 300 records, from 1st to 2nd of January, 2018, which is false. It should return only records for the first hour of 01.01.2018. Problem was an implementation detail, which adds an additional 23:59:59 hours to the to_date.