Agent skill

Alpaca Trading Backtest

by alpacahq in alpacahq/alpaca-skills

Execute deterministic, reproducible historical backtests from a start date, end date, and strategy concept using the Alpaca CLI plus agent-written workspace code.

Apache-2.0Auto-check passedBusiness, Finance & HR

Install Alpaca Trading Backtest

skills CLI
$ npx skills add alpacahq/alpaca-skills --skill alpaca-trading-backtest -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install alpacahq/alpaca-skills alpaca-trading-backtest --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/alpacahq/alpaca-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/trading-api/backtest .claude/skills/alpaca-trading-backtest && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
alpaca-trading-backtest
GitHub stars
154
Token cost
~3.9k tokens
SKILL.md length
1,576 words
Files
2
Skills in repo
14
Repo updated
First seen
Licence
Apache-2.0

At a glance

Execute deterministic, reproducible historical backtests from a start date, end date, and strategy concept using the Alpaca CLI plus agent-written workspace code.

  • Works in 12 steps: Gather required inputs: start date, end… → Gather or infer the rest: asset class,… → Work through run considerations: order… → …
  • The user wants to backtest a strategy
  • SKILL.md covers Required disclosures, CLI prerequisites, Required workflow and Workspace awareness, plus 12 more sections
  • Calls go and brew; reaches alpaca.markets and files.alpaca.markets; needs ALPACA_API_KEY and ALPACA_SECRET_KEY

What it does

Alpaca Trading Backtest is an agent skill from alpacahq/alpaca-skills. Execute deterministic, reproducible historical backtests from a start date, end date, and strategy concept using the Alpaca CLI plus agent-written workspace code. Use when the user wants to backtest a strategy, simulate historical trades, or return trades, diagnostics, and reproducibility artifacts.

Its SKILL.md is about 3.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `reference.md`).

It sits in Business, Finance & HR, covering Trading and backtesting. It works with Alpaca. The repository describes itself as: Agent skills for Alpaca's Trading API and Broker API: drop-in SKILL.md files for AI coding assistants. The licence is Apache-2.0.

When your agent uses it

  • The user wants to backtest a strategy
  • Simulate historical trades
  • Reproducibility artifacts

Example prompts

  • “/alpaca-trading-backtest”

Requirements

  • Python 3
  • A credential in ALPACA_API_KEY
  • A credential in ALPACA_SECRET_KEY

Workflow steps

12 steps, taken from the first numbered list in SKILL.md.

  1. Gather required inputs: start date, end date, strategy concept or strategy file.
  2. Gather or infer the rest: asset class, symbols or universe, timeframe, initial cash, position sizing, feed, adjustment mode, execution…
  3. Work through run considerations: order simulation, indicators, dividends, splits, fees, slippage, spread, market hours, calendar handling…
  4. Translate your freeform idea into precise mathematical rules.
  5. Present the formalized interpretation to you before writing code unless your request was already mathematically precise.
  6. Check the workspace for reusable data, prior runs, and existing utilities.
  7. Create a self-contained run folder.
  8. Write notes.md, strategy_spec.json, config.json, and a readable run-specific script.
  9. Fetch historical data through the Alpaca CLI, save raw CLI outputs, filter to the chosen market hours, and compute data fingerprints.
  10. Run the local simulation.
  11. Write artifacts.
  12. Return the Teaching Five, first/last trade, assumptions, caveats, data fingerprint, and artifact paths.

What it can do on your machine

Read from SKILL.md and the folder at commit 39111ab. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • go
    • brew

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • alpaca.markets
    • files.alpaca.markets

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • ALPACA_API_KEY
    • ALPACA_SECRET_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Alpaca Trading Backtest loads about 3.9k tokens when it runs. Until then it costs about 81 tokens; SKILL.md has 1,576 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~81
When it runs · the whole SKILL.md, loaded when a task matches
~3.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from alpacahq/alpaca-skills at commit 39111ab, republished under its Apache-2.0 licence (© alpacahq). 1,576 words, ~3,914 tokens.

Download SKILL.mdSave it as .claude/skills/alpaca-trading-backtest/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
alpaca-trading-backtest
description
Execute deterministic, reproducible historical backtests from a start date, end date, and strategy concept using the Alpaca CLI plus agent-written workspace code. Use when the user wants to backtest a strategy, simulate historical trades, or return trades, diagnostics, and reproducibility artifacts.

Trading API Backtesting

Use this skill when you want your AI agent to run a specific historical backtest with the Alpaca CLI and local workspace code. This version is optimized for run-specific execution: your agent writes the minimum readable code needed for the confirmed strategy, stores the exact artifacts, and reports the results back to you.

This skill is written for you, the person invoking it through your AI agent. You means the trader, developer, researcher, or operator asking your agent to run the backtest. Your agent should address you directly, restate assumptions clearly, and make every interpretation choice visible.

text
strategy idea -> formalized rules -> confirmed assumptions -> CLI data fetch -> local script -> artifacts -> report

It is not a promise that a strategy will work in live markets. It is a reproducible research workflow.

Required disclosures

Every report, notes.md, report.md, notebook, dashboard, or exported result should include:

Important disclosure
This backtest is a hypothetical historical simulation and does not represent actual trading performance. Backtested results do not guarantee future results. Results depend on market-data quality, data feed selection, corporate-action handling, fees, slippage, liquidity, taxes, execution assumptions, and implementation details. This material is for research and educational purposes only and is not investment advice, a recommendation, an offer, or a solicitation to buy or sell securities, options, cryptocurrencies, or any other financial product. All investments involve risk and may lose value. Review Alpaca's disclosures and agreements at alpaca.markets/disclosures.

When paper trading appears in the workflow, add:

Paper trading is a simulated environment. It does not involve real money or actual securities transactions. Paper results may differ from live trading because of fill assumptions, market impact, liquidity, latency, data differences, order handling, fees, and other market conditions.

When the backtest models Alpaca securities trading-activity fees, notes.md, summary.json, and report.md should link to the Alpaca Brokerage Fee Schedule PDF:

text
https://files.alpaca.markets/disclosures/library/BrokFeeSched.pdf

Record the PDF revision date, extraction timestamp, modeled fee categories, and any fee items intentionally excluded.

CLI prerequisites

Alpaca CLI

Your agent should use the Alpaca CLI for market-data access.

Check whether it is installed:

bash
alpaca version

Install with Go when needed:

bash
go install github.com/alpacahq/cli/cmd/alpaca@latest

On macOS or Linux with Homebrew:

bash
brew install alpacahq/tap/cli

Make sure the binary directory is on PATH, commonly ~/go/bin for Go installs.

Local execution permissions

Alpaca CLI commands should run in your local workspace where your Alpaca profile, environment variables, network access, and saved artifacts are available. Some agent runtimes express this as:

text
required_permissions: ["all"]

Use the equivalent permission model in your agent environment so the CLI can access local auth/config and write run artifacts.

Connectivity and authentication check

Before any backtest run, verify the CLI and credentials:

bash
alpaca doctor

If authentication fails, your agent should stop the run and show you the available login/help command:

bash
alpaca profile login --help

For interactive paper setup:

bash
alpaca profile login

For API-key setup:

bash
alpaca profile login --api-key

For automation, environment variables are preferred because secrets do not need to be written into generated code:

bash
export ALPACA_API_KEY=PK...
export ALPACA_SECRET_KEY=...
export ALPACA_QUIET=1

Your agent should never print your secret key, commit it to files, include it in reports, or pass it in a way that exposes it to shell history.

Machine-readable output

Use --quiet for commands whose output will be parsed by code:

bash
alpaca account get --quiet
alpaca data bars --symbol SPY --start 2024-01-01 --end 2024-12-31 --timeframe 1Day --quiet

Use installed CLI help and schemas as the source of truth for flags and response fields:

bash
alpaca --help-all
alpaca data bars --help
alpaca data bars --schema
alpaca data quotes --schema

Because the CLI is generated from API specifications and may evolve, your agent should prefer current --help, --schema, and alpaca doctor output over stale examples.

Required workflow

Your agent should follow this workflow:

  1. Gather required inputs: start date, end date, strategy concept or strategy file.
  2. Gather or infer the rest: asset class, symbols or universe, timeframe, initial cash, position sizing, feed, adjustment mode, execution assumptions, benchmark.
  3. Work through run considerations: order simulation, indicators, dividends, splits, fees, slippage, spread, market hours, calendar handling, and validation.
  4. Translate your freeform idea into precise mathematical rules.
  5. Present the formalized interpretation to you before writing code unless your request was already mathematically precise.
  6. Check the workspace for reusable data, prior runs, and existing utilities.
  7. Create a self-contained run folder.
  8. Write notes.md, strategy_spec.json, config.json, and a readable run-specific script.
  9. Fetch historical data through the Alpaca CLI, save raw CLI outputs, filter to the chosen market hours, and compute data fingerprints.
  10. Run the local simulation.
  11. Write artifacts.
  12. Return the Teaching Five, first/last trade, assumptions, caveats, data fingerprint, and artifact paths.

Workspace awareness

Before generating new code or fetching data, your agent should inspect the workspace.

Data reuse

Look for prior raw data files or cached normalized data that match:

text
symbol
asset class
feed
adjustment mode
timeframe
start/end range
calendar filter
regular-hours or extended-hours setting

Reuse data only when the data fingerprint matches. If fingerprints differ, your agent should treat the runs as using different input data.

Run lineage

If this run is a variant of a prior run, notes.md should say what changed:

text
changed RSI threshold from 30/70 to 25/75
changed fill model from next_open bar proxy to quote-aware fill
changed slippage from 5 bps to 10 bps
extended date range from 2020-2024 to 2018-2025
Existing code

If the workspace already has a backtest engine or shared utility that matches the strategy requirements, your agent may reuse it. Otherwise, the default is a single readable run.py in the run folder.

Run folder and artifact contract

Artifact paths in this skill use raw/ and normalized/ as canonical names.

Every run should create a folder like:

text
runs/YYYY-MM-DD_symbol_strategy_timeframe/
  notes.md
  strategy_spec.json
  config.json
  run.py
  requirements.txt or pyproject.toml when needed
  raw/
    bars_SYMBOL.json
    quotes_SYMBOL.json
    trades_SYMBOL.json
    calendar.json
    corporate_actions.json
  normalized/
    bars_SYMBOL.csv
    quotes_SYMBOL.csv
  summary.json
  report.md
  trades.csv
  round_trips.csv
  equity.csv
  benchmark_equity.csv
  data_fingerprint.json
  warnings.json
  fee_source.json
notes.md

notes.md should include your original request, confirmed strategy interpretation, every inferred/defaulted assumption, indicator definitions, fill model, fee model, data feed and adjustment mode, dividend and split treatment, benchmark definitions, calendar and market-hours handling, warnings and caveats, and Alpaca disclosure and fee schedule links.

Other artifacts

See reference.md for summary.json, strategy_spec.json, data_fingerprint.json, and fee_source.json schemas.

Code generation rules

For run-specific CLI backtests, your agent should generate a script, not a reusable framework. A single-file run.py is the default.

Use readable code:

python
fill_price = bar_open * (1 + friction_pct)

instead of compressed expressions that make the artifact hard to audit.

The generated code should:

  • read raw or normalized files from the run folder;
  • implement the confirmed strategy exactly;
  • implement the chosen indicator definitions exactly (see Indicator formulas);
  • keep signal timing separate from fill timing;
  • compute fees, slippage, spread, and settlement according to the confirmed assumptions;
  • produce all required artifacts;
  • include deterministic sorting and timezone handling;
  • avoid hidden network calls after data fetch unless explicitly documented.

Use Python 3 by default. Prefer the standard library plus pandas/numpy when available. Add dependencies only when they materially improve correctness or readability.

Show full SKILL.md (573 more words)Show less

Strategy translation

Your agent should formalize your idea before code generation.

Every rule should specify: data field, trigger, inclusive/exclusive bounds, indicator variant and parameters, warmup behavior, position sizing and rounding, cash handling, order type, fill model, and benchmark.

Example confirmation:

text
I interpreted your strategy as:
- Symbol: SPY
- Timeframe: 1Day
- Data: Alpaca CLI bars, feed=sip, adjustment=split
- Indicator: SMA(50) and SMA(200), simple arithmetic mean of completed daily closes
- Entry: fast SMA crosses above slow SMA
- Exit: fast SMA crosses below slow SMA
- Signal timing: completed bar close
- Fill timing: next trading day's open
- Fill model: next_open bar proxy with 5 bps slippage unless quotes are available
- Sizing: invest 100% of available cash, fractional shares allowed when supported
- Benchmark: SPY buy-and-hold with same assumptions

After confirmation, code should match the confirmed interpretation.

Fill models

Use these model names in confirmations and notes.md. Implementation detail is in Fill model rules.

  • next_open (default): signal on bar T close; fill on bar T+1 open or quote at T+1 open timestamp.
  • time_based: fill at a confirmed time of day; quote bid/ask when available.
  • same_bar: only when explicitly requested; document look-ahead risk in notes.md and the report.
  • Limit and stop orders: OHLC-bar eligibility rules apply; use conservative intrabar conflict policy when stop and target both touch the same bar.

Report format

report.md should lead with Performance vs Benchmarks:

markdown
| | Total Return | Ann. Return | Max Drawdown | Sharpe | Final Equity |
|---|---:|---:|---:|---:|---:|
| **Strategy** | ...% | ...% | ...% | ... | $... |
| Benchmark | ...% | ...% | ...% | ... | $... |

After the table, include strategy configuration, symbols/timeframe/feed/adjustment, fill model and friction, first and last trade, detailed metrics, benchmark explanation, assumptions, data fingerprint, caveats, and the disclosure block.

Metric definitions are in reference.md.

In-chat response standard

Lead with the Teaching Five:

  1. total return versus benchmark;
  2. max drawdown;
  3. number of trades;
  4. win rate;
  5. Sharpe ratio versus benchmark.

Then include: annualized return, profit factor, fees paid, first trade, last trade, assumptions made, data fingerprint summary, artifact paths, and most important caveats.

If no trades occurred, say that directly and explain whether this was due to warmup, no signal, insufficient cash, missing data, or calendar filtering.

Run considerations checklist

Your agent should resolve each item before running:

  • order simulation and fill timing;
  • quote-aware versus bar-proxy fills;
  • dividend handling;
  • split and reverse-split handling;
  • execution friction;
  • PDF-derived trading-activity fees;
  • market hours and extended-hours inclusion;
  • calendar-based decisions;
  • benchmark choice;
  • look-ahead bias;
  • survivorship bias;
  • out-of-sample or walk-forward validation for parameter tuning;
  • overfitting risk for repeated variants.

For order simulation, dividends, splits, fees, calendar, and benchmarks, document choices in notes.md when not specified by you.

Safety and quality guardrails

Your agent must avoid:

  • using future data in signal generation;
  • using same-bar decision and fill without a documented same_bar model and warning;
  • hiding execution assumptions;
  • mixing adjusted bars with separate split adjustments;
  • pretending vague rules were fully specified;
  • discarding generated code after the run;
  • including extended-hours bars unless you requested them;
  • silently substituting indicator variants;
  • treating open, close, high, low, VWAP, and quote-derived prices as interchangeable fill proxies;
  • computing Sharpe from per-bar returns when the report says daily Sharpe;
  • using population standard deviation for Sharpe when sample standard deviation (N-1) is required;
  • submitting live orders as part of a historical backtest;
  • claiming support for unsupported products — options require explicit contract selection and fill logic;
  • bypassing the Alpaca CLI by switching to direct HTTP calls;
  • running Alpaca CLI commands in a sandbox without local auth and filesystem access;
  • implementing fill logic that deviates from Fill model rules without documenting the deviation in notes.md;
  • using close vs high vs low interchangeably for signal triggers;
  • silently choosing between crossover and threshold signal logic;
  • generating a multi-module engine when a single-file script will do.

Optional paper forward-validation handoff

After a historical backtest, your agent may prepare a paper forward-validation package if you request it:

text
paper_config.json
strategy_runtime.py
risk_limits.json
alpaca_order_adapter.py
reconciliation_plan.md

This is separate from the historical backtest. It should use explicit risk limits, client order IDs for automation, and reconciliation of expected versus actual paper fills.

Troubleshooting

text
command not found: alpaca
  Check PATH and Go install location, commonly ~/go/bin.

alpaca doctor reports auth failure
  Re-run alpaca profile login or set ALPACA_API_KEY and ALPACA_SECRET_KEY.

CLI output includes non-data text
  Use --quiet or set ALPACA_QUIET=1.

Parsed fields changed
  Run <command> --schema and update the parser for the current CLI response.

Rate limited
  Respect Retry-After, reduce request frequency, and use cached data where fingerprints match.

Pagination missing data
  Check next_page_token and fetch all pages.

Useful commands:

bash
alpaca version
alpaca update --check --quiet
alpaca doctor
alpaca --help-all
alpaca data bars --help
alpaca data bars --schema
alpaca data quotes --schema
alpaca calendar --help

Disclosure links:

text
https://alpaca.markets/disclosures
https://files.alpaca.markets/disclosures/library/BrokFeeSched.pdf

CLI data acquisition, indicator formulas, fee model, metrics, benchmarks, and JSON schemas: reference.md.

© alpacahq, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in skills/trading-api/backtest of alpacahq/alpaca-skills.

  • SKILL.md
  • reference.md

Open the folder on GitHubat commit 39111ab

Compare with similar skills

Alpaca Trading Backtest next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Alpaca Trading Backtest compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Alpaca Trading Backtest this skillalpacahq/alpaca-skills154—~3.9kAutomated safety check: PassApache-2.0
Alpaca Tradinggauss314/skills248—~2.4kAutomated safety check: PassMIT
Tushare Datazillionare/zillionare3222 repos~2.3kAutomated safety check: PassNone
Tradingview MCPatilaahmettaner/tradingview-mcp5k—~1.3kAutomated safety check: PassMIT
Digital Oraclekomako-workshop/digital-oracle878—~5.9kAutomated safety check: PassMIT
Polyclawchainstacklabs/polyclaw3591 repos~2kAutomated safety check: PassApache-2.0

Similar skills

  • Alpaca Trading

    gauss314/skills

    Trading API de Alpaca: órdenes, posiciones, cuenta. An agent skill from gauss314/skills.

    248 GitHub stars~2.4k tokensUpdated 3 mo ago
    Business, Finance & HRAuto-check passed
  • Tushare Data

    zillionare/zillionare

    面向中文自然语言的 Tushare 数据研究技能。用于把“看看这只股票最近怎么样”“帮我查财报趋势”“最近哪个板块最强”“北向资金在买什么”“给我导出一份行情数据”这类请求,转成可执行的数据获取、清洗、对比、筛选、导出与简要分析流程。适用于 A 股、指数、ETF/基金、财务、估值、资金流、公告新闻、板块概念与宏观数据等研究场景。

    322 GitHub starsUsed in 2 repos~2.3k tokens
    Business, Finance & HRAuto-check passed
  • Tradingview MCP

    atilaahmettaner/tradingview-mcp

    AI Trading Intelligence — live prices, 30+ technical indicators, backtesting (6 strategies), walk-forward overfitting detection, trade logs, equity curves, licensed news sentiment (Marketaux), and…

    5k GitHub stars~1.3k tokensUpdated yesterday
    Business, Finance & HRAuto-check passed
  • Digital Oracle

    komako-workshop/digital-oracle

    Answer prediction questions using market trading data, not opinions.

    878 GitHub stars~5.9k tokensUpdated 2 mo ago
    Business, Finance & HRAuto-check passed
  • Polyclaw

    chainstacklabs/polyclaw

    Trade on Polymarket via split + CLOB execution. An agent skill from chainstacklabs/polyclaw.

    359 GitHub starsUsed in 1 repo~2k tokens
    Business, Finance & HRAuto-check passed
  • Markdown

    facioquo/stock-indicators-dotnet

    Format and lint Markdown in this repository against GitHub Flavored Markdown and its markdownlint-cli2 configuration — headers, lists, code fences, callouts (VitePress containers on docs-site pages…

    1.2k GitHub stars~812 tokensUpdated yesterday
    Business, Finance & HRAuto-check passed

More from alpacahq/alpaca-skills

All 14 skills in this repo
  • Alpaca Broker Account Onboarding

    alpacahq/alpaca-skills

    Open and manage brokerage accounts via the Alpaca Broker API — account creation, KYC/CIP, identity & disclosures, agreements, document upload (incl.

    154 GitHub stars~2.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Alpaca Broker Funding Transfers

    alpacahq/alpaca-skills

    Move money between an Alpaca brokerage account and the EXTERNAL banking world via the Broker API — ACH relationships, wire recipient banks, classic transfers (deposits/withdrawals), the v1beta…

    154 GitHub stars~2.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Alpaca Broker Integration

    alpacahq/alpaca-skills

    Entry point for integrating with the Alpaca Broker API (plus Market Data and Trading APIs) in any programming language.

    154 GitHub stars~3k tokensUpdated 1 mo ago
    Auto-check passed
  • Alpaca Broker Journals

    alpacahq/alpaca-skills

    Move cash (JNLC) and securities (JNLS) BETWEEN accounts inside your own Alpaca omnibus via the Broker API — single, batch, and reverse-batch journals, the Idempotency-Key header, journal status…

    154 GitHub stars~2.1k tokensUpdated 1 mo ago
    Auto-check passed
  • Alpaca Broker Money Precision

    alpacahq/alpaca-skills

    Handle money and numeric precision correctly with the Alpaca API — numbers-as-strings on the wire, decimals vs floats, rounding/truncation before sending amounts, fractional-share precision, and…

    154 GitHub stars~1.2k tokensUpdated 1 mo ago
    Auto-check passed
  • Make Alpaca API clients resilient — rate-limit header handling, HTTP 429 backoff, exponential retry, bounded concurrency/worker pools, pagination loops, batch sizing, and timeouts.

    154 GitHub stars~1.4k tokensUpdated 1 mo ago
    Auto-check passed

Works with

Questions about Alpaca Trading Backtest

What does Alpaca Trading Backtest do?

Execute deterministic, reproducible historical backtests from a start date, end date, and strategy concept using the Alpaca CLI plus agent-written workspace code. Alpaca Trading Backtest is an agent skill from alpacahq/alpaca-skills. Execute deterministic, reproducible historical backtests from a start date, end date, and strategy concept using the Alpaca CLI plus agent-written workspace code.

When should I use Alpaca Trading Backtest?

Alpaca Trading Backtest fits situations like: the user wants to backtest a strategy; simulate historical trades; reproducibility artifacts.

How do I install Alpaca Trading Backtest in Claude Code?

Run `npx skills add alpacahq/alpaca-skills --skill alpaca-trading-backtest -a claude-code`. Or copy the skill folder (skills/trading-api/backtest in alpacahq/alpaca-skills) into .claude/skills/alpaca-trading-backtest in your project. Claude Code loads it when a task matches its description.

How do I install Alpaca Trading Backtest in Codex?

Run `npx skills add alpacahq/alpaca-skills --skill alpaca-trading-backtest -a codex`. Or copy the skill folder (skills/trading-api/backtest in alpacahq/alpaca-skills) into .agents/skills/alpaca-trading-backtest in your project. Codex loads it when a task matches its description.

Can I use Alpaca Trading Backtest in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add alpacahq/alpaca-skills --skill alpaca-trading-backtest -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/alpaca-trading-backtest, .gemini/skills/alpaca-trading-backtest, .github/skills/alpaca-trading-backtest and .opencode/skills/alpaca-trading-backtest in your project.

What does Alpaca Trading Backtest need to run?

Going by SKILL.md and its folder, Alpaca Trading Backtest needs the command-line tools its instructions call (go and brew) and credentials named ALPACA_API_KEY and ALPACA_SECRET_KEY. Our summary lists: Python 3; A credential in ALPACA_API_KEY; A credential in ALPACA_SECRET_KEY.

Does Alpaca Trading Backtest access the network?

SKILL.md names 2 domains. In commands or code: alpaca.markets and files.alpaca.markets; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is Alpaca Trading Backtest safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Alpaca Trading Backtest use?

Alpaca Trading Backtest is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Alpaca Trading Backtest use?

About 3.9k tokens (SKILL.md is roughly 16k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Alpaca Trading Backtest?

Skills that share tags, products or a category with Alpaca Trading Backtest: Alpaca Trading (gauss314/skills, 248 stars), Tushare Data (zillionare/zillionare, 322 stars), Tradingview MCP (atilaahmettaner/tradingview-mcp, 5k stars) and Digital Oracle (komako-workshop/digital-oracle, 878 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Alpaca Trading Backtest?

alpacahq (a GitHub organization) maintains it in alpacahq/alpaca-skills, which has 154 GitHub stars. The repository holds 14 skills in this directory. The repository was last updated on September 8, 2026.

Source: alpacahq/alpaca-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.