// GetNext lets you go to the next page if it exists, returns (*Prices, nil) if
// it is successfull and (nil, error) otherwise
GetNext lets you go to the next page if it exists, returns (*Prices, nil) if
it is successfull and (nil, error) otherwise
// GetNext lets you go to the next page if it exists returns ( * Prices nil ) if // it is successfull and ( nil error ) otherwise
func (o *OrderList) GetNext() (*OrderList, error) {
	if o.pagination.Next == nil {
		return nil, fmt.Errorf("Next page does not exist")
	}
	var call func(args ...args.Argument) (*OrderList, error)
	if o.caller == "active_orders" {
		call = o.client.GetActiveOrders
	} else { 
		call = o.client.GetExecutedOrders
	}
	oList, err := call(
		args.Market(o.market),
		args.Page(int(o.pagination.Next.(float64))),
		args.Limit(o.pagination.Limit))
	if err != nil {
		return nil, fmt.Errorf("error getting the next page: %s", err)
	}
	oList.setClientInOrders()
	return oList, nil
}
func ( o * OrderList ) GetNext ( ) ( * OrderList , error ) { if o . pagination . Next == nil { return nil , fmt . Errorf ( " " ) } var call func ( args ... args . Argument ) ( * OrderList , error ) if o . caller == " " { call = o . client . GetActiveOrders } else { call = o . client . GetExecutedOrders } oList , err := call ( args . Market ( o . market ) , args . Page ( int ( o . pagination . Next . ( float64 ) ) ) , args . Limit ( o . pagination . Limit ) ) if err != nil { return nil , fmt . Errorf ( " " , err ) } oList . setClientInOrders ( ) return oList , nil }
GetNext lets you go to the next page if it exists, returns (*Prices, nil) if
it is successfull and (nil, error) otherwise
GetNext lets you go to the next page if it exists returns ( * Prices nil ) if it is successfull and ( nil error ) otherwise
// caller is execute_order