bot

package
v0.1.0-1631153474257730 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = config.Config

Functions

This section is empty.

Types

type Account

type Account interface{}

Account implements trading account functionality. It may represent a single account, several accounts, a 'paper' trading account, or any combination.

This allows for simple replacement of accounts for testing, scaling of bot activity, accessing accounts with different currencies, etc.

type Bot

type Bot interface{}

Bot implements the bot. It can take input as rules and conditions. It can be scheduled, managed, and switched on or off.

type BotConfig

type BotConfig interface{}

BotConfig implements bot configuration functionality, such as settings, limits, and other settings.

Authentication, Permissions, and Account information are not included or accessible from BotConfig.

type Graph

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

Graph is the graph of rules allowing users to define how rules interact with each other, which has precedence, and which have overriding capabilities.

func (*Graph) AddEdge

func (g *Graph) AddEdge(n1, n2 *Node)

AddEdge adds an edge to the graph

func (*Graph) AddNode

func (g *Graph) AddNode(n *Node)

AddNode adds a node to the graph

func (*Graph) String

func (g *Graph) String() string

type Node

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

func (*Node) String

func (n *Node) String() string

type Permissions

type Permissions interface{}

Permissions maintains a mapping of allowed scopes for the current user.

type Rule

type Rule string

temporary type

type Setting

type Setting interface{}

Setting is an individual BotConfig object

Jump to

Keyboard shortcuts

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