Get up and running with ByteTrader
Step-by-step guides to help you set up, develop strategies, and start trading.
Account Setup
Create your ByteTrader account to get started with strategy development, paper trading, and broker integrations.
Create a free account at byte-trader.com.
Verify your email address using the link sent to your inbox.
Choose a plan that fits your needs on the Pricing page. Free accounts include paper trading, the strategy editor, and 1 trading agent.
Upgrade to Starter for live trading on every broker with up to 2 agents, or to PRO, Founder or Lifetime for unlimited live agents, the Data API key and SEC event webhooks.
Download & Install
Download the ByteTrader desktop application to start building and running trading strategies. The application is built on .NET MAUI and runs natively on Windows; a Mac version is in development.
Go to the Download page and click Download on the Windows card that matches your PC (x64 or ARM64).
Run the downloaded installer (named ByteTrader-Setup-{version}-{arch}.exe, e.g. ByteTrader-Setup-1.1.35-x64.exe) and follow the installation wizard.
Launch ByteTrader and log in with your account credentials.
Your account will be automatically provisioned on first login, including webhook credentials and encryption keys.
Connecting a Broker
Connect your brokerage account to ByteTrader so your agents can execute trades in real time. Each broker uses OAuth or API key authentication.
Supported Brokers
Alpaca — Paper and live trading. Uses API key and secret for authentication.
Charles Schwab — OAuth sign-in; re-authorize every 7 days (the app warns you 2 days ahead).
Paper Trading — Built-in simulated broker for risk-free testing. No external account needed.
E*TRADE & TradeStation — live, with OAuth sign-in in your browser. tastytrade — live, with the client secret and refresh token from your tastytrade OAuth app. Interactive Brokers — live, through IBKR's Client Portal Gateway on your PC. TradeStation and tastytrade also cover futures.
Coinbase (Coinbase Developer Platform API key) & Kraken (API key and private key) — crypto exchanges, 24/7 trading.
Broker guides: Alpaca, Charles Schwab, E*TRADE, tastytrade, Interactive Brokers, TradeStation, Coinbase, Kraken
Steps
Navigate to Brokers in the sidebar.
Click Add Broker and select your broker.
Enter your API credentials or complete the OAuth flow.
ByteTrader validates the connection and displays your account info (cash, buying power, equity).
Connection status shows green when active. Some sign-ins need renewing: Schwab every 7 days, E*TRADE and the IBKR gateway daily (each broker's page says what to expect).
Orders follow each broker's time-in-force options and short/cover rules, and futures support bracket exits on tastytrade, TradeStation and the paper broker. Brokers & safety lists what each broker supports and how its sign-in works.
Data Providers
ByteTrader supports multiple market data providers for real-time and historical data. Configure data feed priorities per agent to control which provider serves each data type.
Available Providers
Alpaca SIP — Premium market data with higher quality and speed (paid subscription required).
Alpaca IEX — Free market data from the Investors Exchange.
Charles Schwab — Quotes, price history, option chains, fundamentals, and real-time streaming (Level 1, Level 2 book, time & sales).
TradeStation — Equities, options, and futures price history, quotes, and streaming; uses your connected TradeStation broker login.
Coinbase — Crypto candles, quotes, trades, and live order-book streaming via Coinbase Advanced Trade.
Kraken — Crypto OHLC, tickers, trades, and order-book streaming (API keys optional).
ByteTrader — Dedicated ByteTrader data service (in development, coming soon).
Data Feed Types
Bars — OHLCV candlestick data across multiple timeframes (1-min, 5-min, 15-min, daily, etc.)
Quotes — National Best Bid and Offer (NBBO) real-time price data
Trades — Individual trade tick data from exchanges
News — Market-moving news events for subscribed symbols
SEC corporate events — Real-time stream of 19 event types from EDGAR (earnings, insider transactions, M&A, executive changes, dividends, buybacks, 13D/G activist stakes, and more), including 8-K cybersecurity incidents, debt acceleration, PIPE financings, shareholder votes and reverse splits
Daily Market Snapshot
In addition to live feeds, each agent receives a refreshed daily snapshot your strategy can read from
_data.Snapshot — per-symbol fundamentals (P/E, margins, beta, short interest, and more),
about a year of daily bars, the prior session's minute bars, recent percent-changes, and upcoming
stock splits and dividends.
Strategy Development
Build custom trading strategies using C# in the Monaco code editor. Your strategies
implement the IAgentStrategy interface and define logic through
lifecycle methods (OnAgentBoot, DailySetup,
DailyCleanup) and event handlers for candle, quote, trade, indicator,
and news updates. The editor provides IntelliSense, real-time Roslyn compilation,
and diagnostic feedback. The full strategy contract is documented below.
Open Strategy Developer from the sidebar.
Click New Strategy or start from a built-in template.
Write your C# strategy code in the Monaco editor. IntelliSense provides autocompletion, signature help, and hover documentation.
The compiler runs in real time via Roslyn, showing errors, warnings, and info in the build output panel.
Organize your strategy with files and folders using the solution explorer.
When ready, publish a versioned snapshot of your strategy. You can roll back to any previous version at any time.
The Strategy Contract
The platform injects these services into your strategy before OnAgentBoot runs.
Read from them in any lifecycle method or event handler:
_data (IData) — live candles keyed by (symbol, interval), indicator series, quotes, trades, news, and the daily market snapshot — each with its own update event.
_broker (IBroker) — account info, positions, and order placement (market, limit, stop, stop-limit, trailing-stop, and OCO bracket exits), plus the OrderUpdated fill stream.
_agent (IAgent) — add/drop trading symbols at runtime, send messages to other agents, and receive inbound agent or webhook messages.
_store (IStorage) — persistent key-value storage that survives restarts: StoreValue, ReadValue<T>, DeleteValue.
_clock (ITradingClock) — the trading time source. Read this instead of DateTime.UtcNow for every time-of-day check so the same strategy runs correctly in both live and backtest.
_logger (ILogger) — structured logging to the agent log viewer. ActiveSymbols holds the symbols this agent trades and streams.
Strategy Skeleton
Lifecycle hooks are async (Task-returning). Wire your event handlers in
OnAgentBoot; DailySetup and DailyCleanup run at the
start and end of each trading day.
public class MyStrategy : IAgentStrategy
{
[Initialize]
public async Task OnAgentBoot()
{
ActiveSymbols = new() { "AAPL", "MSFT" };
_data.CandleUpdate += OnCandle; // fires when a bar closes
_agent.Message += OnMessage; // agent + webhook messages
}
private async void OnCandle(object? s, (string Symbol, Interval Interval) key)
{
var bars = _data.Candles[key]; // OHLCV history
var rsi = _data.Indicators[(key.Symbol, "RSI")]; // indicator rows
// ...your signal logic...
await _broker.PlaceOrderAsync(new OrderRequest(
Symbol: key.Symbol, Quantity: 10, Side: "Buy", Type: "Market"));
}
private void OnMessage(object? s, Envelope e)
{
// e.Source == MessageSource.Webhook for inbound webhooks
// var payload = e.Read<MyModel>();
}
[DailyCleanup] public async Task DailyCleanup() { }
}
Reading Market Data
_data.Candles[(symbol, Interval.OneMinute)] — OHLCV history per symbol/timeframe.
_data.Indicators[(symbol, "MACD")] — computed indicator rows from the agent's indicator profile.
_data.Snapshot — the daily market overview: fundamentals, ~1 year of daily bars, yesterday's minute bars, percent-changes, splits, and dividends per symbol.
Events: CandleUpdate, IndicatorUpdate, QuoteUpdate, TradeUpdate, NewsUpdate, and SnapshotRefresh. Use _data.SetNewsFilter(...) to scope the news stream.
Placing & Tracking Orders
_broker.PlaceOrderAsync(new OrderRequest(...)) — market/limit/stop/stop-limit/trailing-stop, with a TimeInForce and an ExtendedHours flag for pre/post-market.
_broker.PlaceOcoExitOrderAsync(...) — a One-Cancels-Other take-profit + stop pair to bracket-exit a position.
_broker.OrderUpdated — subscribe for fills and lifecycle changes; the OrderUpdate carries fill quantity, average price, and realized P&L.
GetAccountInfoAsync, GetPositionsAsync, GetOrdersAsync, CancelOrderAsync — account, positions, and order management.
Technical Indicators
Configure reusable indicator profiles that your strategies can reference for signal generation. Each profile contains a set of indicators with custom parameters and time intervals. Assign profiles to agents so every strategy instance gets the same indicator configuration.
Navigate to Indicators in the sidebar.
Create a new indicator profile and give it a name.
Add indicators to the profile — SMA, EMA, RSI, Bollinger Bands, MACD, and more.
Configure each indicator's parameters (period, deviation, etc.) and time interval (e.g., 1-minute, 5-minute).
In your strategy code, access indicator values through the
Indicatorscollection by name.Assign the profile to one or more trading agents.
Trading Agents
Trading agents bring everything together. An agent is an independent runtime instance of your strategy, connected to a specific broker, with its own symbol list, schedule, and risk configuration. You can run multiple agents simultaneously with different strategies and broker accounts.
Go to Trading Agents in the sidebar.
Click Create Agent and give it a name.
Assign a strategy, broker connection, and indicator profile.
Add symbols to the agent's watchlist (e.g., AAPL, MSFT, TSLA).
Configure trading hours (start/end date and time). A schedule starts and stops the agent on set dates. Turn on Resume after restart (Windows) and the agent starts again by itself after an update, a crash or an exit, and after a PC restart when Settings › General › Start ByteTrader in the tray when I sign in to Windows is on; otherwise you resume it with one click.
Enable optional features: webhooks and agent messaging.
Set data feed preferences to control which data provider is used for each feed type (bars, quotes, trades, news).
Start the agent. Monitor real-time logs, performance stats, and trade history in the Agent Overview.
Backtesting
Validate a strategy against historical data before risking capital. The same
IAgentStrategy you run live runs unchanged in a backtest — the engine drives
_clock bar-by-bar and replays candles, indicators, and the daily snapshot, while a
simulated broker fills your orders. As long as you read time from _clock (not
DateTime.UtcNow), no code changes are needed.
Open Backtester from the sidebar and click New Run.
Pick the strategy, indicator profile, and symbols, then set the date range and starting capital.
Choose whether to include extended-hours sessions, then start the run.
Review results across the Performance, Trades, Positions, and Logs panels — equity curve, realized P&L, individual fills, and your strategy's own log output.
Past runs are saved in Run History; reopen any of them, or chart a run directly in Charts Pro.
Historical Data
Dividends are credited and bars are split-adjusted. Free Alpaca keys get full consolidated (SIP) history, and each data provider's history limit is shown before anything is fetched.
Strategy Parameters & the Optimizer
Give your strategy parameters, then let the optimizer search them: grid, random or genetic search over up to 8 parameters, run in parallel within a RAM cap and resumable if interrupted. Heatmap and stability views show where results hold up. Save a parameter set and your agents can run it.
Phone Alerts
Get told when something happens while you're away from the PC. Alerts cover fills, rejected orders, risk blocks, halts, errors and outages.
Open Settings › Alerts in the desktop app.
Connect a channel: Telegram, email, Discord, Pushover or ntfy.
Leave agents running. If your PC goes offline while agents should be running, the dead-man warning tells you.
Webhooks & Messaging
Strategies can send messages to other agents and receive inbound messages — from another agent or from an external system — through a single event. Agent webhooks are inbound: an external service POSTs to your agent's webhook URL, and the payload is delivered to your strategy as a message.
Enable Agent Webhooks in your agent configuration.
Get your webhook URL and key from your account settings, then have the external system POST messages to it.
Messages to Your Strategy
Inbound messages reach your strategy through the _agent.Message event as an
Envelope. The server stamps Envelope.Source as either Agent
or Webhook (trustworthy — the sender can't spoof it), and
Envelope.Read<T>() deserializes a JSON payload into your own model. This is how
an external system drives a strategy: POST to the agent's webhook URL and your message handler fires.
Inter-Agent Messaging
Use _agent.Transmit(agents, message) to send a string or any object (auto-serialized to
JSON) to one or more agents. Each agent declares an AllowedSenders allowlist in
OnAgentBoot — only listed senders may message it — so you can coordinate a
fleet of agents, e.g. a scanner agent signaling executor agents.
External SEC Event Webhooks (PRO, Founder, Lifetime)
PRO, Founder and Lifetime plans can register outbound webhooks that relay the real-time SEC event feed (earnings, insider trades, M&A, dividends, 13D/G stakes, and more) to your own systems. Deliveries are HMAC-signed so you can verify authenticity. Manage them under Account › Event Webhooks.
In-App Notifications
ByteTrader also provides real-time in-app notifications via the portal. View, filter, and manage notifications by category, severity, and status from the notification center.
AI Control (MCP)
ByteTrader runs a built-in MCP (Model Context Protocol) server inside the desktop app. Connect any MCP-capable assistant — Claude, Cursor, VS Code, Cline, ChatGPT, or your own agent — and it can drive the whole platform in plain English: author, compile & publish strategies and indicators, create and manage agents, run backtests, read accounts, positions & orders, hot-rebind a running agent, and place paper orders — the same actions you'd take by hand in the UI, reflected live in the app.
Enabling it
Open Settings → AI / MCP and switch on Enable AI control. The server binds to loopback only.
Copy the connection URL and bearer token shown there into your MCP client's config.
Connect from the client and start prompting — e.g. “build a mean-reversion strategy, backtest it, then start a paper agent.”
AI Builder
The AI Builder turns a plain-English description into a paper agent, inside the desktop app. Claude does the work with your own Anthropic API key.
Open Settings › AI Builder and add your Anthropic API key.
Describe the strategy: what to trade, when to enter and when to exit.
Claude writes and compiles the strategy, backtests it, and runs a robustness check.
It then starts the strategy as a paper agent you can watch, edit and backtest further.