naïve
← Blog
GuideDevelopersNovember 26, 2026·12 min read

Claude Trading Bot: Paper First, Live With Approval

Build a Claude trading bot with its own brokerage account: research with per-call finance data, paper trade first, and approve every live order yourself.

Guide/trading

TL;DR

  • A Claude trading bot is Claude plus a tool that places orders in a brokerage account. Naive, a developer platform that gives AI agents real accounts behind one key and a hosted MCP server, puts that connection on an identity, and the agent never sees a brokerage password or token.
  • Paper orders sent with a key (SDK, CLI or MCP connector) run at once on simulated money. Every live order asks a person first, and the approval names the account, symbol, side, size and price.
  • Every order states its type and time in force. There is no default market order, so the agent cannot guess its way into one.
  • The brokerage connection is free and trades settle in your own account. Research tools cost $0.01 to $0.05 per call from the same balance.
  • The $1 free credit covers research and paper trades. Live trades open 72 hours after your first $10 top-up and need a live key.
  • This is a tool for acting on your own decisions. Nothing here or from the agent is investment advice.

Tools used in this post

A Claude trading bot is Claude with two things it lacks on its own: a brokerage account it is allowed to act in, and a tool that places orders there. Naive is a developer platform that gives AI agents real tools and accounts behind one API key and one hosted MCP server. With Naive you connect a paper or live brokerage account to an identity, Claude researches with per-call finance data tools, and it places orders through that connection. Paper orders run at once on simulated money. Every live order asks a person first.

Last verified 2026-11-26 against the Naive SDK, CLI and tool catalog.

Definitions. An identity is the name your agent acts as; its brokerage connection, inbox and approval rules belong to it. A paper account trades simulated money at real quotes; a live account trades your real money. An approval is a held call that waits until a person approves or denies it.

Can Claude trade stocks?

Claude on its own cannot. It has no account, no order route and no way to sign in to your broker safely. Giving it your broker password or an API secret in a prompt is the wrong fix: anything in the context can leak into a log, a transcript or a tool call you did not intend.

What works is a connection the agent can use without holding it. On Naive the brokerage connection sits on an identity, say trader. You approve access at the brokerage once. Naive keeps the resulting access token sealed, so no response, log, audit entry or agent computer ever contains it. The agent then reads and trades through calls that Naive checks against the identity's approval rules.

The same key also reaches the market data the agent needs to decide anything, so research and execution sit on one balance and one bill:

What the agent needsOn NaivePrice
A brokerage accountBrokerage on an identity, paper or liveFree; trades settle in your own account
Live bid and askThe brokerage's own quotesFree
Quotes, history, company newsYahoo Finance, 6 actions$0.05 per call
Insider buys and sellsSEC Form 4, 11 actions$0.01 per call
Analyst ratings, earnings, short interestMarketBeat, 14 actions$0.01 to $0.02 per call
Earnings calendar, filings, screenerNasdaq, 20 actions$0.01 per call
Screener, market movers, news sentimentFinviz, 5 actions$0.01 per call

How do I build a Claude trading bot?

Most Claude trading bot tutorials follow one pattern: run a broker's MCP server or a script on your own machine, paste the broker's API keys into its config, and let Claude call it. That works on a desktop, but the keys sit in a local file, Claude on the web or phone cannot reach the server unless you host it yourself, and any approval step is yours to build. Naive replaces that local setup with a hosted connector whose live orders wait for a person by default.

Local broker MCP server (do it yourself)Naive
Where it runsYour machine; web and phone need you to host itHosted at https://mcp.usenaive.ai/v1/mcp
Broker credentialsAPI keys in a local config fileSealed token per identity; the agent never sees it
Live ordersWhatever the server allows; approval is yours to addAsk a person first, always
Research dataSeparate subscriptions or scrapersPer-call finance tools on the same balance
AuditYour own logsEach approval records who decided and when

The steps below build it: connect Naive, connect a paper account, research, place a limit order, then move to live with approval.

Why does paper trade at once while live always asks?

Paper is the place to be wrong cheaply, so it stays fast. A paper order sent with a key, from the SDK, the CLI or the MCP connector, goes straight to the paper account, and the $1 free credit covers paper trades. Inside a Naive-hosted agent session, placing, cancelling and closing ask a person even on paper, unless the agent's policy sets those writes to allow; that allow is honoured only on paper. Run the agent for a week there, read what it did, and change its instructions before real money is involved.

Live is different, so Naive always holds it. Every identity starts with the "Ask me first" rule Place a live trade: always ask. Placing an order on the live account and closing a live position are both covered by that rule. The call comes back as a pending approval instead of an order, and nothing reaches the brokerage until a person approves it. A denied approval sends nothing.

Two more guards apply to live trading:

  • Funding. Live trades open 72 hours after your workspace's first $10 top-up settles. That waiting period stops stolen card credit from being cashed out before the card's owner notices.
  • Keys. Connecting, disconnecting and placing orders need a key with billing:write. Connecting a live account and placing live orders need a live sk_live_ key and a live company. A paper order accepts either kind of key.
Paper accountLive account
MoneySimulatedYours
OrdersRun at once from a key; ask in a hosted session unless its policy allowsAlways wait for approval
Free creditCovers paper tradesNeeds a first $10 top-up, then 72 hours
KeyTest or liveLive only

How do I connect a brokerage account to my agent?

First connect Naive itself.

Claude or ChatGPT. Add a custom connector with the URL https://mcp.usenaive.ai/v1/mcp and sign in.

SDK or CLI. Create a key at developers.usenaive.ai ($1 free credit, no card) and store it as NAIVE_API_KEY.

npm install @usenaive-sdk/naive        # SDK
npm install -g @usenaive-sdk/cli       # CLI, then: naive login

Any coding agent. Paste one line into Claude Code, Cursor or Codex: set up https://usenaive.ai/developers/skill.md.

Your key needs the billing:write scope; live connects and live orders need an sk_live_ key. Then create the identity and start the paper connection. In Claude, ask:

Create an identity called trader and connect a paper brokerage account to it.
Show me the consent text and the link.

With the SDK:

import { createNaive } from "@usenaive-sdk/naive";
 
const naive = createNaive(); // reads NAIVE_API_KEY
 
await naive.identities.create({ name: "trader" });
const trader = naive.identity("trader"); // an idn_ id or the identity's name
 
const { disclosure, authorize_url } = await trader.brokerage.connect("paper");
console.log(disclosure);    // show this to the person first
console.log(authorize_url); // they open it and approve access at the brokerage

With the CLI, which prints the consent text before the link:

naive identity create --name trader
naive trading connect --identity trader --env paper

The consent text reads: "By allowing Naïve to access your brokerage account, you are granting Naïve access to your account information and authorization to place transactions in your account at your direction. Your brokerage does not warrant or guarantee that Naïve will work as advertised or expected." Read it, then open the link and approve access at the brokerage. The link works once and expires after 15 minutes. When the brokerage sends you back, the connection is active. You can connect one paper and one live account per identity.

How does the agent research a trade with data tools?

Research calls go through the same key and are billed per call from your balance. In Claude, a prompt like this lets the agent pick the tools:

For AAPL: get the current quote, the latest insider buys and sells,
recent analyst rating changes and the next earnings date.
Summarize what each source says. Do not place any order.

Over MCP, Claude finds the actions with tools_search and runs them with tools_execute. From code, run any action by its slug:

const quote = await naive.tools.run("yfinance.quote", { ticker: "AAPL" }); // $0.05
 
// Look up an action's inputs and price, then run it:
const schema = await naive.tools.get("secform4.get-company-insider-trading");
console.log(schema); // input fields and price, not data
const insiders = await naive.tools.run("secform4.get-company-insider-trading", { /* fields from schema */ }); // $0.01
naive tools run yfinance.quote --arg ticker=AAPL
naive tools get marketbeat.get-analyst-ratings

For the bid and ask at the moment of the order, the brokerage connection has its own quotes, which cost nothing:

const quotes = await trader.brokerage.quotes({ symbols: ["AAPL"], env: "paper" });

A useful split: the data tools explain why (filings, ratings, earnings), and the brokerage quote decides at what price.

How does the agent place a limit order?

Every order names its type and time_in_force. Neither has a default, so a money path never guesses a market order. Give exactly one of qty (a decimal string, so fractional shares work) or notional_micro_usd. A limit order needs limit_price_micro_usd; a stop order needs stop_price_micro_usd. Money is integer micro-dollars, so $180.25 is 180_250_000.

const order = await trader.brokerage.orders.create("paper", {
  symbol: "AAPL",
  side: "buy",
  type: "limit",
  time_in_force: "day",
  qty: "1",
  limit_price_micro_usd: 180_250_000, // $180.25
});
 
if (order.object === "approval") {
  console.log("waiting for a person:", order.summary);
} else {
  console.log(order.id, order.status); // the brokerage's order id and status
}

The CLI takes prices in dollars and converts them once:

naive trading buy --identity trader --env paper --symbol AAPL \
  --type limit --time-in-force day --qty 1 --limit-price-usd 180.25

Order types are market, limit, stop and stop_limit. Time in force is one of day, gtc, ioc, fok, opg or cls. The SDK sends each request's idempotency key as the brokerage's client_order_id, so a retried request cannot place the same order twice.

How do I approve a live order from my phone?

Switch "paper" to "live" and the same call returns a pending approval instead of an order. Its summary says what will happen, for example "Place a live buy order for AAPL" with the amount. The workspace's owners and admins get one email with a link to the developer console. Open it on your phone, read the order and approve or deny it. A pending approval expires after 24 hours.

Your code can wait for the decision rather than poll:

const held = await trader.brokerage.orders.create("live", {
  symbol: "AAPL", side: "buy", type: "limit", time_in_force: "day",
  qty: "1", limit_price_micro_usd: 180_250_000,
});
 
if (held.object === "approval") {
  const decided = await naive.approvals.wait(held.id);
  console.log(decided.status); // "executed" once approved and placed, or "denied"
}

The CLI does not wait on its own. naive trading buy --env live … exits with an approval_required error that names the pending approval (apr_…). Wait for the decision with:

naive approvals wait apr_123 --timeout 10m

Approving needs a signed-in owner or admin. An API key or an MCP session can read and wait on an approval but cannot approve it, so the agent cannot approve its own trade. The human approval guide covers the rules in depth, and the identity pillar give your AI agent its own identity shows what else an identity can own.

How does the agent check positions and close them?

Reads are open on both accounts and never ask:

const account = await trader.brokerage.account("paper");   // cash, buying power, equity
const positions = await trader.brokerage.positions("paper");
const open = await trader.brokerage.orders.list({ env: "paper", status: "open" });
 
// Close half a position; neither qty nor percentage closes all of it.
await trader.brokerage.close("AAPL", { env: "paper", percentage: "50" });
naive trading positions --identity trader --env paper
naive trading close --identity trader --env paper --symbol AAPL --percentage 50

On the live account, closing a position is a trade too, so it asks first under the same rule. Cancelling an open order uses orders.cancel(orderId, env). To cut the agent off entirely, disconnect the account with trader.brokerage.disconnect("live"); that deletes the sealed token. Revoking access at the brokerage too is done in the brokerage's own settings.

Can a Claude trading bot make money?

No one can promise it will. Posts showing a Claude bot turning a small account into a large one show the runs that won, not the ones that lost, and a model has no edge on prices by being a model. What a Claude trading bot does well is the slow part of research: reading filings, insider trades, rating changes and earnings dates for many symbols and summarizing them. Use that summary as input to your own decision, test any rule on paper for weeks, and keep live orders on approval so each trade passes a person who can say no.

What are the risks and limits?

  • The agent can be wrong. It can misread a filing, mix up tickers or act on stale news. Keep live orders on approval and read each summary before you approve.
  • No performance promises. Past data says nothing certain about future prices. Nothing in this guide, or anything the agent says about a symbol, is investment advice.
  • What is not supported. Naive does not open or fund brokerage accounts, and does not offer trailing stops, bracket orders, streaming prices or watchlists through the connection.
  • Venue rules are the brokerage's. Minimum order sizes, trading hours and asset rules are checked by the brokerage, which may refuse an order.
  • Costs stay small but real. A research loop that calls a $0.05 quote every minute adds up. Use the free brokerage quote for prices and save paid calls for research.

When should you not use Naive for trading?

  • High-frequency or latency-sensitive strategies. An approval step and per-call research are built for considered trades, not sub-second execution.
  • Fully unattended live trading. If you want a bot that trades real money with no person in the loop, this is the wrong tool by design.
  • Options strategies, brackets or trailing stops. These are not offered through the connection.
  • You already run a trading stack. If you hold broker keys in your own secured service and only need a model to suggest trades, call the model directly and keep execution where it is.

What should I build next?

Start paper trading free. Get a key with $1 free credit, no card, or hand your agent this line: set up https://usenaive.ai/developers/skill.md.

FAQ

Can Claude trade stocks?
Claude can place stock orders when it has a tool connected to a brokerage account. Add Naive as a connector (https://mcp.usenaive.ai/v1/mcp), connect a paper or live account to an identity, and Claude can read quotes, positions and orders and place orders. Live orders wait for a person to approve them by default.
Is there a paper trading MCP server?
Yes. The Naive MCP server at https://mcp.usenaive.ai/v1/mcp is hosted, so it works from Claude on the web, desktop or phone without running anything locally. It lets Claude or ChatGPT connect a paper brokerage account to an identity and trade it with simulated money. Paper orders sent through the connector run without an approval, so you can test a strategy before any real money is involved.
How do I let an AI agent trade only with my approval?
Keep the identity's Place a live trade rule on always ask, which is the default. Each live order or position close then comes back as a pending approval, emails the workspace owners and admins a link, and only reaches the brokerage after a person approves it. A pending approval expires after 24 hours.
What does a Claude trading bot cost on Naive?
The brokerage connection is free and trades settle in your own brokerage account. Research calls are billed per call: a Yahoo Finance quote is $0.05, and SEC Form 4, Nasdaq, Finviz and MarketBeat calls cost $0.01 or $0.02. New accounts get $1 of free credit with no card.
Does the agent see my brokerage login?
No. You approve access at the brokerage yourself, and Naive keeps one sealed access token per identity and account. No response, log or agent computer ever carries it, so the agent can only trade through calls that the approval rules check.
Can a Claude trading bot make money?
Nobody can promise that, and we do not. Viral profit screenshots show a few winning runs, not the losing ones. An agent can misread data and be wrong. Test on paper, keep live orders on approval, size positions you can afford to lose, and treat every agent suggestion as a draft for your own decision.