You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
Follow Predictions OpenAPI 3.39.0 and the updated AsyncAPI contract:
Settlement::value_dollars, the exact payout of a single Yes contract in fixed-point
dollars (with Settlement::value marked deprecated).
ws::Channel::CoverMarketLifecycle (cover_market_lifecycle) and ws::CoverMarketLifecycle
(alongside ws::EventLifecycle on that channel) for cover-market lifecycle events.
Changed
CMake (CMakeLists.txt and installed kalshiConfig.cmake) now enforces the documented
libcurl 7.65+ minimum at configure time.
The fetched Google Benchmark moves from v1.9.5 to v1.10.0.
Fixed
HttpClient::request() now signs after acquiring its internal lock, preventing stale KALSHI-ACCESS-TIMESTAMP headers under concurrent contention, and passes a non-null empty
string to CURLOPT_POSTFIELDS on empty POST/PUT/DELETE bodies.
Signer::from_pem() returns ErrorCode::InvalidKey (instead of ErrorCode::SigningError)
when BIO_new_mem_buf allocation fails, matching include/kalshi/signer.hpp.
WebSocket client & subscription hardening:
Enforce Kalshi's one-subscription-per-channel rule across all channels instead of only OrderbookDelta, so duplicate subscribes fail fast with InvalidRequest instead of
stranding the second handle in Pending.
Distinguish explicit empty arrays ([]) from omitted lists (skip_ticker_ack) in update_subscriptionok replies so server-pruned determined markets are cleared locally.
Queue pre-connect Indexlist/UnderlyingList/Matchlist queries for delivery after
confirmation and reject non-mutating requests on connected subscriptions with no active
markets.
Reject ws::UserFilter::Unknown on subscribe, avoid locking an unfiltered unsent
subscription's selector on DeleteMarkets, drain newly adopted callback-destroyed threads
in Orphans::~Orphans(), retry keep_openssl_initialized() after transient context
creation failure, check stopping in on_frame() and on_failed(), fix the lws_write
size comparison cast, shrink oversized rx/tx buffers after large frames, and read
malformed-frame envelopes with kWsReadOptions so non-positive seq values are always
dropped under GCC 15 -O3.
Request validation and codegen:
Reject Enum::Unknown on optional and vector enum members of request bodies.
Enforce spec prose rules for GetWeatherIndexParams (from requires to), GetConcertsParams (date_to >= date_from), CreateFCMPositionTransferRequest (whole
contracts), CreateFlightDisruptionMarketRequest (delay_minutes by cover), and CreateWeatherPointMarketRequest (floor_value/cap_value by strike_type).
Preserve full sentences across abbreviations (e.g., i.e.) and parentheticals in
generated /// comments, preserve intermediate constraints across nested one-member allOf, avoid double utf8_length scans, and avoid heap allocations when decoding
unescaped enum strings.
Fix quadratic token scanning and C++20/23 syntax handling in tools/cpp_auto_audit.py.