func (self *Client) OpenOrders() ([]Order, error) {
	var (
		err    error
		orders []*exchange.Order
		output []Order
	)
	defer AfterRequest()
	BeforeRequest(self, WEIGHT_OPEN_ORDERS_WITHOUT_SYMBOL)
	if orders, err = self.inner.NewListOpenOrdersService().Do(context.Background()); err != nil {
		self.handleError(err)
		return nil, err
	}
	for _, unwrapped := range orders {
		var wrapped *Order
		if wrapped, err = wrap(unwrapped); err != nil {
			return nil, err
		}
		output = append(output, *wrapped)
	}
	return output, nil
}
Get all open orders without a symbol.
package binance
import (
	"context"
	"net/http"
	"time"
	exchange "github.com/adshao/go-binance/v2"
)
const (
	BASE_URL    = "https://api.binance.com"
	BASE_URL_1  = "https://api1.binance.com"
	BASE_URL_2  = "https://api2.binance.com"
	BASE_URL_3  = "https://api3.binance.com"
	BASE_URL_US = "https://api.binance.us"
)
type Client struct {
	inner *exchange.Client
}
func (self *Client) Orders(symbol string) ([]Order, error) {
	var (
		err    error
		orders []*exchange.Order
		output []Order
	)
	defer AfterRequest()
	BeforeRequest(self, WEIGHT_ALL_ORDERS)
	if orders, err = self.inner.NewListOrdersService().Symbol(symbol).Do(context.Background()); err != nil {
		self.handleError(err)
		return nil, err
	}
	for _, unwrapped := range orders {
		var wrapped *Order
		if wrapped, err = wrap(unwrapped); err != nil {
			return nil, err
		}
		output = append(output, *wrapped)
	}
	return output, nil
}