web

package
v0.0.0-...-51300c0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartHttp

func StartHttp()

Types

type DefaultHistoryHandler

type DefaultHistoryHandler struct {
	// contains filtered or unexported fields
}

func (*DefaultHistoryHandler) AnalyzeHistory

func (h *DefaultHistoryHandler) AnalyzeHistory(c *gin.Context)

func (*DefaultHistoryHandler) AnalyzeHistoryInRange

func (h *DefaultHistoryHandler) AnalyzeHistoryInRange(c *gin.Context)

func (*DefaultHistoryHandler) LoadHistory

func (h *DefaultHistoryHandler) LoadHistory(c *gin.Context)

type DefaultStatHandler

type DefaultStatHandler struct {
	// contains filtered or unexported fields
}

func (*DefaultStatHandler) AlgorithmStat

func (st *DefaultStatHandler) AlgorithmStat(c *gin.Context)

type DefaultTradeHandler

type DefaultTradeHandler struct {
	// contains filtered or unexported fields
}

func (*DefaultTradeHandler) GetProdAlgorithms

func (h *DefaultTradeHandler) GetProdAlgorithms(c *gin.Context)

func (*DefaultTradeHandler) GetSdbxAlgorithms

func (h *DefaultTradeHandler) GetSdbxAlgorithms(c *gin.Context)

func (*DefaultTradeHandler) StopAlgorithm

func (h *DefaultTradeHandler) StopAlgorithm(c *gin.Context)

func (*DefaultTradeHandler) TradeProd

func (h *DefaultTradeHandler) TradeProd(c *gin.Context)

func (*DefaultTradeHandler) TradeSandbox

func (h *DefaultTradeHandler) TradeSandbox(c *gin.Context)

type HistoryHandler

type HistoryHandler interface {
	LoadHistory(c *gin.Context)
	AnalyzeHistory(c *gin.Context)
	AnalyzeHistoryInRange(c *gin.Context)
}

func NewHistoryHandler

func NewHistoryHandler(h bot.HistoryAPI, logger *zap.SugaredLogger) HistoryHandler

type StatHandler

type StatHandler interface {
	AlgorithmStat(c *gin.Context)
}

func NewStatHandler

func NewStatHandler(statApi bot.StatAPI, logger *zap.SugaredLogger) StatHandler

type TradeHandler

type TradeHandler interface {
	TradeSandbox(c *gin.Context)
	TradeProd(c *gin.Context)
	GetSdbxAlgorithms(c *gin.Context)
	GetProdAlgorithms(c *gin.Context)
	StopAlgorithm(c *gin.Context)
}

func NewTradeHandler

func NewTradeHandler(sandboxApi bot.TradeAPI, prodApi bot.TradeAPI, logger *zap.SugaredLogger) TradeHandler

Jump to

Keyboard shortcuts

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