Sign up
Login
New
Trending
Archive
English
English
Sign up
Login
New Paste
Add Image
You are an expert Python engineer, quantitative trading developer, and Kalshi API specialist with real-world experience building live and dry-run trading bots on Kalshi. Your goal is to generate a fully runnable, first-try-correct Python trading system that: Extracts real Kalshi market data Explains Kalshi market mechanics correctly Clearly shows how to authenticate Is safe by default (dry run) This prompt prioritizes: Absolute beginner usability Zero ambiguity Zero hidden setup steps 🚨 ABSOLUTE REQUIREMENT: START HERE 🚨 Your response MUST BEGIN with a section titled exactly: QUICK START: FROM ZERO TO RUNNING THE BOT (WINDOWS) This section must assume the reader: Has never used a terminal Has never used an API Is on Windows Do NOT assume prior knowledge. SECTION 1 — QUICK START (MANDATORY AND VERY DETAILED) This section must include all of the following, in order: 1. How to Open the Windows Terminal Explain step by step: Click the Windows Start menu Type cmd Press Enter Also explain: What the command prompt is That it is safe to use That commands are typed and executed by pressing Enter 2. Creating a Project Folder Explain exact commands to: Navigate to a directory (e.g. Downloads) Create a new folder Enter that folder Example (must be shown exactly): cd Downloads mkdir Kalshi_Bo cd Kalshi_Bot Explain what each command does in plain English. 3. Installing Python (If Needed) Explain: How to check Python is installed: python --version Where to downlod Python if missing That the user must check “Add Python to PATH” 4. Installing Required Python Packages Show: pip install requests cryptography Explain what these packages do. 5. Creating the Required Files Explain exactly how to: Create a Python file Create a credentials file Example: notepad read_orderbook.py Explain: When Notepad opens, paste the code Save and close 6. 🚨 API CREDENTIALS — MUST BE IMPOSSIBLE TO MISS 🚨 You MUST include a very explicit section explaining: What the credentials are called API Key ID RSA Private Key Where to get them Kalshi dashboard → API settings EXACTLY where to put them in the code The code MUST contain a section like this at the very top: # ================================ # 🔴 USER MUST EDIT THIS SECTION 🔴 # ================================ KALSHI_API_KEY_ID = "PUT_YOUR_API_KEY_ID_HERE" PRIVATE_KEY_PATH = "kalshi_private_key.pem" And the explanation MUST say: “If you do not edit this section, the bot will NOT work.” 7. Running the Bot Explain exactly how to run: python read_orderbook.py Explain: What successful output looks like What failure output looks like CRITICAL KALSHI CONTEXT (NON-NEGOTIABLE) The Kalshi orderbook: Contains ONLY bids Contains NO asks Structure: orderbook["yes"] # bids to buy YES orderbook["no"] # bids to buy NO Selling: Sell NO → match orderbook["no"] Sell YES → match orderbook["yes"] ❌ Never assume asks exist ❌ Never invert YES/NO REQUIRED RESPONSE STRUCTURE (STRICT ORDER) Your response MUST contain these sections in this exact order: QUICK START: FROM ZERO TO RUNNING THE BOT (WINDOWS) Conceptual Overview (Plain English) How Kalshi Markets Are Structured How to Find the Market You Want API Authentication Explained Polling Market Data Safely Complete Runnable Python Script How to Customize the Bot Common Mistakes and How to Fix Them CODE REQUIREMENTS (STRICT) The generated Python script MUST: Be one file Run immediately after credentials are added Include: DRY_RUN = True Clear print statements Graceful exit after trade The script MUST: Fetch real orderbook data Handle empty books safely Avoid rate limits Comment every non-obvious line FAILURE PREVENTION REQUIREMENTS You MUST explicitly warn about: Using the wrong market ticker Forgetting to edit API credentials Misunderstanding Kalshi’s orderbook Leaving DRY_RUN off unintentionally QUALITY BAR No vague language No missing steps No assumed knowledge No “left as an exercise” The final result should allow a non-technical user to successfully run the bot on the first attempt.
Settings
Title :
[Optional]
Paste Folder :
[Optional]
Select
Syntax :
[Optional]
Select
Markup
CSS
JavaScript
Bash
C
C#
C++
Java
JSON
Lua
Plaintext
C-like
ABAP
ActionScript
Ada
Apache Configuration
APL
AppleScript
Arduino
ARFF
AsciiDoc
6502 Assembly
ASP.NET (C#)
AutoHotKey
AutoIt
Basic
Batch
Bison
Brainfuck
Bro
CoffeeScript
Clojure
Crystal
Content-Security-Policy
CSS Extras
D
Dart
Diff
Django/Jinja2
Docker
Eiffel
Elixir
Elm
ERB
Erlang
F#
Flow
Fortran
GEDCOM
Gherkin
Git
GLSL
GameMaker Language
Go
GraphQL
Groovy
Haml
Handlebars
Haskell
Haxe
HTTP
HTTP Public-Key-Pins
HTTP Strict-Transport-Security
IchigoJam
Icon
Inform 7
INI
IO
J
Jolie
Julia
Keyman
Kotlin
LaTeX
Less
Liquid
Lisp
LiveScript
LOLCODE
Makefile
Markdown
Markup templating
MATLAB
MEL
Mizar
Monkey
N4JS
NASM
nginx
Nim
Nix
NSIS
Objective-C
OCaml
OpenCL
Oz
PARI/GP
Parser
Pascal
Perl
PHP
PHP Extras
PL/SQL
PowerShell
Processing
Prolog
.properties
Protocol Buffers
Pug
Puppet
Pure
Python
Q (kdb+ database)
Qore
R
React JSX
React TSX
Ren'py
Reason
reST (reStructuredText)
Rip
Roboconf
Ruby
Rust
SAS
Sass (Sass)
Sass (Scss)
Scala
Scheme
Smalltalk
Smarty
SQL
Soy (Closure Template)
Stylus
Swift
TAP
Tcl
Textile
Template Toolkit 2
Twig
TypeScript
VB.Net
Velocity
Verilog
VHDL
vim
Visual Basic
WebAssembly
Wiki markup
Xeora
Xojo (REALbasic)
XQuery
YAML
HTML
Expiration :
[Optional]
Never
Self Destroy
10 Minutes
1 Hour
1 Day
1 Week
2 Weeks
1 Month
6 Months
1 Year
Status :
[Optional]
Public
Unlisted
Private (members only)
Password :
[Optional]
Description:
[Optional]
Tags:
[Optional]
Encrypt Paste
(
?
)
Create Paste
You are currently not logged in, this means you can not edit or delete anything you paste.
Sign Up
or
Login
Site Languages
×
English