package
0.0.0-20250311023717-5c21e974eed8
Repository: https://github.com/thrasher-corp/gocryptotrader.git
Documentation: pkg.go.dev

# Functions

CalculateTimePeriodsInRange can break down start and end times into time periods eg 1 hourly intervals.
FindTimeRangesContainingData will break the start and end into time periods using the provided period it will then check whether any comparisonTimes are within those periods and concatenate them eg if no comparisonTimes match, you will receive 1 TimeRange of Start End with dataInRange = false eg2 if 1 comparisonTime matches in the middle of start and end, you will receive three ranges.

# Structs

TimePeriod is a basic type which will know whether a period in time contains data.
TimePeriodCalculator is able analyse a time span and either break them down into chunks, or determine ranges that contain data or not.
TimeRange holds a start and end dat range and whether that range contains data.