From a2cff268a8845d6ae6cd0592317e815f6f730467 Mon Sep 17 00:00:00 2001 From: Nelson Dane <47427072+NelsonDane@users.noreply.github.com> Date: Sun, 21 Apr 2024 17:11:15 -0400 Subject: [PATCH] improve rh 2fa setup guide --- README.md | 4 +--- guides/robinhoodSetup.md | 11 +++++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 guides/robinhoodSetup.md diff --git a/README.md b/README.md index fa0535d8..f2329b78 100644 --- a/README.md +++ b/README.md @@ -162,9 +162,7 @@ Required `.env` variables: - With 2fa: `ROBINHOOD=ROBINHOOD_USERNAME:ROBINHOOD_PASSWORD:ROBINHOOD_TOTP` - Without 2fa: `ROBINHOOD=ROBINHOOD_USERNAME:ROBINHOOD_PASSWORD:NA` -If you don't have an IRA account or only have one, then you can omit the last field or set it to NA. - -Configuring 2fa can be tricky, read the TOTP section [here](https://github.com/jmfernandes/robin_stocks/blob/master/Robinhood.rst#with-mfa-entered-programmatically-from-time-based-one-time-password-totp). +Configuring 2fa can be tricky, so follow this [guide](guides/robinhoodSetup.md). ### Schwab Made using the [schwab-api](https://github.com/itsjafer/schwab-api). Go give them a ⭐ diff --git a/guides/robinhoodSetup.md b/guides/robinhoodSetup.md new file mode 100644 index 00000000..484ff059 --- /dev/null +++ b/guides/robinhoodSetup.md @@ -0,0 +1,11 @@ +## How to Set Up Robinhood 2FA +This guide will show you how to get your Robinhood TOTP secret, which is required for this bot to work if you have 2FA enabled. + +Note: Be sure to save your TOTP secret to an authenticator app so you don't get locked out of your account! + +1. Download a TOTP app. I recommend [Authy](https://authy.com/). +2. Open the Robinhood app and go to your profile, then the 3 lines in the top left, then Security and privacy, then Two-factor authentication. +3. Click "Set up" for "Authenticator App." Robinhood will show you a setup key. This is what you want to use as your TOTP secret in your `.env` file. +4. Open Authy and click the `+` button to add a new account. +5. Select `Enter key manually` and enter the TOTP secret from step 3. +6. Done! Now use the TOTP secret from step 3 as your `ROBINHOOD_TOTP` in your `.env` file. \ No newline at end of file