Chalk can help you build insight into the financial transactions of your users.
Compute income from Plaid transactions.
@realtime
def get_plaid_income(
txns: User.transactions[
PlaidTransaction.is_payroll is True,
after(days_ago=30),
],
) -> User.computed_income_30:
return txns[PlaidTransaction.amount].sum()
https://docs.chalk.ai/docs/features
Identify users with multiple accounts.
@features
class Account:
id: int
user_id: "User.id"
user: "User"
@features
class User:
id: int
accounts: DataFrame[Account]
https://docs.chalk.ai/docs/has-many
Integrate data from credit bureaus like Transunion.
@realtime
def get_credit_report(
first_name: User.first_name,
last_name: User.last_name,
city: User.city,
state: User.state,
id: User.id,
) -> CreditReport:
res = requests.post(
f"{url}/transunion/credit-report",
json={
"firstName": first_name,
"lastName": last_name,
"city": city,
"state": state,
},
).json()
return CreditReport(user_id=id, report_id=res["pdfReportId"], report=res["data"])
https://docs.chalk.ai/docs/resolver-overview
Aggregate user statistics across tradelines.
@realtime
def tradeline_rollup(
accounts: User.tradelines[
Tradeline.is_delinquent is True
]
) -> User.delinquent_amount:
return accounts[Tradeline.outstanding].sum()