mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
tsv writer already flush the content before close handle
This commit is contained in:
parent
f984be8ced
commit
590748b71d
|
@ -372,7 +372,6 @@ var BacktestCmd = &cobra.Command{
|
|||
defer func() { _ = ordersTsv.Close() }()
|
||||
_ = ordersTsv.Write(types.Order{}.CsvHeader())
|
||||
|
||||
defer ordersTsv.Flush()
|
||||
for _, exSource := range exchangeSources {
|
||||
exSource.Session.UserDataStream.OnOrderUpdate(func(order types.Order) {
|
||||
if order.Status == types.OrderStatusFilled {
|
||||
|
|
Loading…
Reference in New Issue
Block a user