ravivooda / stocks

1 stars 0 forks source link

Fix the zero index assumption made above #18

Open github-actions[bot] opened 2 years ago

github-actions[bot] commented 2 years ago

https://github.com/ravivooda/stocks/blob/7a07a8d11a3b54cfc6a95a59d063d1e693f26dda/database/insights/logger.go#L58


    for _, overlap := range analysis.DetailedOverlap {
        lPercent := overlap.IndividualPercentagesMap[analysis.LETFHolder]
        // TODO: Fix the zero index assumption made above

        columnsToWrite := []string{string(overlap.Ticker), floatToString(lPercent)}
        for i, holdee := range analysis.LETFHoldees {