bots

package
v0.73.9 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBotTraders

func GetBotTraders(
	network string,
) (map[string]BotTraders, error)

func GetBotTradersWithURL

func GetBotTradersWithURL(
	network string,
	botsURL string,
) (map[string]BotTraders, error)

func GetResearchBots

func GetResearchBots(
	network string,
	botsAPIToken string,
) (map[string]ResearchBot, error)

Types

type BotTraders

type BotTraders 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 ResearchBot

type ResearchBot struct {
	BotTraders
	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)

Jump to

Keyboard shortcuts

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