mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-13 02:23:51 +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
|
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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user