from dotenv import load_dotenv from os import getenv from tastytrade import Tastytrade load_dotenv() account = getenv("TASTYTRADE_ACCOUNT") username = getenv("TASTYTRADE_USERNAME") password = getenv("TASTYTRADE_PASSWORD") client = Tastytrade(username, password) client.login() client.start_streaming(['AAPL', 'AMZN'])