hootnot / oanda-api-v20

OANDA REST-V20 API wrapper. Easy access to OANDA's REST v20 API with oandapyV20 package. Checkout the Jupyter notebooks!
MIT License
398 stars 107 forks source link

Fix future date #91

Closed hootnot closed 7 years ago

hootnot commented 7 years ago

InstrumentsCandlesFactory can give a 'date in the future error' when retrieving historical data. Source of this problem is:

datetime.now()

instead of

datetime.utcnow()
coveralls commented 7 years ago

Coverage Status

Coverage decreased (-0.0008%) to 99.247% when pulling fdd470ea86b1b581c37917b1f80bbeb56ed861cb on fix-future-date into b146400a8b573e236461d52d79190e476b821e79 on master.