bot

package
v0.0.0-...-a30bb73 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Symbols   = []string{"BTCUSDT", "ETHUSDT", "BNBUSDT", "BCCUSDT", "NEOUSDT", "LTCUSDT", "QTUMUSDT", "ADAUSDT", "XRPUSDT", "EOSUSDT"}
	Intervals = []string{"1m", "3m", "5m", "15m", "30m", "1h", "4h", "8h", "1d"}
)
View Source
var SymbolIntervals = []SymbolInterval{}

Functions

This section is empty.

Types

type Deskbot

type Deskbot struct {
	Gvm      *engine.Gvm
	Task     taskmodel.Task
	Exbot    *Exbot
	Symbol   string
	Interval string
	// contains filtered or unexported fields
}

func NewBot

func NewBot(ctx context.Context, task taskmodel.Task, eb *Exbot) *Deskbot

func (*Deskbot) Onkline

func (db *Deskbot) Onkline()

func (*Deskbot) OnklineClose

func (db *Deskbot) OnklineClose()

type Exbot

type Exbot struct {
	Exchange *gvmbot.Exchange
	Ctx      context.Context
	// contains filtered or unexported fields
}

Launcher represents the main program execution.

func NewExbot

func NewExbot(ctx context.Context) *Exbot

func (*Exbot) AddSymbolInterval

func (eb *Exbot) AddSymbolInterval(symbol string, interval string)

func (*Exbot) InitExchange

func (eb *Exbot) InitExchange()

初始化交易所

func (*Exbot) Subscript

func (eb *Exbot) Subscript()

type GvmOptions

type GvmOptions struct {
	Exchange string `json:"exchange" form:"exchange"`
	Symbol   string `json:"symbol" form:"symbol"`
	Interval string `json:"interval" form:"interval"`
	Sname    string `json:"sname" form:"sname"`
	Code     string `json:"code" form:"code"`
}

/策略现场

type SymbolInterval

type SymbolInterval struct {
	Symbol   string
	Interval string
}

Jump to

Keyboard shortcuts

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