Skip to content

Serverless application with lambda listening to sns topic for bank transactions and posting to YNAB

License

Notifications You must be signed in to change notification settings

dejanvasic85/banksy-ynab

Repository files navigation

Banksy YNAB

CircleCI

Serverless application written in Typescript that contains a lambda subscribed to an SNS topic. The messages contain banking transactions which are then posted to YNAB api.

Message Structure

Property Type e.g.
username string johnny
bankId string cba
accountName string Savings
transactions BankTransactions[] see below

Bank Transaction:

Property Type e.g.
amount number -20
date string (date ISO Format) 2019-12-22T00:00:00+11:00
description string McDonald's

Amount field is converted automatically to cents as 100 base points, so -20 will be posted as -20000 to YNAB.

The date field is simply a string and is directly forwarded to YNAB. It should contain the local date including the timezone.

Secrets

Each user will have their configuration that includes YNAB api key and account details in a JSON stored AWS Secret.

Architecture

This application is only responsible for subscribing to user transactions and filtering + posting them to YNAB. Banksy is responsible for fetching/scraping the transactions from the various supported banks.

Architecture Diagram

About

Serverless application with lambda listening to sns topic for bank transactions and posting to YNAB

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •