Documentation ¶
Index ¶
- func BinanceSymbol(p pair.Pair) string
- func Intervals() []period.Period
- func KLineTimeToTimestamp(t int64) timestamp.Timestamp
- func KLineToCandleStick(k binance.Kline) (timestamp.Timestamp, candlestick.CandleStick, error)
- func KLinesToCandleSticks(symbol pair.Pair, interval period.Period, kl []*binance.Kline) (*candlestick.List, error)
- func PeriodToInterval(interval period.Period) (e string, err error)
- func TimestampToKLineTime(t timestamp.Timestamp) int64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BinanceSymbol ¶
func KLineTimeToTimestamp ¶
KLineTimeToTimestamp will take the time from a kline and will convert it to candle time
func KLineToCandleStick ¶
func KLineToCandleStick(k binance.Kline) (timestamp.Timestamp, candlestick.CandleStick, error)
KLineToCandleStick will convert KLine binance format for CandleStick
func KLinesToCandleSticks ¶
func KLinesToCandleSticks(symbol pair.Pair, interval period.Period, kl []*binance.Kline) (*candlestick.List, error)
KLinesToCandleSticks will transform a slice of binance format for CandleStick
func PeriodToInterval ¶
PeriodToInterval converts an interval to its corresponding epoch
func TimestampToKLineTime ¶
TimestampToKLineTime will take the time from a candle and will convert it to Kline time
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.