An automated trading bot does not become hands-off when it goes live. This monitoring checklist shows how to verify broker connectivity, market data, order status, positions, leverage, latency, and shutdown controls at each stage of a trading session, so execution errors can be identified before they become larger losses.
Overview
Monitoring is the operational layer between a trading strategy and a live brokerage account. A backtested strategy may produce valid signals, but the live result can still diverge because an API disconnects, a data feed stops updating, an order is rejected, or the account records a different position than the bot expects.
The right monitoring process is not limited to watching profit and loss. It compares what the bot intended to do with what the broker actually accepted and filled. That comparison should cover four separate states:
- Signal state: what the strategy currently wants to buy, sell, hold, or cancel.
- Order state: which orders were submitted, acknowledged, rejected, canceled, partially filled, or left open.
- Account state: the broker’s actual positions, cash, buying power, margin, and open orders.
- System state: API connectivity, data freshness, application health, clock synchronization, and latency.
A platform or broker comparison should therefore include more than commissions or a list of supported assets. For automated trading, assess API reliability, authentication controls, supported order types, paper-trading availability, order-status detail, rate limits, maintenance communication, and the ease of reaching a safe shutdown. Features can change, so confirm them in the broker’s current documentation before deploying capital.
What to track
1. API and data connectivity
Record the last successful API heartbeat, the time of the most recent market-data update, and the number of failed requests. A connection can appear active while prices or account data have stopped refreshing. Set a defined maximum age for market data and account responses. If that limit is exceeded, the bot should stop opening new positions rather than trade on stale information.
Check the broker’s status page and developer notices when requests fail repeatedly. Also review authentication expiry, token permissions, IP restrictions, and any recent changes to the API version. Keep credentials out of application logs and use the narrowest permissions that support the strategy.
2. Orders and execution responses
Every order should have a unique client identifier and a recorded timestamp. The monitoring record should show the intended symbol, side, quantity, order type, limit or stop price where relevant, time-in-force instruction, broker order ID, and final status.
Pay particular attention to:
- Rejected orders: Check buying power, symbol eligibility, order size, price limits, trading hours, and unsupported order types before resubmitting.
- Duplicate orders: Compare client IDs and existing open orders before retrying after a timeout. A timeout does not prove that the broker failed to receive the request.
- Partial fills: Reconcile the filled quantity with the remaining order quantity. Do not assume that a partial fill is equivalent to a completed trade.
- Unexpected cancellations: Record whether the cancellation came from the bot, the broker, an expiration rule, or a manual action.
- Latency: Measure the time from signal generation to submission, acknowledgment, fill, and account update. A strategy that depends on fast execution should define a response that is appropriate for slower conditions.
3. Position and risk reconciliation
At regular intervals, compare the bot’s internal position ledger with the broker’s account view. The comparison should include symbol, direction, quantity, average entry price, open orders, realized profit or loss, and unrealized profit or loss. A mismatch may result from a partial fill, a manual trade, a corporate action, an order that was accepted but not recorded locally, or an application restart that lost state.
Track gross exposure, concentration by symbol, available buying power, margin usage where applicable, and the number of trades opened during the session. Risk controls should include maximum position size, maximum daily loss, maximum number of concurrent positions, and a rule for stopping new entries after repeated execution failures. The practical sizing principles in this position-sizing guide can be used to connect bot settings with a defined account risk limit.
4. Logs, alerts, and emergency controls
Logs should be searchable by timestamp, symbol, order ID, and error code. Separate routine messages from urgent alerts. A useful alert explains what happened, when it happened, what exposure may be affected, and what action is available.
At minimum, configure alerts for lost connectivity, stale data, rejected orders, duplicate-order prevention, position mismatches, unexpected leverage, repeated retries, and a triggered loss or exposure limit. Test the emergency stop in a non-live environment. The stop should prevent new orders, cancel open orders when appropriate, and provide a clear process for managing existing positions. Do not assume that closing the application alone cancels orders already held by the broker.
Common monitoring problems
| Symptom | Likely area to check | First response |
|---|---|---|
| No new signals or prices | Data feed, symbol mapping, market-hours logic, or stale connection | Pause entries, verify the latest timestamp, and check feed and broker status information |
| Order rejected | Buying power, order type, quantity, permissions, or session rules | Read the exact rejection message; do not repeatedly resubmit without correcting the cause |
| Two orders for one signal | Retry logic, duplicate event handling, or lost acknowledgment | Query open orders and executions before taking any corrective action |
| Bot and broker positions differ | Partial fill, manual trade, restart, or missed execution event | Stop new entries and reconcile fills, open orders, and account records |
| Exposure is larger than expected | Leverage settings, quantity calculations, contract multipliers, or stale balances | Use the broker account as the source of actual exposure and activate the risk stop if needed |
Cadence and checkpoints
A session-by-session routine is more reliable than checking the bot only after a loss.
Before the session
- Confirm the intended strategy version, symbols, market hours, and risk limits.
- Check API authentication, account balances, open positions, and orders carried over from the prior session.
- Verify that market data is updating and that the broker supports the order types the bot may send.
- Run a small connectivity or paper-trading test when the system, credentials, or broker integration has changed.
- Review scheduled catalysts and unusual conditions that may require disabling a strategy. A structured catalyst workflow can complement the bot’s rules; see the guide to news sentiment for stocks.
During the session
- Watch heartbeats, data age, request failures, latency, and order acknowledgments.
- Reconcile positions after each fill or at a fixed interval suitable for the strategy’s holding period.
- Review alerts promptly, especially those involving duplicate orders, leverage, or stale data.
- Record manual interventions so they are not mistaken for bot errors during later review.
After the session
- Confirm that expected positions are closed or intentionally carried overnight.
- Compare submitted, filled, canceled, and rejected orders with the bot’s trade ledger.
- Calculate execution differences such as slippage, missed fills, and partial-fill frequency. The trading bot slippage guide provides a framework for this review.
- Save logs and note any incident, software change, broker notice, or manual action in a trading journal.
How to interpret changes
One failed request does not necessarily mean the entire system is unsafe, but repeated or unexplained discrepancies deserve a pause. Look for patterns rather than judging performance from a single trade. For example, rising rejection rates may indicate an order-format or account-permission problem; increasing latency may point to a network, data, or broker-service issue; and recurring position mismatches may reveal a flaw in fill-event handling.
Separate strategy performance from execution quality. If signals remain consistent but fills worsen, investigate spread, order type, routing, market conditions, and broker behavior before changing the strategy. If fills are normal but results differ from the backtest, examine assumptions, data quality, fees, slippage, and live position sizing. The backtesting guide explains why historical results should be compared with live execution cautiously.
Use thresholds that lead to an action. Examples include stopping new entries after a defined number of rejected orders, disabling the bot when data exceeds its maximum age, or requiring manual review after an account-position mismatch. The exact thresholds depend on the strategy, instrument, broker, and account, but they should be written down before a stressful incident occurs.
When to revisit
Revisit this checklist before every live session and after any change to code, credentials, symbols, order types, data providers, broker settings, or hosting infrastructure. Perform a deeper review monthly or quarterly, depending on trading frequency. That review should examine rejection rates, fill quality, latency, data interruptions, alert response times, position mismatches, emergency-stop tests, and the accuracy of broker documentation.
Refresh broker status-page links, supported order types, API error terminology, maintenance procedures, and monitoring software references at least every six months or sooner after a major platform update. Do not move a revised system directly into full-size live trading. Validate it with a paper trading bot or reduced-risk deployment first, using the controls described in the paper trading bot validation guide.
For the next session, turn this article into a one-page operating checklist: verify connectivity, confirm data freshness, reconcile the account, test the stop procedure, monitor orders, and document the close. An automated trading bot is only as dependable as the controls surrounding it. Regular reconciliation gives the trader a chance to correct a technical problem while it is still an operational issue, rather than discovering it after it has become a substantial account loss.
