// GetPrevious lets you go to the previous page if it exists, returns (*Prices, nil) if
// it is successfull and (nil, error) otherwise
GetPrevious lets you go to the previous page if it exists, returns (*Prices, nil) if
it is successfull and (nil, error) otherwise
// GetPrevious lets you go to the previous page if it exists returns ( * Prices nil ) if // it is successfull and ( nil error ) otherwise
func (p *Prices) GetPrevious() (*Prices, error) {
	if p.pagination.Previous == nil {
		return nil, fmt.Errorf("Previous page does not exist")
	}
	return p.client.GetPrices(
		args.Market(p.args["market"]),
		args.Type(p.args["timeframe"]),
		args.Page(int(p.pagination.Previous.(float64))),
		args.Limit(p.pagination.Limit))
}
func ( p * Prices ) GetPrevious ( ) ( * Prices , error ) { if p . pagination . Previous == nil { return nil , fmt . Errorf ( " " ) } return p . client . GetPrices ( args . Market ( p . args [ " " ] ) , args . Type ( p . args [ " " ] ) , args . Page ( int ( p . pagination . Previous . ( float64 ) ) ) , args . Limit ( p . pagination . Limit ) ) }
GetPrevious lets you go to the previous page if it exists, returns (*Prices, nil) if
it is successfull and (nil, error) otherwise
GetPrevious lets you go to the previous page if it exists returns ( * Prices nil ) if it is successfull and ( nil error ) otherwise