ferdn4ndo / candlestick-data-lake

A data lake application for candlestick crawling, storage and syncronous (API) and asyncronous (WebSockets) serving
MIT License
0 stars 0 forks source link

Interface "candle" and "symbol" objects on clients and services #17

Open ferdn4ndo opened 3 years ago

ferdn4ndo commented 3 years ago

For now, we're basing our client objects on the ClientBase class, which uses a dictionary with the attributes "timestamp", "open", "high", "low", "close" and "volume". This is hardcoded whenever the candlestick is interfaced (at the moment this was written, only at src/app/clients/binance/binance_client.py and at src/app/services/consumer_service.py).

We should have an exclusive object to handle this data, having a consistent schema and avoiding checking if the keys are present.

ferdn4ndo commented 3 years ago

The same applies to the "symbol" objects.