Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BotInfo ¶
type BotInfo struct { LastUpdated string `json:"last_updated"` TradingAccount string `json:"trading_account"` Strategy string `json:"strategy"` IsTestnet bool `json:"is_testnet"` TradingPair *model.TradingPair `json:"trading_pair"` AssetBase hProtocol.Asset `json:"asset_base"` AssetQuote hProtocol.Asset `json:"asset_quote"` BalanceBase float64 `json:"balance_base"` BalanceQuote float64 `json:"balance_quote"` NumBids int `json:"num_bids"` NumAsks int `json:"num_asks"` SpreadValue float64 `json:"spread_value"` SpreadPercent float64 `json:"spread_pct"` }
BotInfo is the response from the getBotInfo IPC request
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a query server with which the trade command will serve information about an actively running bot
func MakeServer ¶
func MakeServer( l logger.Logger, strategyName string, strategy api.Strategy, botConfig trader.BotConfig, client *horizonclient.Client, sdex *plugins.SDEX, exchangeShim api.ExchangeShim, tradingPair *model.TradingPair, ) *Server
MakeServer is a factory method
Click to show internal directories.
Click to hide internal directories.