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