backtrade.
Backtrade?
← Strategies

OPTIONAL NEXT STEP

Paper trading

Optional: run a tested strategy with your paper broker.

Choose a saved strategy

Backtesting needs no broker account. For paper trading, credentials stay on your computer and the broker controls executions.

Enter a version ID manually

Set ALPACA_API_KEY and ALPACA_API_SECRET in your local environment. Only the paper trading endpoint is used.

node backtrade-runner.mjs --paper ./backtrade-paper.json

# Explicitly enable paper orders after reviewing the preview:
node backtrade-runner.mjs --paper ./backtrade-paper.json --submit-orders

Preview reads account/data and logs intended actions without submitting orders. Paper runs use wall-clock time and reconcile cumulative fills. Stop does not liquidate positions or cancel unrelated orders. Restart refuses unresolved prior submissions.

What portability means

Backtrade and the paper adapters share account, position, order and bar fields. Declared capabilities are checked before the strategy starts. Fills, fees, permissions, data feeds and availability can differ. IBKR paper uses a separately tested contract adapter; end-to-end verification still depends on your actual Gateway and entitlements. There is no live-money mode in this runner.