秋田预测市场 · Discord 审计

Kalshi API/WebSocket 订阅上限与连接不稳定问题

2026-07-12 · Kalshi · 13 条相关讨论

0xG0nz0 2026-07-11 21:44:30

For very large numbers of market subscriptions over websocket, are there any per-SID limits I should bear in mind that could be triggering reconnects? For the same framework and base code, there's a large discrepancy between Kalshi and Polymarket connection stability that I cannot nail down, though from time to time I do see an explicit code=25, "Subscription buffer overflow"

For very large numbers of market subscriptions over websocket, are there any per-SID limits I should bear in mind that could be triggering reconnects? For the same framework and base code, there's a large discrepancy between Kalshi and Polymarket connection stability that I cannot nail down, though from time to time I do see an explicit code=25, "Subscription buffer overflow"

junknot 2026-07-11 21:56:25

Does anyone know the max number of event tickers you can pass to Get Events? I assume you can't pass like, a gajillion event tickers theres probably some limit right?

Does anyone know the max number of event tickers you can pass to Get Events? I assume you can't pass like, a gajillion event tickers theres probably some limit right?

betaclone 2026-07-11 22:07:34

I'm sure there's some practical limit but you'd have to probe to find what it is. Could probably do it pretty simply

I'm sure there's some practical limit but you'd have to probe to find what it is. Could probably do it pretty simply

betaclone 2026-07-11 22:08:23

But I'd imagine you'd run into other problems with client side caching that would be a bigger problem before you found some hypothetical API limit

But I'd imagine you'd run into other problems with client side caching that would be a bigger problem before you found some hypothetical API limit

0xG0nz0 2026-07-11 22:41:05

Found this in Changelog just now, from mid-June: "Sanity limits enforced on orderbook subscriptions: Max 500k market subscriptions per session. Max 10k/s commands per second enforced."

Found this in Changelog just now, from mid-June: "Sanity limits enforced on orderbook subscriptions: Max 500k market subscriptions per session. Max 10k/s commands per second enforced."

Bumbling Bayesian 2026-07-11 23:06:11

The limiting constraint will be how long your URL can be and this is constrained by middleware such as CloudFront. When they were using CloudFront, that was what limited number of tickers in a query string (the maximum CloudFront URL length is 8,192 bytes). I don't know what the limit might be with the new load balancer configuration.

The limiting constraint will be how long your URL can be and this is constrained by middleware such as CloudFront. When they were using CloudFront, that was what limited number of tickers in a query string (the maximum CloudFront URL length is 8,192 bytes). I don't know what the limit might be with the new load balancer configuration.

junknot 2026-07-11 23:19:46

makes sense, Im just using it to backfill data so I'll be passing blocks of some small n tickers anyway

makes sense, Im just using it to backfill data so I'll be passing blocks of some small n tickers anyway

junknot 2026-07-11 23:21:14

just wanted to make sure it wasn't limited to like 10, or something

just wanted to make sure it wasn't limited to like 10, or something

Bumbling Bayesian 2026-07-11 23:36:11

There might be some constraint in the Kalshi back end that hits before you hit a URL length limit, but last time I poked at this, I found that was not the case.

There might be some constraint in the Kalshi back end that hits before you hit a URL length limit, but last time I poked at this, I found that was not the case.

George/Sefi 2026-07-12 03:23:52

ive subed 10000 before, but you cant handle it. produced will outpace consumer, etc

ive subed 10000 before, but you cant handle it. produced will outpace consumer, etc

Bumbling Bayesian 2026-07-12 06:19:44

I have seen more WS disconnects and other network IO problems today than usual.

I have seen more WS disconnects and other network IO problems today than usual.

magickmilf 2026-07-12 09:25:28

getting some websocket issues

getting some websocket issues