Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { SOURCE_SECRET_SEED string `valid:"-"` TRADING_SECRET_SEED string `valid:"-"` ALLOW_INACTIVE_MINUTES int32 `valid:"-"` // bots that are inactive for more than this time will have its offers deleted TICK_INTERVAL_SECONDS int32 `valid:"-"` HORIZON_URL string `valid:"-"` TradingAccount *string SourceAccount *string // can be nil }
Config represents the configuration params for the bot
type Terminator ¶
type Terminator struct {
// contains filtered or unexported fields
}
Terminator contains the logic to terminate offers
func MakeTerminator ¶
func MakeTerminator( api *horizon.Client, sdex *plugins.SDEX, tradingAccount string, tickIntervalSeconds int32, allowInactiveMinutes int32, ) *Terminator
MakeTerminator is a factory method to make a Terminator
func (*Terminator) StartService ¶
func (t *Terminator) StartService()
StartService starts the Terminator service
Click to show internal directories.
Click to hide internal directories.