stock-trader

Manage US stock and ETF trades via Alpaca with paper trading.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/datagridSolution/forex-trading-ai-agent --skill stock-trader-datagridsolution
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stock-trader
Source: https://github.com/datagridSolution/forex-trading-ai-agent/tree/main/skills/stock-trader
Command: npx skills add https://github.com/datagridSolution/forex-trading-ai-agent --skill stock-trader-datagridsolution

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Stock traders need a reliable way to place orders, manage positions, and review account/portfolio status without manually stitching together broker APIs and workflows.

Core Features & Use Cases

  • Broker-connected portfolio & position management: Pull account value, open positions, quotes, and unrealized P&L for US stocks and ETFs (primarily via Alpaca), including paper trading for safer practice.
  • Order execution & management: Place market/limit/stop/stop-limit/trailing-stop orders, cancel orders, and close positions or all positions.
  • Market data & basic analysis: Check whether markets are open, retrieve quotes, and compute pivot points for decision support.

Use case: You want to run a simple rules-based swing plan—connect to Alpaca in paper mode, check a quote, buy a set quantity, then attach a stop loss to manage downside automatically.

Quick Start

Connect the skill in paper trading mode, then place a market buy for 10 shares of AAPL and report your updated portfolio balance.

Frequently Asked Questions about stock-trader

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I place stock orders and manage my portfolio using Alpaca?

You can place stock orders and manage your portfolio by mapping trading intents to Alpaca connector actions that execute market, limit, stop, and trailing-stop orders while returning formatted portfolio reports.

Can I practice trading US stocks and ETFs without risking real money?

Yes, you can practice trading US stocks and ETFs by enabling optional paper trading mode in Alpaca, allowing you to simulate order execution and portfolio management safely.

Do I need API credentials to execute trades and fetch quotes?

Yes, you need broker API credentials like ALPACA_API_KEY and ALPACA_API_SECRET to connect, fetch quotes, check account state, and execute orders through the Alpaca integration.

How do I attach a stop loss after buying stocks in my portfolio?

To attach a stop loss after buying stocks, you execute a buy order for your target quantity and then place a separate stop or trailing-stop order to manage downside risk automatically.

What market data can I retrieve for US stocks and ETFs before trading?

You can retrieve real-time quotes, check whether markets are open, compute pivot points for decision support, and view unrealized P&L for your open US stock and ETF positions.

Can I close all open positions and cancel pending orders at once?

Yes, the order management workflow supports canceling pending orders and closing individual positions or all open positions across your US stock and ETF portfolio.