exchange

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCanRetry = errors.New("error but can retry")
)

Functions

This section is empty.

Types

type OrderInfo

type OrderInfo struct {
	LocalID string
	Order
	Action TradeType
	Filled bool
}

type TradeExchange

type TradeExchange struct {
	BaseProcesser
	// contains filtered or unexported fields
}

func GetTradeExchange

func GetTradeExchange(name string, cfg exchange.Config, cltName, symbol string) (t *TradeExchange, err error)

func NewTradeExchange

func NewTradeExchange(exName string, impl exchange.Exchange, symbol string) *TradeExchange

func (*TradeExchange) Init

func (b *TradeExchange) Init(bus *Bus) (err error)

func (*TradeExchange) Start

func (b *TradeExchange) Start() (err error)

func (*TradeExchange) Stop added in v0.0.6

func (b *TradeExchange) Stop() (err error)

func (*TradeExchange) UseLocalStopOrder added in v0.2.1

func (b *TradeExchange) UseLocalStopOrder(enable bool)

Jump to

Keyboard shortcuts

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