diff --git a/doc/commands/bbgo.md b/doc/commands/bbgo.md index 0ee7fa96af..9b84814a5b 100644 --- a/doc/commands/bbgo.md +++ b/doc/commands/bbgo.md @@ -55,4 +55,4 @@ bbgo [flags] * [bbgo userdatastream](bbgo_userdatastream.md) - Listen to session events (orderUpdate, tradeUpdate, balanceUpdate, balanceSnapshot) * [bbgo version](bbgo_version.md) - show version name -###### Auto generated by spf13/cobra on 1-May-2022 +###### Auto generated by spf13/cobra on 2-May-2022 diff --git a/doc/commands/bbgo_account.md b/doc/commands/bbgo_account.md index 931d1ea639..5860e5104b 100644 --- a/doc/commands/bbgo_account.md +++ b/doc/commands/bbgo_account.md @@ -41,4 +41,4 @@ bbgo account [--session SESSION] [flags] * [bbgo](bbgo.md) - bbgo is a crypto trading bot -###### Auto generated by spf13/cobra on 1-May-2022 +###### Auto generated by spf13/cobra on 2-May-2022 diff --git a/doc/commands/bbgo_backtest.md b/doc/commands/bbgo_backtest.md index a387547fd5..683cde97de 100644 --- a/doc/commands/bbgo_backtest.md +++ b/doc/commands/bbgo_backtest.md @@ -47,4 +47,4 @@ bbgo backtest [flags] * [bbgo](bbgo.md) - bbgo is a crypto trading bot -###### Auto generated by spf13/cobra on 1-May-2022 +###### Auto generated by spf13/cobra on 2-May-2022 diff --git a/doc/commands/bbgo_balances.md b/doc/commands/bbgo_balances.md index 5b58443270..8951b782a4 100644 --- a/doc/commands/bbgo_balances.md +++ b/doc/commands/bbgo_balances.md @@ -40,4 +40,4 @@ bbgo balances [--session SESSION] [flags] * [bbgo](bbgo.md) - bbgo is a crypto trading bot -###### Auto generated by spf13/cobra on 1-May-2022 +###### Auto generated by spf13/cobra on 2-May-2022 diff --git a/doc/commands/bbgo_build.md b/doc/commands/bbgo_build.md index 1b6d42aa16..00bed1272a 100644 --- a/doc/commands/bbgo_build.md +++ b/doc/commands/bbgo_build.md @@ -39,4 +39,4 @@ bbgo build [flags] * [bbgo](bbgo.md) - bbgo is a crypto trading bot -###### Auto generated by spf13/cobra on 1-May-2022 +###### Auto generated by spf13/cobra on 2-May-2022 diff --git a/doc/commands/bbgo_cancel-order.md b/doc/commands/bbgo_cancel-order.md index 5dfeab5032..18f47e40b8 100644 --- a/doc/commands/bbgo_cancel-order.md +++ b/doc/commands/bbgo_cancel-order.md @@ -49,4 +49,4 @@ bbgo cancel-order [flags] * [bbgo](bbgo.md) - bbgo is a crypto trading bot -###### Auto generated by spf13/cobra on 1-May-2022 +###### Auto generated by spf13/cobra on 2-May-2022 diff --git a/doc/commands/bbgo_deposits.md b/doc/commands/bbgo_deposits.md index d7086413a2..90d34cd715 100644 --- a/doc/commands/bbgo_deposits.md +++ b/doc/commands/bbgo_deposits.md @@ -41,4 +41,4 @@ bbgo deposits [flags] * [bbgo](bbgo.md) - bbgo is a crypto trading bot -###### Auto generated by spf13/cobra on 1-May-2022 +###### Auto generated by spf13/cobra on 2-May-2022 diff --git a/doc/commands/bbgo_execute-order.md b/doc/commands/bbgo_execute-order.md index fe583294b8..fee489c9e8 100644 --- a/doc/commands/bbgo_execute-order.md +++ b/doc/commands/bbgo_execute-order.md @@ -48,4 +48,4 @@ bbgo execute-order --session SESSION --symbol SYMBOL --side SIDE --target-quanti * [bbgo](bbgo.md) - bbgo is a crypto trading bot -###### Auto generated by spf13/cobra on 1-May-2022 +###### Auto generated by spf13/cobra on 2-May-2022 diff --git a/doc/commands/bbgo_get-order.md b/doc/commands/bbgo_get-order.md index 26f1cd4212..c51dfea3e9 100644 --- a/doc/commands/bbgo_get-order.md +++ b/doc/commands/bbgo_get-order.md @@ -42,4 +42,4 @@ bbgo get-order --session SESSION --order-id ORDER_ID [flags] * [bbgo](bbgo.md) - bbgo is a crypto trading bot -###### Auto generated by spf13/cobra on 1-May-2022 +###### Auto generated by spf13/cobra on 2-May-2022 diff --git a/doc/commands/bbgo_kline.md b/doc/commands/bbgo_kline.md index 86bfcfd790..891fb1909a 100644 --- a/doc/commands/bbgo_kline.md +++ b/doc/commands/bbgo_kline.md @@ -42,4 +42,4 @@ bbgo kline [flags] * [bbgo](bbgo.md) - bbgo is a crypto trading bot -###### Auto generated by spf13/cobra on 1-May-2022 +###### Auto generated by spf13/cobra on 2-May-2022 diff --git a/doc/commands/bbgo_list-orders.md b/doc/commands/bbgo_list-orders.md index 220b767fa7..baa435218c 100644 --- a/doc/commands/bbgo_list-orders.md +++ b/doc/commands/bbgo_list-orders.md @@ -41,4 +41,4 @@ bbgo list-orders open|closed --session SESSION --symbol SYMBOL [flags] * [bbgo](bbgo.md) - bbgo is a crypto trading bot -###### Auto generated by spf13/cobra on 1-May-2022 +###### Auto generated by spf13/cobra on 2-May-2022 diff --git a/doc/commands/bbgo_market.md b/doc/commands/bbgo_market.md index 395f46830d..0c9be4d935 100644 --- a/doc/commands/bbgo_market.md +++ b/doc/commands/bbgo_market.md @@ -40,4 +40,4 @@ bbgo market [flags] * [bbgo](bbgo.md) - bbgo is a crypto trading bot -###### Auto generated by spf13/cobra on 1-May-2022 +###### Auto generated by spf13/cobra on 2-May-2022 diff --git a/doc/commands/bbgo_orderbook.md b/doc/commands/bbgo_orderbook.md index d4c993e927..7019e2dbe0 100644 --- a/doc/commands/bbgo_orderbook.md +++ b/doc/commands/bbgo_orderbook.md @@ -42,4 +42,4 @@ bbgo orderbook --session=[exchange_name] --symbol=[pair_name] [flags] * [bbgo](bbgo.md) - bbgo is a crypto trading bot -###### Auto generated by spf13/cobra on 1-May-2022 +###### Auto generated by spf13/cobra on 2-May-2022 diff --git a/doc/commands/bbgo_orderupdate.md b/doc/commands/bbgo_orderupdate.md index b21b6c0d0f..e1e22d5577 100644 --- a/doc/commands/bbgo_orderupdate.md +++ b/doc/commands/bbgo_orderupdate.md @@ -40,4 +40,4 @@ bbgo orderupdate [flags] * [bbgo](bbgo.md) - bbgo is a crypto trading bot -###### Auto generated by spf13/cobra on 1-May-2022 +###### Auto generated by spf13/cobra on 2-May-2022 diff --git a/doc/commands/bbgo_pnl.md b/doc/commands/bbgo_pnl.md index e9a0a613c9..06771e973a 100644 --- a/doc/commands/bbgo_pnl.md +++ b/doc/commands/bbgo_pnl.md @@ -43,4 +43,4 @@ bbgo pnl [flags] * [bbgo](bbgo.md) - bbgo is a crypto trading bot -###### Auto generated by spf13/cobra on 1-May-2022 +###### Auto generated by spf13/cobra on 2-May-2022 diff --git a/doc/commands/bbgo_run.md b/doc/commands/bbgo_run.md index 1d200fccd1..2742577141 100644 --- a/doc/commands/bbgo_run.md +++ b/doc/commands/bbgo_run.md @@ -51,4 +51,4 @@ bbgo run [flags] * [bbgo](bbgo.md) - bbgo is a crypto trading bot -###### Auto generated by spf13/cobra on 1-May-2022 +###### Auto generated by spf13/cobra on 2-May-2022 diff --git a/doc/commands/bbgo_submit-order.md b/doc/commands/bbgo_submit-order.md index 3b7d6e2b57..20b9fbb0b8 100644 --- a/doc/commands/bbgo_submit-order.md +++ b/doc/commands/bbgo_submit-order.md @@ -44,4 +44,4 @@ bbgo submit-order --session SESSION --symbol SYMBOL --side SIDE --quantity QUANT * [bbgo](bbgo.md) - bbgo is a crypto trading bot -###### Auto generated by spf13/cobra on 1-May-2022 +###### Auto generated by spf13/cobra on 2-May-2022 diff --git a/doc/commands/bbgo_sync.md b/doc/commands/bbgo_sync.md index 233172ea14..77f31dc45a 100644 --- a/doc/commands/bbgo_sync.md +++ b/doc/commands/bbgo_sync.md @@ -42,4 +42,4 @@ bbgo sync --session=[exchange_name] --symbol=[pair_name] [--since=yyyy/mm/dd] [f * [bbgo](bbgo.md) - bbgo is a crypto trading bot -###### Auto generated by spf13/cobra on 1-May-2022 +###### Auto generated by spf13/cobra on 2-May-2022 diff --git a/doc/commands/bbgo_trades.md b/doc/commands/bbgo_trades.md index cb90420331..0e0197b05a 100644 --- a/doc/commands/bbgo_trades.md +++ b/doc/commands/bbgo_trades.md @@ -42,4 +42,4 @@ bbgo trades --session=[exchange_name] --symbol=[pair_name] [flags] * [bbgo](bbgo.md) - bbgo is a crypto trading bot -###### Auto generated by spf13/cobra on 1-May-2022 +###### Auto generated by spf13/cobra on 2-May-2022 diff --git a/doc/commands/bbgo_tradeupdate.md b/doc/commands/bbgo_tradeupdate.md index d381e82411..071ac5e57f 100644 --- a/doc/commands/bbgo_tradeupdate.md +++ b/doc/commands/bbgo_tradeupdate.md @@ -40,4 +40,4 @@ bbgo tradeupdate --session=[exchange_name] [flags] * [bbgo](bbgo.md) - bbgo is a crypto trading bot -###### Auto generated by spf13/cobra on 1-May-2022 +###### Auto generated by spf13/cobra on 2-May-2022 diff --git a/doc/commands/bbgo_transfer-history.md b/doc/commands/bbgo_transfer-history.md index ceeb555411..ebd32f53af 100644 --- a/doc/commands/bbgo_transfer-history.md +++ b/doc/commands/bbgo_transfer-history.md @@ -42,4 +42,4 @@ bbgo transfer-history [flags] * [bbgo](bbgo.md) - bbgo is a crypto trading bot -###### Auto generated by spf13/cobra on 1-May-2022 +###### Auto generated by spf13/cobra on 2-May-2022 diff --git a/doc/commands/bbgo_userdatastream.md b/doc/commands/bbgo_userdatastream.md index 49083b8010..edf6bd039a 100644 --- a/doc/commands/bbgo_userdatastream.md +++ b/doc/commands/bbgo_userdatastream.md @@ -40,4 +40,4 @@ bbgo userdatastream [flags] * [bbgo](bbgo.md) - bbgo is a crypto trading bot -###### Auto generated by spf13/cobra on 1-May-2022 +###### Auto generated by spf13/cobra on 2-May-2022 diff --git a/doc/commands/bbgo_version.md b/doc/commands/bbgo_version.md index 28ef572d64..ed7ed82562 100644 --- a/doc/commands/bbgo_version.md +++ b/doc/commands/bbgo_version.md @@ -39,4 +39,4 @@ bbgo version [flags] * [bbgo](bbgo.md) - bbgo is a crypto trading bot -###### Auto generated by spf13/cobra on 1-May-2022 +###### Auto generated by spf13/cobra on 2-May-2022 diff --git a/doc/release/v1.31.2.md b/doc/release/v1.31.2.md new file mode 100644 index 0000000000..5768380c3d --- /dev/null +++ b/doc/release/v1.31.2.md @@ -0,0 +1,3 @@ +## Fixes + +- Fixed sync config check diff --git a/doc/release/v1.31.3.md b/doc/release/v1.31.3.md new file mode 100644 index 0000000000..48b4dab012 --- /dev/null +++ b/doc/release/v1.31.3.md @@ -0,0 +1,3 @@ +## Fixes + +- Fixed sync pointer check diff --git a/pkg/bbgo/environment.go b/pkg/bbgo/environment.go index 3a0a9bdd46..5c2353d70c 100644 --- a/pkg/bbgo/environment.go +++ b/pkg/bbgo/environment.go @@ -623,6 +623,10 @@ func (environ *Environment) Sync(ctx context.Context, userConfig ...*Config) err return err } + if len(userConfig) == 0 || userConfig[0].Sync == nil { + continue + } + if userConfig[0].Sync.DepositHistory { if err := environ.SyncService.SyncDepositHistory(ctx, session.Exchange); err != nil { return err diff --git a/pkg/version/dev.go b/pkg/version/dev.go index 1781c8d8e6..a60f673f50 100644 --- a/pkg/version/dev.go +++ b/pkg/version/dev.go @@ -2,7 +2,7 @@ package version -const Version = "v1.31.1-0f3d9bc3-dev" +const Version = "v1.31.3-fa2eb872-dev" -const VersionGitRef = "0f3d9bc3" +const VersionGitRef = "fa2eb872" diff --git a/pkg/version/version.go b/pkg/version/version.go index e53b85e638..4bd0431748 100644 --- a/pkg/version/version.go +++ b/pkg/version/version.go @@ -2,7 +2,7 @@ package version -const Version = "v1.31.1-0f3d9bc3" +const Version = "v1.31.3-fa2eb872" -const VersionGitRef = "0f3d9bc3" +const VersionGitRef = "fa2eb872"