alice-uta
它能做什么
这个技能让智能体读取你已连接的券商账户、投资组合、合约、报价和订单历史。它也涵盖可能影响真实交易的订单操作。适合通过已连接券商进行交易的人。
适用场景
- ✓你询问自己的券商账户里持有哪些头寸的时候。
- ✓你想查看所查询合约的当前报价的时候。
- ✓你想在做决定之前查看近期订单历史的时候。
技能链接
https://github.com/TraderAlice/OpenAlice/blob/master/default/skills/alice-uta/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我现在的交易账户里持有哪些头寸?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会列出你已连接的账户,读取它们的投资组合和报价。在任何会改变交易的操作之前,技能要求智能体先检查确切的命令及其选项。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Trading — alice-uta
Accounts, portfolio, contracts, orders, and the trading-as-git approval flow. Account, portfolio, contract, quote, market-clock, and history reads do not mutate broker state. Order writes, position closes, approval commands, and the simulator can mutate trading state: inspect their live help before acting, and act only on what the user's instructions actually cover.
Discover, don't guess
alice-uta --help # the groups
alice-uta <group> <verb> --help # a verb's flags (which are required)
Read this skill before the first UTA command in a task. If a command is
rejected, follow the CLI's suggested command or run the exact verb's --help
before retrying. Do not improvise a positional account id or flags such as
--account, --query, or --symbols.
Common read-only recipes
alice-uta account list
alice-uta account info --source <account-id>
alice-uta account portfolio # every trading account
alice-uta account portfolio --source <account-id> # one account
alice-uta account portfolio --source <account-id> --symbol AAPL
--source takes the id returned by account list; it is not --account and
is not a broker-native account number.
Resolve a broker contract before requesting a quote. Search uses --pattern
(not --query). Quote accepts exactly one broker-resolved --alice-id at a
time; repeat the command for multiple contracts rather than inventing a
--symbols flag. Quote infers its account from the aliceId prefix.
alice-uta contract search --source <account-id> --pattern AAPL
alice-uta contract details --source <account-id> --alice-id '<alice-id-from-search>'
alice-uta contract quote --alice-id '<alice-id-from-search>'
Keep aliceId values quoted because they contain |, which a shell otherwise
interprets as a pipe. Contract search may return a directory rather than a
tradeable leaf; expand it before quoting or ordering:
alice-uta contract expand --help # expand a directory-style result (chains, families)
- Resolve the contract before any order (
contract search→contract details) — never guess a symbol's broker-native identity.
Broker research
contract option-contracts returns paginated option definitions and dated open
interest; contract option-chain returns paginated snapshots with IV/Greeks
when supplied. Currently Alpaca supports these reads. Keep the same filters
when following nextPageToken. The default indicative feed contains modified
quotes and delayed trades; use observation timestamps and do not treat it as
executable OPRA. Options reads do not imply options trading permission.
contract order-book provides depth on Alpaca crypto and CCXT.
Alpaca crypto uses CRYPTO contracts, with GTC or IOC orders. Its equity
market clock does not describe the 24/7 crypto session.
Place / modify / cancel orders
alice-uta order place --help # check EVERY flag before placing
alice-uta order modify --help # amend a working order
alice-uta order cancel --help # cancel a working order
alice-uta order list # working orders
alice-uta order history --help # the order record
alice-uta order trades --help # fills
- Report every order result to the user — order id, status, and what you did. Surprises in a brokerage account are never acceptable.
Positions
alice-uta position close --help # close a position (partial or full)
(Listing positions is account portfolio.)
The trading-as-git approval flow
The git group is OpenAlice's trade-approval flow — a mirror of git verbs on
purpose. Run --help per verb:
alice-uta git status # pending / staged trading state
alice-uta git log # history
alice-uta git show --help # inspect one entry
alice-uta git commit --help # approve
alice-uta git push --help # send approved orders to the venue
alice-uta git reject --help # reject a staged change
alice-uta git sync --help # reconcile against the venue
Shells expand $ inside double-quoted values. For any trading thesis that
contains currency, either use single quotes or the generated file-backed flag:
alice-uta order place ... --commit-message 'Buy below $971 after support confirmation'
alice-uta order place ... --commit-message-fil
常见问题
智能体可以自行买卖吗?
技能说明,订单操作会改变交易状态,因此智能体只应按你明确要求的内容行事。
只读检查会改变我的账户吗?
不会。技能说明,账户、合约、报价和历史的读取不会改变券商的状态。
如果命令被拒绝怎么办?
智能体会遵循建议的命令,或先查看该命令的帮助,然后再尝试。
详情
作者的原始描述
Read broker accounts, portfolios, contracts, quotes, and order history, or manage approved trading, through the `alice-uta` executable on the shell PATH. Account/contract/history reads are safe and do not mutate broker state; order writes, position-close, commit, push, reject, sync, and simulator commands may change trading state. Use for "what's my position", "quote this contract", "place or cancel an order", and the trading-as-git approval flow. Discover current flags with `alice-uta <group> <verb> --help`; do not guess aliases.
repo: TraderAlice/OpenAlice
热度
- GitHub 星标
- 7.4k
- 排名
- #13260
- 许可证
- AGPL-3.0
- 更新时间
- 2026/10/23
评论
- …
同一仓库的更多技能
alice-analysis
7.4k帮你的智能体通过对价格历史运行简短、安全的公式,计算移动平均线等股票指标。
alice
7.4k帮你的智能体搜索股票、获取研究数据,并通过 alice 工具处理团队在 OpenAlice 中的收件箱和事项。
build-thesis
7.4k帮你的智能体围绕一只股票建立平衡的投资逻辑,同时检验财务数据和市场趋势,并列出它可能出错的明确条件。
delegate-autoquant
7.4k让你的智能体把量化研究问题交给专门的 AutoQuant 团队,并带回有证据支持的答案。