explaingit

smfworks/smf-kalshi-trader

Analysis updated 2026-05-18

0PythonAudience · developer

TLDR

An automated Python trading system for Kalshi prediction markets that scans, sizes, and executes trades with strict risk limits.

Mindmap

mindmap
  root((repo))
    What it does
      Scans Kalshi markets
      Detects trading edges
      Sizes and executes trades
    Tech stack
      Python
      SQLite
    Use cases
      Automated market scanning
      Risk limited trading
      Daily reporting
    Audience
      Quant developers
    Risk controls
      Fifty dollar capital cap
      Max five open positions
      Dry run mode

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

What do people build with it?

USE CASE 1

Automatically scan Kalshi markets for mispriced or extreme-valuation contracts.

USE CASE 2

Size trades using the Kelly Criterion under tight capital limits.

USE CASE 3

Run scheduled paper or live trades with a daily intelligence report.

What is it built with?

PythonSQLite

How does it compare?

smfworks/smf-kalshi-trader0xhassaan/nn-from-scratch3ks/embedoc
Stars00
LanguagePythonPythonPython
Last pushed2023-06-08
MaintenanceDormant
Setup difficultymoderatehard
Complexity4/51/5
Audiencedeveloperdeveloperdeveloper

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

In plain English

This repository is an automated trading system for Kalshi, a prediction markets platform where users bet on the outcome of real-world events. Written in Python, it automates the full workflow of scanning markets, detecting trading opportunities, sizing positions, and executing or simulating trades. The system is organized into focused modules: a scanner that fetches market data and records price history, an edge detector that identifies five signal types (two currently live, extreme valuation, where a market price goes above 95% or below 5%, and price inefficiency, where the combined cost to buy YES and NO exceeds $1.05, plus three in progress: momentum, mean reversion, and event correlation), and a sizing module that uses a statistical approach called the Kelly Criterion to decide how much capital to stake. A portfolio module handles both paper trades (simulated, for testing) and live trades. A daily intelligence report is generated by the reporter module. Authentication uses an RSA key-pair against the Kalshi API. The database is SQLite, acting as the single source of truth for market data and trade records. The system is designed to run on a schedule: a cron job syncs price history every four hours and runs the full scan-plus-report daily at 10am. Built-in trading rules enforce tight risk limits: $50 total capital, a maximum of $1 per trade, no more than five open positions at once, and $40 held in a dark reserve. The command-line interface supports a dry-run mode so trades can be previewed before going live.

Copy-paste prompts

Prompt 1
Explain how the extreme valuation and price inefficiency signals are detected.
Prompt 2
Help me add a new edge-detection signal like momentum or mean reversion.
Prompt 3
Show me how the Kelly Criterion sizing module decides position size here.
Prompt 4
Walk me through setting up the cron schedule for scans and reports.

Frequently asked questions

What is smf-kalshi-trader?

An automated Python trading system for Kalshi prediction markets that scans, sizes, and executes trades with strict risk limits.

What language is smf-kalshi-trader written in?

Mainly Python. The stack also includes Python, SQLite.

Who is smf-kalshi-trader for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.