Documentation ¶
Index ¶
- type CandlestickService
- func (s *CandlestickService) Do(ctx context.Context) (*candlestick.List, error)
- func (s *CandlestickService) EndTime(endTime timestamp.Timestamp) candlesticks.CandlestickService
- func (s *CandlestickService) Limit(limit int) candlesticks.CandlestickService
- func (s *CandlestickService) Pair() pair.Pair
- func (s *CandlestickService) Period() period.Period
- func (s *CandlestickService) StartTime(startTime timestamp.Timestamp) candlesticks.CandlestickService
- type Config
- type Service
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 ¶
func (s *CandlestickService) Do(ctx context.Context) (*candlestick.List, error)
Do will execute a request for candlesticks
func (*CandlestickService) EndTime ¶
func (s *CandlestickService) EndTime(endTime timestamp.Timestamp) candlesticks.CandlestickService
EndTime will specify the time where the list ends for next candlesticks request
func (*CandlestickService) Limit ¶
func (s *CandlestickService) Limit(limit int) candlesticks.CandlestickService
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 ¶
func (s *CandlestickService) StartTime(startTime timestamp.Timestamp) candlesticks.CandlestickService
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) Service ¶
func (s *Service) Service(symbol pair.Pair, interval period.Period) (candlesticks.CandlestickService, error)
Candlesticks will create a new real candlestick service
Click to show internal directories.
Click to hide internal directories.