Add trading bot: technical analysis + Alpaca broker integration#130
Open
christianjolevski wants to merge 1 commit intovirattt:mainfrom
Open
Add trading bot: technical analysis + Alpaca broker integration#130christianjolevski wants to merge 1 commit intovirattt:mainfrom
christianjolevski wants to merge 1 commit intovirattt:mainfrom
Conversation
Extends Dexter from a research agent into a trading bot with: - Technical analysis tools (RSI, MACD, Bollinger Bands, EMA/SMA, ATR, Stochastic, VWAP) - Alpaca broker integration for trade execution (stocks + crypto, paper mode default) - Trading assistant meta-tool with LLM-routed sub-tools (account, positions, orders, TA) - Position-size safety checks (warns >5%, refuses >20% of equity) - Confirmation gate: never executes trades without explicit user approval - Trading safety policy injected into system prompt when Alpaca keys are configured - Three strategy skills: trading-signals, momentum-trading, mean-reversion Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
technicalindicatorslibrary on OHLCV data from the existing financial APIfinancial_searchpattern) that dispatches natural language queries to appropriate sub-toolstrading-signals(combined TA + news + fundamentals),momentum-trading(RSI + MACD crossover),mean-reversion(Bollinger Bands)ALPACA_API_KEY+ALPACA_SECRET_KEYare set, following the existing Exa/Tavily patternTest plan
bun installresolvestechnicalindicatorsdependencybun run typecheck— no new type errors introducedbun test— existing tests pass (9/9)ALPACA_API_KEYis unsettrading-signalsskill invoked🤖 Generated with Claude Code