Логотип Alpaca Trading

Alpaca Trading

Сообщество
mickpletcher
alpaca-trading

Work safely in the Trading repository for Alpaca helpers, backtesting, journaling, scheduling, and related PowerShell modules. Prefer additive changes, preserve existing trading logic unless the user asks otherwise, and default to paper-trading-safe guidance.

Обзор

Издательmickpletcher
РепозиторийAI-Skills
Название навыкаalpaca-trading
Звёзды
21
Форки
3
Файлы в комплекте
3
ЛицензияMIT
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Файлы в комплекте: 3

    Скрипты, шаблоны и справочные материалы, которые модель может читать во время работы. Файлы доступны только для чтения и никогда не выполняются.

  • Открытый исходный код

    Издатель навыка на GitHub — mickpletcher. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Alpaca Trading в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/mickpletcher/AI-Skills/tree/main/claude/skills/alpaca-trading
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mickpletcher/AI-Skills.git /tmp/AI-Skills
mkdir -p .claude/skills
cp -r /tmp/AI-Skills/claude/skills/alpaca-trading .claude/skills/alpaca-trading
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Alpaca Trading в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Alpaca Trading, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Alpaca Trading не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

Alpaca Trading

Intent

Support safe paper trading, Alpaca automation, broker workflow analysis, and Trading repo changes without increasing live trading risk.

Do Not Use When

  • Do not use for financial advice, guaranteed performance claims, live order execution without explicit user instruction, or unrelated trading platforms.
  • Required context is missing and cannot be reasonably inferred.
  • A more specific skill in this repo is a better match.

Use this skill when the user is working in the Trading repository on Alpaca-connected scripts, backtesting workflows, journaling, scheduling, or reusable PowerShell Alpaca modules.

Trigger When

  • The user mentions the Trading repo, Alpaca scripts, paper trading, backtesting, journaling, scheduler jobs, or Alpaca PowerShell modules.
  • The task touches Alpaca/, Backtesting/, Journal/, Scheduler/, src/, Tests/, rsi_macd_bot/, or btc-signal-executor/.
  • The user wants to build, extend, debug, document, test, or review repo workflows around Alpaca trading.

Repo Shape

The current repository is a mixed Python and PowerShell project with these main areas:

text
Trading/
|-- Alpaca/
|-- Backtesting/
|-- Journal/
|-- Scheduler/
|-- src/
|-- Tests/
|-- rsi_macd_bot/
`-- btc-signal-executor/

Use the existing structure instead of inventing a new module layout.

Default Behavior

  • Preserve what already exists unless the user asks for a larger redesign.
  • Prefer additive scaffolding over speculative rewrites of trading logic.
  • Default to paper-trading-safe patterns and make live-trading risk explicit.
  • Keep API secrets in environment variables or existing repo config flows, never hardcoded.
  • Align with the repo's existing GitHub Spec workflow for non-trivial changes.

Workflow

  1. Identify which existing repo area the change belongs to.
  2. Read the nearby README, script, or module before proposing changes.
  3. Reuse current patterns for Python, PowerShell, logging, and tests.
  4. For non-trivial work, follow the repo workflow: requirements, spec, plan, tasks, implementation, audit, regression test.
  5. Prefer paper-trading examples unless the user explicitly asks for live-trading support.
  6. If live-trading code is requested, require explicit confirmation patterns and keep the safety guard intact.
  7. Update docs and tests alongside behavior changes.

Safety Rules

  • Default to the Alpaca paper endpoint unless the user explicitly requests live trading.
  • Never remove a live-trading confirmation guard from real-money scripts.
  • Treat AI analysis as advisory only. Do not let model output directly trigger order placement without deterministic code checks.
  • Log trade actions and failures using the repo's existing logging and journal patterns.
  • Call out when a request would move from paper trading into live execution risk.

Implementation Notes

Python And PowerShell

  • The repo is mixed-stack. Do not force everything into one language.
  • Alpaca/ contains existing paper-trading helpers.
  • src/ contains reusable PowerShell Alpaca modules such as auth, config, market data, risk, orders, positions, and account helpers.
  • Tests/ contains Python and PowerShell verification coverage.

Live Trading Guard

If a script can send live orders, include an explicit confirmation gate and make the live path opt-in.

powershell
param(
    [switch]$LiveTrading
)

if ($LiveTrading) {
    $Confirm = Read-Host "Type CONFIRM to proceed with live trading"
    if ($Confirm -ne "CONFIRM") {
        exit 0
    }
}

AI Coaching Pattern

If AI analysis is added, keep it advisory:

  • AI returns a labeled assessment such as BULLISH, BEARISH, or NEUTRAL
  • deterministic code applies risk checks and order rules
  • model output alone must not place an order

Alpaca Capability Profile

Tailor repo advice to how Alpaca actually behaves rather than generic broker assumptions:

  • Paper and live use the same API shape but different endpoints; paper fills are simulated and optimistic, so backtest and paper results overstate live fill quality, especially for market orders in thin symbols.
  • Fractional shares trade market-only and have order type restrictions; do not propose fractional limit logic.
  • Bracket and OCO orders are supported but legs cannot be amended freely; cancel and replace is the realistic pattern.
  • Crypto trading has different fee, precision, and minimum rules than equities; do not reuse equity assumptions in btc-signal-executor/.
  • Equity market data on the free tier is IEX-only and delayed for some uses; flag when a strategy assumes SIP-quality data the account may not have.
  • PDT rules apply to margin equity accounts under $25k; day trading logic should check account status instead of assuming.

When a proposal depends on an Alpaca behavior not listed here, verify it against current Alpaca docs instead of assuming.

Order Lifecycle Checklist

Before proposing or reviewing a change that touches order placement, walk the full lifecycle:

  • Entry: validated symbol, side, quantity, and order type; idempotency or duplicate-submit protection; behavior when the market is closed
  • Open order: what happens to unfilled limit orders at end of day; time-in-force is explicit, not defaulted silently
  • Partial fills: position sizing, journaling, and exit logic handle a partially filled entry without double-ordering
  • Exits: stop and target exist before or at entry (bracket or managed); exit logic survives a restart with positions already open
  • Cancel/replace: replaces are atomic from the strategy's view; stale order IDs are not reused
  • Failure paths: rejected orders, API errors, and timeouts are logged to the journal and do not leave untracked positions

A change is incomplete if it improves one lifecycle stage and silently breaks another.

Regression Test Matrix

Map the kind of change to the test passes that must run before it ships:

Change touchesRun
src/ PowerShell modulesPester tests in Tests/, plus a paper-endpoint smoke call for the touched module
Alpaca/ helpersPython tests in Tests/, paper-endpoint smoke test
Order or risk logic anywhereFull Tests/ suite plus a paper trade round trip: place, verify, cancel
Backtesting/Backtest determinism check: same data in, same results out, before and after
Scheduler/Dry-run the scheduled job manually and verify journal output
rsi_macd_bot/ or btc-signal-executor/That bot's own tests plus a paper session observed end to end

If a needed test does not exist, write it as part of the change rather than noting it as a gap.

Constraints

  • Do not invent folders like PaperTrading, LiveTrading, TradeJournal, or AICoaching if the work belongs in the current repo structure.
  • Do not hardcode credentials.
  • Do not rewrite business logic just to modernize style.
  • Do not describe the repo as a Claude-only system; it is a general trading repo with Claude-relevant integrations.

References

  • Root repo guide: Trading/README.md
  • GitHub Spec baseline: Trading/specs/001-core-trading-foundation/
  • Copilot instructions already present in the repo: Trading/.github/copilot-instructions.md

Validation Checklist

  • Repo area matches the real Trading repository layout
  • Paper trading is the default path in examples and guidance
  • Live trading remains explicit and guarded
  • Secrets are sourced from environment variables or existing config flows
  • Changes preserve existing trading logic unless requested otherwise
  • Docs and tests are updated when behavior changes

Help And Examples

If the user is not sure how to use this skill, asks what it needs, or asks for examples:

  • Explain in plain language what this skill can do.
  • Tell the user the minimum input needed for a useful first pass.
  • Show the example prompts below.
  • Offer the fastest next prompt the user can send.

Minimum useful input:

  • A trading goal, repo context, or strategy question plus any symbols, timeframes, or risk rules that matter.

Example prompts:

  • Use alpaca-trading to review my Trading repo and tell me the safest way to add bracket orders.
  • Help me build an Alpaca paper trading workflow for SPY with clear entry, exit, and risk rules.
  • Show me how to use this skill for a repo level trading automation plan.

Файлы в комплекте

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

Часто задаваемые вопросы

Что делает навык ИИ Alpaca Trading?

Work safely in the Trading repository for Alpaca helpers, backtesting, journaling, scheduling, and related PowerShell modules. Prefer additive changes, preserve existing trading logic unless the user asks otherwise, and default to paper-trading-safe guidance.

Зачем использовать Alpaca Trading в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Alpaca Trading — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Alpaca Trading в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/mickpletcher/AI-Skills/tree/main/claude/skills/alpaca-trading. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Alpaca Trading?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Alpaca Trading?

С любым количеством. В TypingMind вы можете использовать Alpaca Trading с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Alpaca Trading?

Да. Навык опубликован на GitHub по лицензии MIT. Издатель — mickpletcher. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все
Логотип openclaw

Openclaw Changelog Update

openclaw
ОрганизацияПопулярный

Заново формируйте разделы журнала изменений релизов OpenClaw по истории Git перед выпуском бета-, стабильной или расширенной стабильной версии.

82.2K
391K
Файлы: 1
Открыть
Логотип openclaw

Openclaw Ci Limits

openclaw
ОрганизацияПопулярный

Управляйте GitHub Actions и ресурсами CI Blacksmith в OpenClaw: бюджетами регистрации раннеров, ограничениями fanout, одновременным запуском только одного задания для отправок в main, размером шардов, переносом задач на хостed-раннеры, состоянием очереди и безопасным…

82.2K
391K
Файлы: 1
Открыть
Логотип openclaw

Openclaw Debugging

openclaw
ОрганизацияПопулярный

Выясняйте причины сбоев моделей, провайдеров, интерфейсов инструментов, режима кода, потоковой передачи и поведения OpenClaw в live/Crabbox: прежде чем менять код, выбирайте подходящие журналы, проверки и способ подтверждения, в том числе загружайте сохранённые…

82.2K
391K
Файлы: 1
Открыть
Логотип openclaw

Openclaw Live Updater

openclaw
ОрганизацияПопулярный

Поддерживайте основной рабочий клон OpenClaw, используемый в production, Gateway под управлением macOS LaunchAgent, локальное приложение macOS, CI для точного коммита main и регулярную полную проверку релиза. Используйте этот навык для обновлений fast-forward…

82.2K
391K
Файлы: 2
Открыть

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇