🤖 Priced In
An autonomous AI-powered stock trading agent that executes trades on GitHub Actions, built with OpenAI’s Agents framework.
💰 Portfolio value: $1,300.36** (116.02% CAGR)
📊 Holdings
| Asset | Shares | Value | 
|---|---|---|
| Cash | - | $0.03 | 
| NVDA | 4.82 | $897.77 | 
| GOOGL | 1 | $259.92 | 
| XLI | 0.10599999999999998 | $16.42 | 
| XLP | 0.7289999999999999 | $57.66 | 
| XLU | 0.37999999999999995 | $34.73 | 
| XLV | 0.23 | $33.59 | 
| XLY | 0.0009999999999999454 | $0.24 | 
📈 Recent trades
- October 15, 2025 at 12:24:08 AM: BUY 0.229 XLP @ $79.09/share ($18.11)
 - October 15, 2025 at 12:22:13 AM: SELL 0.077 XLY @ $234.35/share ($18.04)
 - October 14, 2025 at 12:23:03 AM: BUY 0.074 XLY @ $233.86/share ($17.31)
 - October 14, 2025 at 12:22:13 AM: SELL 0.191 XLU @ $90.89/share ($17.36)
 - September 24, 2025 at 12:13:11 PM: BUY 0.382 XLU @ $85.64/share ($32.71)
 - September 24, 2025 at 12:19:10 AM: SELL 0.137 XLY @ $237.92/share ($32.60)
 - September 12, 2025 at 12:21:04 AM: BUY 0.067 XLY @ $237.4/share ($15.91)
 - September 12, 2025 at 12:20:35 AM: SELL 0.188 XLU @ $85.07/share ($15.99)
 - September 11, 2025 at 12:21:42 AM: BUY 0.377 XLU @ $84.62/share ($31.90)
 - September 11, 2025 at 12:21:09 AM: SELL 0.135 XLY @ $232.87/share ($31.44)
 
🛠️ Installation
- Clone the repository:
 
git clone https://github.com/AnandChowdhary/priced-in.git
cd priced-in
- Install dependencies:
 
npm install
- Set up your OpenAI API key:
 
export OPENAI_API_KEY="your-api-key-here"
🏃♂️ Running the agent
The agent’s portfolio is stored in portfolio.json:
{
  "cash": 95.44,
  "holdings": {
    "AAPL": 4,
    "CLNE": 56
  },
  "history": [
    {
      "date": "2025-06-21T12:43:07.141Z",
      "type": "buy",
      "ticker": "AAPL",
      "shares": 4,
      "price": 201.5,
      "total": 806
    }
  ]
}
- cash: Available cash balance for trading
 - holdings: Current stock positions (ticker: number of shares)
 - history: Complete record of all trades
 
Local execution
Run the trading agent manually:
npm start
This will execute one trading session where the agent will:
- Check the current portfolio
 - Analyze market conditions
 - Make trading decisions
 - Update the portfolio
 
Automated execution via GitHub Actions
The agent is configured to run automatically every hour via GitHub Actions. To enable this:
- Fork this repository
 - Go to Settings → Secrets and variables → Actions
 - Add a new repository secret named 
OPENAI_API_KEYwith your OpenAI API key - The agent will now run automatically every hour
 
You can also trigger a manual run from the Actions tab in your GitHub repository.
⚠️ Disclaimer
This is an experimental AI trading agent for educational purposes. Real trading involves significant risk. Never invest money you cannot afford to lose.
