entities

package
v0.0.0-...-56c67ce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BinanceSymbol

func BinanceSymbol(p pair.Pair) string

func Intervals

func Intervals() []period.Period

Intervals represents every intervals supported by Binance API

func KLineTimeToTimestamp

func KLineTimeToTimestamp(t int64) timestamp.Timestamp

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

func PeriodToInterval(interval period.Period) (e string, err error)

PeriodToInterval converts an interval to its corresponding epoch

func TimestampToKLineTime

func TimestampToKLineTime(t timestamp.Timestamp) int64

TimestampToKLineTime will take the time from a candle and will convert it to Kline time

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL