Real-time data through the Cryptocompare API

For real-time data, the Cryptocompare API is used (https://www.cryptocompare.com/api/#), more specifically HistoMinute (https://www.cryptocompare.com/api/#-api-data-histominute-), which gives us access to OHLC data for the past seven days at most. The details of the API will be discussed in a section devoted to implementation, but the API response is very similar to our historical dataset, and this data is retrieved using a regular HTTP request. For example, a simple JSON response from https://min-api.cryptocompare.com/data/histominute?fsym=BTC&tsym=USD&limit=23&aggregate=1&e=Bitstamp has the following structure:

{    "Response":"Success",    "Type":100,    "Aggregated":false,    "Data": [{"time":1510774800,"close":7205,"high":7205,"low":7192.67,"open":7198, ...

Get Scala Machine Learning Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.