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

# Functions

CalculateCandleDateRanges will calculate the expected candle data in intervals in a date range If an API is limited in the amount of candles it can make in a request, it will automatically separate ranges into the limit.
CreateIntervalTime is a simple helper function to set the time twice.
CreateKline creates candles out of trade history data for a set time interval.
CreateKlineRequest generates a `Request` type for interval conversions supported by an exchange.
DeployExchangeIntervals aligns and stores supported intervals for an exchange for future matching.
LoadFromDatabase returns Item from database seeded data.
LoadFromGCTScriptCSV loads kline data from a CSV file.
StoreInDatabase returns Item from database seeded data.
TotalCandlesPerInterval returns the total number of candle intervals between the start and end date.

# Constants

Consts here define basic time intervals.
Consts here define basic time intervals.
Consts here define basic time intervals.
Consts here define basic time intervals.
Consts here define basic time intervals.
Consts here define basic time intervals.
Consts here define basic time intervals.
Consts here define basic time intervals.
Consts here define basic time intervals.
Consts here define basic time intervals.
Consts here define basic time intervals.
Consts here define basic time intervals.
Consts here define basic time intervals.
Consts here define basic time intervals.
Consts here define basic time intervals.
Consts here define basic time intervals.
Consts here define basic time intervals.
Consts here define basic time intervals.
Consts here define basic time intervals.
Consts here define basic time intervals.
Consts here define basic time intervals.
Consts here define basic time intervals.
Consts here define basic time intervals.
Consts here define basic time intervals.
Consts here define basic time intervals.
Consts here define basic time intervals.
Consts here define basic time intervals.
Consts here define basic time intervals.
Consts here define basic time intervals.
Consts here define basic time intervals.
Consts here define basic time intervals.
Consts here define basic time intervals.
Consts here define basic time intervals.
Consts here define basic time intervals.

# Variables

ErrCannotConstructInterval defines an error when an interval cannot be constructed from a list of support intervals.
ErrCanOnlyUpscaleCandles returns when attempting to upscale candles.
ErrInsufficientCandleData defines an error when you have a candle that requires multiple candles to generate.
ErrInvalidInterval defines when an interval is invalid e.g.
ErrItemNotEqual returns when comparison between two kline items fail.
ErrItemUnderlyingNotEqual returns when the underlying pair is not equal.
ErrNotFoundAtTime returned when looking up a candle at a specific time.
ErrNoTimeSeriesDataToConvert is returned when no data can be processed.
ErrRequestExceedsExchangeLimits locale for exceeding rate limits message.
ErrRequestExceedsMaxLookback defines an error for when you cannot look back further than what is allowed.
ErrUnsetName is an error for when the exchange name is not set.
ErrUnsupportedInterval returns when the provided interval is not supported by an exchange.
ErrValidatingParams defines an error when the kline params are either not enabled or are invalid.
ErrWholeNumberScaling returns when old interval data cannot neatly fit into new interval size.
PartialCandle is string flag for when the most recent candle is partially formed.
SupportedIntervals is a list of all supported intervals.

# Structs

Bollinger defines a return type for the bollinger bands.
Candle holds historic rate information.
ExchangeCapabilitiesEnabled all kline related exchange enabled options.
ExchangeCapabilitiesSupported all kline related exchange supported options.
ExchangeIntervals stores the supported intervals in an optimized lookup table with a supplementary aligned retrieval list.
ExtendedRequest used in extended functionality for when candles requested exceed exchange limits and require multiple requests.
IntervalCapacity is used to store the interval and capacity for a candle return.
IntervalData is used to monitor which candles contain data to determine if any data is missing.
IntervalRange is a subset of candles based on exchange API request limits.
IntervalRangeHolder holds the entire range of intervals and the start end dates of everything.
IntervalTime benchmarks demonstrate, see BenchmarkJustifyIntervalTimeStoringUnixValues1 && BenchmarkJustifyIntervalTimeStoringUnixValues2.
Item holds all the relevant information for internal kline elements.
MACD defines MACD values.
OHLC is a connector for technical analysis usage.
Request is a helper to request and convert time series to a required candle interval.

# Type aliases

Interval type for kline Interval usage.