Skip to main content

Module competition

Module competition 

Source
Expand description

Competition domain types.

Competitions, leaderboards, username requests, and profile data for the trading competition system.

Structsยง

CompetitionFillInput
Input for recording a competition fill event.
CompetitionFillRecord
A fill event for competition PnL computation.
CompetitionFinalStatsInput
Input row for inserting finalized competition stats.
CompetitionFinalStatsRecord
Finalized stats for a wallet in a completed competition.
CompetitionRecord
A persisted competition row.
CompetitionUpdateInput
Input for updating an existing competition (all fields optional).
CompetitionUpsertInput
Input for creating a new competition.
PlatformWalletMetrics
Per-wallet realized PnL and volume (platform-wide metrics).
ProfileFillRecord
Record for fill data used by the profile trade history endpoint.
SymbolPnlRecord
Per-symbol realized PnL breakdown.
SymbolVolumeRecord
Per-symbol volume breakdown.
TheoMarkRecord
Historical theoretical mark price for a symbol.
WalletLedgerStats
Aggregated ledger stats for a wallet (deposits, withdrawals, realized PnL, 24h PnL).
WalletUsernameRecord
Batch wallet-to-username mapping from the usernames table.