bots

package
v0.76.8 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var ErrEmptyResponse = errors.New("empty response")

Functions

This section is empty.

Types

type BotTraderWantedToken added in v0.76.8

type BotTraderWantedToken struct {
	PartyId         string  `json:"party_id"`
	Symbol          string  `json:"symbol"`
	VegaAssetId     string  `json:"vega_asset_id"`
	AssetERC20Asset string  `json:"asset_erc20_address"`
	Balance         float64 `json:"balance"`
	WantedTokens    float64 `json:"wanted_tokens"`
}

type ResearchBot

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

func (*ResearchBot) GetPublicKey added in v0.76.8

func (b *ResearchBot) GetPublicKey() string

func (*ResearchBot) GetWallet

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

func (*ResearchBot) IsMarketMaker added in v0.76.8

func (b *ResearchBot) IsMarketMaker() bool

type ResearchBots added in v0.74.10

type ResearchBots map[string]ResearchBot

func RetrieveResearchBots added in v0.76.8

func RetrieveResearchBots(ctx context.Context, apiURL, apiKey string, logger *zap.Logger) (ResearchBots, error)

type TradingBot added in v0.76.8

type TradingBot struct {
	Name       string `json:"name"`
	PubKey     string `json:"pubKey"`
	Parameters struct {
		Base         string                 `json:"marketBase"`
		Quote        string                 `json:"marketQuote"`
		WantedTokens []BotTraderWantedToken `json:"wantedTokens"`

		EnableTopUp bool `json:"enableTopUp"`
	} `json:"parameters"`
}

type TradingBots added in v0.76.8

type TradingBots map[string]TradingBot

func RetrieveTradingBots added in v0.76.8

func RetrieveTradingBots(ctx context.Context, apiURL, apiKey string, logger *zap.Logger) (TradingBots, error)

Jump to

Keyboard shortcuts

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