From 18f7a2cbce599f1542edaf556bed6ccf124f84cf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 3 May 2025 18:56:13 +0000 Subject: [PATCH 1/3] Bump tastytrade from 9.11 to 10.1.1 Bumps [tastytrade](https://github.com/tastyware/tastytrade) from 9.11 to 10.1.1. - [Release notes](https://github.com/tastyware/tastytrade/releases) - [Commits](https://github.com/tastyware/tastytrade/compare/v9.11...v10.1.1) --- updated-dependencies: - dependency-name: tastytrade dependency-version: 10.1.1 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 4bbfd2fc..3374f126 100644 --- a/requirements.txt +++ b/requirements.txt @@ -21,6 +21,6 @@ requests==2.32.3 schwab-api==0.4.3 selenium-stealth==1.0.6 setuptools==80.1.0 -tastytrade==9.11 +tastytrade==10.1.1 vanguard-api==0.3.0 -e git+https://github.com/NelsonDane/webull.git@ef14ae63f9e1436fbea77fe864df54847cf2f730#egg=webull From e026f04465d5b5afdb27994175d0b47f50f3cfcc Mon Sep 17 00:00:00 2001 From: Nelson Dane <47427072+NelsonDane@users.noreply.github.com> Date: Sat, 3 May 2025 15:03:26 -0400 Subject: [PATCH 2/3] udpate functions --- tastyAPI.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tastyAPI.py b/tastyAPI.py index 746540d9..b0eee626 100644 --- a/tastyAPI.py +++ b/tastyAPI.py @@ -57,7 +57,7 @@ def tastytrade_init(TASTYTRADE_EXTERNAL=None): try: tasty = Session(account[0], account[1]) tasty_obj.set_logged_in_object(name, tasty, "session") - an = Account.get_accounts(tasty) + an = Account.get(tasty) tasty_obj.set_logged_in_object(name, an, "accounts") for acct in an: tasty_obj.set_account_number(name, acct.account_number) @@ -76,6 +76,7 @@ def tastytrade_holdings(tt_o: Brokerage, loop=None): for key in tt_o.get_account_numbers(): obj: Session = tt_o.get_logged_in_objects(key, "session") for index, account in enumerate(tt_o.get_logged_in_objects(key, "accounts")): + account: Account try: an = tt_o.get_account_numbers(key)[index] positions = account.get_positions(obj) From c9f02aae5b1996446ede8aa6947524302360356a Mon Sep 17 00:00:00 2001 From: Nelson Dane <47427072+NelsonDane@users.noreply.github.com> Date: Sat, 3 May 2025 15:10:07 -0400 Subject: [PATCH 3/3] fix get equity --- tastyAPI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tastyAPI.py b/tastyAPI.py index b0eee626..cff1108c 100644 --- a/tastyAPI.py +++ b/tastyAPI.py @@ -19,7 +19,7 @@ def order_setup(tt: Session, order_type, stock_price, stock, amount): - symbol = Equity.get_equity(tt, stock) + symbol = Equity.get(tt, stock) if order_type[2] == "Buy to Open": leg = symbol.build_leg(D(amount), OrderAction.BUY_TO_OPEN) elif order_type[2] == "Sell to Close":