mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
twap: pull out submitOrder method
This commit is contained in:
parent
a0cbf82d97
commit
ebaf3a330f
|
@ -363,7 +363,11 @@ func (e *FixedQuantityExecutor) updateOrder(ctx context.Context) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
createdOrder, err := e.exchange.SubmitOrder(ctx, *orderForm)
|
||||
return e.submitOrder(ctx, *orderForm)
|
||||
}
|
||||
|
||||
func (e *FixedQuantityExecutor) submitOrder(ctx context.Context, orderForm types.SubmitOrder) error {
|
||||
createdOrder, err := e.exchange.SubmitOrder(ctx, orderForm)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user