News for hackers. Stuff that matters.
Re:Ask HN: What automation tools have you used to replace mu... by buzzy_hacker on Monday February 17, 2020 @09:34AM (#22347926)
I use YNAB (https://youneedabudget.com/), which requires inputting every one of your transactions by hand or importing them from your bank. The downside of the import is it takes a few days for the transaction to show up and you need to give YNAB your bank username/password, which I'm not comfortable with.

I wrote this https://github.com/buzzlawless/ynab-live-import to import credit card transactions instantly with no need of giving up my bank credentials.

The whole stack runs on Amazon Web Services. Simple Email Service receives a notification email from the bank that I've made a purchase, saves it to S3, and triggers a particular lambda function tailored to whichever bank the notification came from. The lambda function retrieves the email from S3, parses it for transaction data (account, payee, amount, date), and writes that data to a DynamoDB table. The table has a stream enabled, which triggers another lambda function when the table is updated. The function reads the transaction data from the stream and posts the transaction to YNAB using their API.

I've mentioned this on HN once or twice before and got some positive interest with people even submitting pull requests, which is awesome :) Going to find the time soon to review those and maybe add more features

Re:Ask HN: What automation tools have you used to replace mu... by RHSeeger on Monday February 17, 2020 @11:34AM (#22348801)
> you need to give YNAB your bank username/password

I am constantly amazed by the people that are willing to do this for various value-added finance sites; people that I would normally consider sane. Unless your bank provides (and you used) a read-only account authentication, if something goes wrong and your money disappears from the bank, the bank is going to tell you to take a hike. I can't imagine taking this kind of risk with my money.

Re:Ask HN: What automation tools have you used to replace mu... by avree on Monday February 17, 2020 @11:56AM (#22348944)
Sorry, but there’s no bank in the world that would tell you to simply “take a hike” if your password was breached and your money was stolen.
Re:Ask HN: What automation tools have you used to replace mu... by kingkongjaffa on Monday February 17, 2020 @12:02PM (#22348982)
They will if you literally give your credentials to a 3rd party when they explicity say don't give out your details anywhere, only between you and your bank.
Re:Ask HN: What automation tools have you used to replace mu... by Hamuko on Monday February 17, 2020 @12:40PM (#22349189)
Giving away your password voluntarily and knowingly is not a breach.
Re:Ask HN: What automation tools have you used to replace mu... by kazga on Tuesday February 18, 2020 @05:07AM (#22354804)
For me, the username/password gives you read-only access and any kind of transaction requires 2FA.
Re:Ask HN: What automation tools have you used to replace mu... by bathtub365 on Monday February 17, 2020 @09:46AM (#22347981)
That sounds a lot more complicated than just downloading bank statements and uploading them to YNAB and adds a lot more points of failure
Re:Ask HN: What automation tools have you used to replace mu... by simmanian on Monday February 17, 2020 @01:14PM (#22349390)
Downloading and uploading bank statements is a manual process, unless you're willing to give the service your bank ID/PW, right? Seems to me if you set up your bank accounts to send you notification emails for any balance change, you can automatically reflect the balance without needing to deal with sensitive credentials.
Re:Ask HN: What automation tools have you used to replace mu... by ralmeida on Monday February 17, 2020 @10:02AM (#22348108)
It does, but it also keeps YNAB more in sync with your bank account, since transactions will typically take a couple days to show up in the statement.
Re:Ask HN: What automation tools have you used to replace mu... by Aaargh20318 on Monday February 17, 2020 @10:42AM (#22348427)
> transactions will typically take a couple days to show up in the statement

Wait, in what century do you live that your online banking transaction overview doesn't have up to date data ? Also, your bank allows you to log in with just a username/password ?

Re:Ask HN: What automation tools have you used to replace mu... by derefr on Monday February 17, 2020 @11:31AM (#22348783)
A banking "statement" usually refers to a PDF you can download; the electronic version of the thing they'd previously send you by mail.

The online banking CRUD interface might have up-to-date data, but it isn't an API, and being behind some weird proprietary single-sign-on setup makes it pretty hard to scrape, too.

> Also, your bank allows you to log in with just a username/password ?

Yes, this is common in the US (and here in Canada, too.) We sometimes get asked for "security questions", but support for 2FA is extremely rare, and I don't think there's any bank in North America that requires 2FA to login to your online banking. (The "government or bank issues you a smart card that can be used for session encryption; bank issues you an adapter to plug it into your computer" thing doesn't happen here.)

Re:Ask HN: What automation tools have you used to replace mu... by Aaargh20318 on Monday February 17, 2020 @01:31PM (#22349480)
> The online banking CRUD interface might have up-to-date data, but it isn't an API, and being behind some weird proprietary single-sign-on setup makes it pretty hard to scrape, too.

That’a why they also provide an API. They are required by law to do so (https://en.wikipedia.org/wiki/Payment_Services_Directive)

> I don't think there's any bank in North America that requires 2FA to login to your online banking.

This is required by the same law.

Re:Ask HN: What automation tools have you used to replace mu... by soverance on Monday February 17, 2020 @05:19PM (#22351429)
Bank of America only added 2FA as an opt-in option starting in 2017. It is most definitely not required... Law or not.

I'm pretty certain it's the same way with every other major US bank.

Re:Ask HN: What automation tools have you used to replace mu... by sobani on Tuesday February 18, 2020 @04:09AM (#22354561)
@Aaargh20318 could've mentioned that he linked to the EU laws about banking.
Re:Ask HN: What automation tools have you used to replace mu... by sobani on Tuesday February 18, 2020 @04:11AM (#22354565)
> > I don't think there's any bank in North America that requires 2FA to login to your online banking.

> This is required by the same law.

FYI: no bank has to follow EU laws in North America.

Re:Ask HN: What automation tools have you used to replace mu... by ralmeida on Monday February 17, 2020 @01:19PM (#22349420)
Regarding statement freshness, derefr already answered. Regarding username/password, in Brazil at least yes (sort of) - you log in with account number and a password, but it's sort of a "read-only password" - you can see statements and stuff with it, but if you want to actually move the money, a different password is required.

Trivia: this is used by a Mint-like company in Brazil called GuiaBolso - you give them just the "read-only password".

Re:Ask HN: What automation tools have you used to replace mu... by bathtub365 on Monday February 17, 2020 @10:09AM (#22348175)
Sure, but a database? Isn’t that part of what YNAB provides?
Re:Ask HN: What automation tools have you used to replace mu... by aphit on Monday February 17, 2020 @10:22AM (#22348269)
One of the key features of YNAB is using it to actually inform you before you make purchases. By having it near instant (manual, or by this method), your decisions are fully informed when you make them.
Re:Ask HN: What automation tools have you used to replace mu... by ralmeida on Monday February 17, 2020 @10:24AM (#22348287)
Yes, but a DB of "transaction notifications" your bank sent you could still be useful so you can reconcile/debug if needed, much like the actual bank statement.

I do agree that the DB could be removed from the system, adding the transaction directly from the SES-triggered event, and that would work for most cases.

Re:Ask HN: What automation tools have you used to replace mu... by buzzy_hacker on Friday February 21, 2020 @07:44PM (#22388551)
Yeah it could probably do without it, but initially made this for a hackathon so it’s by no means perfect
Re:Ask HN: What automation tools have you used to replace mu... by asdfman123 on Monday February 17, 2020 @11:02AM (#22348584)
It probably started as a side project that would specifically let them experiment with those technologies.
Re:Ask HN: What automation tools have you used to replace mu... by tomaslaureano on Monday February 17, 2020 @01:49PM (#22349630)
It's an amazing job what you have done here. I've been tinkering with exactly the same idea (and same implementation) but haven't had the time to go ahead. Your work will instantly jumpstart my own use case (VISA and Beancount) and I thank you for that. Kudos!
Re:Ask HN: What automation tools have you used to replace mu... by buzzy_hacker on Friday February 21, 2020 @08:36PM (#22388805)
Thank you! Appreciate the kind words
Re:Ask HN: What automation tools have you used to replace mu... by aaron_m04 on Thursday February 27, 2020 @03:47PM (#22437647)
> you need to give YNAB your bank username/password

Why don't they have oauth for this?

Re:Ask HN: What automation tools have you used to replace mu... by lignux on Monday February 17, 2020 @09:44AM (#22347972)
What do you do about cash transactions?
Re:Ask HN: What automation tools have you used to replace mu... by ralmeida on Monday February 17, 2020 @10:00AM (#22348095)
Not OP, but there's not much to do about them - best way is to enter manually in the app at the time of purchase or write them down in a notebook and enter them in batch once in a couple days or per week.

If your cash spending is sufficiently small that you don't care much to tracking each cash transaction individually, you can just track money as a category instead of an account - just record an outflow transaction in your bank account when you withdraw.

Re:Ask HN: What automation tools have you used to replace mu... by wry_discontent on Monday February 17, 2020 @11:17AM (#22348690)
I don't use ynab anymore, but when I did, I usually just didn't include cash in it. I almost never use cash, and so it made sense to just deduct the money when it became cash.