// GetTradingPairs returns all avaliable pairs on the exchange
GetTradingPairs returns all avaliable pairs on the exchange
// GetTradingPairs returns all avaliable pairs on the exchange
func (conn *BinanceInfoConnector) GetTradingPairs() ([]trade.CurrencyPair, error) {
	if tradingPairs != nil {
		return tradingPairs, nil
	}
	if err := conn.loadExchangeRules(); err != nil {
		return nil, fmt.Errorf("failed to load trading pairs from Binance, %v", err.Error())
	}
	tradingPairs = make([]trade.CurrencyPair, 10)
	for _, rule := range exchangeRules {
		tradingPairs = append(tradingPairs, rule.TradingPair)
	}
	return tradingPairs, nil
}
func ( conn * BinanceInfoConnector ) GetTradingPairs ( ) ( [ ] trade . CurrencyPair , error ) { if tradingPairs != nil { return tradingPairs , nil } if err := conn . loadExchangeRules ( ) ; err != nil { return nil , fmt . Errorf ( " " , err . Error ( ) ) } tradingPairs = make ( [ ] trade . CurrencyPair , 10 ) for _ , rule := range exchangeRules { tradingPairs = append ( tradingPairs , rule . TradingPair ) } return tradingPairs , nil }
GetTradingPairs returns all avaliable pairs on the exchange
GetTradingPairs returns all avaliable pairs on the exchange