pull out BNB currency string

This commit is contained in:
c9s 2021-05-26 02:15:47 +08:00
parent ea78c0308b
commit 016c60796d
2 changed files with 4 additions and 3 deletions

View File

@ -19,6 +19,8 @@ import (
"github.com/c9s/bbgo/pkg/util"
)
const BNB = "BNB"
var log = logrus.WithFields(logrus.Fields{
"exchange": "binance",
})
@ -394,9 +396,8 @@ func (e *Exchange) QueryAccountBalances(ctx context.Context) (types.BalanceMap,
return account.Balances(), nil
}
// PlatformFeeCurrency
func (e *Exchange) PlatformFeeCurrency() string {
return "BNB"
return BNB
}
func (e *Exchange) QueryAccount(ctx context.Context) (*types.Account, error) {