-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Description
Summary
Perp endpoints (token perp-trades, token perp-positions) require --symbol while every other token subcommand uses --token. There is no indication of this in the help or schema.
Repro
# Works fine for most token commands:
nansen research token indicators --token EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v --chain solana
# Fails for perp commands with --token (which appears correct by analogy):
nansen research token perp-trades --token BTC --limit 2Error output:
{"success":false,"error":"Required field 'body -> token_symbol' is missing","code":"INVALID_TOKEN"}The error exposes the internal API field name (body -> token_symbol) and gives zero hint that --symbol is the correct flag.
Correct call:
nansen research token perp-trades --symbol BTC --limit 2 # worksImpact
Medium. Agents and users reasoning by analogy from other token subcommands will always use --token. The error provides no corrective signal. An agent would need to read the schema carefully to discover --symbol exists.
Options
- Accept both
--tokenand--symbolas aliases for perp endpoints (preferred for agent compatibility) - Rename
--symbolto--tokenon perp endpoints for consistency - At minimum: update the error message to mention
--symbolexplicitly
Found during
Clawfooding session on v1.10.1. Referenced in PR #167.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels