Skip to Content

Prop AMM

Compile and execute submitted Rust strategies against the fixed prop-amm evaluator runtime. Supports native and BPF evaluation paths, validation, and artifact compilation.

Current public support: shared placement on CPU workers only. Submit via POST /api/v1/recipes/prop_amm/jobs or POST /api/v1/jobs with "recipe": "prop_amm".

Operations

OperationDescription
evalCompile natively and run the standard simulation batch
eval_chunkRun one deterministic contiguous seed chunk of the native batch
validateFast BPF validation suite (skips native parity)
validate_fullFull validation including native/BPF parity checks
bpf_evalCompile for BPF and evaluate with the constrained runtime
bpf_eval_chunkRun one seed chunk through the BPF evaluator
buildCompile and publish native and BPF submission artifacts
concavity_checkFast validation with explicit buy/sell concavity checks

Payload Fields

FieldTypeRequiredDescription
operationstringyesOne of the operations above
strategy_refstringyes (most ops)Artifact ID of the Rust strategy source
rs_source_b64stringaltBase64-encoded Rust source (alternative to strategy_ref)
seed_baseintegernoStarting seed for simulation
startintegernoStart offset for chunk operations
countintegernoNumber of seeds to run
stepsintegernoSimulation steps
strict_curvesbooleannoEnable strict curve validation
per_seedbooleannoReturn per-seed edge data

Either strategy_ref or rs_source_b64 must be provided.

Examples

Validate a strategy (fast path)

POST /api/v1/recipes/prop_amm/jobs { "payload": { "operation": "validate", "strategy_ref": "art_123" }, "timeout_s": 900 }

Full evaluation

POST /api/v1/recipes/prop_amm/jobs { "payload": { "operation": "eval", "strategy_ref": "art_123", "seed_base": 0, "count": 1000, "steps": 200 }, "timeout_s": 1800 }

Build artifacts

POST /api/v1/recipes/prop_amm/jobs { "payload": { "operation": "build", "strategy_ref": "art_123" }, "timeout_s": 600 }

The build operation publishes compiled native and BPF artifacts.

Result Fields

Eval operations return: success, avg_edge, n_seeds, returncode, output_tail

Chunk operations also return: chunk_index, chunk_count, start

Build returns: success, source_hash, native_path, bpf_path, native_cache_hit, bpf_cache_hit

Concavity check returns: success, buy_side_concave, sell_side_concave

Last updated on