Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.simplefunctions.dev/llms.txt

Use this file to discover all available pages before exploring further.

SimpleFunctions computes a small set of indicators on every market on every scan tick. Each is exposed in inspect, screen, query, and the world snapshot.

Implied Yield (IY)

Annualized return-to-resolution if the contract resolves YES (or NO) at 100¢, given current price and time-to-expiry.
IY_yes  =  (100 - price) / price  ×  (365 / tau_days)  ×  100%
IY_no   =  (price       / (100 - price))  ×  (365 / tau_days)  ×  100%
adjIY adjusts for spread and slippage at typical liquidity.

Cliff Risk Index (CRI)

How “cliff-shaped” the resolution payoff is. Higher CRI = more binary resolution risk; markets with low CRI behave more like continuous probability bets.

Event Overround (OR / EE)

For multi-outcome events, sum the YES asks across all outcomes:
OR  =  Σ ask_yes_cents  −  100
EE  =  same idea, but using mid prices
OR > 0 means book maker margin. OR < 0 means structural arb (rare; usually a stale book).

Liquidity-Adjusted Spread (LAS)

Composite of bid/ask spread and depth on top-of-book. Lower LAS = tighter, deeper book.

Time-to-resolve (τ, tau_days)

Days remaining until market closes.

Realized Volatility (RV)

Standard deviation of recent price changes, annualized.

Cross-Venue Ratio (CVR)

CVR  =  cross_venue_gap_cents  /  price_cents
Where cross_venue_gap_cents is the price difference between the Kalshi and Polymarket counterpart pair, when one exists.

Where they live

FieldSource
iyYes, iyNo, adjIymarket_indicators.iy_yes
crimarket_indicators.cri
ee, ormarket_indicators.ee
lasmarket_indicators.las
tauDaysmarket_indicators.tau_days
rvmarket_regimes.signals.rv
cvrderived in lib/indicators/compute.ts

Compute cadence

Indicators recompute every scan tick (default 5min for active markets, longer for tail). The compute-indicators cron writes to market_indicators.

Next steps

Regime

How regime label combines indicators.

Idea pipeline

Which indicators drive idea generation.