move fiat currency definition out

This commit is contained in:
c9s 2021-05-07 01:30:09 +08:00
parent 1264c50e83
commit 584a4c2ef8

View File

@ -15,6 +15,8 @@ import (
"github.com/c9s/bbgo/pkg/util" "github.com/c9s/bbgo/pkg/util"
) )
var fiatCurrencies = []string{"USDC", "USDT", "USD", "TWD", "EUR", "GBP"}
type StandardIndicatorSet struct { type StandardIndicatorSet struct {
Symbol string Symbol string
// Standard indicators // Standard indicators
@ -560,7 +562,6 @@ func (session *ExchangeSession) FindPossibleSymbols() (symbols []string, err err
} }
var balances = session.Account.Balances() var balances = session.Account.Balances()
var fiatCurrencies = []string{"USDC", "USDT", "USD", "TWD", "EUR", "GBP"}
var fiatAssets []string var fiatAssets []string
for _, currency := range fiatCurrencies { for _, currency := range fiatCurrencies {