秋田预测市场 · Discord 审计

API 订单查询延迟与数据显示不一致

2026-06-04 · Hyperliquid · 4 条相关讨论

Trophycase 2026-06-04 02:44:55

Ok I posted about this yesterday, but I am placing an order, have received a resting response. Then when I call open_orders ~500ms later, the order isn't present. When I encounter this error I am calling query_order_by_id and query_order_by_cloid and both confirm the order exists. My program is not multithreaded, and as far as I know, requests via the python sdk are blocking so I seriously doubt it is a race condition. What could be happening? Is there some caching issue with open_orders? Should I be waiting longer to immediately query it?

Ok I posted about this yesterday, but I am placing an order, have received a resting response. Then when I call open_orders ~500ms later, the order isn't present. When I encounter this error I am calling query_order_by_id and query_order_by_cloid and both confirm the order exists. My program is not multithreaded, and as far as I know, requests via the python sdk are blocking so I seriously doubt it is a race condition. What could be happening? Is there some caching issue with open_orders? Should I be waiting longer to immediately query it?

Prometheus 2026-06-04 04:22:33

have you tried using the openOrders/orderUpdates ws channels?

have you tried using the openOrders/orderUpdates ws channels?

Trophycase 2026-06-04 05:23:39

I have not migrated to the websocket yet. It's planned for the future at some point. This issues has only come up in the last few days since I updated my sdk

I have not migrated to the websocket yet. It's planned for the future at some point. This issues has only come up in the last few days since I updated my sdk

Prometheus 2026-06-04 05:24:42

doesnt directly answer your http question but i think it would provide some insight on the overall window where you arent getting the data you expect

doesnt directly answer your http question but i think it would provide some insight on the overall window where you arent getting the data you expect