Skip to content

Commit

Permalink
Merge pull request #317 from ImNotOssy/develop-tornado
Browse files Browse the repository at this point in the history
Develop tornado
  • Loading branch information
matthew55 authored Sep 1, 2024
2 parents a8de0d6 + 591cf7a commit ba51750
Show file tree
Hide file tree
Showing 4 changed files with 422 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,18 @@ ROBINHOOD=
# SCHWAB=SCHWAB_USERNAME:SCHWAB_PASSWORD:NA
SCHWAB=

# Tradier
# TRADIER=TRADIER_ACCESS_TOKEN
TRADIER=

# Tastytrade
# TASTYTRADE=TASTYTRADE_USERNAME:TASTYTRADE_PASSWORD
TASTYTRADE=

# Tornado
# TORNADO=TORNADO_EMAIL:TORNADO_PASSWORD
TORNADO=

# Tradier
# TRADIER=TRADIER_ACCESS_TOKEN
TRADIER=

# Vanguard
# VANGUARD=VANGUARD_USERNAME:VANGUARD_PASSWORD:PHONE_LAST_FOUR:DEBUG(Optional) TRUE/FALSE
VANGUARD=
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,16 @@ To get your TOTP secret, follow this [guide](guides/schwabSetup.md).

Note 1: Think or Swim must be enabled on all accounts. To enable, go to `Trade` > `Trading Platforms` > `Learn how to enable thinkorswim`. Then press `Continue` and expand the `thinkorswim Access Agreement` and accept it. Then press `Continue` again. Then select the checkbox for all available accounts and press `Submit`. It may take a day or two for the accounts to be enabled.

### Tornado
Made by [ImNotOssy](https://github.com/ImNotOssy) using Selenium. Go give them a ⭐

Required `.env` variables:
- `TORNADO_EMAIL`
- `TORNADO_PASSWORD`

`.env` file format:
- `TORNADO=TORNADO_EMAIL:TORNADO_PASSWORD`

### Tradier
Made by yours truly using the official [Tradier API](https://documentation.tradier.com/brokerage-api/trading/getting-started). Consider giving me a ⭐

Expand Down
5 changes: 5 additions & 0 deletions autoRSA.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
from robinhoodAPI import *
from schwabAPI import *
from tastyAPI import *
from tornadoAPI import *
from tradierAPI import *
from vanguardAPI import *
from webullAPI import *
Expand All @@ -58,6 +59,7 @@
"robinhood",
"schwab",
"tastytrade",
"tornado",
"tradier",
"vanguard",
"webull",
Expand Down Expand Up @@ -138,6 +140,9 @@ def fun_run(orderObj: stockOrder, command, botObj=None, loop=None):
+ fun_name
+ ": Function did not complete successfully."
)
elif broker.lower() == "tornado":
# Initialize Tornado
orderObj.set_logged_in(tornado_init(), broker)
else:
orderObj.set_logged_in(globals()[fun_name](), broker)

Expand Down
Loading

0 comments on commit ba51750

Please sign in to comment.