Class AccountActivitiesEndpoint
java.lang.Object
net.jacobpeterson.alpaca.rest.endpoint.AlpacaEndpoint
net.jacobpeterson.alpaca.rest.endpoint.AccountActivitiesEndpoint
public class AccountActivitiesEndpoint extends AlpacaEndpoint
-
Field Summary
Fields inherited from class net.jacobpeterson.alpaca.rest.endpoint.AlpacaEndpoint
alpacaClient, endpointPathSegment
-
Constructor Summary
Constructors Constructor Description AccountActivitiesEndpoint(AlpacaClient alpacaClient)
Instantiates a newAccountActivitiesEndpoint
. -
Method Summary
Modifier and Type Method Description List<AccountActivity>
get(ZonedDateTime date, ZonedDateTime until, ZonedDateTime after, SortDirection sortDirection, Integer pageSize, String pageToken, ActivityType... activityTypes)
-
Constructor Details
-
AccountActivitiesEndpoint
Instantiates a newAccountActivitiesEndpoint
.- Parameters:
alpacaClient
- theAlpacaClient
-
-
Method Details
-
get
public List<AccountActivity> get(ZonedDateTime date, ZonedDateTime until, ZonedDateTime after, SortDirection sortDirection, Integer pageSize, String pageToken, ActivityType... activityTypes) throws AlpacaClientException- Parameters:
date
- the date for which you want to see activities.until
- the response will contain only activities submitted before this date. (Cannot be used withdate
.)after
- the response will contain only activities submitted after this date. (Cannot be used withdate
.)sortDirection
- theSortDirection
(defaults toSortDirection.DESCENDING
if unspecified.)pageSize
- the maximum number of entries to return in the response. (See the section on paging.)pageToken
- the ID of the end of your current page of results. (See the section on paging.)activityTypes
- theActivityType
s (null for allActivityType
s)- Returns:
- a
List
ofAccountActivity
s - Throws:
AlpacaClientException
- thrown forAlpacaClientException
s
-