2023-10-09 20:09:02 +00:00
|
|
|
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()
|
2024-07-06 12:12:46 +00:00
|
|
|
client.stream_quotes(['AAPL', 'AMZN'])
|