Concepts
Read-only ingestion
predxt opens venue websocket connections, subscribes to supported channels,
parses venue payloads, and emits normalized messages. It also reads supported
REST market-data snapshots. It does not trade.
VenueMessage
VenueMessage is the compatibility surface for all clients:
venueraw_datatimestamp_msevent_typemarket_idasset_idreceived_at_ms
raw_data is always retained so builders can access venue-specific fields.
Typed events
Use typed_event_from_message(message) to get dataclasses for supported shapes:
OrderBookSnapshotOrderBookDeltaTradeEventPriceChangeEvent
Unsupported messages return None.
REST clients
REST clients are read-only helpers for market discovery, market details, orderbook snapshots, and API availability checks.
Shared REST models:
MarketSummaryMarketDetailOrderBookSnapshotOrderBookLevelVenueCredentialStatusVenueApiError
Venue-specific clients:
PolymarketRestClientKalshiRestClientOpinionRestClient
REST responses keep raw_data so builders can access venue-specific fields
without waiting for typed helpers.