<?xml version="1.0" encoding="UTF-8"?>
<sbe:messageSchema xmlns:sbe="http://fixprotocol.io/2016/sbe" package="kalshi.predictions.sbe" id="1" version="1" semanticVersion="1.0.0" byteOrder="littleEndian" description="Predictions WebSocket output for kalshi.predictions.sbe.v1. One SBE message per binary WebSocket message. All timestamps are UTC.">
  <types>
    <composite name="messageHeader">
      <type name="blockLength" primitiveType="uint16" />
      <type name="templateId" primitiveType="uint16" />
      <type name="schemaId" primitiveType="uint16" />
      <type name="version" primitiveType="uint16" />
    </composite>
    <composite name="groupSizeEncoding">
      <type name="blockLength" primitiveType="uint16" />
      <type name="numInGroup" primitiveType="uint32" maxValue="67108864" />
    </composite>
    <composite name="utf8Data">
      <type name="length" primitiveType="uint32" maxValue="67108864" />
      <type name="varData" primitiveType="uint8" length="0" characterEncoding="UTF-8" />
    </composite>
    <type name="uuidBytes" primitiveType="uint8" maxValue="255" length="16" description="UUID octets in RFC 9562 network order." />
    <type name="hashBytes" primitiveType="uint8" maxValue="255" length="32" description="Public SHA-256 digest octets." />
    <type name="predictionPrice" primitiveType="uint16" maxValue="10000" description="Prediction price, 10,000 units per dollar." />
    <type name="requiredInt64" primitiveType="int64" minValue="-9223372036854775808" maxValue="9223372036854775807" />
    <type name="optionalInt64" primitiveType="int64" presence="optional" nullValue="-9223372036854775808" />
    <type name="optionalUint64" primitiveType="uint64" presence="optional" nullValue="0" minValue="1" maxValue="18446744073709551615" />
    <enum name="marketSide" encodingType="uint8">
      <validValue name="Yes">1</validValue>
      <validValue name="No">2</validValue>
    </enum>
    <enum name="fillOrderAction" encodingType="uint8">
      <validValue name="Empty">0</validValue>
      <validValue name="Buy">1</validValue>
      <validValue name="Sell">2</validValue>
      <validValue name="SellPartial">3</validValue>
      <validValue name="SellToClose">4</validValue>
    </enum>
    <enum name="booleanValue" encodingType="uint8">
      <validValue name="False">0</validValue>
      <validValue name="True">1</validValue>
    </enum>
    <composite name="rfqTimestamp" description="UTC instant. Seconds since the Unix epoch and nanoseconds within the second. The zero timestamp of a required source field is 0001-01-01T00:00:00Z.">
      <type name="seconds" primitiveType="int64" minValue="-9223372036854775808" maxValue="9223372036854775807" />
      <type name="nanoseconds" primitiveType="uint32" maxValue="999999999" />
    </composite>
    <type name="rfqInteger" primitiveType="int64" minValue="-9223372036854775808" maxValue="9223372036854775807" />
    <type name="rfqVersion" primitiveType="uint64" maxValue="18446744073709551615" />
    <composite name="rfqPrice" description="US dollars, fixed to four decimal places.">
      <type name="mantissa" primitiveType="int64" minValue="-9223372036854775808" maxValue="9223372036854775807" />
      <type name="exponent" primitiveType="int8" presence="constant">-4</type>
    </composite>
    <composite name="rfqOptionalContracts" description="Number of contracts. The presence flag preserves explicit zero and every signed mantissa. Absent values have a zero mantissa.">
      <ref name="present" type="booleanValue" />
      <type name="mantissa" primitiveType="int64" minValue="-9223372036854775808" maxValue="9223372036854775807" />
      <type name="exponent" primitiveType="int8" presence="constant">-2</type>
    </composite>
    <composite name="rfqOptionalDollars" description="US dollars at the four-decimal precision of the recipient projection. The presence flag distinguishes an absent amount from an explicit zero.">
      <ref name="present" type="booleanValue" />
      <type name="mantissa" primitiveType="int64" minValue="-9223372036854775808" maxValue="9223372036854775807" />
      <type name="exponent" primitiveType="int8" presence="constant">-4</type>
    </composite>
    <composite name="optionalInteger" description="Integer. The presence flag preserves explicit zero and every signed mantissa. Absent values have a zero mantissa.">
      <ref name="present" type="booleanValue" />
      <type name="value" primitiveType="int64" minValue="-9223372036854775808" maxValue="9223372036854775807" />
    </composite>
    <enum name="userOrderStatus" encodingType="uint8">
      <validValue name="Unknown">0</validValue>
      <validValue name="Resting">1</validValue>
      <validValue name="Canceled">2</validValue>
      <validValue name="Executed">3</validValue>
    </enum>
    <enum name="orderSelfTradePrevention" encodingType="uint8">
      <validValue name="TakerAtCross">1</validValue>
      <validValue name="Maker">2</validValue>
    </enum>
    <enum name="orderUpdateReason" encodingType="uint8">
      <validValue name="Decrease">1</validValue>
      <validValue name="Amend">2</validValue>
      <validValue name="MarginCancel">3</validValue>
      <validValue name="SelfTradeCancel">4</validValue>
      <validValue name="ExpiryCancel">5</validValue>
      <validValue name="CloseCancel">6</validValue>
      <validValue name="HaltCancel">7</validValue>
      <validValue name="Trade">8</validValue>
      <validValue name="PostOnlyCrossCancel">9</validValue>
      <validValue name="ReduceOnlyCancel">10</validValue>
      <validValue name="SettlementBoundsCancel">11</validValue>
    </enum>
    <type name="requiredInt32" primitiveType="int32" minValue="-2147483648" maxValue="2147483647" />
    <enum name="indexNumberKind" encodingType="uint8">
      <validValue name="Decimal8">0</validValue>
      <validValue name="NegativeZero">1</validValue>
      <validValue name="ExtendedFloat">2</validValue>
    </enum>
    <composite name="indexNumber8" description="Decimal8 carries the signed value times 100,000,000, rounded to nearest with ties to even. NegativeZero carries zero and renders -0.00000000. ExtendedFloat carries the signed bit pattern of an IEEE-754 binary64 value outside the fixed-point range or nonfinite. Render finite extended values to eight fractional digits using nearest-even rounding, and nonfinite values as NaN, inf or -inf.">
      <ref name="kind" type="indexNumberKind" />
      <type name="mantissaOrBits" primitiveType="int64" minValue="-9223372036854775808" maxValue="9223372036854775807" />
    </composite>
    <composite name="indexAverageWindow" description="Subscription-local CF window. The trailing average excludes the current tick, using its value when count is zero. The final-minute quarter average includes the current tick and publishes its timestamp as the legacy windowEndTsExclusive.">
      <ref name="value" type="indexNumber8" />
      <type name="windowSize" primitiveType="uint32" />
      <type name="windowStartTsMs" primitiveType="int64" minValue="-9223372036854775808" maxValue="9223372036854775807" />
      <type name="windowEndTsExclusive" primitiveType="int64" minValue="-9223372036854775808" maxValue="9223372036854775807" />
    </composite>
    <enum name="groupUpdateKind" encodingType="uint8">
      <validValue name="Created">1</validValue>
      <validValue name="Triggered">2</validValue>
      <validValue name="Reset">3</validValue>
      <validValue name="Deleted">4</validValue>
      <validValue name="LimitUpdated">5</validValue>
    </enum>
  </types>
  <sbe:message name="OrderbookSnapshot" id="1" blockLength="57">
    <field id="1" name="sid" type="uint64" />
    <field id="2" name="seq" type="optionalUint64" />
    <field id="3" name="sendingTsMs" type="requiredInt64" />
    <field id="4" name="requestId" type="optionalUint64" />
    <field id="5" name="clock" type="uint64" />
    <field id="6" name="marketIdPresent" type="booleanValue" description="0 if the provider has no market ID, 1 if marketId is present." />
    <field id="7" name="marketId" type="uuidBytes" description="RFC 4122 byte order. Zero-filled when marketIdPresent is 0." />
    <group id="8" name="yesLevels" dimensionType="groupSizeEncoding" blockLength="10">
      <field id="9" name="priceCenticents" type="predictionPrice" description="YES price, 10,000 units per dollar." />
      <field id="10" name="quantityCenticontracts" type="requiredInt64" />
    </group>
    <group id="11" name="noLevels" dimensionType="groupSizeEncoding" blockLength="10">
      <field id="12" name="priceCenticents" type="predictionPrice" description="NO price by default; the complementary YES price when use_yes_price is true." />
      <field id="13" name="quantityCenticontracts" type="requiredInt64" />
    </group>
    <data id="14" name="marketTicker" type="utf8Data" />
  </sbe:message>
  <sbe:message name="OrderbookDelta" id="2" blockLength="75">
    <field id="1" name="sid" type="uint64" />
    <field id="2" name="seq" type="optionalUint64" />
    <field id="3" name="sendingTsMs" type="requiredInt64" />
    <field id="4" name="requestId" type="optionalUint64" />
    <field id="5" name="clock" type="uint64" />
    <field id="6" name="marketId" type="uuidBytes" />
    <field id="7" name="priceCenticents" type="predictionPrice" description="Price of the reported side, 10,000 units per dollar. With use_yes_price true, NO levels use the complementary YES price." />
    <field id="8" name="deltaCenticontracts" type="requiredInt64" description="Signed change to this level, 100 per contract." />
    <field id="9" name="side" type="marketSide" description="1 = YES, 2 = NO." />
    <field id="10" name="updatedTsMs" type="optionalInt64" description="Order update time in Unix milliseconds." />
    <data id="11" name="marketTicker" type="utf8Data" />
  </sbe:message>
  <sbe:message name="OwnerOrderbookDelta" id="3" blockLength="83">
    <field id="1" name="sid" type="uint64" />
    <field id="2" name="seq" type="optionalUint64" />
    <field id="3" name="sendingTsMs" type="requiredInt64" />
    <field id="4" name="requestId" type="optionalUint64" />
    <field id="5" name="clock" type="uint64" />
    <field id="6" name="marketId" type="uuidBytes" />
    <field id="7" name="priceCenticents" type="predictionPrice" description="Price of the reported side, 10,000 units per dollar. With use_yes_price true, NO levels use the complementary YES price." />
    <field id="8" name="deltaCenticontracts" type="requiredInt64" description="Signed change to this level, 100 per contract." />
    <field id="9" name="side" type="marketSide" description="1 = YES, 2 = NO." />
    <field id="10" name="updatedTsMs" type="optionalInt64" description="Order update time in Unix milliseconds." />
    <field id="11" name="subaccount" type="optionalInt64" />
    <data id="12" name="marketTicker" type="utf8Data" />
    <data id="13" name="clientOrderId" type="utf8Data" description="Zero length when absent." />
  </sbe:message>
  <sbe:message name="Trade" id="4" blockLength="68" description="Public Predictions trade. JSON ts is floor(eventTsMs / 1000).">
    <field id="1" name="sid" type="uint64" />
    <field id="2" name="seq" type="optionalUint64" />
    <field id="3" name="sendingTsMs" type="requiredInt64" />
    <field id="4" name="requestId" type="optionalUint64" />
    <field id="5" name="countCenticount" type="requiredInt64" description="Contracts traded, 100 per contract." />
    <field id="6" name="eventTsMs" type="requiredInt64" description="Trade creation time in Unix milliseconds." />
    <field id="7" name="yesPriceCenticents" type="predictionPrice" description="10,000 per dollar. The NO price in centicents is 10,000 minus this price." />
    <field id="8" name="takerOutcomeSide" type="marketSide" description="Also the legacy taker_side. YES corresponds to a book bid and NO to a book ask." />
    <field id="9" name="isBlockTrade" type="booleanValue" />
    <field id="10" name="tradeId" type="uuidBytes" description="Trade UUID in standard UUID byte order." />
    <data id="11" name="marketTicker" type="utf8Data" />
  </sbe:message>
  <sbe:message name="Ticker" id="5" blockLength="118" description="Public Predictions ticker. JSON ts is floor(eventTsMs / 1000) and time is eventTsMs in UTC RFC3339.">
    <field id="1" name="sid" type="uint64" />
    <field id="2" name="seq" type="optionalUint64" />
    <field id="3" name="sendingTsMs" type="requiredInt64" />
    <field id="4" name="requestId" type="optionalUint64" />
    <field id="5" name="marketId" type="uuidBytes" description="Market UUID in RFC 4122 byte order." />
    <field id="6" name="volumeCenticount" type="requiredInt64" description="Signed total contracts traded, 100 per contract." />
    <field id="7" name="openInterestCenticount" type="requiredInt64" description="Signed open interest, 100 per contract." />
    <field id="8" name="dollarVolume" type="requiredInt64" description="Signed whole-dollar traded notional." />
    <field id="9" name="dollarOpenInterest" type="requiredInt64" description="Signed whole-dollar open-interest notional." />
    <field id="10" name="yesBidSizeCenticount" type="requiredInt64" description="Contracts at the best YES bid, 100 per contract." />
    <field id="11" name="yesAskSizeCenticount" type="requiredInt64" description="Contracts at the best YES ask, 100 per contract." />
    <field id="12" name="lastTradeSizeCenticount" type="requiredInt64" description="Contracts in the most recent trade, 100 per contract." />
    <field id="13" name="eventTsMs" type="requiredInt64" description="Last update time in Unix milliseconds, or -62135596800000 for an unset source time." />
    <field id="14" name="priceCenticents" type="predictionPrice" description="Last traded price, 10,000 per dollar." />
    <field id="15" name="yesBidCenticents" type="predictionPrice" description="Best YES bid price, 10,000 per dollar." />
    <field id="16" name="yesAskCenticents" type="predictionPrice" description="Best YES ask price, 10,000 per dollar." />
    <data id="17" name="marketTicker" type="utf8Data" />
  </sbe:message>
  <sbe:message name="Fill" id="6" blockLength="121" description="Private, unsequenced Predictions fill, including eligible margin/FCC executions. OutcomeSide is purchasedSide. The equivalent BookSide is Bid for Yes and Ask for No.">
    <field id="1" name="sid" type="uint64" />
    <field id="2" name="seq" type="optionalUint64" />
    <field id="3" name="sendingTsMs" type="requiredInt64" />
    <field id="4" name="requestId" type="optionalUint64" />
    <field id="5" name="exchangeIndex" type="requiredInt32" />
    <field id="6" name="eventTsMs" type="requiredInt64" description="Unix milliseconds. Legacy seconds equal floor(eventTsMs/1000). An absent source timestamp is year 1 UTC." />
    <field id="7" name="yesPriceCenticents" type="requiredInt64" description="10,000 units per USD. Signed wide price supports routed FCC executions." />
    <field id="8" name="countCenticontracts" type="requiredInt64" description="Contracts filled, at 100 units per contract." />
    <field id="9" name="feeCostMicrodollars" type="requiredInt64" description="Fee on the recipient's leg, truncated toward zero to the published six-decimal dollar precision." />
    <field id="10" name="postPositionCenticontracts" type="requiredInt64" description="Signed post-position on the recipient's leg, at 100 units per contract." />
    <field id="11" name="isTaker" type="booleanValue" />
    <field id="12" name="side" type="marketSide" description="Legacy user side from the recipient's cached order action." />
    <field id="13" name="purchasedSide" type="marketSide" />
    <field id="14" name="action" type="fillOrderAction" />
    <field id="15" name="subaccountPresent" type="booleanValue" />
    <field id="16" name="subaccount" type="requiredInt64" description="Zero when absent. A present zero is the default subaccount." />
    <field id="17" name="tradeId" type="uuidBytes" />
    <field id="18" name="orderId" type="uuidBytes" />
    <data id="19" name="marketTicker" type="utf8Data" />
    <data id="20" name="clientOrderId" type="utf8Data" description="Empty when absent from the recipient's order cache." />
  </sbe:message>
  <sbe:message name="UserOrder" id="7" blockLength="173" description="Private, unsequenced Predictions user_order message, after subscriber, subtrader and market filtering. Legacy RFC3339 dates display max(epochMillis, 0) in UTC at millisecond precision with trailing fractional zeros removed.">
    <field name="sid" id="1" type="uint64" />
    <field name="seq" id="2" type="optionalUint64" description="Absent for user orders." />
    <field name="sendingTsMs" id="3" type="requiredInt64" description="Unix epoch milliseconds." />
    <field name="requestId" id="4" type="optionalUint64" />
    <field name="orderId" id="5" type="uuidBytes" description="Exchange order UUID in RFC 9562 network order." />
    <field name="userId" id="6" type="uuidBytes" description="Owner UUID in RFC 9562 network order." />
    <field name="exchangeIndex" id="7" type="requiredInt32" />
    <field name="status" id="8" type="userOrderStatus" />
    <field name="side" id="9" type="marketSide" description="Legacy user-entered side, independent of outcomeSide." />
    <field name="outcomeSide" id="10" type="marketSide" description="Yes implies JSON is_yes=true and book_side=bid. No implies is_yes=false and book_side=ask." />
    <field name="yesPriceCenticents" id="11" type="requiredInt64" description="US dollars multiplied by 10,000. FCC order prices may exceed one dollar." />
    <field name="fillCountCenti" id="12" type="uint64" description="Filled quantity in hundredths of a contract." />
    <field name="remainingCountCenti" id="13" type="uint64" description="Remaining quantity in hundredths of a contract." />
    <field name="initialCountCenti" id="14" type="uint64" description="Initial quantity in hundredths of a contract." />
    <field name="takerFillCostMicrodollars" id="15" type="requiredInt64" description="US dollars multiplied by one million." />
    <field name="makerFillCostMicrodollars" id="16" type="requiredInt64" description="US dollars multiplied by one million." />
    <field name="takerFeesMicrodollars" id="17" type="requiredInt64" description="US dollars multiplied by one million." />
    <field name="makerFeesMicrodollars" id="18" type="requiredInt64" description="US dollars multiplied by one million." />
    <field name="selfTradePreventionType" id="19" type="orderSelfTradePrevention" presence="optional" description="Omitted when null." />
    <field name="lastUpdateReason" id="20" type="orderUpdateReason" presence="optional" description="Omitted when null." />
    <field name="createdTsMs" id="21" type="optionalInteger" description="Signed Unix epoch milliseconds. When absent, both created_ts_ms and created_time are JSON null." />
    <field name="lastUpdatedTsMs" id="22" type="optionalInteger" description="Signed Unix epoch milliseconds. When absent, last_updated_ts_ms and last_update_time are both omitted." />
    <field name="expirationTsMs" id="23" type="optionalInteger" description="Signed Unix epoch milliseconds. When absent, expiration_ts_ms and expiration_time are both omitted." />
    <field name="subaccountNumber" id="24" type="optionalInteger" description="Absent values are omitted in JSON. Primary subaccount zero is explicitly present." />
    <data name="ticker" id="25" type="utf8Data" />
    <data name="clientOrderId" id="26" type="utf8Data" description="Required UTF-8. Empty is a present client order ID." />
    <data name="orderGroupId" id="27" type="utf8Data" description="Empty when no order group was projected." />
  </sbe:message>
  <sbe:message name="MarketPosition" id="8" blockLength="105" description="Private unsequenced market_position snapshot. The sender suppresses stale source clocks per subtrader and market.">
    <field name="sid" id="1" type="uint64" description="Subscriber SID." />
    <field name="seq" id="2" type="optionalUint64" description="Subscription sequence when present." />
    <field name="sendingTsMs" id="3" type="requiredInt64" description="Unix epoch milliseconds." />
    <field name="requestId" id="4" type="optionalUint64" description="Originating request ID when present." />
    <field name="userId" id="5" type="uuidBytes" description="Authenticated owner UUID in RFC 9562 network order." />
    <field name="positionCenticount" id="6" type="requiredInt64" description="Signed net position in hundredths of a contract." />
    <field name="positionCostMicrodollars" id="7" type="requiredInt64" description="Cost basis in millionths of USD." />
    <field name="realizedPnlMicrodollars" id="8" type="requiredInt64" description="Realized PnL in millionths of USD." />
    <field name="feesPaidMicrodollars" id="9" type="requiredInt64" description="Fees in millionths of USD." />
    <field name="positionFeeCostMicrodollars" id="10" type="requiredInt64" description="Position fee cost in millionths of USD." />
    <field name="volumeCenticount" id="11" type="requiredInt64" description="Total volume in hundredths of a contract." />
    <field name="subaccount" id="12" type="optionalInteger" description="Primary zero is distinct from an omitted subaccount." />
    <data name="marketTicker" id="13" type="utf8Data" description="Market ticker." />
  </sbe:message>
  <sbe:message name="OrderGroupUpdates" id="9" blockLength="50" description="Private, sequenced order_group_updates lifecycle events. Every variant shares the same subscription sequence.">
    <field name="sid" id="1" type="uint64" description="Subscriber SID." />
    <field name="seq" id="2" type="optionalUint64" description="Subscription sequence when present." />
    <field name="sendingTsMs" id="3" type="requiredInt64" description="Unix epoch milliseconds." />
    <field name="requestId" id="4" type="optionalUint64" description="Originating request ID when present." />
    <field name="eventType" id="5" type="groupUpdateKind" description="Lifecycle transition." />
    <field name="contractsLimitCenticount" id="6" type="optionalInteger" description="Present only for created and limit_updated, in hundredths of a contract. Zero is a present limit." />
    <field name="tsMs" id="7" type="requiredInt64" description="Source time in Unix epoch milliseconds. A missing source timestamp is 0001-01-01T00:00:00Z." />
    <data name="orderGroupId" id="8" type="utf8Data" description="Required order-group identifier." />
  </sbe:message>
  <sbe:message name="RfqCreated" id="16" blockLength="94">
    <field id="1" name="sid" type="uint64" description="Subscription ID." />
    <field id="2" name="seq" type="optionalUint64" description="Zero when the envelope omits this field." />
    <field id="3" name="sendingTsMs" type="requiredInt64" description="Unix epoch milliseconds." />
    <field id="4" name="requestId" type="optionalUint64" description="Zero when the envelope omits this field." />
    <field name="creatorId" id="5" type="hashBytes" />
    <field name="createdTs" id="6" type="rfqTimestamp" />
    <field name="contractsFp" id="7" type="rfqOptionalContracts" />
    <field name="targetCostDollars" id="8" type="rfqOptionalDollars" />
    <group name="mveSelectedLegs" id="9" dimensionType="groupSizeEncoding" description="Zero elements means this RFQ has no selected MVE legs.">
      <field name="side" id="10" type="marketSide" />
      <field name="yesSettlementValueDollars" id="11" type="rfqOptionalDollars" />
      <data name="eventTicker" id="12" type="utf8Data" />
      <data name="marketTicker" id="13" type="utf8Data" />
    </group>
    <data name="id" id="14" type="utf8Data" />
    <data name="marketTicker" id="15" type="utf8Data" />
    <data name="eventTicker" id="16" type="utf8Data" description="Empty when absent in the recipient projection." />
    <data name="mveCollectionTicker" id="17" type="utf8Data" description="Empty when absent in the recipient projection." />
    <data name="rfqBatchId" id="18" type="utf8Data" description="Empty when absent in the recipient projection." />
  </sbe:message>
  <sbe:message name="RfqDeleted" id="17" blockLength="94">
    <field id="1" name="sid" type="uint64" description="Subscription ID." />
    <field id="2" name="seq" type="optionalUint64" description="Zero when the envelope omits this field." />
    <field id="3" name="sendingTsMs" type="requiredInt64" description="Unix epoch milliseconds." />
    <field id="4" name="requestId" type="optionalUint64" description="Zero when the envelope omits this field." />
    <field name="creatorId" id="5" type="hashBytes" />
    <field name="deletedTs" id="6" type="rfqTimestamp" />
    <field name="contractsFp" id="7" type="rfqOptionalContracts" />
    <field name="targetCostDollars" id="8" type="rfqOptionalDollars" />
    <data name="id" id="9" type="utf8Data" />
    <data name="marketTicker" id="10" type="utf8Data" />
    <data name="eventTicker" id="11" type="utf8Data" description="Empty when absent in the recipient projection." />
    <data name="rfqBatchId" id="12" type="utf8Data" description="Empty when absent in the recipient projection." />
  </sbe:message>
  <sbe:message name="QuoteCreated" id="18" blockLength="160">
    <field id="1" name="sid" type="uint64" description="Subscription ID." />
    <field id="2" name="seq" type="optionalUint64" description="Zero when the envelope omits this field." />
    <field id="3" name="sendingTsMs" type="requiredInt64" description="Unix epoch milliseconds." />
    <field id="4" name="requestId" type="optionalUint64" description="Zero when the envelope omits this field." />
    <field name="quoteCreatorId" id="5" type="hashBytes" />
    <field name="rfqCreatorId" id="6" type="hashBytes" />
    <field name="createdTs" id="7" type="rfqTimestamp" />
    <field name="yesBidDollars" id="8" type="rfqPrice" />
    <field name="noBidDollars" id="9" type="rfqPrice" />
    <field name="yesContractsOfferedFp" id="10" type="rfqOptionalContracts" />
    <field name="noContractsOfferedFp" id="11" type="rfqOptionalContracts" />
    <field name="rfqTargetCostDollars" id="12" type="rfqOptionalDollars" />
    <field name="subaccount" id="13" type="optionalInteger" />
    <data name="quoteId" id="14" type="utf8Data" />
    <data name="rfqId" id="15" type="utf8Data" />
    <data name="marketTicker" id="16" type="utf8Data" />
    <data name="eventTicker" id="17" type="utf8Data" description="Empty when absent in the recipient projection." />
  </sbe:message>
  <sbe:message name="QuoteAccepted" id="19" blockLength="158">
    <field id="1" name="sid" type="uint64" description="Subscription ID." />
    <field id="2" name="seq" type="optionalUint64" description="Zero when the envelope omits this field." />
    <field id="3" name="sendingTsMs" type="requiredInt64" description="Unix epoch milliseconds." />
    <field id="4" name="requestId" type="optionalUint64" description="Zero when the envelope omits this field." />
    <field name="quoteCreatorId" id="5" type="hashBytes" />
    <field name="rfqCreatorId" id="6" type="hashBytes" />
    <field name="acceptedSide" id="7" type="marketSide" presence="optional" />
    <field name="contractsAcceptedFp" id="8" type="rfqOptionalContracts" />
    <field name="yesBidDollars" id="9" type="rfqPrice" />
    <field name="noBidDollars" id="10" type="rfqPrice" />
    <field name="yesContractsOfferedFp" id="11" type="rfqOptionalContracts" />
    <field name="noContractsOfferedFp" id="12" type="rfqOptionalContracts" />
    <field name="rfqTargetCostDollars" id="13" type="rfqOptionalDollars" />
    <field name="subaccount" id="14" type="optionalInteger" />
    <data name="quoteId" id="15" type="utf8Data" />
    <data name="rfqId" id="16" type="utf8Data" />
    <data name="marketTicker" id="17" type="utf8Data" />
    <data name="eventTicker" id="18" type="utf8Data" description="Empty when absent in the recipient projection." />
  </sbe:message>
  <sbe:message name="QuoteExecuted" id="20" blockLength="117">
    <field id="1" name="sid" type="uint64" description="Subscription ID." />
    <field id="2" name="seq" type="optionalUint64" description="Zero when the envelope omits this field." />
    <field id="3" name="sendingTsMs" type="requiredInt64" description="Unix epoch milliseconds." />
    <field id="4" name="requestId" type="optionalUint64" description="Zero when the envelope omits this field." />
    <field name="quoteCreatorId" id="5" type="hashBytes" />
    <field name="rfqCreatorId" id="6" type="hashBytes" />
    <field name="executedTs" id="7" type="rfqTimestamp" />
    <field name="subaccount" id="8" type="optionalInteger" />
    <data name="quoteId" id="9" type="utf8Data" />
    <data name="rfqId" id="10" type="utf8Data" />
    <data name="orderId" id="11" type="utf8Data" />
    <data name="clientOrderId" id="12" type="utf8Data" />
    <data name="marketTicker" id="13" type="utf8Data" />
    <data name="rfqBatchId" id="14" type="utf8Data" description="Empty when absent in the recipient projection." />
  </sbe:message>
  <sbe:message name="RfqBatchCreated" id="21" blockLength="76">
    <field id="1" name="sid" type="uint64" description="Subscription ID." />
    <field id="2" name="seq" type="optionalUint64" description="Zero when the envelope omits this field." />
    <field id="3" name="sendingTsMs" type="requiredInt64" description="Unix epoch milliseconds." />
    <field id="4" name="requestId" type="optionalUint64" description="Zero when the envelope omits this field." />
    <field name="creatorId" id="5" type="hashBytes" />
    <field name="createdTs" id="6" type="rfqTimestamp" />
    <group name="legs" id="7" dimensionType="groupSizeEncoding">
      <field name="side" id="8" type="marketSide" />
      <field name="yesSettlementValueDollars" id="9" type="rfqOptionalDollars" />
      <data name="eventTicker" id="10" type="utf8Data" />
      <data name="marketTicker" id="11" type="utf8Data" />
    </group>
    <group name="rfqs" id="12" dimensionType="groupSizeEncoding">
      <field name="contractsFp" id="13" type="rfqOptionalContracts" />
      <field name="targetCostDollars" id="14" type="rfqOptionalDollars" />
      <group name="legIndices" id="15" dimensionType="groupSizeEncoding">
        <field name="index" id="16" type="rfqInteger" />
      </group>
      <data name="id" id="17" type="utf8Data" />
      <data name="marketTicker" id="18" type="utf8Data" />
      <data name="eventTicker" id="19" type="utf8Data" description="Empty when absent in the recipient projection." />
      <data name="mveCollectionTicker" id="20" type="utf8Data" description="Empty when absent in the recipient projection." />
    </group>
    <data name="id" id="21" type="utf8Data" />
  </sbe:message>
  <sbe:message name="RfqBatchDeleted" id="22" blockLength="76">
    <field id="1" name="sid" type="uint64" description="Subscription ID." />
    <field id="2" name="seq" type="optionalUint64" description="Zero when the envelope omits this field." />
    <field id="3" name="sendingTsMs" type="requiredInt64" description="Unix epoch milliseconds." />
    <field id="4" name="requestId" type="optionalUint64" description="Zero when the envelope omits this field." />
    <field name="creatorId" id="5" type="hashBytes" />
    <field name="deletedTs" id="6" type="rfqTimestamp" />
    <group name="rfqIds" id="7" dimensionType="groupSizeEncoding">
      <data name="rfqId" id="8" type="utf8Data" />
    </group>
    <data name="id" id="9" type="utf8Data" />
  </sbe:message>
  <sbe:message name="BatchQuoteCreated" id="23" blockLength="85">
    <field id="1" name="sid" type="uint64" description="Subscription ID." />
    <field id="2" name="seq" type="optionalUint64" description="Zero when the envelope omits this field." />
    <field id="3" name="sendingTsMs" type="requiredInt64" description="Unix epoch milliseconds." />
    <field id="4" name="requestId" type="optionalUint64" description="Zero when the envelope omits this field." />
    <field name="quoteCreatorId" id="5" type="hashBytes" />
    <field name="createdTs" id="6" type="rfqTimestamp" />
    <field name="subaccount" id="7" type="optionalInteger" />
    <group name="quotes" id="8" dimensionType="groupSizeEncoding">
      <field name="yesBidDollars" id="9" type="rfqPrice" />
      <field name="noBidDollars" id="10" type="rfqPrice" />
      <field name="yesContractsOfferedFp" id="11" type="rfqOptionalContracts" />
      <field name="noContractsOfferedFp" id="12" type="rfqOptionalContracts" />
      <field name="rfqTargetCostDollars" id="13" type="rfqOptionalDollars" />
      <data name="quoteId" id="14" type="utf8Data" />
      <data name="rfqId" id="15" type="utf8Data" />
      <data name="marketTicker" id="16" type="utf8Data" />
      <data name="eventTicker" id="17" type="utf8Data" description="Empty when absent in the recipient projection." />
    </group>
    <data name="batchQuoteId" id="18" type="utf8Data" />
    <data name="rfqBatchId" id="19" type="utf8Data" />
  </sbe:message>
  <sbe:message name="RfqBatchBestQuotes" id="24" blockLength="63">
    <field id="1" name="sid" type="uint64" description="Subscription ID." />
    <field id="2" name="seq" type="optionalUint64" description="Zero when the envelope omits this field." />
    <field id="3" name="sendingTsMs" type="requiredInt64" description="Unix epoch milliseconds." />
    <field id="4" name="requestId" type="optionalUint64" description="Zero when the envelope omits this field." />
    <field name="version" id="5" type="rfqVersion" />
    <field name="updatedTs" id="6" type="rfqTimestamp" />
    <field name="yesComplete" id="7" type="booleanValue" />
    <field name="noComplete" id="8" type="booleanValue" />
    <field name="subaccount" id="9" type="optionalInteger" />
    <group name="rfqs" id="10" dimensionType="groupSizeEncoding">
      <field name="yesBidDollars" id="11" type="rfqOptionalDollars" />
      <field name="noBidDollars" id="12" type="rfqOptionalDollars" />
      <field name="contractsFp" id="13" type="rfqOptionalContracts" />
      <field name="yesContractsOfferedFp" id="14" type="rfqOptionalContracts" />
      <field name="noContractsOfferedFp" id="15" type="rfqOptionalContracts" />
      <field name="rfqTargetCostDollars" id="16" type="rfqOptionalDollars" />
      <data name="rfqId" id="17" type="utf8Data" />
      <data name="marketTicker" id="18" type="utf8Data" />
      <data name="eventTicker" id="19" type="utf8Data" description="Empty when absent in the recipient projection." />
    </group>
    <data name="rfqBatchId" id="20" type="utf8Data" />
    <data name="clientBatchId" id="21" type="utf8Data" description="Empty when absent in the recipient projection." />
  </sbe:message>
  <sbe:message name="BatchQuoteAccepted" id="25" blockLength="118">
    <field id="1" name="sid" type="uint64" description="Subscription ID." />
    <field id="2" name="seq" type="optionalUint64" description="Zero when the envelope omits this field." />
    <field id="3" name="sendingTsMs" type="requiredInt64" description="Unix epoch milliseconds." />
    <field id="4" name="requestId" type="optionalUint64" description="Zero when the envelope omits this field." />
    <field name="quoteCreatorId" id="5" type="hashBytes" />
    <field name="rfqCreatorId" id="6" type="hashBytes" />
    <field name="acceptedSide" id="7" type="marketSide" />
    <field name="acceptedTs" id="8" type="rfqTimestamp" />
    <field name="subaccount" id="9" type="optionalInteger" />
    <group name="quotes" id="10" dimensionType="groupSizeEncoding">
      <field name="contractsAcceptedFp" id="11" type="rfqOptionalContracts" />
      <field name="yesBidDollars" id="12" type="rfqPrice" />
      <field name="noBidDollars" id="13" type="rfqPrice" />
      <field name="yesContractsOfferedFp" id="14" type="rfqOptionalContracts" />
      <field name="noContractsOfferedFp" id="15" type="rfqOptionalContracts" />
      <field name="rfqTargetCostDollars" id="16" type="rfqOptionalDollars" />
      <data name="quoteId" id="17" type="utf8Data" />
      <data name="rfqId" id="18" type="utf8Data" />
      <data name="marketTicker" id="19" type="utf8Data" />
      <data name="eventTicker" id="20" type="utf8Data" description="Empty when absent in the recipient projection." />
    </group>
    <data name="batchQuoteId" id="21" type="utf8Data" />
    <data name="rfqBatchId" id="22" type="utf8Data" />
  </sbe:message>
  <sbe:message name="RfqBatchExecuted" id="26" blockLength="85">
    <field id="1" name="sid" type="uint64" description="Subscription ID." />
    <field id="2" name="seq" type="optionalUint64" description="Zero when the envelope omits this field." />
    <field id="3" name="sendingTsMs" type="requiredInt64" description="Unix epoch milliseconds." />
    <field id="4" name="requestId" type="optionalUint64" description="Zero when the envelope omits this field." />
    <field name="rfqCreatorId" id="5" type="hashBytes" />
    <field name="executedTs" id="6" type="rfqTimestamp" />
    <field name="subaccount" id="7" type="optionalInteger" />
    <group name="executedRfqIds" id="8" dimensionType="groupSizeEncoding">
      <data name="rfqId" id="9" type="utf8Data" />
    </group>
    <group name="failedRfqIds" id="10" dimensionType="groupSizeEncoding">
      <data name="rfqId" id="11" type="utf8Data" />
    </group>
    <data name="rfqBatchId" id="12" type="utf8Data" />
    <data name="clientBatchId" id="13" type="utf8Data" description="Empty when absent in the recipient projection." />
    <data name="closeReason" id="14" type="utf8Data" />
  </sbe:message>
  <sbe:message name="BatchQuoteExecuted" id="27" blockLength="85">
    <field id="1" name="sid" type="uint64" description="Subscription ID." />
    <field id="2" name="seq" type="optionalUint64" description="Zero when the envelope omits this field." />
    <field id="3" name="sendingTsMs" type="requiredInt64" description="Unix epoch milliseconds." />
    <field id="4" name="requestId" type="optionalUint64" description="Zero when the envelope omits this field." />
    <field name="rfqCreatorId" id="5" type="hashBytes" />
    <field name="executedTs" id="6" type="rfqTimestamp" />
    <field name="subaccount" id="7" type="optionalInteger" />
    <group name="executedRfqIds" id="8" dimensionType="groupSizeEncoding">
      <data name="rfqId" id="9" type="utf8Data" />
    </group>
    <group name="failedRfqIds" id="10" dimensionType="groupSizeEncoding">
      <data name="rfqId" id="11" type="utf8Data" />
    </group>
    <data name="batchQuoteId" id="12" type="utf8Data" />
    <data name="rfqBatchId" id="13" type="utf8Data" />
    <data name="closeReason" id="14" type="utf8Data" />
  </sbe:message>
  <sbe:message name="CfBenchmarksValue" id="32" blockLength="78">
    <field name="sid" id="1" type="uint64" />
    <field name="seq" id="2" type="optionalUint64" />
    <field name="sendingTsMs" id="3" type="requiredInt64" />
    <field name="requestId" id="4" type="optionalUint64" />
    <field name="receivedAtMs" id="5" type="requiredInt64" description="Zero for an absent received_at timestamp." />
    <field name="valueUsd" id="6" type="indexNumber8" description="Current CF tick value. Its source timestamp is avg60sData.windowEndTsExclusive." />
    <field name="avg60sData" id="7" type="indexAverageWindow" />
    <group name="last60sWindowedAverage15min" id="8" dimensionType="groupSizeEncoding" blockLength="29" description="Zero entries outside the final minute, one when present.">
      <field name="window" id="9" type="indexAverageWindow" />
    </group>
    <data name="indexId" id="10" type="utf8Data" />
    <data name="rawData" id="11" type="utf8Data" description="The published CF data text, applying the same U+FFFD replacement as JSON to malformed upstream UTF-8." />
  </sbe:message>
  <sbe:message name="CfBenchmarksValue5Hz" id="33" blockLength="57">
    <field name="sid" id="1" type="uint64" />
    <field name="seq" id="2" type="optionalUint64" />
    <field name="sendingTsMs" id="3" type="requiredInt64" />
    <field name="requestId" id="4" type="optionalUint64" />
    <field name="sourceTsMs" id="5" type="requiredInt64" />
    <field name="receivedAtMs" id="6" type="requiredInt64" description="Zero for an absent received_at timestamp." />
    <field name="valueUsd" id="7" type="indexNumber8" />
    <data name="indexId" id="8" type="utf8Data" />
    <data name="rawData" id="9" type="utf8Data" description="The published CF data text, applying the same U+FFFD replacement as JSON to malformed upstream UTF-8." />
  </sbe:message>
  <sbe:message name="PythValue" id="34" blockLength="57">
    <field name="sid" id="1" type="uint64" />
    <field name="seq" id="2" type="optionalUint64" />
    <field name="sendingTsMs" id="3" type="requiredInt64" />
    <field name="requestId" id="4" type="optionalUint64" />
    <field name="sourceTsMs" id="5" type="requiredInt64" />
    <field name="receivedAtMs" id="6" type="requiredInt64" description="Zero for an absent received_at timestamp." />
    <field name="valueUsd" id="7" type="indexNumber8" description="Source-dependent USD value, FX rate or percentage yield, matching the published Pyth value_usd field." />
    <data name="underlyingTicker" id="8" type="utf8Data" />
  </sbe:message>
</sbe:messageSchema>
