A Go client library for seamless integration with the Kalshi prediction markets API.
go get github.com/eli-front/kalshi-go
Import the package in your Go code:
import "github.com/eli-front/kalshi-go"
-
Create your environment file by copying the example:
cp .env.example .env
-
Fill in your API key and secret in the
.env
file.- If you're using demo credentials, set
DEMO=true
to avoid authentication errors (401).
- If you're using demo credentials, set
Run the balance example:
go run ./examples/balance
The examples support command-line flags:
# Specify a custom environment file
go run ./examples/balance --env .custom.env