Documentation ¶ Index ¶ Constants func Connect(ctx context.Context, ch chan Response, channels, symbols []string, ...) error func ConnectForPrivate(ctx context.Context, ch chan Response, key, secret string, channels []string, ...) error type Orderbook type Response Constants ¶ View Source const ( UNDEFINED = iota ERROR TICKER TRADES ORDERBOOK ORDERS FILLS ) Variables ¶ This section is empty. Functions ¶ func Connect ¶ func Connect(ctx context.Context, ch chan Response, channels, symbols []string, l *log.Logger) error func ConnectForPrivate ¶ func ConnectForPrivate(ctx context.Context, ch chan Response, key, secret string, channels []string, l *log.Logger, subaccount ...string) error Types ¶ type Orderbook ¶ type Orderbook struct { Bids [][]float64 `json:"bids"` Asks [][]float64 `json:"asks"` // Action return update/partial Action string `json:"action"` Time types.FtxTime `json:"time"` Checksum int `json:"checksum"` } type Response ¶ type Response struct { Type int Symbol string Ticker markets.Ticker Trades []markets.Trade Orderbook Orderbook Orders orders.Order Fills fills.Fill Results error } Source Files ¶ View all Source files websocket.go Click to show internal directories. Click to hide internal directories.