mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
xalign: skip same currency
This commit is contained in:
parent
6831c40371
commit
1d314daa22
|
@ -132,6 +132,11 @@ func (s *Strategy) selectSessionForCurrency(
|
|||
}
|
||||
|
||||
for _, quoteCurrency := range quoteCurrencies {
|
||||
// skip the same currency, because there is no such USDT/USDT market
|
||||
if currency == quoteCurrency {
|
||||
continue
|
||||
}
|
||||
|
||||
// check both quoteCurrency/currency and currency/quoteCurrency
|
||||
symbol := currency + quoteCurrency
|
||||
market, ok := session.Market(symbol)
|
||||
|
|
Loading…
Reference in New Issue
Block a user