Feat/protocol command#4
Open
junjieit wants to merge 10 commits into
Open
Conversation
Add `wallet balance` and `wallet overview` commands that aggregate on-chain data from multiple providers with graceful fallback: Debank → Zerion → Goldrush → on-chain RPC. - Debank: total_balance, all_token_list, all_complex_protocol_list - Zerion: portfolio + positions with DeFi protocol discovery - Goldrush: activity-based chain discovery + per-chain balances_v2 - On-chain ERC-20 fallback via JSON-RPC Other changes: - `--chain-id` scopes all fields uniformly across all data sources - Rate-limit resilience: 429/503 backoff with Retry-After parsing - Goldrush fan-out concurrency capped at 5 via Semaphore - Zerion chain slug audit with coverage test for all registered chains - Update README, README_CN, and SKILL.md with wallet docs Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Add `wallet pnl` for PnL analysis (realized/unrealized gains, ROI, win rate) via Zerion's FIFO-based /pnl endpoint. Add `wallet history` for transaction history with Zerion primary and Debank fallback, including token_in, token_out, amount, value_usd, and success fields. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Add `wallet defi` subcommand to query DeFi positions across protocols (deposits, LPs, staking, borrows) with Debank primary and Zerion fallback - Enrich Debank API types for per-portfolio-item DeFi position extraction - Add WalletDefi/DefiPosition/DefiPositionToken models and table renderer - Add Dune client and dune_api_key to configurable keys - Add Zerion wallet_labels with behavioral tag derivation - Fix test compilation: add missing dune_api_url/dune_api_key fields to all test AppConfig initializers (swap, token, quote, rpc, config) - Suppress dead_code warnings on Debank API response fields Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Add wallet pnl, history, labels, defi to SKILL.md - Add dune_api_key to configurable keys table - Update description with new capabilities Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <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.
No description provided.