diff --git a/pkg/bbgo/order_executor_general.go b/pkg/bbgo/order_executor_general.go index f34590b82..727966740 100644 --- a/pkg/bbgo/order_executor_general.go +++ b/pkg/bbgo/order_executor_general.go @@ -33,6 +33,14 @@ type BaseOrderExecutor struct { orderStore *core.OrderStore } +func (e *BaseOrderExecutor) OrderStore() *core.OrderStore { + return e.orderStore +} + +func (e *BaseOrderExecutor) ActiveMakerOrders() *ActiveOrderBook { + return e.activeMakerOrders +} + // GeneralOrderExecutor implements the general order executor for strategy type GeneralOrderExecutor struct { BaseOrderExecutor @@ -131,14 +139,6 @@ func (e *GeneralOrderExecutor) marginAssetMaxBorrowableUpdater(ctx context.Conte } } -func (e *GeneralOrderExecutor) OrderStore() *core.OrderStore { - return e.orderStore -} - -func (e *GeneralOrderExecutor) ActiveMakerOrders() *ActiveOrderBook { - return e.activeMakerOrders -} - func (e *GeneralOrderExecutor) BindEnvironment(environ *Environment) { e.tradeCollector.OnProfit(func(trade types.Trade, profit *types.Profit) { environ.RecordPosition(e.position, trade, profit)