mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
skip public session
This commit is contained in:
parent
6b273eda4d
commit
900db74fb9
|
@ -82,6 +82,11 @@ func (s *Strategy) recordNetAssetValue(ctx context.Context, sessions map[string]
|
||||||
// iterate the sessions and record them
|
// iterate the sessions and record them
|
||||||
quoteCurrency := "USDT"
|
quoteCurrency := "USDT"
|
||||||
for sessionName, session := range sessions {
|
for sessionName, session := range sessions {
|
||||||
|
if session.PublicOnly {
|
||||||
|
log.Infof("session %s is public only, skip", sessionName)
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
// update the account balances and the margin information
|
// update the account balances and the margin information
|
||||||
if _, err := session.UpdateAccount(ctx); err != nil {
|
if _, err := session.UpdateAccount(ctx); err != nil {
|
||||||
log.WithError(err).Errorf("can not update account")
|
log.WithError(err).Errorf("can not update account")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user