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 ¶
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)
Click to show internal directories.
Click to hide internal directories.