Documentation ¶
Index ¶
- func Intervals() []int64
- func KLineToCandleStick(k binance.Kline) (models.CandleStick, error)
- func KLinesToCandleSticks(kl []*binance.Kline) ([]models.CandleStick, error)
- func PeriodToInterval(period int64) (e string, err error)
- func TimeCandleStickToKLine(t time.Time) int64
- func TimeKLineToCandleStick(t int64) time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Intervals ¶
func Intervals() []int64
Intervals represents every intervals supported by Binance API
func KLineToCandleStick ¶
KLineToCandleStick will convert KLine binance format for CandleStick
func KLinesToCandleSticks ¶
KLinesToCandleSticks will transform a slice of binance format for CandleStick
func PeriodToInterval ¶
PeriodToInterval converts an interval to its corresponding epoch
func TimeCandleStickToKLine ¶
TimeCandleStickToKLine will take the time from a candle and will convert it to Kline time
func TimeKLineToCandleStick ¶
TimeKLineToCandleStick will take the time from a kline and will convert it to candle time
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.