{
  "@context": {
    "@vocab": "https://marginpad.io/schema#",
    "schema": "https://schema.org/",
    "xsd": "http://www.w3.org/2001/XMLSchema#",
    "dcterms": "http://purl.org/dc/terms/",
    "marginpad": "https://marginpad.io/schema#",
    "Envelope": "marginpad:Envelope",
    "ok": {
      "@id": "marginpad:ok",
      "@type": "xsd:boolean"
    },
    "data": {
      "@id": "marginpad:data"
    },
    "error": {
      "@id": "marginpad:error",
      "@type": "@id"
    },
    "ts": {
      "@id": "marginpad:ts",
      "@type": "xsd:integer"
    },
    "ApiError": "marginpad:ApiError",
    "code": {
      "@id": "marginpad:code",
      "@type": "xsd:string"
    },
    "message": {
      "@id": "marginpad:message",
      "@type": "xsd:string"
    },
    "symbol": {
      "@id": "marginpad:symbol",
      "@type": "xsd:string"
    },
    "live": {
      "@id": "marginpad:live",
      "@type": "xsd:decimal"
    },
    "limit": {
      "@id": "marginpad:limit"
    },
    "max": {
      "@id": "marginpad:max",
      "@type": "xsd:integer"
    },
    "Position": "marginpad:Position",
    "id": {
      "@id": "marginpad:id",
      "@type": "xsd:string"
    },
    "side": {
      "@id": "marginpad:side",
      "@type": "xsd:string"
    },
    "entry_price": {
      "@id": "marginpad:entry_price",
      "@type": "xsd:decimal"
    },
    "margin_usd": {
      "@id": "marginpad:margin_usd",
      "@type": "xsd:decimal"
    },
    "leverage": {
      "@id": "marginpad:leverage",
      "@type": "xsd:decimal"
    },
    "qty": {
      "@id": "marginpad:qty",
      "@type": "xsd:decimal"
    },
    "liq_price": {
      "@id": "marginpad:liq_price",
      "@type": "xsd:decimal"
    },
    "sl": {
      "@id": "marginpad:sl",
      "@type": "xsd:decimal"
    },
    "tp": {
      "@id": "marginpad:tp",
      "@type": "xsd:decimal"
    },
    "status": {
      "@id": "marginpad:status",
      "@type": "xsd:string"
    },
    "opened_ts": {
      "@id": "marginpad:opened_ts",
      "@type": "xsd:integer"
    },
    "source": {
      "@id": "marginpad:source",
      "@type": "xsd:string"
    },
    "mark_price": {
      "@id": "marginpad:mark_price",
      "@type": "xsd:decimal"
    },
    "unrealized_pnl_usd": {
      "@id": "marginpad:unrealized_pnl_usd",
      "@type": "xsd:decimal"
    },
    "fees_usd": {
      "@id": "marginpad:fees_usd",
      "@type": "xsd:decimal"
    },
    "funding_usd": {
      "@id": "marginpad:funding_usd",
      "@type": "xsd:decimal"
    },
    "exit_price": {
      "@id": "marginpad:exit_price",
      "@type": "xsd:decimal"
    },
    "pnl_usd": {
      "@id": "marginpad:pnl_usd",
      "@type": "xsd:decimal"
    },
    "closed_ts": {
      "@id": "marginpad:closed_ts",
      "@type": "xsd:integer"
    },
    "partial_pct": {
      "@id": "marginpad:partial_pct",
      "@type": "xsd:integer"
    },
    "Positions": "marginpad:Positions",
    "positions": {
      "@id": "marginpad:positions",
      "@container": "@list"
    },
    "Account": "marginpad:Account",
    "open_positions": {
      "@id": "marginpad:open_positions",
      "@type": "xsd:integer"
    },
    "margin_in_use_usd": {
      "@id": "marginpad:margin_in_use_usd",
      "@type": "xsd:decimal"
    },
    "realized_pnl_usd": {
      "@id": "marginpad:realized_pnl_usd",
      "@type": "xsd:decimal"
    },
    "closed_trades": {
      "@id": "marginpad:closed_trades",
      "@type": "xsd:integer"
    },
    "wins": {
      "@id": "marginpad:wins",
      "@type": "xsd:integer"
    },
    "losses": {
      "@id": "marginpad:losses",
      "@type": "xsd:integer"
    },
    "win_rate_pct": {
      "@id": "marginpad:win_rate_pct",
      "@type": "xsd:decimal"
    },
    "starting_balance_usd": {
      "@id": "marginpad:starting_balance_usd",
      "@type": "xsd:decimal"
    },
    "balance_usd": {
      "@id": "marginpad:balance_usd",
      "@type": "xsd:decimal"
    },
    "equity_usd": {
      "@id": "marginpad:equity_usd",
      "@type": "xsd:decimal"
    },
    "free_margin_usd": {
      "@id": "marginpad:free_margin_usd",
      "@type": "xsd:decimal"
    },
    "return_pct": {
      "@id": "marginpad:return_pct",
      "@type": "xsd:decimal"
    },
    "best_trade_usd": {
      "@id": "marginpad:best_trade_usd",
      "@type": "xsd:decimal"
    },
    "margin_enforced": {
      "@id": "marginpad:margin_enforced",
      "@type": "xsd:boolean"
    },
    "Balance": "marginpad:Balance",
    "SimProfile": "marginpad:SimProfile",
    "preset": {
      "@id": "marginpad:preset",
      "@type": "xsd:string"
    },
    "reset": {
      "@id": "marginpad:reset",
      "@type": "xsd:boolean"
    },
    "start_balance_usd": {
      "@id": "marginpad:start_balance_usd",
      "@type": "xsd:decimal"
    },
    "leverage_max": {
      "@id": "marginpad:leverage_max",
      "@type": "xsd:decimal"
    },
    "max_notional_usd": {
      "@id": "marginpad:max_notional_usd",
      "@type": "xsd:decimal"
    },
    "slippage": {
      "@id": "marginpad:slippage",
      "@type": "xsd:boolean"
    },
    "slippage_bps": {
      "@id": "marginpad:slippage_bps",
      "@type": "xsd:decimal"
    },
    "impact_bps_per_100k": {
      "@id": "marginpad:impact_bps_per_100k",
      "@type": "xsd:decimal"
    },
    "exit_slippage": {
      "@id": "marginpad:exit_slippage",
      "@type": "xsd:boolean"
    },
    "latency_ms": {
      "@id": "marginpad:latency_ms",
      "@type": "xsd:decimal"
    },
    "partial_fills": {
      "@id": "marginpad:partial_fills",
      "@type": "xsd:boolean"
    },
    "min_fill_pct": {
      "@id": "marginpad:min_fill_pct",
      "@type": "xsd:decimal"
    },
    "reject_rate_pct": {
      "@id": "marginpad:reject_rate_pct",
      "@type": "xsd:decimal"
    },
    "taker_bps": {
      "@id": "marginpad:taker_bps",
      "@type": "xsd:decimal"
    },
    "funding": {
      "@id": "marginpad:funding",
      "@type": "xsd:boolean"
    },
    "funding_mult": {
      "@id": "marginpad:funding_mult",
      "@type": "xsd:decimal"
    },
    "margin_venue": {
      "@id": "marginpad:margin_venue",
      "@type": "xsd:string"
    },
    "margin_tiers": {
      "@id": "marginpad:margin_tiers",
      "@type": "xsd:boolean"
    },
    "mmr_pct": {
      "@id": "marginpad:mmr_pct",
      "@type": "xsd:decimal"
    },
    "Market": "marginpad:Market",
    "asset_class": {
      "@id": "marginpad:asset_class",
      "@type": "xsd:string"
    },
    "max_leverage": {
      "@id": "marginpad:max_leverage",
      "@type": "xsd:decimal"
    },
    "taker_fee_pct": {
      "@id": "marginpad:taker_fee_pct",
      "@type": "xsd:decimal"
    },
    "Markets": "marginpad:Markets",
    "markets": {
      "@id": "marginpad:markets",
      "@container": "@list"
    },
    "count": {
      "@id": "marginpad:count",
      "@type": "xsd:integer"
    },
    "note": {
      "@id": "marginpad:note",
      "@type": "xsd:string"
    },
    "Trade": "marginpad:Trade",
    "roe_pct": {
      "@id": "marginpad:roe_pct",
      "@type": "xsd:decimal"
    },
    "liquidated": {
      "@id": "marginpad:liquidated",
      "@type": "xsd:boolean"
    },
    "via": {
      "@id": "marginpad:via",
      "@type": "xsd:string"
    },
    "Trades": "marginpad:Trades",
    "trades": {
      "@id": "marginpad:trades",
      "@container": "@list"
    },
    "next_before": {
      "@id": "marginpad:next_before",
      "@type": "xsd:integer"
    },
    "retention_days": {
      "@id": "marginpad:retention_days",
      "@type": "xsd:integer"
    },
    "OpenRequest": "marginpad:OpenRequest",
    "fee_venue": {
      "@id": "marginpad:fee_venue",
      "@type": "xsd:string"
    },
    "type": {
      "@id": "marginpad:type",
      "@type": "xsd:string"
    },
    "limit_price": {
      "@id": "marginpad:limit_price",
      "@type": "xsd:decimal"
    },
    "client_order_id": {
      "@id": "marginpad:client_order_id",
      "@type": "xsd:string"
    },
    "CloseRequest": "marginpad:CloseRequest",
    "pct": {
      "@id": "marginpad:pct",
      "@type": "xsd:decimal"
    },
    "SltpRequest": "marginpad:SltpRequest",
    "trail_pct": {
      "@id": "marginpad:trail_pct",
      "@type": "xsd:decimal"
    },
    "ModifyOrderRequest": "marginpad:ModifyOrderRequest",
    "order_id": {
      "@id": "marginpad:order_id",
      "@type": "xsd:string"
    },
    "WebhookRequest": "marginpad:WebhookRequest",
    "act": {
      "@id": "marginpad:act",
      "@type": "xsd:string"
    },
    "url": {
      "@id": "marginpad:url",
      "@type": "xsd:string"
    },
    "events": {
      "@id": "marginpad:events",
      "@container": "@list"
    },
    "Webhook": "marginpad:Webhook",
    "secret": {
      "@id": "marginpad:secret",
      "@type": "xsd:string"
    },
    "created": {
      "@id": "marginpad:created",
      "@type": "xsd:integer"
    },
    "last_delivery_ts": {
      "@id": "marginpad:last_delivery_ts",
      "@type": "xsd:integer"
    },
    "deliveries": {
      "@id": "marginpad:deliveries",
      "@type": "xsd:integer"
    },
    "consecutive_failures": {
      "@id": "marginpad:consecutive_failures",
      "@type": "xsd:integer"
    },
    "active": {
      "@id": "marginpad:active",
      "@type": "xsd:boolean"
    },
    "last_error": {
      "@id": "marginpad:last_error",
      "@type": "xsd:string"
    },
    "Webhooks": "marginpad:Webhooks",
    "webhooks": {
      "@id": "marginpad:webhooks",
      "@container": "@list"
    },
    "pending_deliveries": {
      "@id": "marginpad:pending_deliveries",
      "@type": "xsd:integer"
    },
    "signature": {
      "@id": "marginpad:signature",
      "@type": "xsd:string"
    },
    "WebhookDelivery": "marginpad:WebhookDelivery",
    "event": {
      "@id": "marginpad:event",
      "@type": "xsd:string"
    },
    "hook_id": {
      "@id": "marginpad:hook_id",
      "@type": "xsd:string"
    },
    "AiRead": "marginpad:AiRead",
    "interval": {
      "@id": "marginpad:interval",
      "@type": "xsd:integer"
    },
    "answer": {
      "@id": "marginpad:answer",
      "@type": "xsd:string"
    },
    "plan": {
      "@id": "marginpad:plan"
    },
    "brief": {
      "@id": "marginpad:brief"
    },
    "used": {
      "@id": "marginpad:used",
      "@type": "xsd:integer"
    },
    "ServerTime": "marginpad:ServerTime",
    "server_time_ms": {
      "@id": "marginpad:server_time_ms",
      "@type": "xsd:integer"
    },
    "server_time_iso": {
      "@id": "marginpad:server_time_iso",
      "@type": "xsd:string"
    },
    "client_time_ms": {
      "@id": "marginpad:client_time_ms",
      "@type": "xsd:integer"
    },
    "drift_ms": {
      "@id": "marginpad:drift_ms",
      "@type": "xsd:integer"
    }
  },
  "@type": "schema:Dataset",
  "schema:name": "MarginPad API JSON-LD context",
  "schema:description": "A JSON-LD @context for the objects MarginPad's own API contract declares: one class per component schema, one property per declared field, typed from the contract. Derived by script (derive-json-ld.py, 2026-11-17) from openapi/marginpad-io-openapi.json.",
  "dcterms:created": "2026-11-17",
  "dcterms:source": [
    "openapi/marginpad-io-openapi.json"
  ]
}