coinbase

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 Coinbase

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

func NewCoinbase

func NewCoinbase(pair string) (*Coinbase, error)

func (*Coinbase) Close

func (c *Coinbase) Close()

type Message

type Message struct {
	Type      string
	ProductId string
	Bids      [][]string
	Asks      [][]string
	Time      string
	Changes   [][]string
}

Struct for deserialising messages received over the Coinbase websocket

Jump to

Keyboard shortcuts

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