Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithContext ¶
Types ¶
type CandlestickService ¶
type CandlestickService interface { Do(ctx context.Context) (*candlestick.List, error) StartTime(startTime timestamp.Timestamp) CandlestickService EndTime(endTime timestamp.Timestamp) CandlestickService Limit(limit int) CandlestickService Period() period.Period Pair() pair.Pair }
CandlestickService is the interface for candle stick services
type Candlesticks ¶
type Candlesticks interface {
Service(pair pair.Pair, period period.Period) (CandlestickService, error)
}
Candlesticks is an interface for service
func FromContext ¶
func FromContext(ctx context.Context, exchange string) (Candlesticks, bool)
type Exchanges ¶
type Exchanges map[string]Candlesticks
Click to show internal directories.
Click to hide internal directories.