Trading: Data Cloud + Broker
Get a Datafye Data Cloud with broker connectivity running in under 5 minutes. Connect your algos to synthetic market data and Alpaca paper trading.
What you'll have:
Data Cloud with synthetic market data
Broker Connector configured for Alpaca paper trading
Your algo trading on paper account
Prerequisites:
Docker Desktop installed and running
8GB+ RAM available
Alpaca paper trading account (free - sign up here)
Python 3.7+ (optional - for testing)
Step 1: Install the Datafye CLI
curl -fsSL https://downloads.n5corp.com/datafye/cli/latest/install.sh | sudo bashVerify installation:
Expected output:
Step 2: Get Alpaca Credentials
Sign up for a free Alpaca paper trading account at alpaca.markets
Navigate to your paper trading dashboard
Copy your API Key ID and Secret Key
Set as environment variables:
Step 3: Download Deployment Descriptor
This descriptor configures:
Synthetic dataset with 10 symbols:
Tech: AAPL, MSFT, GOOGL, AMZN, NVDA
Growth: TSLA, META, NFLX, AMD, INTC
Trades and quotes (tick data)
1-minute OHLC bars
90 days of historical data
Alpaca Broker Connector (paper trading mode)
No additional API keys required (besides Alpaca)
Step 4: Provision the Environment
Sneak Preview Note: This quickstart shows the expected workflow and interface. During the preview period, provisioning is not yet available and this command will display a "not yet implemented" message. This is expected behavior for the preview.
Expected Output (when available):
Provisioning takes 3-5 minutes.
What Just Happened?
The deployment descriptor configured:
Data Cloud - Normalized market data service with REST and WebSocket APIs
Broker Connector - Integration with Alpaca for paper trading
Synthetic Dataset - 10 symbols with 90 days of historical data:
Tech: AAPL, MSFT, GOOGL, AMZN, NVDA
Growth: TSLA, META, NFLX, AMD, INTC
Data Types - Trades, quotes, and 1-minute OHLC bars
What's running:
Data Cloud container at
http://localhost:8080Broker Connector container at
http://localhost:8082Connected to your Alpaca paper trading account
Ready to accept trading algos that consume data and place orders
About the Synthetic Dataset: The Synthetic dataset attempts to generate realistic market data and is appropriate for demo and API testing purposes. It is NOT suitable for actual algo development - use real market data providers (Polygon, Alpaca, etc.) for developing and validating production algorithms.
Step 5: Verify Services
Option A: Python Test Script (Recommended)
Output:
Option B: CLI Commands
Step 6: Run Paper Trading Algo
Download and run the example paper trading algo:
Output:
Your algo is now paper trading through Alpaca!
Monitor Your Trades
Manage Your Deployment
Next Steps
Build custom trading algos:
Understand broker integration:
Add backtesting:
Trading: Full Stack - Add backtesting and AI assistance
Move to live trading:
Troubleshooting
Docker not running: Start Docker Desktop and retry.
Broker connection failed: Verify your ALPACA_API_KEY and ALPACA_SECRET_KEY environment variables are set correctly.
Port conflicts: Stop conflicting services or see CLI Reference for custom ports.
Order rejected: Check your Alpaca account status and ensure paper trading is enabled.
Last updated: 2025-01-23
Last updated

