// 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 (tList *TransactionList) GetNext() (*TransactionList, error) {
	if tList.pagination.Next == nil {
		return nil, fmt.Errorf("Previous page does not exist")
	}
	tList, err := tList.client.GetTransactions(
		args.Currency(tList.currency),
		args.Page(int(tList.pagination.Next.(float64))),
		args.Limit(tList.pagination.Limit))
	if err != nil {
		return nil, fmt.Errorf("error getting the next page: %s", err)
	}
	return tList, nil
}
func ( tList * TransactionList ) GetNext ( ) ( * TransactionList , error ) { if tList . pagination . Next == nil { return nil , fmt . Errorf ( " " ) } tList , err := tList . client . GetTransactions ( args . Currency ( tList . currency ) , args . Page ( int ( tList . pagination . Next . ( float64 ) ) ) , args . Limit ( tList . pagination . Limit ) ) if err != nil { return nil , fmt . Errorf ( " " , err ) } return tList , 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