docs.rs failed to build polymarket-kernel-0.2.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
polymarket-kernel-0.1.0
polymarket-kernel
Ultra-low latency computational core for Polymarket market making, now upgraded into a comprehensive decision-support and risk engine for prediction-market microstructure.
Overview
polymarket-kernel implements a unified logit-space stochastic framework where probabilities are transformed into log-odds and processed through SIMD-native math.
The crate now combines:
- high-throughput quoting primitives
- inventory-aware execution math
- vectorized analytics and portfolio risk aggregation
Source paper:
Features
Core Quoting Kernel
- SoA (Structure of Arrays) layout for contiguous memory access and SIMD-friendly loads
- AVX-512 vectorized quote engine for batch processing
- Inventory-aware Avellaneda-Stoikov quoting in logit space
- Custom AVX-512
log1papproximation to avoid scalar fallback in spread computation - Fast sigmoid approximation for
x -> pmapping in hot paths
Analytics Capabilities
- Implied Belief Volatility calibration from market bid/ask quotes
- Vectorized Stress-Testing (what-if analysis) for shocked probabilities, PnL shifts, and re-quoted books
- Adaptive Kelly sizing for maker and taker clip recommendations under inventory and risk constraints
- Order Book Microstructure metrics: OBI, VWM, and pressure signal in logit space
- Cross-Market Portfolio Greeks aggregation with optional weighting and correlation matrix support
Systems Properties
- C kernel in
c_src/*with FFI-safe Rust bindings insrc/* - Zero allocations in the hot path (pre-allocated caller-managed buffers)
- Numerically safe clamping for stable
logit/sigmoidevaluation - Lock-free SPSC ring buffer for market data handoff
Quick Start
Install:
Call calculate_quotes_logit with SoA input slices:
use calculate_quotes_logit;
Analytics API Example
use ;
Benchmark Snapshot
============================================================
POLYMARKET-KERNEL RAW BENCHMARK
============================================================
Quote Batch Size : 8192 markets
Quote Iterations : 100000
AVX-512 Quote Latency : 6.71 ns/market
------------------------------------------------------------
SPSC Ring Capacity : 1048576
SPSC Messages : 10000000
SPSC Throughput : 29.05 M msgs/sec
============================================================
License
MIT