Open
Conversation
- Add src/core/intelligence/ with 4 modules: schema.ts (stable JSON interfaces, schemaVersion "1.0") filter.ts (topGainers/Losers/OI/funding, liquidityFilter, computeLiquidityScan with slippage estimates) patterns.ts (buyPressure, VWAP, detectLargeOrders, momentum) alerts.ts (AlertManager: CRUD + triage, atomic writes, 0o600 perms) - Add 5 new MCP read tools to server.ts (23 → 28 tools): pacifica_top_markets, pacifica_liquidity_scan, pacifica_trade_patterns, pacifica_alert_triage, pacifica_market_snapshot - Add pacifica alerts list|add|remove|check command - Add pacifica scan --gainers/--losers/--min-volume flags - Add .claude/commands/intelligence.md agent recipe skill - Fix TradeHistory.side normalisation in SDK parsers (bid/ask/buy/sell → canonical bid|ask) - Update context docs (API contracts, data models, decisions D9, roadmap M10, task list T44-T56) Co-Authored-By: Claude Sonnet 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
pacifica_top_markets,pacifica_liquidity_scan,pacifica_trade_patterns,pacifica_alert_triage,pacifica_market_snapshot— all return stable JSON (schemaVersion: "1.0")src/core/intelligence/— pure filter functions, trade pattern analysis (buy pressure, VWAP, whale detection, momentum), andAlertManagerwith atomic file writespacifica alerts list|add|remove|check— persistent price/funding/volume alerts with urgency triagepacifica scan --gainers|--losers|--min-volumefilters + pipe-friendly--jsonoutput.claude/commands/intelligence.md— 5-step analysis workflow (top gainers → liquidity filter → alert triage → pattern check → synthesis)TradeHistory.side(buy/sell/BID/ASK→ canonicalbid|ask) in SDK parsersTest plan
pnpm typecheck— zero errorspnpm build— builds cleanlypacifica alerts add --symbol BTC --above 100000— creates alert in~/.pacifica/alerts.jsonpacifica alerts check— fetches live markets, returns triagepacifica scan --gainers --min-volume 5000000— filtered sorted outputpacifica scan --json— valid JSON arraypacifica_top_markets {"sort_by":"gainers","limit":5}via inspectorpacifica_market_snapshot {}— returnsschemaVersion: "1.0"🤖 Generated with Claude Code