Documentation ¶
Index ¶
- func BinanceSymbol(p pair.Pair) string
- func Intervals() []period.Period
- func KLineTimeToTimestamp(t int64) timestamp.Timestamp
- func KLineToCandlestick(k binance.Kline, p period.Period, now timestamp.Timestamp) (timestamp.Timestamp, candlestick.Candlestick, error)
- func KLinesToCandlesticks(pair pair.Pair, period 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, p period.Period, now timestamp.Timestamp) (timestamp.Timestamp, candlestick.Candlestick, error)
KLineToCandlestick will convert KLine binance format for Candlestick
func KLinesToCandlesticks ¶
func KLinesToCandlesticks(pair pair.Pair, period period.Period, kl []*binance.Kline, now timestamp.Timestamp) (*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.