Skip to content

Commit

Permalink
Merge branch 'c9s:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
chendagan authored May 3, 2022
2 parents 2c9f6d0 + f22327e commit 1fc0c11
Show file tree
Hide file tree
Showing 28 changed files with 37 additions and 27 deletions.
2 changes: 1 addition & 1 deletion doc/commands/bbgo.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion doc/commands/bbgo_account.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion doc/commands/bbgo_backtest.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion doc/commands/bbgo_balances.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion doc/commands/bbgo_build.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion doc/commands/bbgo_cancel-order.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion doc/commands/bbgo_deposits.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion doc/commands/bbgo_execute-order.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion doc/commands/bbgo_get-order.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion doc/commands/bbgo_kline.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion doc/commands/bbgo_list-orders.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion doc/commands/bbgo_market.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion doc/commands/bbgo_orderbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion doc/commands/bbgo_orderupdate.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion doc/commands/bbgo_pnl.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion doc/commands/bbgo_run.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion doc/commands/bbgo_submit-order.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion doc/commands/bbgo_sync.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion doc/commands/bbgo_trades.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion doc/commands/bbgo_tradeupdate.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion doc/commands/bbgo_transfer-history.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion doc/commands/bbgo_userdatastream.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion doc/commands/bbgo_version.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions doc/release/v1.31.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Fixes

- Fixed sync config check
3 changes: 3 additions & 0 deletions doc/release/v1.31.3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Fixes

- Fixed sync pointer check
4 changes: 4 additions & 0 deletions pkg/bbgo/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions pkg/version/dev.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

4 changes: 2 additions & 2 deletions pkg/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

package version

const Version = "v1.31.1-0f3d9bc3"
const Version = "v1.31.3-fa2eb872"

const VersionGitRef = "0f3d9bc3"
const VersionGitRef = "fa2eb872"

0 comments on commit 1fc0c11

Please sign in to comment.