秋田预测市场 · Discord 审计

Kalshi API 固定点迁移后字段不一致与文档过时

2026-06-22 · Kalshi · 24 条相关讨论

Awwndrei 2026-06-21 21:13:03

Anyone know how to accurately calculate realized PNL and current avg price?

Anyone know how to accurately calculate realized PNL and current avg price?

Awwndrei 2026-06-21 21:13:37

Is there somewhere else to fetch `position_fee_cost_dollars` on initial load besides waiting for websocket updates?

Is there somewhere else to fetch `position_fee_cost_dollars` on initial load besides waiting for websocket updates?

Awwndrei 2026-06-21 21:22:52

Bc it seems like that's what's causing the discrepancy

Bc it seems like that's what's causing the discrepancy

Awwndrei 2026-06-21 21:23:10

Pls help 😭

Pls help 😭

Awwndrei 2026-06-21 21:23:18

I don't like seeing this avg price

I don't like seeing this avg price

Awwndrei 2026-06-21 21:24:36

The msg right above that

The msg right above that

Awwndrei 2026-06-21 21:25:10

I'm asking here...

I'm asking here...

Awwndrei 2026-06-21 21:26:03

https://tenor.com/view/a4c712-dashera4c-nonchalant-gamer-i%27m-speechless-speechless-gif-13022095084831385298

https://tenor.com/view/a4c712-dashera4c-nonchalant-gamer-i%27m-speechless-speechless-gif-13022095084831385298

Awwndrei 2026-06-22 02:11:09

Why does create order return `remaining_count`, but get order return `remaining_count_fp`, despite both using the same format?

Why does create order return `remaining_count`, but get order return `remaining_count_fp`, despite both using the same format?

Awwndrei 2026-06-22 02:11:14

CAN THIS BE STANDARDIZED???

CAN THIS BE STANDARDIZED???

betaclone 2026-06-22 02:50:45

It was part of the fixed point migration a few months back. They were returning parallel values in different formats to make the transition easier. Still some artifacts remaining

It was part of the fixed point migration a few months back. They were returning parallel values in different formats to make the transition easier. Still some artifacts remaining

Awwndrei 2026-06-22 02:52:10

Moving forward, what format are they going to use? So I can migrate in advance

Moving forward, what format are they going to use? So I can migrate in advance

Awwndrei 2026-06-22 02:52:30

_fp and _dollars? or without them

_fp and _dollars? or without them

Bumbling Bayesian 2026-06-22 03:44:38

Expect new properties on new types to use the fixed point representation and to not need the _fp or _dollars suffix to disambiguate, because they won't have both forms.

Expect new properties on new types to use the fixed point representation and to not need the _fp or _dollars suffix to disambiguate, because they won't have both forms.

Awwndrei 2026-06-22 03:48:58

Anyone know if the documentation for this is outdated? https://docs.kalshi.com/margin-ws/websockets/user-orders#user-orders Or if that's the response format moving forward

Anyone know if the documentation for this is outdated? https://docs.kalshi.com/margin-ws/websockets/user-orders#user-orders Or if that's the response format moving forward

Awwndrei 2026-06-22 03:49:35

There's a couple of fields I'm seeing differences in

There's a couple of fields I'm seeing differences in

Awwndrei 2026-06-22 03:58:12

- docs doesn't have book_side - side is different enum - docs doesn't have is_yes (ik this is deprecated) - docs doesn't have status - docs lacking taker fees - docs lacking last_update_time - docs has fill_count, api has fill_count_fp (same with remaining count and initial count)

- docs doesn't have book_side - side is different enum - docs doesn't have is_yes (ik this is deprecated) - docs doesn't have status - docs lacking taker fees - docs lacking last_update_time - docs has fill_count, api has fill_count_fp (same with remaining count and initial count)

Awwndrei 2026-06-22 04:03:09

Nvm I was looking at margin exchange docs

Nvm I was looking at margin exchange docs