Hey there,
This is very cool, thanks for putting it out there. I'll take it for a spin soon.
You're 100% correct about the gaps in the PocketSmith API and the official web app. I've been hacking on the API (using your client!) to develop similar features, namely notifications for specific transactions (eg. salary payment). I've got that part working using the list_transaction_account_transactions_with_http_info resource, but your implementation is more elegant.
This has all got me thinking about taking an event-driven approach to personal finance, with rules that:
- Search for specific transactions or balances (eg. monthly salary payment or low account balance),
- Generate events when matching transactions are found,
- And then have those events trigger any number of configurable actions (eg. push notifications).
The formula looks like this:
Rule --> Event(s) --> Action(s)
A rule configuration could look like this:
rule = {
"id": "b4d651ad",
"name": "Salary",
"description": "Monthly salary from my employer",
"account_id": 716042,
"transaction_type": "credit",
"search_terms": "Salary",
"amount": 500,
"tags": ["salary", "employment"]
}
And the corresponding actions could look like this (on a high level):
- Send a push notification to my iPhone
- Call the Coinbase API to automatically buy 0.100 Bitcoins
(A stretch goal is to build this in such a way that PocketSmith is one of many potential sources, instead of having it tightly coupled.)
I'll take a shot at prototyping this as a backend API on Lambda/DynamoDB (using some of the code in this repo), and will share the results back. Would be keen to hear your thoughts, in the meanwhile.
Hey there,
This is very cool, thanks for putting it out there. I'll take it for a spin soon.
You're 100% correct about the gaps in the PocketSmith API and the official web app. I've been hacking on the API (using your client!) to develop similar features, namely notifications for specific transactions (eg. salary payment). I've got that part working using the
list_transaction_account_transactions_with_http_inforesource, but your implementation is more elegant.This has all got me thinking about taking an event-driven approach to personal finance, with rules that:
The formula looks like this:
Rule --> Event(s) --> Action(s)A rule configuration could look like this:
And the corresponding actions could look like this (on a high level):
(A stretch goal is to build this in such a way that PocketSmith is one of many potential sources, instead of having it tightly coupled.)
I'll take a shot at prototyping this as a backend API on Lambda/DynamoDB (using some of the code in this repo), and will share the results back. Would be keen to hear your thoughts, in the meanwhile.