gitwtfhub

wtf is divergence-desk?

0xpulseplay/divergence-desk — explained in plain English

Analysis updated 2026-05-18

0TypeScriptAudience · developerComplexity · 4/5Setup · hard

TL;DR

A hackathon trading tool that compares live sports data against Polymarket and Kalshi prices to find pricing gaps, using a paper trading ledger.

Mindmap

mindmap
  root((divergence desk))
    What it does
      Compares live sports odds
      Finds pricing gaps
      Paper trades the edge
    Tech stack
      TypeScript and Node.js
      React and Vite
      Solana devnet proof
    Use cases
      Probability normalization
      Arbitrage detection
      Kelly sizing
    Audience
      Developers
      Trading researchers
    Data source
      TxLINE truth feed
      Polymarket
      Kalshi

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Study how to normalize probabilities across prediction markets that define outcomes differently.

REASON 2

Learn a paper trading approach to spotting pricing gaps between two markets.

REASON 3

See a worked example of Kelly sizing applied to sports probability edges.

REASON 4

Explore how signals can be hashed and recorded on-chain for later verification.

What's in the stack?

TypeScriptNode.jsExpressReactViteSolana

How it stacks up

0xpulseplay/divergence-desk0xkinno/astraea0xkinno/halcyon
Stars000
LanguageTypeScriptTypeScriptTypeScript
Setup difficultyhardhardhard
Complexity4/54/54/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · hard Time to first run · 1h+

Requires the separate TxLINE data engine running locally plus pnpm to install and run both the backend and web apps.

Wtf does this do

Divergence Desk is a trading tool built for a hackathon that compares live sports probabilities from a data provider called TxLINE against prices on prediction market platforms Polymarket and Kalshi. The idea is that TxLINE's numbers, once bookmaker margin is removed, represent the true probability of an outcome, and the desk looks for cases where the two markets have not caught up to that truth yet. The project points out a specific problem: Polymarket's soccer markets treat a draw as a real possible outcome within ninety minutes, while Kalshi's contracts only ask whether a team advances, which includes extra time and penalties and has no draw option. Comparing those two directly would produce false signals, since they are really answering different questions. Divergence Desk converts every venue's price onto a shared, correctly defined probability before comparing anything, which the project describes as its core technical contribution. Once prices are on the same footing, the tool looks for two kinds of opportunity: a locked in profit when two venues' prices add up to less than one after fees, and a longer term statistical edge when one venue disagrees with TxLINE's truth by enough to be worth a sized bet using a risk limited approach called half Kelly. All trading in this project happens on a paper ledger, meaning no real money moves and no live transactions are signed on the main blockchain. Signals are optionally recorded on Solana's test network as a hash, so the timing and content of each signal can be checked later. The backend is built with Node and Express, and the frontend desk interface uses Vite and React. The README also lists detailed feedback about quirks in the TxLINE data feed that the developers ran into while building, such as fields that arrive as text instead of numbers and empty values that actually mean the market has paused rather than that something is broken.

Yoink these prompts

Prompt 1
Explain how Divergence Desk normalizes Polymarket and Kalshi prices onto the same probability basis.
Prompt 2
Walk me through the difference between riskless arbitrage and EV capture in this project.
Prompt 3
Help me understand how half Kelly sizing is used to size trades in Divergence Desk.
Prompt 4
Show me how to run the backend and web apps for Divergence Desk locally.

Frequently asked questions

wtf is divergence-desk?

A hackathon trading tool that compares live sports data against Polymarket and Kalshi prices to find pricing gaps, using a paper trading ledger.

What language is divergence-desk written in?

Mainly TypeScript. The stack also includes TypeScript, Node.js, Express.

How hard is divergence-desk to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is divergence-desk for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.