types

package
v0.0.0-...-a129c9c Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONMessageBody

type JSONMessageBody struct {
	Signal   float64 `json:"sig,omitempty"`
	Ticker   string  `json:"ticker,omitempty"`
	AtrTP    float64 `json:"atrtp,omitempty"`
	AtrSL    float64 `json:"atrsl,omitempty"`
	Risk     float64 `json:"risk,omitempty"`
	Exchange string  `json:"exchange,omitempty"`
	Text     string  `json:"text,omitempty"`
	Sub      string  `json:"sub,omitempty"`
}

type LogMessage

type LogMessage struct {
	Message string
	Channel string
}

type NotificationBody

type NotificationBody struct {
	Content string `json:"content"`
}

type PositionInfo

type PositionInfo struct {
	Side        string
	Stops       int
	TakeProfits int
}

type ReadLogMessage

type ReadLogMessage struct {
	Resp chan LogMessage
}

type ReadPositionsInfo

type ReadPositionsInfo struct {
	Resp chan map[string]PositionInfo
}

type ReadPriceOp

type ReadPriceOp struct {
	Key  string
	Resp chan ValAt
}

type ValAt

type ValAt struct {
	Price float64
	At    int64
}

type WriteLogMessage

type WriteLogMessage struct {
	Val  LogMessage
	Resp chan bool
}

type WritePositionsInfo

type WritePositionsInfo struct {
	Key          string
	PositionInfo PositionInfo
	Resp         chan bool
}

type WritePriceOp

type WritePriceOp struct {
	Key  string
	Val  ValAt
	Resp chan bool
}

Jump to

Keyboard shortcuts

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