Skip to content

Commit

Permalink
improve rh 2fa setup guide
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonDane committed Apr 21, 2024
1 parent b307193 commit a2cff26
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 ⭐
Expand Down
11 changes: 11 additions & 0 deletions guides/robinhoodSetup.md
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit a2cff26

Please sign in to comment.