// GetTransactions returns the movements of the wallets of the client for a given currency.
// Returns a TransactionList struct, where all the transactions are in the Data field
// in a slice of Transaction. TransactionList supports Next() and Previous to get the
// corresponding pages.
//
// List of accepted Arguments:
//   - required: Currency (string)
//   - optional: Page (int), Limit (int)
// https://developers.cryptomkt.com/#obtener-movimientos
GetTransactions returns the movements of the wallets of the client for a given currency.
Returns a TransactionList struct, where all the transactions are in the Data field
in a slice of Transaction. TransactionList supports Next() and Previous to get the
corresponding pages.


// GetTransactions returns the movements of the wallets of the client for a given currency . // Returns a TransactionList struct where all the transactions are in the Data field // in a slice of Transaction . TransactionList supports Next () and Previous to get the // corresponding pages . // // List of accepted Arguments : // - required : Currency ( string ) // - optional : Page ( int ) Limit ( int ) // https : // developers . cryptomkt . com / #obtener - movimientos
func (client *Client) GetTransactions(arguments ...args.Argument) (*TransactionList, error) {
	required := []string{"currency"}
	req, err := makeReq(required, arguments...)
	if err != nil {
		return nil, fmt.Errorf("Error in GetTransactions: %s", err)
	}
	resp, err := client.get("transactions", req)
	if err != nil {
		return nil, fmt.Errorf("error making the request: %s", err)
	}
	var tResp TransactionsResponse
	json.Unmarshal(resp, &tResp)
	if tResp.Status == "error" {
		return nil, fmt.Errorf("error from the server side: %s", tResp.Message)
	}
	tList := TransactionList{
		currency:   req.GetArguments()["currency"],
		client:     client,
		pagination: tResp.Pagination,
		Data:       tResp.Data,
	}
	return &tList, nil
}
func ( client * Client ) GetTransactions ( arguments ... args . Argument ) ( * TransactionList , error ) { required := [ ] string { " " } req , err := makeReq ( required , arguments ... ) if err != nil { return nil , fmt . Errorf ( " " , err ) } resp , err := client . get ( " " , req ) if err != nil { return nil , fmt . Errorf ( " " , err ) } var tResp TransactionsResponse json . Unmarshal ( resp , & tResp ) if tResp . Status == " " { return nil , fmt . Errorf ( " " , tResp . Message ) } tList := TransactionList { currency : req . GetArguments ( ) [ " " ] , client : client , pagination : tResp . Pagination , Data : tResp . Data , } return & tList , nil }
GetTransactions returns the movements of the wallets of the client for a given currency.
GetTransactions returns the movements of the wallets of the client for a given currency .