Documentation
¶
Index ¶
- Variables
- type Event
- func NewPriceEvent(t time.Time, content tick.Tick) Event
- func NewStatusEvent(t time.Time, content Status) Event
- func OnlyKeepEarliestSameTimeEvents(evts []Event, endTime time.Time) (earliestTime time.Time, filtered []Event)
- func PriceEventFromCandlestick(exchange, pair string, currentPriceType candlestick.Price, t time.Time, ...) (Event, error)
- type PricesSubscription
- type Status
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnknownType = errors.New("unknown type") ErrMismatchingType = errors.New("mismatching type") )
Functions ¶
This section is empty.
Types ¶
type Event ¶
func PriceEventFromCandlestick ¶
func PriceEventFromCandlestick( exchange, pair string, currentPriceType candlestick.Price, t time.Time, cs candlestick.Candlestick, ) (Event, error)
func (Event) MarshalBinary ¶
func (*Event) UnmarshalBinary ¶
type PricesSubscription ¶
Click to show internal directories.
Click to hide internal directories.