秋田预测市场 · Discord 审计

开发者反馈 Demo 环境与生产环境 API 不一致

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

Arbgame 2026-07-13 05:04:44

Have you tried GetPositions in prod? No sense troubleshooting an issue if it only exists in demo.

Have you tried GetPositions in prod? No sense troubleshooting an issue if it only exists in demo.

George/Sefi 2026-07-13 05:07:23

you fell for the classic trap of using the demo server

you fell for the classic trap of using the demo server

NickB 2026-07-13 05:18:42

Why is it a trap? I don't want to touch the prod servers until I am ok with demo. I also think that prod and demo have different accounts, API keys and therefore signatures. So what do they have to do with each other? For the record, with the same keys and signatures I can authenticate correctly and pull in market data via WS

Why is it a trap? I don't want to touch the prod servers until I am ok with demo. I also think that prod and demo have different accounts, API keys and therefore signatures. So what do they have to do with each other? For the record, with the same keys and signatures I can authenticate correctly and pull in market data via WS

betaclone 2026-07-13 05:19:45

demo is notoriously buggy and even when it's not it doesn't always accurately reflect how the prod servers work. it's fine to test some simple call and response architecture but you can end up wasting a lot of time getting somethign to work in demo just to find it doesn't work the same in prod

demo is notoriously buggy and even when it's not it doesn't always accurately reflect how the prod servers work. it's fine to test some simple call and response architecture but you can end up wasting a lot of time getting somethign to work in demo just to find it doesn't work the same in prod

George/Sefi 2026-07-13 05:19:48

IMo they fail to keep it inline with prod

IMo they fail to keep it inline with prod

betaclone 2026-07-13 05:20:05

most people here just bite the bullet and test in prod with very small position sizes

most people here just bite the bullet and test in prod with very small position sizes

George/Sefi 2026-07-13 05:20:33

you are gonna have to take financial hits to get the data you want.

you are gonna have to take financial hits to get the data you want.

NickB 2026-07-13 05:22:32

This is interesting... I do get it that the other way forward might be using prod with small amounts however there is regulatory/operational concerns too... i.e. I might want to be able to code freely against a functional demo and then switch to prod with accounts/money coming from somewhere that a) has regulatory permission to trade b) has KYCd the venue

This is interesting... I do get it that the other way forward might be using prod with small amounts however there is regulatory/operational concerns too... i.e. I might want to be able to code freely against a functional demo and then switch to prod with accounts/money coming from somewhere that a) has regulatory permission to trade b) has KYCd the venue

betaclone 2026-07-13 05:25:34

It is what it is. No one can tell you what to do with your capital but in my experience the time wasted in demo far exceeds a small investment you're willing to lose in testing. You can literally trade fractional shares. We're talking at most pennies per test trade

It is what it is. No one can tell you what to do with your capital but in my experience the time wasted in demo far exceeds a small investment you're willing to lose in testing. You can literally trade fractional shares. We're talking at most pennies per test trade

NickB 2026-07-13 05:28:44

It is not the money that is the issue but the principle. I cant trade even $1 of real money if I don't go via all the appropriate hoops. The demo docs and env seem pretty ok for simple things like getting a position or a balance. Why do we assume this is broken?

It is not the money that is the issue but the principle. I cant trade even $1 of real money if I don't go via all the appropriate hoops. The demo docs and env seem pretty ok for simple things like getting a position or a balance. Why do we assume this is broken?

betaclone 2026-07-13 05:30:04

We'd all love there to be a fully functional demo.env in principle. But there isn't so we soldier on Now something like fetching positions should be straightforward enough. That's like a problem on your end and it's hard to diagnose that without seeing your payloads

We'd all love there to be a fully functional demo.env in principle. But there isn't so we soldier on Now something like fetching positions should be straightforward enough. That's like a problem on your end and it's hard to diagnose that without seeing your payloads

betaclone 2026-07-13 05:30:25

Also perps are BRAND new so there's not a lof of experience anywhere in what differences there might be in the API's

Also perps are BRAND new so there's not a lof of experience anywhere in what differences there might be in the API's

betaclone 2026-07-13 05:30:47

I spent months building my own paper trading system based on prod

I spent months building my own paper trading system based on prod

NickB 2026-07-13 05:51:04

By the way, in my case, I just want to test the mechanics, getting positions and balances, placing orders, getting fills etc. Not strategies

By the way, in my case, I just want to test the mechanics, getting positions and balances, placing orders, getting fills etc. Not strategies

betaclone 2026-07-13 06:33:37

The problem with testing fills and therefore positions is that there needs to be actual volume in the demo env and that's a crap shoot. Now of you know you can get a fill in demo then fetching fills, positions etc should be straightforward Can you pull account balance? That's the easiest way to know if your payloads are formatted correctly since it doesn't rely on anything except a valid acct/key

The problem with testing fills and therefore positions is that there needs to be actual volume in the demo env and that's a crap shoot. Now of you know you can get a fill in demo then fetching fills, positions etc should be straightforward Can you pull account balance? That's the easiest way to know if your payloads are formatted correctly since it doesn't rely on anything except a valid acct/key

betaclone 2026-07-13 06:34:30

Oh yeah, the SDK is bunk

Oh yeah, the SDK is bunk