Versions in this module Expand all Collapse all v0 v0.0.1 Feb 18, 2022 Changes in this version + type LatestData struct + ID int + Name string + Quotes []*Quote + Slug string + Symbol string + type LatestResponse struct + Data []*LatestData + Status *Status + type Message struct + Content []byte + Typ int + type Quote struct + Name int + Price float64 + type Quoter struct + func New(symbols ...Symbol) (*Quoter, error) + func (q *Quoter) Close() + func (q *Quoter) Price(target, symbol Symbol) float64 + type Socket struct + func NewSocket(wsURL string, header http.Header) (*Socket, error) + func (s *Socket) Close() error + func (s *Socket) Message() <-chan Message + func (s *Socket) SendStr(msg string) error + func (s *Socket) Wait() <-chan error + type Status struct + ErrorCode int + ErrorMessage string + Timestamp string + type SubscribeRequest struct + Data struct{ ... } + ID string + Method string + func NewSubscribeRequest(cryptoIDs []int) *SubscribeRequest + type SubscribeResponse struct + Data struct{ ... } + ID string + S string + type Symbol string + const BTC + const CNY + const ETH + const USD