changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$defs": {
+ "Position": {
+ "description": "Position model representing a trading position on Paradex.",
+ "properties": {
+ "account": {
+ "description": "Account ID of the position",
+ "title": "Account",
+ "type": "string"
+ },
+ "average_entry_price": {
+ "description": "Average entry price",
+ "title": "Average Entry Price",
+ "type": "number"
+ },
+ "average_entry_price_usd": {
+ "description": "Average entry price in USD",
+ "title": "Average Entry Price Usd",
+ "type": "number"
+ },
+ "average_exit_price": {
+ "description": "Average exit price",
+ "title": "Average Exit Price",
+ "type": "number"
+ },
+ "cached_funding_index": {
+ "description": "Position cached funding index",
+ "title": "Cached Funding Index",
+ "type": "number"
+ },
+ "closed_at": {
+ "default": 0,
+ "description": "Position closed time",
+ "title": "Closed At",
+ "type": "integer"
+ },
+ "cost": {
+ "description": "Position cost",
+ "title": "Cost",
+ "type": "number"
+ },
+ "cost_usd": {
+ "description": "Position cost in USD",
+ "title": "Cost Usd",
+ "type": "number"
+ },
+ "created_at": {
+ "default": 0,
+ "description": "Position creation time",
+ "title": "Created At",
+ "type": "integer"
+ },
+ "id": {
+ "description": "Unique string ID for the position",
+ "title": "Id",
+ "type": "string"
+ },
+ "last_fill_id": {
+ "description": "Last fill ID to which the position is referring",
+ "title": "Last Fill Id",
+ "type": "string"
+ },
+ "last_updated_at": {
+ "description": "Position last update time",
+ "title": "Last Updated At",
+ "type": "integer"
+ },
+ "leverage": {
+ "default": 0,
+ "description": "Leverage of the position",
+ "title": "Leverage",
+ "type": "number"
+ },
+ "liquidation_price": {
+ "default": "",
+ "description": "Liquidation price of the position",
+ "title": "Liquidation Price",
+ "type": "string"
+ },
+ "market": {
+ "description": "Market for position",
+ "title": "Market",
+ "type": "string"
+ },
+ "realized_positional_funding_pnl": {
+ "default": "",
+ "description": "Realized Funding PnL for the position. Reset to 0 when position is closed or flipped.",
+ "title": "Realized Positional Funding Pnl",
+ "type": "string"
+ },
+ "realized_positional_pnl": {
+ "default": 0,
+ "description": "Realized PnL including both positional PnL and funding payments. Reset to 0 when position is closed or flipped.",
+ "title": "Realized Positional Pnl",
+ "type": "number"
+ },
+ "seq_no": {
+ "description": "Unique increasing number (non-sequential) that is assigned to this position update. Can be used to deduplicate multiple feeds",
+ "title": "Seq No",
+ "type": "integer"
+ },
+ "side": {
+ "description": "Position Side : Long or Short",
+ "enum": [
+ "SHORT",
+ "LONG"
+ ],
+ "title": "Side",
+ "type": "string"
+ },
+ "size": {
+ "description": "Size of the position with sign (positive if long or negative if short)",
+ "title": "Size",
+ "type": "number"
+ },
+ "status": {
+ "description": "Status of Position : Open or Closed",
+ "enum": [
+ "OPEN",
+ "CLOSED"
+ ],
+ "title": "Status",
+ "type": "string"
+ },
+ "unrealized_funding_pnl": {
+ "description": "Unrealized running funding P&L for the position",
+ "title": "Unrealized Funding Pnl",
+ "type": "number"
+ },
+ "unrealized_pnl": {
+ "description": "Unrealized P&L of the position in the quote asset",
+ "title": "Unrealized Pnl",
+ "type": "number"
+ }
+ },
+ "required": [
+ "id",
+ "account",
+ "market",
+ "status",
+ "side",
+ "size",
+ "average_entry_price",
+ "average_entry_price_usd",
+ "average_exit_price",
+ "unrealized_pnl",
+ "unrealized_funding_pnl",
+ "cost",
+ "cost_usd",
+ "cached_funding_index",
+ "last_updated_at",
+ "last_fill_id",
+ "seq_no"
+ ],
+ "title": "Position",
+ "type": "object"
+ }
+ },
+ "properties": {
+ "result": {
+ "items": {
+ "$ref": "#/$defs/Position"
+ },
+ "title": "Result",
+ "type": "array"
+ }
+ },
+ "required": [
+ "result"
+ ],
+ "title": "get_vault_positionsOutput",
+ "type": "object"
+}