notify

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2025 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notify

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

func NewNotify

func NewNotify(cfg exchange.Config) (n *Notify, err error)

func (*Notify) Init

func (n *Notify) Init(bus *Bus) (err error)

func (*Notify) OnEventBalance

func (n *Notify) OnEventBalance(e *Event) (err error)

func (*Notify) OnEventNotify

func (n *Notify) OnEventNotify(e *Event) (err error)

func (*Notify) OnEventOrder

func (n *Notify) OnEventOrder(e *Event) (err error)

func (*Notify) OnEventTrade

func (n *Notify) OnEventTrade(e *Event) (err error)

func (*Notify) SendNotify

func (n *Notify) SendNotify(evt *NotifyEvent) (err error)

func (*Notify) Start

func (n *Notify) Start() (err error)

func (*Notify) Stop

func (n *Notify) Stop() (err error)

type NotifyConfig

type NotifyConfig struct {
	Headers map[string]string
	Url     string
	Method  string
	Body    string
	Notify  struct {
		Trade  bool
		Order  bool
		Blance bool
	}
}

Jump to

Keyboard shortcuts

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