trading-assistant

Trading Assistant

A powerful AI-powered trading assistant with real-time market data analysis, chat interface, and automated alerts.

Features

Setup

  1. Clone the repository:
    git clone https://github.com/yourusername/trading-assistant.git
    cd trading-assistant
    
  2. Install dependencies:
    npm install
    
  3. Set up your environment variables:
    cp .env.example .env
    

Edit .env and add your:

  1. Initialize the database:
    npx prisma db push
    
  2. Start the development server:
    npm run dev
    

Environment Variables

Create a .env file with the following variables:

# Database
DATABASE_URL="postgresql://user:password@localhost:5432/trading_assistant"

# NextAuth
NEXTAUTH_SECRET="your-random-string"
NEXTAUTH_URL="http://localhost:3000"

# OAuth (optional)
GOOGLE_CLIENT_ID=""
GOOGLE_CLIENT_SECRET=""

# API Keys (stored per user in database)
# These are examples of what users will need to provide
OPENAI_API_KEY=""
TRADINGVIEW_API_KEY=""
TELEGRAM_BOT_TOKEN=""

Architecture

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Usage

  1. Navigate to http://localhost:3000/chat
  2. Start chatting with the assistant
  3. Toggle voice input/output using the button in the top-right corner

Voice Features

Technologies Used

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.