Skip to main content

Kalshi Market Data Connector

Kalshi Data Connector based on FIX protocol.

Features​

kalshiConnector Key
Instrument Types
CUSTOMFUTURE
Technology
FIX
Feed Mode
Real-Time
Order Book Update Mode
SnapshotIncremental Updates
Order Book Type
Aggregated
Message Types
✓
Level 1
✓
Level 2
✗
Level 3
✓
Trades
✗
Funding Rates

Configuration​

Data Connector Parameters​

ParameterDefault ValueDescription
HostN/AFIX server host. See Endpoints.
PortN/AFIX server port. See Endpoints.
TargetCompIDN/ATargetCompID of the FIX session.

Use KalshiMD for the market data session.
API KeyN/AAPI key for authentication in Kalshi.

The FIX API Key (UUID format) is sent as SenderCompID of the FIX session.
Private KeyN/APrivate key for authentication in Kalshi.

RSA private key in PEM format that belongs to the API Key. The connector uses it to sign the Logon message (RSA-PSS with SHA-256), so no user name or password is required. The key may be entered either with or without line breaks.
Use SSLtrueEnable to use SSL.

Kalshi FIX gateways accept TLS 1.2 or higher connections only. When disabled, a local TLS proxy such as stunnel is required.
Exchange NameKALSHIExchange name for this session.
Output Book Size20Size of the output book.
Snapshot Interval10SThis property sets an interval in seconds between periodical Level2 snapshots which sent to Aggregator.

Snapshots will be generated as soon as this threshold is exceeded AND the next increment message arrives. Conversely, snapshots are NOT generated every period if no data is coming in.

Default value is 10 seconds.
Start Time05:00:00Start time of the session in the 24-hours format (HH:MM:SS).

Default value is 05:00:00.
Start DayTHUDay of week of session start.

Default value is THU.
End Time03:00:00End time of the session in the 24-hours format (HH:MM:SS).

Default value is 03:00:00.
End DayTHUDay of week of session end.

Default value is THU.
Time ZoneAmerica/New_YorkTime zone of start/end session time.

Default value is America/New_York.
Daily/WeeklyfalseIf this parameter is true, the session will start/end every day.

With the default schedule, the session runs weekly from Thursday 05:00 to the following Thursday 03:00 (New York time), leaving a two-hour disconnect window on Thursday mornings.

Endpoints​

The connector can be configured either for the Predictions or the Perps market data API. Each API requires its own API Key and Private Key.

APIEnvironmentHostPortTargetCompID
PredictionsProductionmarketdata.fix.elections.kalshi.com8233KalshiMD
PredictionsDemomarketdata.fix.demo.kalshi.co8233KalshiMD
PerpsProductionmargin-marketdata.fix.elections.kalshi.com8233KalshiMD
PerpsDemomargin-marketdata.fix.demo.kalshi.co8233KalshiMD
note

Only one FIX connection is allowed per API key. Separate API keys are required for concurrent connections.

Symbology​

Symbols are Kalshi market tickers in upper case. Prediction markets use the CUSTOM instrument type, perpetual futures use the FUTURE instrument type.

APIInstrument TypeSymbol NotationExamples
PredictionsCUSTOMMarket tickerKXBTCY-27JAN0100-B72500
PerpsFUTUREMarket tickerKXBTCPERP
KXETHPERP

The list of available markets can be obtained from the Get Markets endpoint.

Logging​

To enable detailed logging and dump of RAW FIX messages, use these lines in the <QSHOME>/config/gflog.xml file:

<logger name="deltix.qsrv.hf.plugins.data.kalshi" level="TRACE">
<appender-ref ref="safeAppender"/>
</logger>