While25 - Programmable Trading Platform
homeomsrmschartspythonaicompareblogsupportGet While25
While25

A programmable trading platform.

Get While25Book a call

Order managementRisk managementChartsAI assistantCompare

Python SDKAPIDownload

AboutBlogCareersSupportContact

Interactive BrokersAlpacaZerodhaUpstoxAll brokers

TermsPrivacyLicenceRiskAIAcceptable useNotices

While25 is software. It is not a broker, dealer, exchange or investment adviser, and nothing on this site is a recommendation to buy or sell any instrument. Orders you place route to your own brokerage account; While25 never holds funds or securities.

Trading carries risk of loss, including losses greater than your deposit on leveraged products. Backtests and simulations do not predict future returns. Broker and exchange names are trademarks of their owners. We plan to add Coinbase, Binance and Robinhood; you cannot connect them yet.

© 2026 While25

while25

Connect a broker · Alpaca

Alpaca

The quickest way to see While25 trade. A paper account is there as soon as you sign up, and the whole connection is two strings you copy once.

Time
About 5 minutes
Difficulty
Easiest, start here
Costs
Free for paper
You end up with
An API key and a secret

Before you start

  • An email address. Paper trading needs no funding and no approval.
  • While25 Desktop open on the same machine.
  • Start on paper. Live keys are different strings, and you swap them in later without changing anything else.
  1. 01

    Sign up at alpaca.markets

    Create an account at alpaca.markets. You land in the dashboard straight away. Funding and identity checks belong to live trading; paper needs neither.

    Paper and live have different keys. Generating one on the wrong tab is the single most common mistake here.

    app.alpaca.marketsAlpaca dashboardPaper1LiveAccountPA3X…9QDBuying power$200,000.00
    1 · Check the switcher says Paper before you generate anything.
  2. 02

    Make sure you are on the paper account

    The account switcher sits in the top-left corner of the dashboard. Paper accounts start with PA and open with $100k of pretend money. If you ever want a clean slate, open a second paper account rather than resetting the first.
  3. 03

    Generate the key and the secret

    On the dashboard home, find the API Keys panel and press Generate New Keys. Two values appear: an API Key ID and a Secret Key.

    Alpaca shows the secret once. Copy it before you close the panel. Lost it? Generate a new pair and update While25; the old pair stops working.

    Home · API KeysEndpointhttps://paper-api.alpaca.marketsAPI Key IDPKXXXXXXXXXXXXXXXXXX2Secret Key••••••••••••••••••••••••••••3Generate New Keys1
    1 · Generate. 2 · Copy the key id. 3 · Copy the secret now. Alpaca shows it once.
  4. 04

    Hand the two values to While25

    Open While25 Desktop and connect Alpaca with the key and the secret, leaving the environment on paper. The paper endpoint is https://paper-api.alpaca.markets; the live one is https://api.alpaca.markets.
  5. 05

    Send one order and watch it fill

    Place a single share of a liquid name from the order ticket. It should appear in the order book and fill in seconds. That is the whole loop: your click, the checks, your broker.

What you copied

API Key ID
Public half. Starts with PK for paper, AK for live. While25 sends it as the APCA-API-KEY-ID header.
Secret Key
Private half. Alpaca shows it once, never again. While25 sends it as the APCA-API-SECRET-KEY header.
Base URL
paper-api.alpaca.markets for paper, api.alpaca.markets for live. Different keys for each.

Treat the secret like a password: it can place orders. If you paste it anywhere public, generate a new pair immediately.

When it does not work

403 forbidden on every request+

The key belongs to the other environment. Paper keys do not work against the live endpoint and the reverse is also true. Regenerate on the correct tab.

The keys worked yesterday and stopped+

Generating a new pair revokes the old one. If someone on the desk pressed Generate, everyone using the old pair is locked out.

Alpaca accepts the order but it never fills+

Paper fills follow real market hours. Outside them an order waits for the next session unless you set it to trade in extended hours.

I want a fresh $100k+

Open a new paper account from the account menu and generate keys for it. Accounts are created and deleted now rather than reset.

Straight from Alpaca

  • Alpaca · Paper trading ↗
  • Alpaca · Getting started with the Trading API ↗
  • Alpaca · How to get your API key ↗

Trading in India instead? See Zerodha or Upstox. Want futures and options on a US account? Interactive Brokers.