binance

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

This section is empty.

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 Config

type Config struct {
	ApiKey    string `mapstructure:"api_key"`
	SecretKey string `mapstructure:"secret_key"`
}

type Service

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

Service represents the real Binance service

func New

func New(config Config) (*Service, error)

New will create a new real binance service

func (*Service) Service

func (s *Service) Service(symbol pair.Pair, interval period.Period) (candlesticks.CandlestickService, 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