All templates
Fintech

AI Trading Desk

A trading agent that connects a brokerage via OAuth, executes a strategy you define across stocks, options, and crypto, and manages positions — with KYC and an approvals layer so no trade executes without your guardrails.

Read the docs

The agent prompt

Copy this into Cursor, Claude Code, or any Naïve-connected agent. It describes exactly what to build and which primitives to wire together.

Prompt
Build me an AI trading desk on Naive.

It should link a brokerage, execute a strategy I define across stocks/options/crypto, and manage its own book — with strong guardrails.

Use these Naive primitives:
- trading: connect a brokerage (Alpaca), place and manage orders
- verification: KYC before trading
- approvals: gate risky trades behind human sign-off
- llm: strategy reasoning
- cron: scheduled monitoring/rebalancing

Read the docs at https://usenaive.ai/docs and start with: npm i -g naive && naive login

What it builds

Brokerage OAuth

Link a brokerage account securely via Alpaca.

Strategy execution

Trade stocks, options, and crypto against your rules.

Position management

Monitor and manage the book on a schedule.

Guardrails

KYC plus an approvals layer gate every risky action.

Primitives used

tradingverificationapprovalsllmcron

How it's built

  • naive trading — Alpaca OAuth + orders
  • naive verification — KYC before trading
  • naive approvals — trade guardrails

Start building

Install the CLI, copy the prompt, and let your agent wire it up.

$ npm i -g naive && naive login