feat: add token info, price, liquidity & risk commands and config command#1
Merged
Conversation
…xScreener fallback - New `token price <TOKEN>` subcommand returning price, 1h/24h/7d changes, 24h high/low with per-field source tracking (CoinGecko primary, DexScreener backup for price/change_1h/change_24h) - Rename `liquidity` → `primary_liquidity` across models, table labels, and JSON output - Add `TokenMetadataClient` with CoinGecko and DexScreener integration - Add JSON Output Field Reference section to SKILL.md documenting which fields are display-ready vs raw integers Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…ce tracking - Rename TokenMetadataSources → TokenInfoSources, metadata_sources → sources - Remove address field from sources (user already knows the address they queried) - Only update info.address when the external API returns a different value Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Native tokens (ETH, BNB, AVAX, etc.) use a sentinel address that
CoinGecko's contract endpoint doesn't recognize. Now uses /coins/{id}
for native tokens and DexScreener wrapped-address fallback.
- Add coingecko_id to NativeToken config for all 17 chains
- Add fetch_coingecko_by_id method to TokenMetadataClient
- In fetch_price, detect native sentinel and route to correct API
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
token info ETH/BNB/etc. previously failed with RPC error on the sentinel
address. Now builds TokenInfo from chain config for native tokens and
enriches via /coins/{id} (CoinGecko) + wrapped address (DexScreener).
- In info handler: detect native sentinel, build TokenInfo from chain config
- In enrich: use fetch_coingecko_by_id for native tokens
- In apply_patch: skip address overwrite when current address is native sentinel
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…ity → top_liquidity - New `token liquidity <TOKEN>` showing DexScreener liquidity data: top liquidity, pair count, top pair details (DEX, address, 24h volume) - Rename primary_liquidity → top_liquidity across all models and labels - Extend DexScreenerPair with dex_id, pair_address, volume fields - Handle native tokens via wrapped address for DexScreener lookup Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Risk analysis for ERC-20 tokens: risk_level, risk_score, honeypot, blacklist, transfer_restricted, mintable, owner_privileged, tax_buy, tax_sell. Native tokens return hardcoded low-risk defaults. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Add `config` command (set/get/list/unset) for managing API keys in persistent config.env file with cross-platform support - Switch token risk analysis from OKX OnchainOS to GoPlus Security API (free, no credentials required), with trust_list-based scoring for centralized tokens like USDT/USDC - Remove all OKX API integration (search, metadata, risk) and related dependencies (hmac, base64, sha2) - Fix token search filtering: exclude null addresses and non-EVM addresses from CoinGecko and DexScreener results - Update SKILL.md with config command docs and GoPlus risk documentation Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…rrors When version/channel validation fails (e.g. stable version on non-main branch), set should_release=false and exit 0 instead of exit 1. This allows the workflow to succeed while skipping build and release jobs. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
03c28bb to
42de055
Compare
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
token info,token price,token liquidity, andtoken risksubcommands for on-chain token analysisconfigcommand for managing CLI configurationsourcesfield to token liquidity outputTest plan
token infofor ERC-20 and native tokens on multiple chainstoken pricewith CoinGecko primary and DexScreener fallbacktoken liquidityoutput includes sources fieldtoken riskreturns GoPlus risk dataconfigcommand reads/writes configuration correctly🤖 Generated with Claude Code