Polyhub-skills polyhub-discover
Query Polyhub public discover APIs for tags, trader rankings, trader detail by address, and market tag lookup by condition IDs.
install
source · Clone the upstream repo
git clone https://github.com/HubbleVision/polyhub-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/HubbleVision/polyhub-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/codex/skills/polyhub-discover" ~/.claude/skills/hubblevision-polyhub-skills-polyhub-discover && rm -rf "$T"
manifest:
codex/skills/polyhub-discover/SKILL.mdsource content
Polyhub Discover
Version: v0.3.8
Use this skill when the user wants public discover data from Polyhub.
Requirements
is available.curl
is not required.POLYHUB_API_KEY
POLYHUB_API_BASE_URL is fixed to https://polyhub.skill-test.bedev.hubble-rpc.xyz.
Workflow
- Use the terminal to call Polyhub public APIs with
.curl - Only pass filters the user explicitly requested.
- Summarize results clearly instead of dumping raw JSON when the response is large.
- The API returns
as an internal tag name. Always display it as All Markets (or 全部市场) to the user.ALL-HUBBLE
Base Setup
BASE="https://polyhub.skill-test.bedev.hubble-rpc.xyz"
Intent Mapping
- List discover tags:
GET /api/v1/markets/tags - List traders by tag:
GET /api/v1/traders-v2/ - Look up trader stats by address:
GET /api/v1/traders/by-address - Look up market tags by condition IDs:
GET /api/v1/markets/by-condition-ids
Common Calls
List tags
curl -sS --fail-with-body "$BASE/api/v1/markets/tags"
List traders for a tag
Required params:
tag
:time_range
orall30d
Optional params:
limitoffsetfilterBotssort_bysort_direction- numeric range filters such as
,pnl_min
,roi_mintrade_count_30_min
curl -sS --fail-with-body \ "$BASE/api/v1/traders-v2/?tag=Politics&time_range=all&limit=10&offset=0"
Guidance:
- Use
when the user wants cross-tag discover results.tag=CROSS-TAG - Use
for recent performance.time_range=30d - Prefer descending sort unless the user asked otherwise.
Trader detail by address
curl -sS --fail-with-body \ "$BASE/api/v1/traders/by-address?user_id=0x1234..."
Market tag lookup by condition IDs
Validation:
must be non-empty.ids- Limit to
IDs per request.200
curl -sS --fail-with-body \ "$BASE/api/v1/markets/by-condition-ids?ids=0xabc,0xdef"
Error Handling
: invalid params400
: backend query failed or unavailable500