A custom dashboard for monitoring and interacting with Polymarket positions.
- Real-time order book monitoring
- Multi-market position tracking
- Automated order management
- Custom order sizes and controls
- Real-time WebSocket integration
Create and activate a virtual environment:
# Create virtual environment
python -m venv venv
# Activate virtual environment
# On macOS/Linux:
source venv/bin/activate
# On Windows:
.\venv\Scripts\activate
# Install required Python packages
pip install -r requirements.txtCreate a .env file in /src/server with the following variables:
PK=your_polymarket_signer_private_key
FUNDER=your_polymarket_proxy_wallet_address
- only supports sig type 2 currently (link to polymarket docs https://docs.polymarket.com/#signature-types)
Install Node.js dependencies in the root directory:
# Install dependencies
npm install
# Start development server
npm run dev- First, ensure your virtual environment is activated and start the FastAPI server:
cd src/server
uvicorn polyserver:socket_app --host 0.0.0.0 --port 8000 --reload- Then, in a new terminal window, start the frontend:
npm run dev- Frontend:
http://localhost:5173 - Backend API:
http://localhost:8000 - WebSocket:
ws://localhost:8000/ws
- Frontend: React + TypeScript + Vite
- Backend: FastAPI + Python
- Real-time Updates: WebSocket Integration
- State Management: React Hooks
- FastAPI
- Uvicorn
- python-socketio
- python-dotenv
- httpx
- websockets
- React
- TypeScript
- Vite
- Socket.io-client
- Tailwind CSS
- Both backend and frontend servers must be running simultaneously
- Keep private keys and environment variables secure
- Never commit sensitive information to version control
MIT License