n0mad01 / node.bittrex.api

No longer maintained
MIT License
183 stars 187 forks source link

How to restrict getcandles to a shorter timeframe? #81

Open talvasconcelos opened 6 years ago

talvasconcelos commented 6 years ago

Has the question title states, i need to get the candle data but only like 30 periods, can i restrict the amount of data to collect by defining a timeframe?

jackson-sandland commented 6 years ago

Apparently, the Bittrex API docs have not been updated to reflect how to use startTime. A temporary solution, tho not ideal, would be to determine the size of the array that is returned, and slice it to the date range you need based on the indices. I'm looking forward to startTime working as well - but this may help in the interim. :)