Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Strategy ¶
type Strategy struct { *bbgo.Notifiability *bbgo.Graceful bbgo.OrderExecutor Symbol string `json:"symbol"` types.Market // Max budget of the strategy Budget fixedpoint.Value `json:"budget"` LowerPrice fixedpoint.Value `json:"lowerPrice"` // Buy-Sell Margin for each pair of orders Margin fixedpoint.Value `json:"margin"` // Quantity is the quantity you want to submit for each order. Quantity fixedpoint.Value `json:"quantity"` InitialOrderQuantity fixedpoint.Value `json:"initialOrderQuantity"` CountOfMoreOrders int `json:"countOfMoreOrders"` // GridNum is the grid number, how many orders you want to post on the orderbook. GridNum int `json:"gridNumber"` Long bool `json:"long"` // contains filtered or unexported fields }
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.