akahu.api.endpoints.accounts

class akahu.api.endpoints.accounts.AccountsEndpoint(client: ApiBase, endpoint='/accounts')

Bases: ApiGetByIdEndpoint[Account], ApiListEndpoint[Account]

Endpoints for retrieving accounts.

Arguments:

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

property endpoint: str
getById(id: str, **kwargs) T
list(**params) List
transactions(id: str) TransactionsEndpoint

Endpoint for retrieving transactions for a specific account.

Args:

id (str): The account ID.

Returns:

TransactionsEndpoint: A transactions endpoint scoped to the account. Route: /accounts/{id}/transactions.