mirror of
https://github.com/GMGNAI/gmgn-skills.git
synced 2026-07-27 16:57:44 +00:00
fix: move wallet_holdings filter defaults to CLI, remove no-op flags
Portfolio holdings to return empty results for wallets that only have closed positions (issue #21). Changes: - Convert --hide-closed, --hide-airdrop, --hide-abnormal to value options with explicit defaults (hide_closed=true, hide_airdrop=true, hide_abnormal=false), so defaults are enforced by the CLI and users can override with e.g. --hide-closed false - Remove --sell-out and --show-small which are hard-coded in the service and were never forwarded to the upstream API - Update SKILL.md to reflect new option signatures and defaults Fixes #21 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -81,11 +81,9 @@ gmgn-cli portfolio token-balance \
|
||||
| `--cursor <cursor>` | Pagination cursor |
|
||||
| `--order-by <field>` | Sort field: `usd_value` / `last_active_timestamp` / `realized_profit` / `unrealized_profit` / `total_profit` / `history_bought_cost` / `history_sold_income` (default `usd_value`) |
|
||||
| `--direction <asc\|desc>` | Sort direction (default `desc`) |
|
||||
| `--sell-out` | Include sold-out positions |
|
||||
| `--show-small` | Include small-value positions |
|
||||
| `--hide-abnormal` | Hide abnormal positions |
|
||||
| `--hide-airdrop` | Hide airdrop positions |
|
||||
| `--hide-closed` | Hide closed positions |
|
||||
| `--hide-abnormal <bool>` | Hide abnormal positions: `true` / `false` (default: `false`) |
|
||||
| `--hide-airdrop <bool>` | Hide airdrop positions: `true` / `false` (default: `true`) |
|
||||
| `--hide-closed <bool>` | Hide closed positions: `true` / `false` (default: `true`) |
|
||||
| `--hide-open` | Hide open positions |
|
||||
|
||||
## `portfolio activity` Options
|
||||
|
||||
Reference in New Issue
Block a user