[nim] Implemented fetching of series data from API with termination criteria. A Bad implementation because it makes the app hang in case the series takes long to get completed