ftx

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FTX

type FTX struct {
	Pair       string
	Orderbook  chan *ob.Orderbook
	Connection *websocket.Conn
}

func NewFTX

func NewFTX(pair string) (*FTX, error)

func (*FTX) Close

func (c *FTX) Close()

type Message

type Message struct {
	Channel string
	Market  string
	Type    string
	Data    MessageData
}

Struct for deserialising messages received over the FTX websocket

type MessageData

type MessageData struct {
	Action   string
	Time     float64
	Checksum float64
	Bids     [][]float64
	Asks     [][]float64
}

Jump to

Keyboard shortcuts

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