秋田预测市场 · Discord 审计

用户订单WebSocket status字段文档与实际不符

2026-06-25 · Kalshi · 51 条相关讨论

VOXindie 2026-06-25 03:37:15

Did the ws user order update object change? I swear it used to have a `status` property for resting, canceled, and executed. https://docs.kalshi.com/margin-ws/websockets/user-orders

Did the ws user order update object change? I swear it used to have a `status` property for resting, canceled, and executed. https://docs.kalshi.com/margin-ws/websockets/user-orders

Noah 2026-06-25 03:48:23

It does have `status` or at least I implemented it that way and it has worked. Currently expecting `resting`, `executed`, or `canceled`. Strange that it doesn't seem to be in the docs...

It does have `status` or at least I implemented it that way and it has worked. Currently expecting `resting`, `executed`, or `canceled`. Strange that it doesn't seem to be in the docs...

Noah 2026-06-25 03:49:13

When in doubt or maybe always, just look at the actual raw payload 😅

When in doubt or maybe always, just look at the actual raw payload 😅

VOXindie 2026-06-25 03:49:57

The docs are completely different from a couple of weeks ago...not sure what I can trust lol

The docs are completely different from a couple of weeks ago...not sure what I can trust lol

VOXindie 2026-06-25 03:50:50

<@726121864438481027> do you have a raw payload you could verify?

<@726121864438481027> do you have a raw payload you could verify?

Noah 2026-06-25 03:51:19

Yeah I'll give it a test shortly to confirm, now I'm wondering...

Yeah I'll give it a test shortly to confirm, now I'm wondering...

VOXindie 2026-06-25 03:51:48

I know it used to have it, but I turned off my order placement for a bit.

I know it used to have it, but I turned off my order placement for a bit.

VOXindie 2026-06-25 03:53:34

I could share the data model I was using previously.

I could share the data model I was using previously.

Marcoase 2026-06-25 04:22:47

My code assumes a status field so it must have been there before

My code assumes a status field so it must have been there before

Marcoase 2026-06-25 04:24:22

I don't rely on the status field for much so not certain

I don't rely on the status field for much so not certain

Noah 2026-06-25 04:33:12

I tested an order, here's the raw payload. Status is present. ``` { "type": "user_order", "sid": 1, "msg": { "order_id": "11111111-1111-1111-1111-111111111111", "user_id": "22222222-2222-2222-2222-222222222222", "ticker": "KXWCGAME-26JUN24SUICAN-TIE", "status": "resting", "side": "yes", "is_yes": true, "outcome_side": "yes", "book_side": "bid", "yes_price_dollars": "0.0300", "fill_count_fp": "0.00", "remaining_count_fp": "1.00", "initial_count_fp": "1.00", "taker_fill_cost_dollars": "0.000000", "maker_fill_cost_dollars": "0.000000", "taker_fees_dollars": "0.000000", "maker_fees_dollars": "0.000000", "client_order_id": "sandbox-user-orders-raw-1782333000205306", "self_trade_prevention_type": "maker", "created_time": "2026-06-24T20:30:00.366574Z", "last_update_time": "2026-06-24T20:30:00.366574Z", "created_ts_ms": 1782333000366, "last_updated_ts_ms": 1782333000366, "subaccount_number": 0 } } ```

I tested an order, here's the raw payload. Status is present. ``` { "type": "user_order", "sid": 1, "msg": { "order_id": "11111111-1111-1111-1111-111111111111", "user_id": "22222222-2222-2222-2222-222222222222", "ticker": "KXWCGAME-26JUN24SUICAN-TIE", "status": "resting", "side": "yes", "is_yes": true, "outcome_side": "yes", "book_side": "bid", "yes_price_dollars": "0.0300", "fill_count_fp": "0.00", "remaining_count_fp": "1.00", "initial_count_fp": "1.00", "taker_fill_cost_dollars": "0.000000", "maker_fill_cost_dollars": "0.000000", "taker_fees_dollars": "0.000000", "maker_fees_dollars": "0.000000", "client_order_id": "sandbox-user-orders-raw-1782333000205306", "self_trade_prevention_type": "maker", "created_time": "2026-06-24T20:30:00.366574Z", "last_update_time": "2026-06-24T20:30:00.366574Z", "created_ts_ms": 1782333000366, "last_updated_ts_ms": 1782333000366, "subaccount_number": 0 } } ```

VOXindie 2026-06-25 04:34:16

ty, I wonder if they're planning on phasing out the fields then?

ty, I wonder if they're planning on phasing out the fields then?

Marcoase 2026-06-25 04:34:36

Just came to say I'm receiving it as well

Just came to say I'm receiving it as well

Marcoase 2026-06-25 04:35:01

It would be extremely strange to remove it.

It would be extremely strange to remove it.

VOXindie 2026-06-25 04:35:27

The doc changes somewhat correspond with the V2 order API changes.

The doc changes somewhat correspond with the V2 order API changes.

Marcoase 2026-06-25 04:36:08

Some statuses can't be inferred afaict so it would require an API call to fill in.

Some statuses can't be inferred afaict so it would require an API call to fill in.

Marcoase 2026-06-25 04:36:49

Depends how bad this would be for them in that it depends on how much people are relying on REST vs WS for their order tracking

Depends how bad this would be for them in that it depends on how much people are relying on REST vs WS for their order tracking

VOXindie 2026-06-25 04:36:50

Is there anyone we can ping to confirm why the docs are different from the payload rn?

Is there anyone we can ping to confirm why the docs are different from the payload rn?

Bumbling Bayesian 2026-06-25 04:36:54

I see `status` in `userOrderPayload` appearing in asyncapi.yaml in my git repository on 2026-02-17 and it is gone on 2026-04-10.

I see `status` in `userOrderPayload` appearing in asyncapi.yaml in my git repository on 2026-02-17 and it is gone on 2026-04-10.

VOXindie 2026-06-25 04:37:28

I know it was on the website still (status) at some point in june.

I know it was on the website still (status) at some point in june.