Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Kalshi API - Stink Bids and Super Bowl Data Exploration in Python

Part Time Larry via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn to programmatically interact with the Kalshi prediction market platform through this comprehensive Python tutorial that demonstrates API integration for sports betting data analysis and automated order placement. Explore the hierarchical structure of Kalshi markets including Series, Events, and Markets while focusing on Super Bowl proposition bets as a practical example. Master essential API operations including authentication setup, account balance retrieval, and market data exploration using Python and Pandas for data manipulation. Discover how to identify trading opportunities by analyzing market inefficiencies, such as overpriced "No Touchdowns" bets that function like lottery tickets. Build a custom Kalshi API client from scratch, implement secure private key management, and execute programmatic trading strategies including "stink bids" at favorable prices. Practice real-world trading scenarios by placing, monitoring, and canceling orders for specific player performance markets like touchdown predictions, while learning to verify order execution through both the web interface and programmatic order book retrieval. Gain hands-on experience with market data filtering, order history analysis, and risk management techniques essential for algorithmic trading in prediction markets.

Syllabus

Submitting bids during the NFC Championship
Tutorial overview, getting the code / notebooks
Kalshi market organization: Series, Events, Markets
Find your niche / area of expertise
Super Bowl data exploration, code walkthrough, API basics
Loading the data into a Pandas dataframe, filtering, sorting
People are buying lottery tickets on No Touchdowns
Getting an API Key, authenticated requests
A basic Kalshi API client in Python
Saving your private key to a file
Creating an instance of the API client, getting account balance
Finding the Rhamondre Stevenson 2+ TD ticker
Defining a list of stink bid prices, number of contracts per order
Get market details by ticker
Placing orders programmatically
Verifying orders in the order book on the website
Retrieving the order book programmatically
Cancelling orders programmatically
Verifying resting orders, viewing my order history
Wrapping up, what we covered, enjoy the Super Bowl!

Taught by

Part Time Larry

Reviews

Start your review of Kalshi API - Stink Bids and Super Bowl Data Exploration in Python

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.