ferdousbhai/tasty-agent logo

ferdousbhai/tasty-agent

Free

Tastyworks API 集成,处理 Tastytrade 上的交易活动。

FreeFree tier
Type
Open Source

About ferdousbhai/tasty-agent

Tasty-Agent is an open-source Model Context Protocol (MCP) server for TastyTrade brokerage accounts. It enables LLMs (such as Claude) to monitor portfolios, analyze positions, and execute trades. The server features automated implied volatility (IV) analysis prompts and built-in rate limiting (2 requests per second) to prevent API errors. It provides a suite of MCP tools covering account overview, real-time market data (quotes, Greeks, IV rank, percentile), transaction and order history, and comprehensive order management including multi-leg orders with quote-derived mid pricing, target value sizing, and tick grid alignment. Authentication is handled via OAuth with refresh tokens. The project is designed to be run locally or as a service, with full control over trading actions.

Key Features

Automated implied volatility (IV) analysis prompts
Built-in rate limiting (2 requests/second) to prevent API errors
Account overview with balances and open positions
Real-time quotes for stocks, options, futures, and indices via DXLink streaming
Greeks (delta, gamma, theta, vega, rho) for equity and futures options
Market metrics including IV rank, percentile, beta, and liquidity
Market status and hours for multiple exchanges
Symbol search by name or ticker
Transaction and order history with filtering and pagination
Multi-leg order placement with quote-derived mid pricing and tick grid alignment

Pros & Cons

Pros
  • Open-source and free to self-host
  • Built-in rate limiting prevents API abuse and errors
  • Comprehensive market data including Greeks and IV metrics
  • Supports complex multi-leg orders with accurate mid pricing
  • Target value sizing simplifies position sizing
  • Dry-run mode enables safe order validation
  • Secure OAuth2 authentication with refresh tokens
  • Integration with Claude and other MCP-compatible LLMs
Cons
  • Limited to TastyTrade brokerage accounts only
  • Requires manual OAuth setup which may be complex for non-technical users
  • Dependency on DXLink streaming for real-time data may introduce latency
  • Rate limiting (2 requests/second) could be restrictive for high-frequency trading

Best For

Monitor portfolio balances and positions in real-timeAnalyze options positions using Greeks and IV metricsExecute trades based on LLM-generated strategiesAutomate trading strategies with custom scripts and promptsBacktest or simulate orders using dry-run modeRetrieve transaction history for tax or performance reporting

FAQ

How does authentication work?
Authentication uses OAuth with a refresh token. You must create an OAuth app in your tastytrade account settings, generate a personal OAuth grant, and configure the MCP server with the client ID, client secret, and refresh token.
What trading actions are supported?
The server supports placing multi-leg orders (buy/sell to open/close for equities and options, buy/sell for futures), replacing existing orders with updated prices, canceling orders, and listing all live orders. Orders use quote-derived mid pricing aligned to the broker's tick grid.
Is there a dry-run mode?
Yes, the place_order tool includes a dry_run parameter. When set to true, the server validates the order against market data and pricing rules without submitting the order to the broker.
What market data is available?
Real-time quotes for stocks, options, futures, and indices; Greeks for options; IV rank, percentile, beta, and liquidity metrics; market hours and status for multiple exchanges; and symbol search.