tradeexecutionupdate

package
v0.0.0-...-9e0b26f Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HistoricalTradeSnapshot

type HistoricalTradeSnapshot Snapshot

type Snapshot

type Snapshot struct {
	Snapshot []*TradeExecutionUpdate
}

func SnapshotFromRaw

func SnapshotFromRaw(raw []interface{}) (s *Snapshot, err error)

type TradeExecutionUpdate

type TradeExecutionUpdate struct {
	ID          int64
	Pair        string
	MTS         int64
	OrderID     int64
	ExecAmount  float64
	ExecPrice   float64
	OrderType   string
	OrderPrice  float64
	Maker       int
	Fee         float64
	FeeCurrency string
}

TradeExecutionUpdate represents a full update to a trade on the private data feed. Following a TradeExecution, TradeExecutionUpdates include additional details, e.g. the trade's execution ID (TradeID).

func FromRaw

func FromRaw(raw []interface{}) (tu *TradeExecutionUpdate, err error)

public trade update just looks like a trade

Jump to

Keyboard shortcuts

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