Setup an Alpaca Paper Trading Account

Test the plumbing before adding real money!

Create an Alpaca paper trading account and set the account size consistent with planned real trading capital.
trading
Published

2026/08/29

Before you start actively trading real money on Alpaca you’ll probably want to test on a paper trading account.

The funding of a paper account should ideally match, or at least approximate, the real trading capital. The default paper account size is 100 kUSD. That might not be aligned with how much money you actually plan on trading. Suppose, for example, that you only plan on funding your account with 1000 USD. Testing on a paper account that’s 100 times bigger may give misleading results because some trades that are possible on a 100 kUSD account are not feasible on a smaller account.

Ideally you want to set up your paper trading account so that it realistically reflects the amount of trading capital that you plan to use.

Login to your Alpaca account.

Paper trading account dashboard showing the default 100 kUSD account size.

Paper trading account dashboard showing the default 100 kUSD account size.

The dropdown menu at the top/left will allow you to toggle between live and paper account. Select New Paper Account.

Account selector showing live and paper account, with options to create a new paper account and manage accounts.

Account selector showing live and paper account, with options to create a new paper account and manage accounts.

Provide a name and initial trading capital for the new paper account.

Dialog for creating a new paper trading account. Assign an account name and initial capital.

Dialog for creating a new paper trading account. Assign an account name and initial capital.

Once the new account has been created, toggle the account selector again and select Account Management.

Account management page with options to rename, regenerate keys and delete accounts.

Account management page with options to rename, regenerate keys and delete accounts.

You can delete the old paper trading account. Or keep it. You can have up to three paper trading accounts at any one time.

Select the new paper trading account and starting testing!

Account dashboard for newly created paper trading account.

Account dashboard for newly created paper trading account.

You might be executing trades manually, but it’s more likely that, given that you’re using Alpaca, you’ll be doing it programmatically. Let’s check that we can access the newly created account from code.

Set environment variables with the details of the account. The value for APCA_API_KEY_ID should start with PK.

APCA_API_KEY_ID=
APCA_API_SECRET_KEY=

Install the alpaca-py package. Run a quick test to check the account parameters.

import os

from alpaca.trading.client import TradingClient

trading = TradingClient(
    os.environ["APCA_API_KEY_ID"],
    os.environ["APCA_API_SECRET_KEY"],
    paper=True,
)

account = trading.get_account()
print(account.status, account.cash, account.buying_power)
AccountStatus.ACTIVE 10000 40000

The paper trading account is active with 10000 USD in cash and 40 000 USD in buying power, consistent with what I see on the dashboard. 🚀