A beautiful, self-hosted web application for tracking your prediction market trades (Kalshi, Polymarket, etc.) and documenting your market insights. All data is stored directly in your GitHub repository with automatic version control.
- π Trade Tracking - Log all your prediction market trades with detailed information
- π‘ Market Insights - Document your understanding of market dynamics and patterns
- π Portfolio Analytics - Track total invested, win rate, P&L, and average entry odds
- β‘ Market Impact Analysis - See how your trades move the market (great for low-volume markets)
- π GitHub Integration - All data commits directly to your repo with full version history
- π± Responsive Design - Works beautifully on desktop, tablet, and mobile
- π¨ Beautiful UI - Clean, modern interface with smooth animations
# Option 1: Fork on GitHub (recommended)
Click the "Fork" button at the top right of this repository
# Option 2: Clone directly
git clone https://github.com/yourusername/prediction-tracker.git
cd prediction-tracker- Go to your repository Settings
- Navigate to Pages (in the left sidebar)
- Under Source, select your
mainbranch - Click Save
- Your site will be live at
https://yourusername.github.io/prediction-tracker
- Go to GitHub Settings β Developer settings β Personal access tokens β Tokens (classic)
- Click Generate new token (classic)
- Give it a descriptive name (e.g., "Prediction Tracker")
- Set expiration (recommend: 1 year)
- Check the
reposcope (full control of repositories) - Click Generate token
- Important: Copy the token immediately - you won't see it again!
- Visit your GitHub Pages URL
- Scroll to the GitHub Configuration section
- Enter:
- GitHub Username: Your GitHub username
- Repository Name: The name of this repository (e.g.,
prediction-tracker) - Personal Access Token: Paste the token you just created
- Click Save Configuration
- Click Test Connection to verify everything works
You're all set! Start adding trades and insights.
- Market/Event Name: What you're betting on (e.g., "Hurricane Category 2+ in October")
- Position: Yes or No
- Amount Invested: How much you put in
- Entry Odds: The odds when you entered
- Post-Trade Odds (optional): Odds after your trade executed
- Post-Trade Value (optional): Your position value after execution
- Reasoning & Analysis: Why you made this trade (e.g., "Referenced Google WeatherLab chart showing low probability...")
- Result (optional): Update later when the market resolves (Win/Loss/Partial)
- Profit/Loss (optional): Your actual P&L when the trade closes
Click Add Trade and it will commit to your repository!
Use this section to document your learning about prediction markets:
- Market dynamics you've discovered
- Patterns you've noticed
- Strategies that work or don't work
- Understanding of how liquidity affects pricing
Example Insight:
Title: Market Impact from Low Volume
Description: In low-volume markets, individual trades can significantly
move odds. My $24.49 trade moved odds from 74% to 63%, a 11% shift.
This suggests the market had thin liquidity and my trade became a
significant portion of the order book.
- Portfolio Statistics: See your total trades, capital deployed, win rate, and P&L at a glance
- Trade History: All your trades with full details, market impact analysis, and results
- Market Insights: Your accumulated knowledge about prediction markets
Keep detailed records of all your prediction market trades with reasoning for future analysis.
Share your GitHub Pages link to showcase your prediction market track record to others.
Document patterns you notice in prediction markets and build a knowledge base.
Analyze which types of trades work best by reviewing your historical performance.
Create a public record of your predictions and reasoning (useful for building credibility).
- Public Repository: Anyone can see your trades and insights (great for transparency)
- Private Repository: Only you can see the data (requires paid GitHub account)
To make private:
- Go to repository Settings
- Scroll to Danger Zone
- Click Change visibility β Make private
- Your Personal Access Token is stored in browser localStorage only
- It's never committed to the repository
- It's only used for API calls to your own repository
- Keep it secure - don't share your token with anyone
- You can revoke it anytime from GitHub settings
Edit the CSS in index.html:
/* Main gradient */
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
/* Change to your preferred colors */
background: linear-gradient(135deg, #your-color-1 0%, #your-color-2 100%);Want to track additional data? Add new form fields in the HTML:
<div class="form-group">
<label>Your Custom Field</label>
<input type="text" id="customField" placeholder="...">
</div>Then capture it in the JavaScript trade object:
const trade = {
// ... existing fields
customField: document.getElementById('customField').value,
};Edit the updateStats() function to calculate different metrics.
The tracker is fully responsive and works great on mobile:
- Add trades from your phone while at a coffee shop
- Review your portfolio on the go
- Share your tracker URL with friends
All data is stored in data.json in your repository:
{
"trades": [
{
"marketName": "Hurricane Category 2+ in October",
"position": "No",
"amount": "24.49",
"entryOdds": "74",
"postOdds": "63",
"postValue": "20.79",
"reasoning": "Referenced Google WeatherLab chart...",
"result": "Win",
"profitLoss": "25.51",
"date": "2025-10-09T10:30:00.000Z"
}
],
"insights": [
{
"title": "Market Impact from Low Volume",
"text": "In low-volume markets...",
"date": "2025-10-09T10:35:00.000Z"
}
],
"lastUpdated": "2025-10-09T10:35:00.000Z"
}- Verify your GitHub username and repo name are correct
- Check that your Personal Access Token has
reposcope - Ensure the token hasn't expired
- Click "Test Connection" to reload data from GitHub
- Check your browser console for errors (F12)
- Verify
data.jsonexists in your repository
- Wait 5-10 minutes after enabling Pages (it takes time to build)
- Make sure
index.htmlis in the root of your repository - Check Settings β Pages to see build status
- Tokens are stored locally in your browser only
- Never commit your token to the repository
- Revoke and regenerate if you suspect it's compromised
Let's walk through the example mentioned in the app:
Scenario: You want to bet that a hurricane will NOT reach Category 2+
Trade Entry:
- Market: "Hurricane Category 2+ in October"
- Position: No
- Amount: $24.49
- Entry Odds: 74%
- Reasoning: "Referenced Google WeatherLab chart showing current conditions indicate low probability of intensification. Water temperatures are marginal and wind shear is expected to increase."
Market Impact:
- Post-Trade Odds: 63%
- Post-Trade Value: $20.79
- Your trade moved the market 11%!
Insight Documented:
- Title: "Market Impact in Low-Volume Markets"
- Text: "My $24.49 trade significantly moved odds from 74% to 63%. This highlights that in prediction markets with limited liquidity, even small trades can have outsized impact on pricing. This suggests that the total market depth was likely under $250, making this a thin market."
Result (when market resolves):
- Result: Win β
- Profit/Loss: +$25.51
This creates a complete record of your trade, reasoning, market analysis, and outcome!
Want to improve the tracker? Contributions are welcome!
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is open source and available under the MIT License.
- Built for prediction market traders who want to track and improve their performance
- Inspired by the need for better trade journaling tools
- Uses GitHub's amazing free hosting via GitHub Pages
Having issues? Found a bug? Have a feature request?
- Open an issue in this repository
- The community is here to help!
Happy Trading! May your predictions be accurate and your profits plentiful! π
- GitHub Pages Documentation
- GitHub Personal Access Tokens Guide
- Kalshi - Prediction market platform
- Polymarket - Prediction market platform
Pro Tip: Bookmark your GitHub Pages URL on your phone for quick trade entry on the go!