Documentation
¶
Index ¶
Constants ¶
View Source
const ID = "convert"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Strategy ¶
type Strategy struct {
Market types.Market
From string `json:"from"`
To string `json:"to"`
// Interval is the period that you want to submit order
Interval types.Interval `json:"interval"`
UseLimitOrder bool `json:"useLimitOrder"`
UseTakerOrder bool `json:"useTakerOrder"`
MinBalance fixedpoint.Value `json:"minBalance"`
MaxQuantity fixedpoint.Value `json:"maxQuantity"`
Position *types.Position `persistence:"position"`
// contains filtered or unexported fields
}
Strategy "convert" converts your specific asset into other asset
func (*Strategy) InstanceID ¶
func (*Strategy) Run ¶
func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, session *bbgo.ExchangeSession) error
func (*Strategy) Subscribe ¶
func (s *Strategy) Subscribe(session *bbgo.ExchangeSession)
Click to show internal directories.
Click to hide internal directories.