realtime

package
v0.0.0-...-55b3b0b Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PRODUCTION = "wss://api.dydx.exchange/v3/ws"
	STAGING    = "wss://api.stage.dydx.exchange/v3/ws"
)
View Source
const (
	UNDEFINED = "undefined"
	ERROR     = "error"
	ACCOUNT   = "v3_accounts"
	MARKETS   = "v3_markets"
	ORDERBOOK = "v3_orderbook"
	TRADES    = "v3_trades"
)

Variables

This section is empty.

Functions

func Connect

func Connect(ctx context.Context, ch chan Response, channels, symbols []string, private *private.Private, l *log.Logger) error

Types

type Account

type Response

type Response struct {
	Type         string `json:"type"`
	Channel      string `json:"channel"`
	ConnectionID string `json:"connection_id,omitempty"`
	ID           string `json:"id,omitempty"`
	MessageID    int    `json:"message_id,omitempty"`
	Contents     any    `json:"-"`

	Account   Account                  `json:"-"`
	Markets   public.MarketsResponse   `json:"-"`
	Trades    public.TradesResponse    `json:"-"`
	Orderbook public.OrderbookResponse `json:"-"`

	Results error
}

Jump to

Keyboard shortcuts

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