live

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 New

func New(config binance.Config) binance.Interface

New will create a new real binance service

Types

type CandleStickService

type CandleStickService struct {
	// contains filtered or unexported fields
}

CandleStickService is the real service for candlesticks

func (*CandleStickService) Do

Do will execute a request for candlesticks

func (*CandleStickService) EndTime

EndTime will specify the time where the list ends for next candlesticks request

func (*CandleStickService) Limit

Limit will specify the number of candlesticks the list should have at its maximum If the limit is higher than the default limit, it will be limited to this one

func (*CandleStickService) Pair

func (s *CandleStickService) Pair() pair.Pair

func (*CandleStickService) Period

func (s *CandleStickService) Period() period.Period

func (*CandleStickService) StartTime

StartTime will specify the time where the list starts for next candlesticks request

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service represents the real Binance service

func (*Service) CandleSticks

func (s *Service) CandleSticks(symbol pair.Pair, interval period.Period) (binance.CandleStickServiceInterface, error)

CandleSticks will create a new real candlestick service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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