akahu.api.endpoints.transactions

class akahu.api.endpoints.transactions.TransactionsEndpoint(client: ApiBase, endpoint='/transactions')

Bases: ApiGetByIdEndpoint[Transaction], ApiPagedEndpoint[Transaction]

Endpoints for retrieving transactions.

Arguments:

client (ApiBase): The API client, or prefix-endpoint in the url path. endpoint (str): (optional) The endpoint for the transactions API. Defaults to “/transactions”.

property endpoint: str
getById(id: str, **kwargs) T
list(start: datetime, end: datetime, cursor: str = None, **kwargs) PagedResponse[Transaction]

List transactions.

Arguments:

start (datetime): Start date for the transactions. end (datetime): End date for the transactions. cursor (str): Cursor for pagination.

property pending: PendingTransactionsEndpoint

Endpoint for retrieving pending transactions. Might be scoped to a specific account.