{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/kraken/refs/heads/main/json-schema/spot-rest-trade-balance-response-schema.json", "title": "TradeBalanceResponse", "description": "TradeBalanceResponse schema from Kraken Spot REST API", "allOf": [ { "type": "object", "properties": { "error": { "type": "array", "items": { "type": "string" }, "description": "Array of error strings; empty on success.", "example": [] }, "result": { "description": "Endpoint-specific result object.", "example": "string" } }, "required": [ "error" ] }, { "type": "object", "properties": { "result": { "type": "object", "properties": { "eb": { "type": "string", "description": "Equivalent balance", "example": "string" }, "tb": { "type": "string", "description": "Trade balance", "example": "string" }, "m": { "type": "string", "description": "Margin used", "example": "string" }, "n": { "type": "string", "description": "Unrealized P&L", "example": "string" }, "c": { "type": "string", "description": "Cost basis of positions", "example": "string" }, "v": { "type": "string", "description": "Current valuation of positions", "example": "string" }, "e": { "type": "string", "description": "Equity", "example": "string" }, "mf": { "type": "string", "description": "Free margin", "example": "string" }, "ml": { "type": "string", "description": "Margin level", "example": "string" }, "uv": { "type": "string", "description": "Unexecuted value", "example": "string" } }, "example": {} } } } ] }