public override async Task <IEnumerable <Position> > RecognizeLivePositions() { Log.Information("Getting live positions"); string filepath = GetNextPortfolioFilepath(); await TakePortfolioScreenshot(filepath); IEnumerable <Position> positions = await ImageToPositionsConverter.BuildModelsFromImage(filepath); //IList <Position> positions = await ImageToPositionsConverter.GetPositionsFromImage("C:/Users/Admin/WindowsServices/MarketCode/LottoXService/screenshots/new.json", // "C:/Users/Admin/WindowsServices/MarketCode/LottoXService/screenshots/new.json" // ); return(positions); }
public async Task <IEnumerable <Position> > GetPositionsFromImage(string filePath, string?writeToJsonPath = null) { IEnumerable <Position> positions = await ImageToPositionsConverter.BuildModelsFromImage(filePath, writeToJsonPath); return(positions); }