🤖 Priced In
An autonomous AI-powered stock trading agent that executes trades on GitHub Actions, built with OpenAI’s Agents framework.
💰 Portfolio value: $1,239.11** (146.58% CAGR)
📊 Holdings
Asset | Shares | Value |
---|---|---|
Cash | - | $0.16 |
NVDA | 4.82 | $849.48 |
GOOGL | 1 | $252.03 |
XLI | 0.10599999999999998 | $16.19 |
XLP | 0.4999999999999999 | $39.77 |
XLU | 0.189 | $15.95 |
XLV | 0.23 | $31.62 |
XLY | 0.14099999999999996 | $33.91 |
📈 Recent trades
- 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)
- September 10, 2025 at 12:10:36 PM: BUY 0.23 XLV @ $138.59/share ($31.88)
- September 10, 2025 at 12:19:49 AM: SELL 0.137 XLY @ $235.69/share ($32.29)
- September 8, 2025 at 6:12:31 AM: BUY 0.136 XLY @ $235.11/share ($31.97)
- September 3, 2025 at 12:17:29 AM: SELL 0.139 XLY @ $230.01/share ($31.97)
- September 2, 2025 at 12:10:07 PM: BUY 0.4 XLP @ $80.78/share ($32.31)
- September 2, 2025 at 12:17:45 AM: SELL 0.139 XLY @ $231.74/share ($32.21)
🛠️ 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_KEY
with 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.