alpaca-trading-backtest
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseTrading API Backtesting
交易API回测
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 -> reportIt is not a promise that a strategy will work in live markets. It is a reproducible research workflow.
当您希望AI Agent使用Alpaca CLI和本地工作区代码运行特定的历史回测时,请使用此skill。此版本针对特定运行的执行进行了优化:您的Agent编写确认策略所需的最少可读代码,存储确切的产物,并将结果报告给您。
本skill是为您(通过AI Agent调用它的人)编写的。您指的是要求Agent运行回测的交易者、开发者、研究者或操作者。您的Agent应直接与您沟通,明确重述假设,并让每一个解释选择都可见。
text
策略想法 -> 形式化规则 -> 确认假设 -> CLI数据获取 -> 本地脚本 -> 产物 -> 报告这并不保证策略在实时市场中将有效。这是一个可复现的研究工作流。
Required disclosures
必需披露
Every report, , , notebook, dashboard, or exported result should include:
notes.mdreport.mdImportant 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, , , and should link to the Alpaca Brokerage Fee Schedule PDF:
notes.mdsummary.jsonreport.mdtext
https://files.alpaca.markets/disclosures/library/BrokFeeSched.pdfRecord the PDF revision date, extraction timestamp, modeled fee categories, and any fee items intentionally excluded.
每份报告、、、notebook、仪表板或导出的结果都应包含:
notes.mdreport.md重要披露
此回测是假设性的历史模拟,不代表实际交易表现。回测结果不保证未来结果。结果取决于市场数据质量、数据源选择、公司行动处理、费用、滑点、流动性、税收、执行假设和实现细节。本材料仅用于研究和教育目的,不构成投资建议、推荐、要约或招揽购买或出售证券、期权、加密货币或任何其他金融产品。所有投资均涉及风险,可能损失价值。请查阅Alpaca的披露和协议,网址为 alpaca.markets/disclosures。
当工作流中出现模拟交易时,请添加:
模拟交易是一个模拟环境。它不涉及真实资金或实际证券交易。由于成交假设、市场影响、流动性、延迟、数据差异、订单处理、费用和其他市场条件,模拟结果可能与实时交易不同。
当回测对Alpaca证券交易活动费用进行建模时,、和应链接到Alpaca经纪费用表PDF:
notes.mdsummary.jsonreport.mdtext
https://files.alpaca.markets/disclosures/library/BrokFeeSched.pdf记录PDF修订日期、提取时间戳、建模的费用类别以及任何有意排除的费用项目。
CLI prerequisites
CLI前提条件
Alpaca CLI
Alpaca CLI
Your agent should use the Alpaca CLI for market-data access.
Check whether it is installed:
bash
alpaca versionInstall with Go when needed:
bash
go install github.com/alpacahq/cli/cmd/alpaca@latestOn macOS or Linux with Homebrew:
bash
brew install alpacahq/tap/cliMake sure the binary directory is on , commonly for Go installs.
PATH~/go/bin您的Agent应使用Alpaca CLI访问市场数据。
检查是否已安装:
bash
alpaca version需要时使用Go安装:
bash
go install github.com/alpacahq/cli/cmd/alpaca@latest在macOS或Linux上使用Homebrew:
bash
brew install alpacahq/tap/cli确保二进制目录在中,通常Go安装时为。
PATH~/go/binLocal 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.
Alpaca CLI命令应在本地工作区中运行,以便您的Alpaca配置文件、环境变量、网络访问和保存的产物可用。某些Agent运行时将此表示为:
text
required_permissions: ["all"]在您的Agent环境中使用等效的权限模型,以便CLI可以访问本地认证/配置并写入运行产物。
Connectivity and authentication check
连接和认证检查
Before any backtest run, verify the CLI and credentials:
bash
alpaca doctorIf authentication fails, your agent should stop the run and show you the available login/help command:
bash
alpaca profile login --helpFor interactive paper setup:
bash
alpaca profile loginFor API-key setup:
bash
alpaca profile login --api-keyFor 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=1Your 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.
在任何回测运行之前,验证CLI和凭据:
bash
alpaca doctor如果认证失败,您的Agent应停止运行并向您显示可用的登录/帮助命令:
bash
alpaca profile login --help对于交互式模拟设置:
bash
alpaca profile login对于API密钥设置:
bash
alpaca profile login --api-key对于自动化,优先使用环境变量,因为密钥无需写入生成的代码:
bash
export ALPACA_API_KEY=PK...
export ALPACA_SECRET_KEY=...
export ALPACA_QUIET=1您的Agent绝不应打印您的密钥、将其提交到文件、包含在报告中或以暴露给shell历史的方式传递它。
Machine-readable output
机器可读输出
Use for commands whose output will be parsed by code:
--quietbash
alpaca account get --quiet
alpaca data bars --symbol SPY --start 2024-01-01 --end 2024-12-31 --timeframe 1Day --quietUse 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 --schemaBecause the CLI is generated from API specifications and may evolve, your agent should prefer current , , and output over stale examples.
--help--schemaalpaca doctor对输出将被代码解析的命令使用:
--quietbash
alpaca account get --quiet
alpaca data bars --symbol SPY --start 2024-01-01 --end 2024-12-31 --timeframe 1Day --quiet使用已安装CLI的帮助和模式作为标志和响应字段的权威来源:
bash
alpaca --help-all
alpaca data bars --help
alpaca data bars --schema
alpaca data quotes --schema由于CLI由API规范生成并可能演进,您的Agent应优先使用当前的、和输出,而不是过时的示例。
--help--schemaalpaca doctorRequired workflow
必需工作流
Your agent should follow this workflow:
- Gather required inputs: start date, end date, strategy concept or strategy file.
- Gather or infer the rest: asset class, symbols or universe, timeframe, initial cash, position sizing, feed, adjustment mode, execution assumptions, benchmark.
- Work through run considerations: order simulation, indicators, dividends, splits, fees, slippage, spread, market hours, calendar handling, and validation.
- Translate your freeform idea into precise mathematical rules.
- Present the formalized interpretation to you before writing code unless your request was already mathematically precise.
- Check the workspace for reusable data, prior runs, and existing utilities.
- Create a self-contained run folder.
- Write ,
notes.md,strategy_spec.json, and a readable run-specific script.config.json - Fetch historical data through the Alpaca CLI, save raw CLI outputs, filter to the chosen market hours, and compute data fingerprints.
- Run the local simulation.
- Write artifacts.
- Return the Teaching Five, first/last trade, assumptions, caveats, data fingerprint, and artifact paths.
您的Agent应遵循此工作流:
- 收集必需输入:开始日期、结束日期、策略概念或策略文件。
- 收集或推断其余信息:资产类别、标的或股票池、时间框架、初始现金、仓位大小、数据源、调整模式、执行假设、基准。
- 处理运行注意事项清单:订单模拟、指标、股息、拆分、费用、滑点、价差、市场时间、日历处理和验证。
- 将您的自由形式想法转化为精确的数学规则。
- 在编写代码之前向您呈现形式化的解释,除非您的请求已经是数学上精确的。
- 检查工作区中可重用的数据、之前的运行和现有实用程序。
- 创建自包含的运行文件夹。
- 编写、
notes.md、strategy_spec.json和可读的运行特定脚本。config.json - 通过Alpaca CLI获取历史数据,保存原始CLI输出,过滤到所选市场时间,并计算数据指纹。
- 运行本地模拟。
- 编写产物。
- 返回教学五项、第一/最后一笔交易、假设、注意事项、数据指纹和产物路径。
Workspace awareness
工作区感知
Before generating new code or fetching data, your agent should inspect the workspace.
在生成新代码或获取数据之前,您的Agent应检查工作区。
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 settingReuse data only when the data fingerprint matches. If fingerprints differ, your agent should treat the runs as using different input data.
查找符合以下条件的先前原始数据文件或缓存的规范化数据:
text
symbol
asset class
feed
adjustment mode
timeframe
start/end range
calendar filter
regular-hours or extended-hours setting仅当数据指纹匹配时才重用数据。如果指纹不同,您的Agent应将运行视为使用不同的输入数据。
Run lineage
运行谱系
If this run is a variant of a prior run, should say what changed:
notes.mdtext
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如果此运行是先前运行的变体,应说明更改内容:
notes.mdtext
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-2025Existing 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 in the run folder.
run.py如果工作区已有符合策略要求的回测引擎或共享实用程序,您的Agent可以重用。否则,默认是在运行文件夹中创建单个可读的。
run.pyRun folder and artifact contract
运行文件夹和产物约定
Artifact paths in this skill use and as canonical names.
raw/normalized/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此skill中的产物路径使用和作为规范名称。
raw/normalized/每次运行都应创建类似这样的文件夹:
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.jsonnotes.md
notes.mdnotes.md
notes.mdnotes.mdnotes.mdOther artifacts
其他产物
See reference.md for , , , and schemas.
summary.jsonstrategy_spec.jsondata_fingerprint.jsonfee_source.json有关、、和的模式,请参见reference.md。
summary.jsonstrategy_spec.jsondata_fingerprint.jsonfee_source.jsonCode generation rules
代码生成规则
For run-specific CLI backtests, your agent should generate a script, not a reusable framework. A single-file is the default.
run.pyUse 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.
对于特定运行的CLI回测,您的Agent应生成脚本,而不是可重用的框架。默认是单文件。
run.py使用可读代码:
python
fill_price = bar_open * (1 + friction_pct)而不是使产物难以审计的压缩表达式。
生成的代码应:
- 从运行文件夹读取原始或规范化文件;
- 精确实现确认的策略;
- 精确实现所选的指标定义(参见指标公式);
- 将信号时机与成交时机分开;
- 根据确认的假设计算费用、滑点、价差和结算;
- 生成所有必需的产物;
- 包含确定性排序和时区处理;
- 避免在数据获取后隐藏网络调用,除非明确记录。
默认使用Python 3。优先使用标准库以及可用的pandas/numpy。仅当依赖项显著提高正确性或可读性时才添加依赖项。
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 assumptionsAfter confirmation, code should match the confirmed interpretation.
您的Agent应在代码生成之前形式化您的想法。
每个规则应指定:数据字段、触发条件、包含/排除边界、指标变体和参数、预热行为、仓位大小和舍入、现金处理、订单类型、成交模型和基准。
示例确认:
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确认后,代码应匹配确认的解释。
Fill models
成交模型
Use these model names in confirmations and . Implementation detail is in Fill model rules.
notes.md- (default): signal on bar T close; fill on bar T+1 open or quote at T+1 open timestamp.
next_open - : fill at a confirmed time of day; quote bid/ask when available.
time_based - : only when explicitly requested; document look-ahead risk in
same_barand the report.notes.md - Limit and stop orders: OHLC-bar eligibility rules apply; use conservative intrabar conflict policy when stop and target both touch the same bar.
在确认和中使用这些模型名称。实现细节在成交模型规则中。
notes.md- (默认):在T柱收盘时产生信号;在T+1开盘或T+1开盘时间的报价处成交。
next_open - :在确认的一天中的时间成交;有报价时使用买卖报价。
time_based - :仅在明确请求时使用;在
same_bar和报告中记录前视风险。notes.md - 限价和止损订单:适用OHLC柱资格规则;当止损和目标在同一柱内都触及时,使用保守的柱内冲突策略。
Report format
报告格式
report.mdmarkdown
| | 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.
report.mdmarkdown
| | Total Return | Ann. Return | Max Drawdown | Sharpe | Final Equity |
|---|---:|---:|---:|---:|---:|
| **Strategy** | ...% | ...% | ...% | ... | $... |
| Benchmark | ...% | ...% | ...% | ... | $... |表格之后,包括策略配置、标的/时间框架/数据源/调整、成交模型和摩擦、第一笔和最后一笔交易、详细指标、基准说明、假设、数据指纹、注意事项和披露块。
指标定义在reference.md中。
In-chat response standard
聊天内响应标准
Lead with the Teaching Five:
- total return versus benchmark;
- max drawdown;
- number of trades;
- win rate;
- 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 when not specified by you.
notes.md您的Agent应在运行前解决每个项目:
- 订单模拟和成交时机;
- 基于报价与基于柱代理的成交;
- 股息处理;
- 拆分和反向拆分处理;
- 执行摩擦;
- PDF衍生的交易活动费用;
- 市场时间和延长交易时段纳入;
- 基于日历的决策;
- 基准选择;
- 前视偏差;
- 幸存者偏差;
- 用于参数调优的样本外或滚动前向验证;
- 重复变体的过拟合风险。
对于订单模拟、股息、拆分、费用、日历和基准,当您未指定时,请在中记录选择。
notes.mdSafety and quality guardrails
安全和质量防护
Your agent must avoid:
- using future data in signal generation;
- using same-bar decision and fill without a documented model and warning;
same_bar - 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 vs
closevshighinterchangeably for signal triggers;low - silently choosing between crossover and threshold signal logic;
- generating a multi-module engine when a single-file script will do.
您的Agent必须避免:
- 在信号生成中使用未来数据;
- 在没有记录的模型和警告的情况下使用同一柱决策和成交;
same_bar - 隐藏执行假设;
- 将调整后的柱与单独的拆分调整混合;
- 假装模糊规则已完全指定;
- 运行后丢弃生成的代码;
- 包含延长交易时段柱,除非您请求;
- 静默替换指标变体;
- 将开盘、收盘、最高、最低、VWAP和报价衍生的价格视为可互换的成交代理;
- 当报告称每日夏普时,从每柱收益计算夏普比率;
- 当需要样本标准差(N-1)时,使用总体标准差计算夏普比率;
- 作为历史回测的一部分提交实时订单;
- 声称支持不支持的产品——期权需要明确的合约选择和成交逻辑;
- 通过切换到直接HTTP调用来绕过Alpaca CLI;
- 在没有本地认证和文件系统访问的沙箱中运行Alpaca CLI命令;
- 实施偏离成交模型规则的成交逻辑,而未在中记录偏离;
notes.md - 将与
close或high互换用于信号触发;low - 在交叉和阈値信号逻辑之间静默选择;
- 在单文件脚本可以完成时生成多模块引擎。
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.mdThis 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.
在历史回测之后,如果您请求,您的Agent可以准备模拟前向验证包:
text
paper_config.json
strategy_runtime.py
risk_limits.json
alpaca_order_adapter.py
reconciliation_plan.md这与历史回测是分开的。应使用明确的风险限制、用于自动化的客户端订单ID以及预期与实际模拟成交的对账。
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.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.Related references
相关参考
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 --helpDisclosure links:
text
https://alpaca.markets/disclosures
https://files.alpaca.markets/disclosures/library/BrokFeeSched.pdfCLI data acquisition, indicator formulas, fee model, metrics, benchmarks, and JSON schemas: reference.md.
有用的命令:
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披露链接:
text
https://alpaca.markets/disclosures
https://files.alpaca.markets/disclosures/library/BrokFeeSched.pdfCLI数据获取、指标公式、费用模型、指标、基准和JSON模式:reference.md。
Related files
相关文件
- reference.md
- reference.md