// GetAllTransactions returns an array of transactions made in cryptomkt.
//
// List of arguments:
//			required: currency (string)
GetAllTransactions returns an array of transactions made in cryptomkt.

List of arguments:
required: currency (string)
// GetAllTransactions returns an array of transactions made in cryptomkt . // // List of arguments : // required : currency ( string )
func (client *Client) GetAllTransactions(argus ...args.Argument) ([]Transaction, error) {
	req, err := makeReq([]string{"currency"}, argus...)
	if err != nil {
		return nil, fmt.Errorf("Error in GetAllTransactions: %s", err)
	}
	neededArguments := []args.Argument{args.Page(0), args.Limit(100)}
	argsMap := req.GetArguments()
	neededArguments = append(neededArguments, args.Currency(argsMap["currency"]))
	trans, err := client.GetTransactions(neededArguments...)
	if err != nil {
		return nil, fmt.Errorf("Error in GetTransactions: %s", err)
	}
	allTrans := make([]Transaction, len(trans.Data))
	copy(allTrans, trans.Data)
	for trans, err = trans.GetNext(); err == nil; trans, err = trans.GetNext() {
		time.Sleep(2 * time.Second)
		allTrans = append(allTrans, trans.Data...)
		if len(allTrans) > 100 {
			break
		}
	}
	return allTrans, nil
}
func ( client * Client ) GetAllTransactions ( argus ... args . Argument ) ( [ ] Transaction , error ) { req , err := makeReq ( [ ] string { " " } , argus ... ) if err != nil { return nil , fmt . Errorf ( " " , err ) } neededArguments := [ ] args . Argument { args . Page ( 0 ) , args . Limit ( 100 ) } argsMap := req . GetArguments ( ) neededArguments = append ( neededArguments , args . Currency ( argsMap [ " " ] ) ) trans , err := client . GetTransactions ( neededArguments ... ) if err != nil { return nil , fmt . Errorf ( " " , err ) } allTrans := make ( [ ] Transaction , len ( trans . Data ) ) copy ( allTrans , trans . Data ) for trans , err = trans . GetNext ( ) ; err == nil ; trans , err = trans . GetNext ( ) { time . Sleep ( 2 * time . Second ) allTrans = append ( allTrans , trans . Data ... ) if len ( allTrans ) > 100 { break } } return allTrans , nil }
GetAllTransactions returns an array of transactions made in cryptomkt.
GetAllTransactions returns an array of transactions made in cryptomkt .