# TradeStaq — AI Trading Intelligence

# TradeStaq — AI Trading Intelligence

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add the-staq/tradestaq-mcp

# Browse available tools
npx -y @smithery/cli@latest tool list the-staq/tradestaq-mcp

# Get full schema for a tool
npx -y @smithery/cli@latest tool get the-staq/tradestaq-mcp login

# Call a tool
npx -y @smithery/cli@latest tool call the-staq/tradestaq-mcp login '{}'
```

## Direct MCP Connection

Endpoint: `https://tradestaq-mcp--the-staq.run.tools`

## Tools (31)

- `login` — Log in to TradeStaq with email and password.
- `authenticate` — Log in to TradeStaq via browser. Opens a login page in your browser — you authenticate there and the token is saved aut…
- `check_auth` — Check if you are authenticated with TradeStaq.
- `set_token` — Manually set a JWT token. For advanced use only.
- `connect_exchange` — Connect a new exchange account via browser. Opens a page where you securely enter your exchange API keys. Keys never en…
- `logout` — Remove stored TradeStaq credentials.
- `get_price` — Get the current price of a trading pair (e.g. BTC/USDT).
- `get_candles` — Get OHLCV candlestick data for a trading pair.
- `list_exchanges` — List your connected exchange accounts with their IDs, platform names, and status.
- `search_markets` — Search for trading pairs on a specific exchange. Use list_exchanges to find your exchange IDs.
- `get_portfolio` — Get portfolio overview: total balance, exchanges, and active bots.
- `get_positions` — Get all open trading positions with current PnL.
- `list_strategies` — List available trading strategies.
- `get_strategy` — Get detailed info about a specific strategy.
- `explain_strategy` — Get a plain-English explanation of a strategy: what it does, risk profile, best market conditions.
- `compare_strategies` — Compare multiple strategies side by side on key metrics.
- `create_strategy` — Create a new trading strategy from TradeDroid code.
- `generate_strategy` — Generate a trading strategy from a natural language description using AI. Describe what you want and AI creates the Tra…
- `what_if_backtest` — Run a backtest on a strategy. Async, may take 30-120 seconds. Returns full performance metrics.
- `get_backtest_results` — Check status/results of a previously started backtest.
- `list_bots` — List all your trading bots with status and performance.
- `get_bot_status` — Get detailed status and performance for a specific bot.
- `deploy_bot` — Deploy a strategy as a trading bot. Defaults to paper trading for safety.
- `stop_bot` — Stop a running trading bot. Open positions remain.
- `close_position` — Close an open trading position. WARNING: This executes a market order to close your position.
- `get_trade_history` — Get your closed trade history with PnL, entry/exit prices, and duration.
- `get_performance_metrics` — Get trading performance metrics: ROI, win rate, PnL, Sortino ratio.
- `list_top_traders` — Browse the leaderboard of top-performing traders you can copy.
- `follow_trader` — Subscribe to copy a top trader's trades. WARNING: This commits capital to copy trading.
- `suggest_strategies` — Suggest trading strategies matching your risk profile. Filters by risk tolerance, max drawdown, preferred assets, and m…
- `get_market_context` — Get market context for a symbol: trend direction, volatility level, support/resistance levels.

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get the-staq/tradestaq-mcp <tool-name>
```

## Resources

- `tradestaq://portfolio` — Current portfolio: balances, positions, and active bots across all exchanges.
- `tradestaq://bots` — All trading bots with current status, PnL, and strategy info.
- `tradestaq://strategies` — Available trading strategies with performance metrics.

## Prompts (3)

- `trading-assistant` — A trading assistant that helps manage your portfolio and positions.
- `strategy-builder` (goal) — A strategy building assistant for creating, backtesting, and deploying strategies.
- `portfolio-reviewer` — A portfolio analyst that reviews positions, trade history, and performance to identify improvements.
