Query DSCVR's crypto intelligence APIs to retrieve market news events, event categories, and detailed event analysis. All API calls are authenticated via HMAC-SHA256 signing.
Before using this skill, ensure:
uv python install 3.10)api_key and secret_key obtained from a DSCVR subscription at dscvr.one/subscription.No manual pip install needed — scripts declare their dependencies inline via PEP 723, and uv run resolves them automatically.
The skill needs two environment variables (or they can be passed as arguments to scripts):
| Variable | Description |
|---|---|
| --- | --- |
DSCVR_API_KEY | Your 16-character public API key |
DSCVR_SECRET_KEY | Your 32-character secret key |
DSCVR_API_BASE_URL | API server base URL (default: https://dscvr.one) |
Retrieve all available news event categories.
uv run scripts/dscvr_api.py categories
Returns a list of event categories with id, name, and image_url.
Retrieve paginated news events, optionally filtered by category and date.
uv run scripts/dscvr_api.py events [--category CATEGORY] [--date YYYY-MM-DD] [--page N] [--limit N]
Parameters:
--category: Filter by category name (optional)--date: Filter by date in YYYY-MM-DD format (optional)--page: Page number, starting from 1 (default: 1)--limit: Results per page (default: 10)Retrieve detailed information about a specific event.
uv run scripts/dscvr_api.py event-detail --event-id EVENT_ID
Parameters:
--event-id: The event ID (required)List smart money traders with rich filtering options.
uv run scripts/dscvr_api.py smart-money [--keyword KW] [--win-rate HOT,STEADY,REVERSE] [--position-state ACTIVE,STREAK,SAFE] [--tx-size WHALE,MID,SMALL] [--style SWING,DIAMOND,HOT_ONLY] [--identity BOT,HUMAN,INSIDER] [--category politics,crypto,...] [--sort FIELD] [--ascending] [--page N] [--limit N]
Parameters:
--keyword: Fuzzy search by name or bio (optional)--win-rate: Win rate filter, comma-separated: HOT, STEADY, REVERSE (optional)--position-state: Position state, comma-separated: ACTIVE, STREAK, SAFE (optional)--tx-size: Transaction size, comma-separated: WHALE, MID, SMALL, SMALL_LOSS, MID_LOSS (optional)--style: Position style, comma-separated: SWING, DIAMOND, HOT_ONLY (optional)--identity: Identity type, comma-separated: BOT, HUMAN, INSIDER (optional)--category: Domain category, comma-separated: politics, sports, crypto, economy, elections, culture, finance, mentions, world, geopolitics, earnings, climate_science, tech (optional)--sort: Sort field: TOTAL_PNL, WIN_RATE, TOTAL_TRADE_COUNT, TOTAL_TURNOVER, AVG_HOLD_TIME (default: TOTAL_PNL)--ascending: Sort ascending instead of descending (optional)--page: Page number (default: 1)--limit: Results per page (default: 20, max: 100)List all available prediction market categories.
uv run scripts/dscvr_api.py market-categories [--source polymarket]
Parameters:
--source: Data source (default: polymarket)Browse prediction markets with filtering and smart money signals.
uv run scripts/dscvr_api.py markets [--source SRC] [--category CAT] [--smart-filter all|smart_money] [--sort FIELD] [--page N] [--limit N]
Parameters:
--source: Data source (default: polymarket)--category: Category filter (default: all)--smart-filter: all or smart_money — filter to only show events with smart money activity (default: all)--sort: Sort field (prefix with - for ascending): smart_money_activity, volume_24h, liquidity, close_time--page: Page number (default: 1)--limit: Results per page (default: 20, max: 100)Get smart money traders and their positions for a specific prediction market event.
uv run scripts/dscvr_api.py event-traders --event-id EVENT_ID [--page N] [--limit N]
Parameters:
--event-id: The event ID (required)--page: Page number (default: 1)--limit: Results per page (default: 5, max: 10)List all AI discovery event categories.
uv run scripts/dscvr_api.py ai-categories
Browse AI-curated prediction market events with filters.
uv run scripts/dscvr_api.py ai-events [--category CAT] [--platform PLAT] [--active] [--page N] [--limit N]
Parameters:
--category: Category filter (default: All)--platform: Platform filter (optional)--active: Only show active events (optional)--page: Page number (default: 1)--limit: Results per page (default: 10)Search AI discovery events by keyword.
uv run scripts/dscvr_api.py ai-search --query KEYWORD [--page N] [--limit N]
Parameters:
--query: Search keyword (required)--page: Page number (default: 1)--limit: Results per page (default: 10)Get detailed AI analysis for a specific event.
uv run scripts/dscvr_api.py ai-event-detail --provider PROVIDER --event-id EVENT_ID
Parameters:
--provider: Provider name (required)--event-id: Event ID (required)Get orderbook depth data for a prediction market.
uv run scripts/dscvr_api.py ai-orderbook [--kalshi-id ID] [--polymarket-id ID]
Parameters:
--kalshi-id: Kalshi market ID (optional)--polymarket-id: Polymarket market ID (optional)Query the DSCVR social graph via GraphQL. Supports user lookup, content lookup, portal lookup, and more.
uv run scripts/dscvr_api.py social-graphql --query '{ userByName(name: "alice") { id username followerCount } }'
Parameters:
--query: GraphQL query string (required)Available queries:
user(id: DscvrId!) — Lookup user by principal IDuserByName(name: String!) — Lookup user by usernamecontent(id: ContentId!) — Lookup content by IDportalBySlug(slug: String!) — Lookup portal by slugportalById(id: PortalId!) — Lookup portal by IDAll API calls use HMAC-SHA256 request signing. The skill handles this automatically via scripts/auth.py. Three headers are sent with every request:
| Header | Value |
|---|---|
| --- | --- |
X-API-Key | Your public API key |
X-Timestamp | Current Unix timestamp (seconds) |
X-Signature | HMAC-SHA256(secret_key, "{api_key}:{timestamp}") hex digest |
The timestamp must be within 5 minutes of the server's time. See references/auth-reference.md for the full signing specification.
User prompt: "What crypto event categories does DSCVR track?"
Steps:
uv run scripts/dscvr_api.py categoriesUser prompt: "Show me the latest DeFi news events"
Steps:
uv run scripts/dscvr_api.py categories to find the matching categoryuv run scripts/dscvr_api.py events --category "DeFi" to get eventsUser prompt: "Tell me more about event #42"
Steps:
uv run scripts/dscvr_api.py event-detail --event-id 42User prompt: "Give me today's crypto market briefing"
Steps:
uv run scripts/dscvr_api.py categories to get all categoriesuv run scripts/dscvr_api.py events --date $(date +%Y-%m-%d) --limit 10 for today's top eventsUser prompt: "Show me the top whale traders in crypto with the highest PnL"
Steps:
uv run scripts/dscvr_api.py smart-money --tx-size WHALE --category crypto --sort TOTAL_PNL --limit 10User prompt: "What prediction markets are trending with smart money?"
Steps:
uv run scripts/dscvr_api.py markets --smart-filter smart_money --sort smart_money_activity --limit 10User prompt: "Who are the smart money traders betting on the Fed decision event?"
Steps:
uv run scripts/dscvr_api.py markets --category all --limit 50 to find the Fed decision eventuv run scripts/dscvr_api.py event-traders --event-id with the found event IDUser prompt: "Find prediction market events about the US election"
Steps:
uv run scripts/dscvr_api.py ai-search --query "US election" --limit 10User prompt: "Show me the orderbook for this Polymarket event"
Steps:
uv run scripts/dscvr_api.py ai-orderbook --polymarket-id User prompt: "Find the DSCVR profile for user PopularDude99"
Steps:
uv run scripts/dscvr_api.py social-graphql --query '{ userByName(name: "PopularDude99") { id username followerCount } }'| Error | Meaning | Action |
|---|---|---|
| --- | --- | --- |
401 Unauthorized | Invalid API key, bad signature, or expired timestamp | Check credentials and system clock |
403 Forbidden | API key is temporarily banned (1-min cooldown after auth failure) | Wait 60 seconds and retry |
404 Not Found | Endpoint or resource doesn't exist | Verify the endpoint path |
429 Too Many Requests | Rate limit exceeded (100 req/min default) | Wait and retry with backoff |
502 Bad Gateway | Upstream DSCVR service unavailable | Retry after a short delay |
All product endpoints follow the pattern:
/developer/v1/product/<module>/<endpoint>
Currently available modules:
news — Crypto news and event intelligencemarket — Smart money analytics and prediction market dataai — AI-powered event discovery, search, and market orderbookssocial — DSCVR social graph (GraphQL)See references/api-reference.md for the complete API documentation.
共 1 个版本