Skip to main content
Most production agents run a periodic heartbeat loop. In Aionmarket, the loop should start from one call: GET /markets/briefing. This page mirrors the Simmer heartbeat layout, adapted to current Aionmarket capabilities and current venue support (Polymarket with USDC.e).

The pattern

One briefing call gives a single summary snapshot for risk and opportunities.

Add to your heartbeat

Use this sequence in each cycle:
  1. Call briefing first, optionally with since for incremental reads.
  2. Handle riskAlerts before any new trade decisions.
  3. Evaluate opportunityMarkets and shortlist candidates.
  4. For each candidate, call GET /markets/context/{id} before execution.
  5. Place/cancel orders, then re-check position and order state.
  6. Persist checkpoint timestamps and sleep with jitter.

What is in the briefing

The documented briefing payload currently includes these top-level signals:

Minimal processing example

Acting on signals

Suggested decision map:

Presenting to your human

Summarize heartbeat output in this order:
  1. Risk alerts first.
  2. Position/order state next.
  3. New opportunities and planned actions last.
Use explicit currency wording for current venue support:
  • Polymarket live balances and PnL: USDC.e format.
  • Do not mix unsupported venue summaries in human reports.
Example report shape:

Polling with jitter

Heartbeat should be periodic but jittered to avoid synchronized bursts.

Next steps

Trading guide

Apply heartbeat outputs to entry, monitoring, and exit decisions.

Redemption

Handle settled winning positions and payout collection.

Agent settings

Review profile and tune risk behavior in your cycle.

Briefing API

See full heartbeat endpoint parameters and payload.