Skip to main content
QuoteEngine is the SimpleFunctions automated quoting workflow. It maintains bid/ask quotes for a prediction-market contract, adjusts around mid-price movement, applies inventory and exposure limits, and can run in paper mode before live execution. Use this page for operational setup. Use Real-Time Data API when you want to build your own market-making system from raw orderbooks, trades, candles, and movers.
QuoteEngine can place and cancel real orders when trading credentials and live execution are enabled. Start with --paper, inspect status, and keep limits small until the behavior is understood.

Mental model

First safe run

Start with paper mode and tight limits:
Inspect the configured quote:
Start the engine in the foreground while testing:
After the behavior is understood, run it as a daemon:
Stop the engine and cancel active quote orders:

Quote creation flags

Bias patterns

Use --bias-mode off or omit bias for neutral quoting:
Use manual bias when an external model or operator has a directional view:
Use thesis bias when the quote should lean with a SimpleFunctions thesis:
Use --thesis-auto only when you are comfortable with automatic thesis matching:

Operational loop

A production-style loop should be explicit:
1

Discover and inspect

2

Create a paper quote

3

Run and observe

4

Adjust or pause

5

Stop cleanly

Agent integration

For an external agent, separate research from execution:
Then require a human or policy service to approve the quote command. A safe generated command should include --paper, --max-exposure, --stop-loss, and small size limits. If Claude Code or Codex is driving the workflow, give it this boundary:

Live execution checklist

Before removing --paper:
  1. sf status --json shows expected auth and exchange configuration.
  2. sf quoteengine status --json is understood and clean.
  3. The quote has explicit --max-long, --max-short, --max-exposure, and --stop-loss.
  4. The spread is wider than the minimum tick noise you observed in paper mode.
  5. The operator knows how to run sf quoteengine stop.
  6. A separate process monitors fills, P&L, stale books, and exchange status.

Real-Time Data API

Raw market data for custom quoting, replay, and research systems.

Trade intents

Declarative execution workflow for non-market-making trades.

Headless agent

Let Claude Code, Codex, cron, or CI drive sf safely.

Risk gates

Portfolio and execution risk controls.