LiskArchive / lisk-explorer

📦 Lisk blockchain explorer
https://explorer.lisk.io/
GNU General Public License v3.0
121 stars 65 forks source link

Fix market watcher candles endpoints #368

Closed reyraa closed 6 years ago

reyraa commented 6 years ago

Expected behaviour

Candles should return the market data continuously without any frequent errors.

Actual behaviour

Currently the endpoints don't respond as expected in frequent time ranges.

Steps to reproduce

Navigate to /marketWatcher

MichalTuleja commented 6 years ago

The Bittrex API has changed breaking the previous method, but there are two solutions available:

I've decided to implement the second solution, while despite the difference in the data structure it provides us whole dataset at one request.

The HTTP request to the 2.0 API: https://bittrex.com/Api/v2.0/pub/market/GetTicks?marketName=BTC-LSK&tickInterval=fiveMin