spot

package
v0.3.0-pre Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDepth5Channel

func NewDepth5Channel(sym exchange.SpotSymbol) exchange.Channel

func NewTickerChannel

func NewTickerChannel(sym exchange.SpotSymbol) exchange.Channel

Types

type Depth5

type Depth5 struct {
	Asks   []DepthElem
	Bids   []DepthElem
	Symbol exchange.SpotSymbol
	Time   time.Time
}

Depth5

type Depth5Channel

type Depth5Channel struct {
	// contains filtered or unexported fields
}

func (*Depth5Channel) String

func (dc *Depth5Channel) String() string

type DepthElem

type DepthElem struct {
	Price  decimal.Decimal
	Amount decimal.Decimal
	Orders decimal.Decimal
}

type Ticker

type Ticker struct {
	Symbol         exchange.SpotSymbol
	Last           decimal.Decimal
	LastQty        decimal.Decimal
	BestBid        decimal.Decimal
	BestBidSize    decimal.Decimal
	BestAsk        decimal.Decimal
	BestAskSize    decimal.Decimal
	Open24H        decimal.Decimal
	High24H        decimal.Decimal
	Low24H         decimal.Decimal
	BaseVolume24H  decimal.Decimal
	QuoteVolume24H decimal.Decimal
	Time           time.Time
}

type TickerChannel

type TickerChannel struct {
	// contains filtered or unexported fields
}

func (*TickerChannel) String

func (tc *TickerChannel) String() string

Jump to

Keyboard shortcuts

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