Agentic Trading Index

Paper trading that behaves like a live venue for agents

Trading terminal showing orders and fills during paper trading
Photo by Jan van der Wolf on Pexels

Week one is for proving that the agent can submit, amend and cancel orders without corrupting its state. By week six, it should be facing the venue-shaped frictions that change a strategy's results: queue position, partial fills, spread, rejects, and delayed acknowledgements. A simulator that skips those mechanics can report clean profits while an unattended live process accumulates unfilled orders.

Start with the venue's order lifecycle

Choose one instrument and one execution path before building a broad simulator. This walkthrough uses a liquid US-listed equity, a $50,000 account and an agent that trades 100-share orders during regular market hours. The figures are illustrative typical market ranges, not audited results from a particular broker or venue.

Write down the states an order can occupy: created, submitted, acknowledged, partially filled, filled, cancelled, expired or rejected. Include a pending state between submission and acknowledgement. Network timeouts do not prove that an order failed. The venue may have accepted it even if the client never received the response.

Give every order a stable client identifier. On reconnect, query open orders and executions before retrying. Otherwise, a retry can duplicate exposure.

Store the request, acknowledgement, every execution, cancellation request and final status with timestamps. Keep the venue's event time and the agent's receive time separately.

  • Define whether amendments retain priority or become cancel-and-replace requests.
  • Model trading halts, market-hours rules, tick sizes and order-type restrictions.
  • Decide how the agent behaves when quotes are stale or the API is unavailable.

Give the case a measurable baseline

Suppose the strategy makes 12 to 20 orders per day, usually 100 shares each, and targets a $50 stock. At that size, an order is about $5,000, or 10% of the account. That is large enough for a fill assumption to matter, but small enough that a liquid share may often execute without major market impact during normal conditions.

In week one, record a baseline using the best bid and offer captured when the decision is made. Compare the agent's intended price, order size and side with the quote.

Do not treat the quote as a fill. A buy limit at the offer might be filled, partly filled or left behind as other orders ahead of it trade.

Set explicit acceptance measures. For example, compare intended and simulated fill rates, the share of orders receiving partial fills, median time to first fill and net P&L after estimated costs. Keep results by symbol, time of day and order type. One aggregate number can conceal a simulator that fills opening-auction orders generously and misses afternoon orders.

Represent queues and partial fills

A simple simulator can use quote and trade data to decide whether a resting order could have traded. For a buy limit, require marketable sell flow at or below the limit, then account for displayed quantity ahead of the agent. If reliable depth data is unavailable, use a conservative probability of execution rather than assuming that every touch fills. State that assumption in the report.

Model execution in pieces. A 100-share order might receive 40 shares, remain open for 30 seconds, then receive another 20 before the agent cancels the balance. Update position, cash, fees and risk limits after each fill, not only when the order reaches a terminal status. Cancellation races matter: a fill may arrive after a cancel request but before cancellation is confirmed.

For a strategy built around market orders, use the next executable side of the quote, not the midpoint. Add a delay between signal and order arrival. Test delays such as 50, 150 and 500 milliseconds as sensitivity cases, not as promises of a particular connection speed. A hosted agentic paper-trading environment can provide a place to run unattended order logic, but the fill and cost assumptions still need to match the intended venue.

Price fills and costs explicitly

Use market data available at the simulated order-arrival time. If the agent decides at 10:00:00.000 and the order arrives 100 milliseconds later, do not fill it from a quote that disappeared before arrival. For limit orders, distinguish a price touch from an execution opportunity. For market orders, apply the spread and a size-sensitive slippage estimate.

The table gives typical market ranges for US equities. Actual charges vary by broker, venue, account and routing. Treat them as starting points for a model, then replace them with the schedule and execution data for the account being tested.

Cost or effectTypical rangePaper implementationLog to compare
Commission$0 to $0.005 per shareApply per executed share, including partial fillsCommission per fill
Exchange and regulatory charges$0 to $0.005 per share, with venue and side differencesApply the relevant fee or rebate by route and sideFee breakdown by execution
Spread paidAbout 1 to 10 basis points round trip in liquid names, with wider spreads in less liquid conditionsPrice buys and sells against executable quote sidesArrival price versus fill price
Slippage beyond spreadAbout 0 to 5 basis points per side in routine liquid conditions; 5 to 30 or more in stressed conditionsScale by order size, volatility and available depthSlippage by size and market state
Borrow for short positionsAbout 0.25% to 5% annualised for readily available shares; hard-to-borrow rates can be much higherCheck availability and accrue borrow cost over timeLocate result and daily borrow charge

Do not add the full quoted spread twice if the fill price already uses the ask for a buy and the bid for a sale. That double-counts a cost. Reconcile simulated P&L from fill prices, commissions, exchange charges, borrow and any financing separately so each component can be checked.

Use six weeks to expose the gaps

Week one should establish working order-state handling and a repeatable baseline. Weeks two and three can add partial fills, delays and cancellations.

In weeks four to six, replay volatile sessions, thin periods, halts, rejected orders and API interruptions. Keep the same strategy inputs where possible, so changes in results come from execution assumptions rather than a moving signal.

Compare simulator events against live market data and, if permitted, broker paper fills. A broker's paper account may still fill at the midpoint or ignore queue priority. Treat it as another model to measure, not ground truth. The Agentic Trading Index offers agentic paper trading from $9.99 a month for testing software that places orders without a human watching.

Before allowing any live order, check that the simulator can explain every material difference between intended and executed behaviour. Use this release checklist:

  1. Verify that retries cannot create duplicate orders after a timeout or reconnect.
  2. Confirm that positions and buying power update on partial fills and late executions.
  3. Run fee, spread and slippage sensitivity tests at typical and stressed ranges.
  4. Measure fill rate, time to fill, cancellation rate and net P&L by order type and market condition.
  5. Test stale data, rejected orders, halts and risk-limit breaches, then confirm the agent stops or recovers as specified.
  6. Set a hard order-size limit and a daily loss limit outside the strategy's own decision logic.

Keep the simulator assumptions versioned beside the strategy code. When a broker changes its fee schedule, order rules or API behaviour, rerun the same six-week replay and compare the event logs. Paper trading is credible only while its assumptions remain visible and testable. Before the next run, check your agent's simulated fill rate against the rate it would need to cover its costs.

Frequently Asked Questions

How realistic is paper trading?

It depends on how the simulator handles order arrival, queue position, partial fills, fees and rejects. A paper account that fills every limit order at a price touch can materially overstate performance.

How should a paper trading simulator model partial fills?

Record each execution as a separate event and update cash, position and risk limits immediately. For resting orders, use available trade or depth data to estimate whether quantity ahead of the order has traded.

How long should an agent paper trade before going live?

A six-week test can expose more market conditions than a one-week connectivity check, but duration alone does not establish readiness. Review order-state correctness, cost sensitivity, failure handling and performance across different sessions before allowing live orders.