changedInput schema / properties / request / anyOf
Previous value: -[
- {
- "additionalProperties": true,
- "type": "object"
- },
- {
- "description": "Complete request for wallet PnL for token (flattened).",
- "properties": {
- "chain": {
- "default": "evm",
- "type": "string"
- },
- "dateRange": {
- "description": "Date range for PnL analysis",
- "properties": {
- "from": {
- "description": "Start value: token (see above) or date (YYYY-MM-DD or ___-MM-DD).",
- "type": "string"
- },
- "to": {
- "description": "End value: token (see above) or date (YYYY-MM-DD or ___-MM-DD).",
- "type": "string"
- }
- },
- "required": [
- "from",
- "to"
- ],
- "type": "object"
- },
- "showRealized": {
- "description": "Set to true for realized PnL (completed/closed trades), false for current position analysis (unrealized PnL + active holdings)",
- "type": "boolean"
- },
- "tokenAddress": {
- "description": "Token address to generate PnL stats for",
- "type": "string"
- },
- "walletAddress": {
- "description": "The wallet address to analyze",
- "type": "string"
- }
- },
- "required": [
- "walletAddress",
- "tokenAddress",
- "dateRange",
- "showRealized"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ {
+ "description": "Complete request for wallet PnL for token (flattened).",
+ "properties": {
+ "chain": {
+ "default": "evm",
+ "description": "Blockchain to query. Use 'hyperliquid' for a Hyperliquid perp coin — then tokenAddress is the perp SYMBOL (e.g. 'BTC', 'HYPE', 'xyz:CL'), not a contract address, and the wallet must be an EVM address. Every other chain expects a token contract address.",
+ "type": "string"
+ },
+ "dateRange": {
+ "description": "Date range for PnL analysis",
+ "properties": {
+ "from": {
+ "description": "Start value: token (see above) or date (YYYY-MM-DD or ___-MM-DD).",
+ "type": "string"
+ },
+ "to": {
+ "description": "End value: token (see above) or date (YYYY-MM-DD or ___-MM-DD).",
+ "type": "string"
+ }
+ },
+ "required": [
+ "from",
+ "to"
+ ],
+ "type": "object"
+ },
+ "showRealized": {
+ "description": "Set to true for realized PnL (completed/closed trades), false for current position analysis (unrealized PnL + active holdings). Ignored on chain='hyperliquid', which always reports both.",
+ "type": "boolean"
+ },
+ "tokenAddress": {
+ "description": "Token address to generate PnL stats for",
+ "type": "string"
+ },
+ "walletAddress": {
+ "description": "The wallet address to analyze",
+ "type": "string"
+ }
+ },
+ "required": [
+ "walletAddress",
+ "tokenAddress",
+ "dateRange",
+ "showRealized"
+ ],
+ "type": "object"
+ }
+]