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
397 stars 107 forks source link

InstrumentsCandlesFactory skips last request #97

Closed hootnot closed 6 years ago

hootnot commented 6 years ago

The InstrumentsCandlesFactory skips the request that should get the last N-records, where N is less than the standard count of 500 or the specified count.

The loop used to determine the number of requests and request parameters exits 1 request to early. So the request for last N records is not generated.

This is corrected.