tradeV3

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TradeV3

type TradeV3 struct {
	ID              int64  `json:"id"`
	Symbol          string `json:"symbol"`
	OrderID         int64  `json:"orderId"`
	OrderListId     int64  `json:"orderListId"`
	Price           string `json:"price"`
	Quantity        string `json:"qty"`
	QuoteQuantity   string `json:"quoteQty"`
	Commission      string `json:"commission"`
	CommissionAsset string `json:"commissionAsset"`
	Time            int64  `json:"time"`
	IsBuyer         bool   `json:"isBuyer"`
	IsMaker         bool   `json:"isMaker"`
	IsBestMatch     bool   `json:"isBestMatch"`
	IsIsolated      bool   `json:"isIsolated"`
}

func (*TradeV3) Equal

func (tv3 *TradeV3) Equal(than btree.Item) bool

func (*TradeV3) Less

func (tv3 *TradeV3) Less(than btree.Item) bool

type TradesV3

type TradesV3 struct {
	Init types.InitFunction
	// contains filtered or unexported fields
}

func New

func New(
	stop chan struct{},
	symbolname string,
	startTradeStream func(*TradesV3) types.StreamFunction,
	initCreator func(*TradesV3) types.InitFunction) *TradesV3

func (*TradesV3) Ascend

func (tv3 *TradesV3) Ascend(iter func(btree.Item) bool)

Ascend implements Trades.

func (*TradesV3) Descend

func (tv3 *TradesV3) Descend(iter func(btree.Item) bool)

Descend implements Trades.

func (*TradesV3) Get

func (tv3 *TradesV3) Get(id int64) btree.Item

Get implements Trades.

func (*TradesV3) GetSymbolname

func (tv3 *TradesV3) GetSymbolname() string

func (*TradesV3) Lock

func (tv3 *TradesV3) Lock()

Lock implements Trades.

func (*TradesV3) ResetEvent

func (tv3 *TradesV3) ResetEvent(err error)

func (*TradesV3) Set

func (tv3 *TradesV3) Set(val btree.Item)

Set implements Trades.

func (*TradesV3) TradeEventStart

func (tv3 *TradesV3) TradeEventStart() (err error)

func (*TradesV3) Unlock

func (tv3 *TradesV3) Unlock()

Unlock implements Trades.

func (*TradesV3) Update

func (tv3 *TradesV3) Update(val btree.Item)

Update implements Trades.

Jump to

Keyboard shortcuts

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