GETTING STARTED

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.

  1. Create a free account at byte-trader.com.

  2. Verify your email address using the link sent to your inbox.

  3. Choose a plan that fits your needs on the Pricing page. Free accounts include paper trading, the strategy editor, and 1 trading agent.

  4. 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.

  1. Go to the Download page and click Download on the Windows card that matches your PC (x64 or ARM64).

  2. Run the downloaded installer (named ByteTrader-Setup-{version}-{arch}.exe, e.g. ByteTrader-Setup-1.1.35-x64.exe) and follow the installation wizard.

  3. Launch ByteTrader and log in with your account credentials.

  4. Your account will be automatically provisioned on first login, including webhook credentials and encryption keys.

System requirements: Windows 10 (version 1809) or later, 4 GB RAM minimum (8 GB recommended), 500 MB disk space, broadband internet connection. .NET 10 runtime is included in the installer.

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

  1. Navigate to Brokers in the sidebar.

  2. Click Add Broker and select your broker.

  3. Enter your API credentials or complete the OAuth flow.

  4. ByteTrader validates the connection and displays your account info (cash, buying power, equity).

  5. 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.

Broker credentials are stored locally on your machine, with secrets, passwords and sign-in tokens encrypted at rest using AES-256. ByteTrader never stores your broker passwords on our servers.

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.

  1. Open Strategy Developer from the sidebar.

  2. Click New Strategy or start from a built-in template.

  3. Write your C# strategy code in the Monaco editor. IntelliSense provides autocompletion, signature help, and hover documentation.

  4. The compiler runs in real time via Roslyn, showing errors, warnings, and info in the build output panel.

  5. Organize your strategy with files and folders using the solution explorer.

  6. 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.

Strategies have access to the full .NET ecosystem. The same IAgentStrategy runs unchanged in live trading and backtesting — always read _clock for time and react to fills via _broker.OrderUpdated so your logic stays event-driven and backtest-safe.

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.

  1. Navigate to Indicators in the sidebar.

  2. Create a new indicator profile and give it a name.

  3. Add indicators to the profile — SMA, EMA, RSI, Bollinger Bands, MACD, and more.

  4. Configure each indicator's parameters (period, deviation, etc.) and time interval (e.g., 1-minute, 5-minute).

  5. In your strategy code, access indicator values through the Indicators collection by name.

  6. 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.

  1. Go to Trading Agents in the sidebar.

  2. Click Create Agent and give it a name.

  3. Assign a strategy, broker connection, and indicator profile.

  4. Add symbols to the agent's watchlist (e.g., AAPL, MSFT, TSLA).

  5. 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.

  6. Enable optional features: webhooks and agent messaging.

  7. Set data feed preferences to control which data provider is used for each feed type (bars, quotes, trades, news).

  8. Start the agent. Monitor real-time logs, performance stats, and trade history in the Agent Overview.

Agents support persistent key-value storage. Your strategy can save and retrieve state between sessions using the agent storage API, so you don't need external databases.

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.

  1. Open Backtester from the sidebar and click New Run.

  2. Pick the strategy, indicator profile, and symbols, then set the date range and starting capital.

  3. Choose whether to include extended-hours sessions, then start the run.

  4. Review results across the Performance, Trades, Positions, and Logs panels — equity curve, realized P&L, individual fills, and your strategy's own log output.

  5. 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.

Because backtests reuse your live strategy code, the orders, fills, and realized P&L you see reflect how the strategy would behave in paper or live trading.

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.

  1. Open Settings › Alerts in the desktop app.

  2. Connect a channel: Telegram, email, Discord, Pushover or ntfy.

  3. Leave agents running. If your PC goes offline while agents should be running, the dead-man warning tells you.

Price alerts you set on a chart keep watching after you close the chart, and they show up in the notification bell.

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.

  1. Enable Agent Webhooks in your agent configuration.

  2. 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

  1. Open Settings → AI / MCP and switch on Enable AI control. The server binds to loopback only.

  2. Copy the connection URL and bearer token shown there into your MCP client's config.

  3. Connect from the client and start prompting — e.g. “build a mean-reversion strategy, backtest it, then start a paper agent.”

Loopback-only with bearer-token auth and off by default. Paper trading is unrestricted; placing real-broker (live) orders requires a separate, explicit opt-in that is also off by default.

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.

  1. Open Settings › AI Builder and add your Anthropic API key.

  2. Describe the strategy: what to trade, when to enter and when to exit.

  3. Claude writes and compiles the strategy, backtests it, and runs a robustness check.

  4. It then starts the strategy as a paper agent you can watch, edit and backtest further.

The AI Builder works on paper only. It can't reach live trading.
An unhandled error has occurred. Reload 🗙