
Automated Trading & Order Management
Place, modify, and cancel stock orders directly from AI workflows. Whether you're executing market orders, setting limit prices, or closing positions, FlowHunt's Alpaca integration lets you automate the entire order lifecycle with natural language commands and intelligent triggers.
- Order Execution:
- Place market, limit, and stop orders for stocks directly through AI workflows—no manual trading interface needed.
- Portfolio Tracking:
- Monitor positions, portfolio performance, and asset allocation in real time from within your AI agents.
- Example:
- An AI agent monitors market conditions and automatically places buy orders when your target stocks hit predefined price levels.

Real-Time Market Data & Analysis
Access live stock quotes, historical price data, and account information directly within your AI workflows. Feed market data into LLMs for analysis, generate trading signals, and make data-driven decisions—all automated and running continuously.
- Live Market Data:
- Access real-time quotes, trades, and price bars to power your trading strategies and AI analysis.
- Paper Trading Mode:
- Test strategies risk-free with Alpaca's paper trading environment before going live with real capital.
- Example:
- An AI workflow analyzes daily market data, generates a summary of top movers, and sends you a morning briefing via Slack.

Intelligent Portfolio Automation
Go beyond manual portfolio management. Build AI-powered workflows that rebalance portfolios, track performance metrics, manage watchlists, and execute complex trading strategies—all running autonomously based on your rules and market conditions.
- Account Management:
- View balances, buying power, and trading status—giving your AI agents full visibility into your account.
- Secure Credentials:
- API keys are stored with encrypted storage, ensuring your trading credentials remain safe and confidential.
- Example:
- An AI agent monitors your portfolio allocation and automatically rebalances when positions drift beyond your target percentages.

Step 1
Open the Integrations Page
Log in to your FlowHunt account and navigate to the Integrations page from the sidebar menu. Find Alpaca Trading in the list and click the Integrate button.
- Find Alpaca Trading:
- In the Integrations page, find the Alpaca Trading card and click Integrate to open the setup dialog.

Step 2
Get Your Alpaca API Keys
Log in to your Alpaca account and go to Settings → Manage Accounts → API Keys. Generate a new API key and copy both the API Key (starts with PK) and the Secret Key. Choose Paper Trading keys if you want to test risk-free first.
- Copy Both Keys:
- You'll need both the API Key and the Secret Key. The secret is only shown once, so copy it immediately.

Step 3
Enter Your API Keys in FlowHunt
Back in the FlowHunt Alpaca dialog, toggle Paper Trading on if you're using paper trading keys (recommended for testing). Paste your Alpaca API Key and Alpaca Secret Key into the fields, then click Connect Paper Trading.
- Connect Your Account:
- Paste your keys, choose paper or live trading mode, and click Connect to link your Alpaca account.

Step 4
Start Building Trading Workflows
Once connected, switch to the Available Agents tab to browse ready-made trading flow templates, or build a custom flow using Alpaca components in the flow builder.
- Connected!:
- Your Alpaca account is now linked to FlowHunt. Pick a ready-made template or build a custom trading workflow.
Use Cases & Flows
Everything You Can Do with FlowHunt + Alpaca Trading
A complete overview of available use cases, flow templates, and capabilities for the Alpaca Trading integration:
- Automated Order Execution
- AI agents place, modify, and cancel stock orders based on market conditions, price targets, or custom triggers.
- Portfolio Monitoring
- Track positions, balances, and buying power in real time—with AI-generated alerts when thresholds are crossed.
- Market Data Analysis
- Feed live quotes and historical data into AI workflows for trend analysis, signal generation, and morning briefings.
- Paper Trading & Backtesting
- Test strategies risk-free using Alpaca's paper trading mode before committing real capital.
- Portfolio Rebalancing
- Automatically rebalance your portfolio when asset allocations drift beyond your target percentages.
- Watchlist Management
- Create and maintain watchlists of target stocks, with AI monitoring for price movements and news events.
- Trading Bot Deployment
- Build and deploy fully autonomous trading bots that execute strategies 24/7 based on your rules.
- Custom AI Workflows
- Combine Alpaca trading components with LLMs, web search, and other integrations for any trading automation need.
