// Close closes every order in the order list.
Close closes every order in the order list.
// Close closes every order in the order list .
func (oList *OrderList) Close() error {
	for i, order := range oList.Data {
		oClosed, err := oList.client.CancelOrder(args.Id(order.Id))
		if err != nil {
			return fmt.Errorf("Close order %s failed: %s", order.Id, err)
		}
		oList.Data[i] = *oClosed
	}
	oList.setClientInOrders()
	return nil
}
func ( oList * OrderList ) Close ( ) error { for i , order := range oList . Data { oClosed , err := oList . client . CancelOrder ( args . Id ( order . Id ) ) if err != nil { return fmt . Errorf ( " " , order . Id , err ) } oList . Data [ i ] = * oClosed } oList . setClientInOrders ( ) return nil }
Close closes every order in the order list.
Close closes every order in the order list .