Documentation ¶
Index ¶
- type Config
- type RestGridTrader
- func (r *RestGridTrader) Broadcast(ctx context.Context, order exchange.Order, profit string)
- func (r *RestGridTrader) Clear(ctx context.Context, dryRun bool) error
- func (r *RestGridTrader) Close(ctx context.Context)
- func (r *RestGridTrader) Init(ctx context.Context)
- func (r *RestGridTrader) Print(ctx context.Context) error
- func (r *RestGridTrader) ReBalance(ctx context.Context, dryRun bool) error
- func (r *RestGridTrader) Start(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Exchange hs.ExchangeConf Mongo hs.MongoConf Strategy hs.RestGridStrategyConf Robots []hs.BroadcastConf }
type RestGridTrader ¶
type RestGridTrader struct {
// contains filtered or unexported fields
}
func New ¶
func New(configFilename string) *RestGridTrader
func (*RestGridTrader) Clear ¶
func (r *RestGridTrader) Clear(ctx context.Context, dryRun bool) error
func (*RestGridTrader) Close ¶
func (r *RestGridTrader) Close(ctx context.Context)
func (*RestGridTrader) Init ¶
func (r *RestGridTrader) Init(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.