docs.rs failed to build polymarket-kernel-0.2.1
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
The runtime keeps a portable baseline path for any x86_64 CPU and enables AVX-512 acceleration only when the host actually supports it.
Source paper:
Features
Core Quoting Kernel
- SoA (Structure of Arrays) layout for contiguous memory access and SIMD-friendly loads
- Runtime-dispatched AVX-512 quote acceleration with portable fallback
- Inventory-aware Avellaneda-Stoikov quoting in logit space
- Exact, numerically stable
sigmoid/logitmapping across the public API
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/* - Portable baseline that runs on any x86_64 CPU
- Zero allocations in the hot path (pre-allocated caller-managed buffers)
- Runtime-dispatched AVX-512 fast path on supported server-class CPUs
- Numerically safe clamping for stable
logitevaluation without saturating large logits - 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
Runtime-Dispatch Quote : 6.71 ns/market
------------------------------------------------------------
SPSC Ring Capacity : 1048576
SPSC Messages : 10000000
SPSC Throughput : 29.05 M msgs/sec
============================================================
License
MIT