AnandChowdhary/priced-in

An autonomous AI-powered stock trading agent that executes trades on GitHub Actions, built with OpenAI’s Agents framework.

💰 Portfolio value: $1,077.64** (6,727.10% CAGR)

📊 Holdings

Asset Shares Value
Cash - $0.08
NVDA 5.705 $901.33
GOOGL 1 $176.23

📈 Recent trades

  • June 30, 2025 at 6:06:24 PM: BUY 0.441 NVDA @ $158.04/share ($69.70)
  • June 30, 2025 at 12:07:38 PM: BUY 0.444 NVDA @ $157.75/share ($70.04)
  • June 29, 2025 at 6:05:40 PM: SELL 40 NIO @ $3.46/share ($138.40)
  • June 28, 2025 at 6:05:57 AM: BUY 0.82 NVDA @ $157.75/share ($129.35)
  • June 28, 2025 at 6:05:45 AM: SELL 1 PLTR @ $130.74/share ($130.74)
  • June 27, 2025 at 12:08:51 PM: BUY 0.38 NVDA @ $155.02/share ($58.91)
  • June 27, 2025 at 12:08:45 PM: BUY 40 NIO @ $3.42/share ($136.80)
  • June 27, 2025 at 12:08:41 PM: SELL 14 RIVN @ $13.91/share ($194.74)
  • June 26, 2025 at 6:05:56 PM: BUY 0.12 NVDA @ $155.99/share ($18.72)
  • June 26, 2025 at 12:07:10 PM: BUY 0.5 NVDA @ $154.31/share ($77.16)
  • June 25, 2025 at 6:06:14 PM: BUY 2 NVDA @ $153.66/share ($307.32)
  • June 25, 2025 at 6:06:05 PM: SELL 81 BB @ $4.965/share ($402.16)
  • June 25, 2025 at 12:08:38 PM: BUY 81 BB @ $4.33/share ($350.73)
  • June 25, 2025 at 12:07:27 PM: SELL 49 ALT @ $7.19/share ($352.31)
  • June 25, 2025 at 12:17:48 AM: BUY 49 ALT @ $7.19/share ($352.31)
  • June 25, 2025 at 12:17:44 AM: SELL 1 TSLA @ $340.47/share ($340.47)
  • June 24, 2025 at 6:06:07 PM: BUY 14 RIVN @ $13.795/share ($193.13)
  • June 24, 2025 at 6:05:59 PM: SELL 1 NVDA @ $147.55/share ($147.55)
  • June 24, 2025 at 1:19:50 PM: BUY 1 GOOGL @ $165.19/share ($165.19)
  • June 24, 2025 at 1:14:10 PM: BUY 2 NVDA @ $144.17/share ($288.34)

🛠️ Installation

  1. Clone the repository:
git clone https://github.com/AnandChowdhary/priced-in.git
cd priced-in
  1. Install dependencies:
npm install
  1. 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:

  1. Check the current portfolio
  2. Analyze market conditions
  3. Make trading decisions
  4. Update the portfolio

Automated execution via GitHub Actions

The agent is configured to run automatically every hour via GitHub Actions. To enable this:

  1. Fork this repository
  2. Go to Settings → Secrets and variables → Actions
  3. Add a new repository secret named OPENAI_API_KEY with your OpenAI API key
  4. 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.

📄 License

MIT © Anand Chowdhary