entities

package
v0.0.0-...-5e10106 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 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

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

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