SDK Quickstart — Python
Installation
pip install aelix-sdk
# Requires Python 3.9+
Initialise the Client
import os
from aelix import AelixClient
client = AelixClient(
client_id=os.environ["AELIX_CLIENT_ID"],
client_secret=os.environ["AELIX_CLIENT_SECRET"],
environment="sandbox", # "production" for live
)
List Transactions
transactions = client.banking.transactions.list(
account_id="acc_abc123",
from_date="2025-04-01T00:00:00Z",
to_date="2025-04-15T23:59:59Z",
limit=100,
)
for txn in transactions.data:
direction = "+" if txn.type == "credit" else "-"
print(f"{txn.created_at} {direction}£{txn.amount / 100:.2f} {txn.description}")
Paginate Through All Results
# The SDK handles pagination automatically with auto_paginate
all_transactions = list(
client.banking.transactions.list_all(account_id="acc_abc123")
)
print(f"Total transactions: {len(all_transactions)}")
Async Support
import asyncio
from aelix.async_client import AsyncAelixClient
async def main():
async with AsyncAelixClient(
client_id=os.environ["AELIX_CLIENT_ID"],
client_secret=os.environ["AELIX_CLIENT_SECRET"],
) as client:
accounts = await client.banking.accounts.list()
print(accounts)
asyncio.run(main())