18 return std::unexpected(std::move(value.error()));
20 return value->scaled_integer(2);
28 return std::unexpected(std::move(value.error()));
30 return value->scaled_integer(0);
33using Timestamp = std::chrono::sys_time<std::chrono::milliseconds>;
static Result< FixedPoint > parse(std::string_view value)
Definition fixed_point.hpp:15
constexpr BookSide book_side(Side side, Action action) noexcept
The single-book side for a (side, action) pair: yes exposure bids.
Definition helpers.hpp:51
Side
Deprecated.
Definition models.hpp:709
@ Unknown
A value this SDK version does not know.
Result< std::int64_t > to_cents(std::string_view dollars)
Converts a dollar string such as "0.5600" to whole cents.
Definition helpers.hpp:15
Action
Deprecated.
Definition models.hpp:35
@ Unknown
A value this SDK version does not know.
Result< std::int64_t > to_contracts(std::string_view count)
Converts a fixed-point count such as "10.00" to whole contracts.
Definition helpers.hpp:25
std::expected< T, Error > Result
Result type for SDK operations.
Definition error.hpp:50
BookSide
Side of the book for an order or trade.
Definition models.hpp:110
@ Unknown
A value this SDK version does not know.
std::chrono::sys_time< std::chrono::milliseconds > Timestamp
Definition helpers.hpp:33
Result< Timestamp > parse_timestamp(std::string_view text)
Parses the RFC 3339 timestamps Kalshi returns, such as "2026-09-25T14:00:00.123Z" or "2026-09-25T10:0...
OutcomeSide
Outcome side.
Definition models.hpp:558
@ Unknown
A value this SDK version does not know.
constexpr OutcomeSide outcome_side(Side side, Action action) noexcept
The outcome a (side, action) pair is exposed to: buying yes or selling no is yes exposure.
Definition helpers.hpp:41