func (s *Server) SetupCurrencies(quotes Tokens, pairs TokenPairs, done chan bool) {
	s.engine = NewTradingEngine()

	for _, val := range quotes {
		s.engine.RegisterNewQuoteToken(val)
	}

	for _, p := range pairs {
		err := s.engine.RegisterNewPair(p, done)
		if err != nil {
			fmt.Printf("\nError registering token pair %v: %v\n", p, err)
		}

	}
}
// Setup registers a list of quote tokens and token pairs
Setup registers a list of quote tokens and token pairs
// Setup registers a list of quote tokens and token pairs
func (s *Server) SetupCurrencies(quotes Tokens, pairs TokenPairs, done chan bool) {
	s.engine = NewTradingEngine()
	for _, val := range quotes {
		s.engine.RegisterNewQuoteToken(val)
	}
	for _, p := range pairs {
		err := s.engine.RegisterNewPair(p, done)
		if err != nil {
			fmt.Printf("\nError registering token pair %v: %v\n", p, err)
		}
	}
}
func ( s * Server ) SetupCurrencies ( quotes Tokens , pairs TokenPairs , done chan bool ) { s . engine = NewTradingEngine ( ) for _ , val := range quotes { s . engine . RegisterNewQuoteToken ( val ) } for _ , p := range pairs { err := s . engine . RegisterNewPair ( p , done ) if err != nil { fmt . Printf ( " \n \n " , p , err ) } } }
Setup registers a list of quote tokens and token pairs
Setup registers a list of quote tokens and token pairs