Skip to content

ferdousbhai/tasty-agent

v4.1.2 Bugfix

This release fixes issues for SREs watching stability and regressions.

✓ No known CVEs patched
Read the diff → Tool health → What is this tool? →

✓ No known CVEs patched in this version

Topics

finance investing options stocks tastytrade trading

Summary

AI summary

Fixed regression in equity order action normalization to match SDK and API.

Full changelog

Fix live equity order action handling.

This patch corrects the order-action contract for manage_order(...) to match the tastytrade Python SDK and live API behavior:

  • equities and options use Buy to Open, Buy to Close, Sell to Open, Sell to Close
  • futures use Buy / Sell

This fixes the regression introduced in v4.1.1 where equity opening/closing actions were normalized to plain Buy / Sell, which could cause live orders to fail with:
order_legs.action: is invalid

Verification:

  • unit tests: uv run pytest tests/test_server.py -q
  • integration check: uv run pytest tests/test_integration.py -k 'dry_run_equity_buy_to_open_order_leg_mapping' -q
  • live sanity check: BITX + Buy to Open + dry_run=False succeeded and was canceled successfully

This release also simplifies the internal module layout by splitting order, market-data, account/history, watchlist, and shared context helpers into smaller modules without changing tool behavior.

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

Share this release

Track ferdousbhai/tasty-agent

Get notified when new releases ship.

Sign up free

About ferdousbhai/tasty-agent

Tastyworks API integration to handle trading activities on Tastytrade

All releases →

Beta — feedback welcome: [email protected]