Skip to main content

Module models

Module models 

Source
Expand description

Diesel model structs (Queryable, Insertable, AsChangeset) for every database table.

These are internal to the crate. Public consumers use the ORM-free domain types from hypercall-db and the trait impls convert at the boundary.

Structs§

BboSnapshot
Persisted BBO snapshot used for 24h options summary change calculations.
Competition
CompetitionFillEvent
CompetitionFinalStat
Fill
HistoricalPnlSnapshot
Historical equity snapshot record for charting PnL/equity over time.
HistoricalTheoSnapshot
Historical theo snapshot record for charting theoretical option prices over time.
Instrument
JournalCommandForReplay
Command data for engine replay after snapshot load. Contains the minimal data needed to replay a command through the engine. Stores command/response as wire bytes (version byte + msgpack).
LedgerEvent
LiquidationAuctionRecord
Liquidation auction record
LiquidationHistoryRecord
Liquidation history record - state transition audit trail
LiquidationStateRecord
Liquidation state record - current state for a wallet
Market
MarketActionRecord
MarketUpdateRecord
MmpConfig
NewBboSnapshot
New persisted BBO snapshot for insertion/upsert.
NewCompetition
NewCompetitionFillEvent
NewCompetitionFinalStat
NewFill
NewHistoricalPnlSnapshot
New historical equity snapshot for insertion/upsert.
NewHistoricalTheoSnapshot
New historical theo snapshot for insertion/upsert.
NewLedgerEvent
NewLiquidationAuction
New liquidation auction for insertion
NewLiquidationHistory
New liquidation history entry for insertion
NewLiquidationState
New liquidation state for insertion
NewMarketAction
NewMarketUpdate
NewMmpConfig
NewNotification
NewOraclePriceSample
New oracle price sample for insertion
NewOracleSettlementPrice
New oracle settlement price for insertion
NewOrderAction
NewOrderInfo
NewOrderUpdate
NewPortfolioSnapshot
NewPositionExpiration
New position expiration for insertion
NewPushSubscription
NewQuoteProvider
NewRejectedOrder
NewRfqFill
NewRfqLeg
NewRfqQuote
NewRfqQuoteLeg
NewRfqRecord
NewRsmSignerNonce
NewSettlementPayout
New settlement payout for insertion
NewSettlementPayoutSeen
New seen marker for insertion.
NewTrade
NewUserProfile
NewUserTier
NewVolSurfaceSnapshotRow
New vol surface snapshot for insertion/upsert.
Notification
OraclePriceSample
Oracle price sample record for TWAP computation
OracleSettlementPrice
Oracle settlement price record (finalized TWAP)
OrderActionRecord
OrderInfoRecord
OrderUpdateRecord
PortfolioSnapshot
PositionExpiration
Position expiration record for settlement idempotency
PushSubscription
QuoteProviderRecord
RejectedOrder
RfqFillRow
RfqLegRow
RfqQuoteLegRow
RfqQuoteRow
RfqRecordRow
RsmSignerNonceRecord
RsmSignerRequestRecord
SettlementPayout
Settlement payout record for audit trail
SettlementPayoutSeen
Seen marker for a settlement payout (per wallet).
TierDefaults
Default trading limits for each tier
Trade
UpdateCompetition
UpdateLiquidationAuction
Auction update changeset
UpdateUserProfile
UserProfile
UserTier
VolSurfaceSnapshotRow
Persisted vol surface snapshot for charting volatility surfaces over time.

Enums§

InstrumentStatus
Instrument status for expiry/settlement state machine