Documentation
¶
Index ¶
Constants ¶
View Source
const XLM = "XLM"
XLM is a constant for XLM
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BotConfig ¶
type BotConfig struct {
SourceSecretSeed string `valid:"-" toml:"SOURCE_SECRET_SEED"`
TradingSecretSeed string `valid:"-" toml:"TRADING_SECRET_SEED"`
AssetCodeA string `valid:"-" toml:"ASSET_CODE_A"`
IssuerA string `valid:"-" toml:"ISSUER_A"`
AssetCodeB string `valid:"-" toml:"ASSET_CODE_B"`
IssuerB string `valid:"-" toml:"ISSUER_B"`
TickIntervalSeconds int32 `valid:"-" toml:"TICK_INTERVAL_SECONDS"`
MaxTickDelayMillis int64 `valid:"-" toml:"MAX_TICK_DELAY_MILLIS"`
DeleteCyclesThreshold int64 `valid:"-" toml:"DELETE_CYCLES_THRESHOLD"`
FillTrackerSleepMillis uint32 `valid:"-" toml:"FILL_TRACKER_SLEEP_MILLIS"`
HorizonURL string `valid:"-" toml:"HORIZON_URL"`
AlertType string `valid:"-" toml:"ALERT_TYPE"`
AlertAPIKey string `valid:"-" toml:"ALERT_API_KEY"`
MonitoringPort uint16 `valid:"-" toml:"MONITORING_PORT"`
MonitoringTLSCert string `valid:"-" toml:"MONITORING_TLS_CERT"`
MonitoringTLSKey string `valid:"-" toml:"MONITORING_TLS_KEY"`
GoogleClientID string `valid:"-" toml:"GOOGLE_CLIENT_ID"`
GoogleClientSecret string `valid:"-" toml:"GOOGLE_CLIENT_SECRET"`
AcceptableEmails string `valid:"-" toml:"ACCEPTABLE_GOOGLE_EMAILS"`
// contains filtered or unexported fields
}
BotConfig represents the configuration params for the bot
func (*BotConfig) AssetQuote ¶
AssetQuote returns the config's assetQuote
func (*BotConfig) SourceAccount ¶
SourceAccount returns the config's source account
func (*BotConfig) TradingAccount ¶
TradingAccount returns the config's trading account
type Trader ¶
type Trader struct {
// contains filtered or unexported fields
}
Trader represents a market making bot, which is composed of various parts include the strategy and various APIs.
func MakeBot ¶
func MakeBot( api *horizon.Client, assetBase horizon.Asset, assetQuote horizon.Asset, tradingAccount string, sdex *plugins.SDEX, strat api.Strategy, timeController api.TimeController, deleteCyclesThreshold int64, threadTracker *multithreading.ThreadTracker, fixedIterations *uint64, dataKey *model.BotKey, alert api.Alert, ) *Trader
MakeBot is the factory method for the Trader struct
Click to show internal directories.
Click to hide internal directories.