start_paper_tradingMonitor a ready strategy and send signals to selected notification channels, or simulate trading for a strategy or portfolio.
Area
Paper Trading
Group
Paper Trading
Access
Write
Risk
May change server state
▸Details
Full description
Details
Start live signal monitoring or simulated trading for a ready strategy.
To notify an agent, pass strategy_id, signals_only=True and the selected notification_channels, such as ["webhook-agent"]. Leave initial_cash and trading costs at their defaults for monitoring. The session evaluates the strategy on live bars and scheduled occurrences and sends entry and rebalance signals without placing orders or changing the stored strategy.
Use get_settings(sections=["notifications"]) to find an existing channel, or configure_settings to connect a webhook. Notifications default on; select explicit channel IDs to notify only those destinations. Inspect the returned session with get_run(kind="paper", run_id=...), inspect recorded attempts with list_notification_deliveries, and stop monitoring with stop_paper_trading. Backtest research with run_strategy can help evaluate a signal before monitoring it.
With signals_only omitted, the session simulates fills with the chosen cash, fees and slippage and tracks PnL. Pass portfolio_id instead of strategy_id for one basket session whose member sleeves share capital. Portfolio sessions support simulated trading, not signals-only monitoring.
Approval settings stay fixed for the session. Read pending requests with get_run(kind='paper', run_id=...), then use decide_paper_trade to approve or reject the exact request. Approval permits later eligible execution; it does not guarantee the request price. Rejected exits leave positions open.
The strategy must be ready and the caller's email verified. Returns run_id and status. Refuses with UNAUTHORIZED for an unverified email, STRATEGY_NOT_FOUND or PORTFOLIO_NOT_FOUND for an unavailable target, VALIDATION_ERROR when both or neither target IDs are given, and EXECUTION_SERVICE_ERROR on a backend failure.
Capabilities
Bounded options and operating modes surfaced above the full JSON schema.
Approval Policy options
approval_policy
automaticentriesexitsallRequired Inputs
Optional Inputs
approval_cancellationanyOf (2 variants)Optional positive percent movement from the request price that cancels remaining execution, including after approval. Choose adverse (buy rises or sell falls) or either direction. Requires an approval policy; omit for off.approval_expiry_minutesanyOf (2 variants)Minutes to answer each approval request, starting when it is requested. Omit for no expiry. Requires trade approvals; fixed for the session.approval_policyApprovalPolicyRequire approval for entries (including increases), exits (including stop-loss and take-profit), all, or neither (automatic). Single-symbol simulated sessions only. Fixed for the session.fee_pctanyOf (2 variants)Trading fee as percentage (0.1 = 0.1%). Omit to use the asset-aware default for this strategy's symbols; send 0 for a deliberately zero-fee session. Allowed percent range: 0 <= value <= 5.initial_cashnumberStarting virtual balance. Leave at its default for signals-only monitoring.notification_channelsanyOf (2 variants)Channel ids to notify, as the owner's Settings list them ('email', 'discord-<id>', 'webhook-<name>', or 'push' for every push device). Omit for every enabled channel.notifications_enabledanyOf (2 variants)Notify the owner of this session's fills (or signals). Omit for on.portfolio_idanyOf (2 variants)Saved portfolio to paper trade as one basket session with shared capital. Pass exactly one of strategy_id or portfolio_id.signal_cooldown_minutesanyOf (2 variants)Signals only: minimum minutes between two signals of one entry. Omit for none.signal_whenanyOf (2 variants)Unscheduled entries: 'becomes_true' signals on a rising edge (default); 'every_bar' signals on each true bar. Scheduled entries signal at each eligible scheduled occurrence. Cooldown applies to both.signals_onlyanyOf (2 variants)Monitor signals without placing orders. Pass true with strategy_id and notification_channels to subscribe an agent to entry and rebalance signals. The stored strategy is unchanged. Omit for simulated trading. Portfolio sessions do not support signals only.slippage_pctanyOf (2 variants)Slippage as percentage (0.05 = 0.05%). Omit to use the asset-aware default (0.01% equities, 0.05% crypto); send 0 for zero slippage. Equity sessions also pay a per-symbol typical half-spread (0.5-2bp) on top, waived only when fee_pct and slippage_pct are both 0. Allowed percent range: 0 <= value <= 5.strategy_idanyOf (2 variants)Strategy to monitor or paper trade. Pass exactly one of strategy_id or portfolio_id.