MarginPad · JSON-LD Context

Marginpad Io Context

JSON-LD context defining the semantic vocabulary for Marginpad Io from MarginPad.

21 Classes 107 Properties 4 Namespaces
View Context View on GitHub

Namespaces

schema: https://schema.org/
xsd: http://www.w3.org/2001/XMLSchema#
dcterms: http://purl.org/dc/terms/
marginpad: https://marginpad.io/schema#

Classes

Envelope ApiError Position Positions Account Balance SimProfile Market Markets Trade Trades OpenRequest CloseRequest SltpRequest ModifyOrderRequest WebhookRequest Webhook Webhooks WebhookDelivery AiRead ServerTime

Properties

Property Type Container
ok boolean
data
error reference
ts integer
code string
message string
symbol string
live decimal
limit
max integer
id string
side string
entry_price decimal
margin_usd decimal
leverage decimal
qty decimal
liq_price decimal
sl decimal
tp decimal
status string
opened_ts integer
source string
mark_price decimal
unrealized_pnl_usd decimal
fees_usd decimal
funding_usd decimal
exit_price decimal
pnl_usd decimal
closed_ts integer
partial_pct integer
positions list
open_positions integer
margin_in_use_usd decimal
realized_pnl_usd decimal
closed_trades integer
wins integer
losses integer
win_rate_pct decimal
starting_balance_usd decimal
balance_usd decimal
equity_usd decimal
free_margin_usd decimal
return_pct decimal
best_trade_usd decimal
margin_enforced boolean
preset string
reset boolean
start_balance_usd decimal
leverage_max decimal
max_notional_usd decimal
slippage boolean
slippage_bps decimal
impact_bps_per_100k decimal
exit_slippage boolean
latency_ms decimal
partial_fills boolean
min_fill_pct decimal
reject_rate_pct decimal
taker_bps decimal
funding boolean
funding_mult decimal
margin_venue string
margin_tiers boolean
mmr_pct decimal
asset_class string
max_leverage decimal
taker_fee_pct decimal
markets list
count integer
note string
roe_pct decimal
liquidated boolean
via string
trades list
next_before integer
retention_days integer
fee_venue string
type string
limit_price decimal
client_order_id string
pct decimal
trail_pct decimal
order_id string
act string
url string
events list
secret string
created integer
last_delivery_ts integer
deliveries integer
consecutive_failures integer
active boolean
last_error string
webhooks list
pending_deliveries integer
signature string
event string
hook_id string
interval integer
answer string
plan
brief
used integer
server_time_ms integer
server_time_iso string
client_time_ms integer
drift_ms integer

JSON-LD Document

Raw ↑
{
  "@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"
  ]
}