func PlaceManyBuy(client *benchclient.BenchClient, pair string, howMany int) {
	bufErrChan := make(chan error, howMany)
	orderChan := make(chan *cxrpc.SubmitOrderReply)
	for i := 0; i < howMany; i++ {
		go client.OrderAsync(client.PrivKey.PubKey(), "buy", pair, 1000, 1.0, orderChan, bufErrChan)
	}

	for i := 0; i < cap(bufErrChan); i++ {
		select {
		case err := <-bufErrChan:
			if err != nil {
				logging.Errorf("Error placing many: %s", err)
			}
		case order := <-orderChan:
			if order != nil {
				logging.Infof("Placed order %s", order.OrderID)
			}
		}
	}

	return
}
// PlaceManyBuy places many orders at once
PlaceManyBuy places many orders at once
// PlaceManyBuy places many orders at once
func PlaceManyBuy(client *benchclient.BenchClient, pair string, howMany int) {
	bufErrChan := make(chan error, howMany)
	orderChan := make(chan *cxrpc.SubmitOrderReply)
	for i := 0; i < howMany; i++ {
		go client.OrderAsync(client.PrivKey.PubKey(), "buy", pair, 1000, 1.0, orderChan, bufErrChan)
	}
	for i := 0; i < cap(bufErrChan); i++ {
		select {
		case err := <-bufErrChan:
			if err != nil {
				logging.Errorf("Error placing many: %s", err)
			}
		case order := <-orderChan:
			if order != nil {
				logging.Infof("Placed order %s", order.OrderID)
			}
		}
	}
	return
}
func PlaceManyBuy ( client * benchclient . BenchClient , pair string , howMany int ) { bufErrChan := make ( chan error , howMany ) orderChan := make ( chan * cxrpc . SubmitOrderReply ) for i := 0 ; i < howMany ; i ++ { go client . OrderAsync ( client . PrivKey . PubKey ( ) , " " , pair , 1000 , 1.0 , orderChan , bufErrChan ) } for i := 0 ; i < cap ( bufErrChan ) ; i ++ { select { case err := <- bufErrChan : if err != nil { logging . Errorf ( " " , err ) } case order := <- orderChan : if order != nil { logging . Infof ( " " , order . OrderID ) } } } return }
PlaceManyBuy places many orders at once
PlaceManyBuy places many orders at once