cryptocompare

package
v0.0.0-...-84ea768 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Vendor = "cryptocompare"
)

Variables

View Source
var Create = func(conf config.TickerConfig) (interface{}, error) {
	if !conf.Enabled {
		return nil, nil
	}
	w := &cryptoCompareWrapper{conf: conf}
	w.init()
	enabledExchanges = conf.EnabledExchanges
	return w, nil
}

Functions

func HasSubscription

func HasSubscription(subs string) bool

func RunWebsockerStub

func RunWebsockerStub()

func SendMessage

func SendMessage(message []byte) error

func ShutdownWebsockerStub

func ShutdownWebsockerStub()

func WebsocketStubReadMessage

func WebsocketStubReadMessage() []byte

Types

type JSONParams

type JSONParams struct {
	Action string   `json:"action"`
	Subs   []string `json:"subs"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL