bots

package
v0.75.8 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const LeaderWalletIndex = 0
View Source
const (
	// MarketMakerWalletIndex defines index of the market marker wallet. This is hardcoded in the vega-market-sim.
	MarketMakerWalletIndex = 3
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BotTrader added in v0.74.10

type BotTrader struct {
	Name       string `json:"name"`
	PubKey     string `json:"pubKey"`
	Parameters struct {
		Base                              string  `json:"marketBase"`
		Quote                             string  `json:"marketQuote"`
		SettlementEthereumContractAddress string  `json:"marketSettlementEthereumContractAddress"`
		SettlementVegaAssetID             string  `json:"marketSettlementVegaAssetID"`
		WantedTokens                      float64 `json:"wantedTokens"`
		CurrentBalance                    float64 `json:"balance"`
		EnableTopUp                       bool    `json:"enableTopUp"`
	} `json:"parameters"`
}

type BotTraders

type BotTraders map[string]BotTrader

func GetBotTraders

func GetBotTraders(
	network string,
) (BotTraders, error)

func GetBotTradersWithURL

func GetBotTradersWithURL(
	network string,
	botsURL string,
) (BotTraders, error)

type ResearchBot

type ResearchBot struct {
	BotTrader
	WalletData struct {
		Index          int64   `json:"index"`
		PublicKey      string  `json:"publicKey"`
		RecoveryPhrase *string `json:"recoveryPhrase"`
	} `json:"wallet"`
	// contains filtered or unexported fields
}

func (*ResearchBot) GetWallet

func (b *ResearchBot) GetWallet() (*wallet.VegaWallet, error)

type ResearchBots added in v0.74.10

type ResearchBots map[string]ResearchBot

func GetResearchBots

func GetResearchBots(
	network string,
	botsAPIToken string,
) (ResearchBots, error)

Jump to

Keyboard shortcuts

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