from jupyter_finance.core import *
import os
Configuration Script
about()
1. Add New Accounts
- Verify with Plaid (and bank providers) via Link provided (get a link_token)
- Grab ‘Public Access Token’ and save to local database (to be used for next time)
- Retrieve every public access token in our database and query transaction data
Refer to Core APIs (Authentication) and Official Plaid Documentation for detailed steps on how to your data is queried.
Refer to Token Storage to see how your tokens are secured.
= os.getenv("USER_EMAIL", "default@email.com")
email = os.getenv("USER_PHONE", "+1 000 0000000") phone
Verify identity of Client Application and get a Link token
= generate_link_token(email, phone) link_token
We grab ‘Public Access Token’ and save to local database
get_and_save_public_token(link_token, email, phone)
Retrieve every public access token in our database
= get_stored_public_access_tokens()
access_tokens =True) get_and_save_all_account_transactions(first_time
2. Budgetting
For more info on budgets, refer to Budget Flows
="Budget #1",
insert_new_budget(name="Transportation",
description=100, cadence="monthly",
limit="sat",
date_of_week="personal_finance_category = 'TRANSPORTATION' OR personal_finance_category = 'TRAVEL'"
rules
)="Budget #2",
insert_new_budget(name="Coffee",
description=30, cadence="weekly",
limit="tue",
date_of_week="personal_finance_category_detailed = 'FOOD_AND_DRINK_COFFEE'")
rules
="Budget #3",
insert_new_budget(name="Da Bois",
description=420.69,
limit="monthly",
cadence="personal_finance_category = 'ENTERTAINMENT' OR personal_finance_category = 'LOAN_PAYMENTS'")
rules
="Budget #4",
insert_new_budget(name="Eating",
description=10000000,
limit="biweekly",
cadence="sat",
date_of_week="personal_finance_category_detailed = 'FOOD_AND_DRINK_FAST_FOOD' AND NOT merchant_name = 'KFC'")
rules
="Budget #5",
insert_new_budget(name="KFC",
description=10000000,
limit="biweekly",
cadence="sat",
date_of_week="personal_finance_category_detailed = 'FOOD_AND_DRINK_FAST_FOOD' AND merchant_name = 'KFC'") rules
View active budgets
get_all_active_budgets()