Deribit · Schema

Position

DerivativesCryptocurrencyBitcoinEthereumOptionsFuturesPerpetualsTradingMarket DataBlock TradingWebSocketFinancial

Properties

Name Type Description
instrument_name object
kind object
average_price number Average price of trades that built this position
direction object
mark_price number Current mark price for position's instrument
delta number Delta parameter
gamma number Only for options, Gamma parameter
vega number Only for options, Vega parameter
theta number Only for options, Theta parameter
index_price number Current index price
initial_margin number Initial margin
maintenance_margin number Maintenance margin
settlement_price number Optional (not added for spot). Last settlement price for position's instrument 0 if instrument wasn't settled yet
total_profit_loss number Profit or loss from position
floating_profit_loss number Floating profit or loss
realized_profit_loss number Realized profit or loss
size number Position size for futures size in quote currency (e.g. USD), for options size is in base currency (e.g. BTC)
size_currency number Only for futures, position size in base currency
average_price_usd number Only for options, average price in USD
floating_profit_loss_usd number Only for options, floating profit or loss in USD
leverage integer Current available leverage for future position
realized_funding number Realized Funding in current session included in session realized profit or loss, only for positions of perpetual instruments
interest_value number Value used to calculate `realized_funding` (perpetual only)
View JSON Schema on GitHub

JSON Schema

position.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://api-evangelist.github.io/deribit/json-schema/position.json",
  "title": "Position",
  "properties": {
    "instrument_name": {
      "$ref": "#/components/schemas/instrument_name"
    },
    "kind": {
      "$ref": "#/components/schemas/kind"
    },
    "average_price": {
      "type": "number",
      "description": "Average price of trades that built this position"
    },
    "direction": {
      "$ref": "#/components/schemas/position_direction"
    },
    "mark_price": {
      "type": "number",
      "description": "Current mark price for position's instrument"
    },
    "delta": {
      "type": "number",
      "description": "Delta parameter"
    },
    "gamma": {
      "type": "number",
      "description": "Only for options, Gamma parameter"
    },
    "vega": {
      "type": "number",
      "description": "Only for options, Vega parameter"
    },
    "theta": {
      "type": "number",
      "description": "Only for options, Theta parameter"
    },
    "index_price": {
      "type": "number",
      "description": "Current index price"
    },
    "initial_margin": {
      "type": "number",
      "description": "Initial margin"
    },
    "maintenance_margin": {
      "type": "number",
      "description": "Maintenance margin"
    },
    "settlement_price": {
      "type": "number",
      "description": "Optional (not added for spot). Last settlement price for position's instrument 0 if instrument wasn't settled yet"
    },
    "total_profit_loss": {
      "type": "number",
      "description": "Profit or loss from position"
    },
    "floating_profit_loss": {
      "type": "number",
      "description": "Floating profit or loss"
    },
    "realized_profit_loss": {
      "type": "number",
      "description": "Realized profit or loss"
    },
    "size": {
      "type": "number",
      "description": "Position size for futures size in quote currency (e.g. USD), for options size is in base currency (e.g. BTC)"
    },
    "size_currency": {
      "type": "number",
      "description": "Only for futures, position size in base currency"
    },
    "average_price_usd": {
      "type": "number",
      "description": "Only for options, average price in USD"
    },
    "floating_profit_loss_usd": {
      "type": "number",
      "description": "Only for options, floating profit or loss in USD"
    },
    "leverage": {
      "type": "integer",
      "description": "Current available leverage for future position"
    },
    "realized_funding": {
      "type": "number",
      "description": "Realized Funding in current session included in session realized profit or loss, only for positions of perpetual instruments"
    },
    "interest_value": {
      "type": "number",
      "description": "Value used to calculate `realized_funding` (perpetual only)"
    }
  },
  "required": [
    "instrument_name",
    "kind",
    "average_price",
    "direction",
    "mark_price",
    "delta",
    "index_price",
    "initial_margin",
    "maintenance_margin",
    "settlement_price",
    "total_profit_loss",
    "floating_profit_loss",
    "realized_profit_loss",
    "size"
  ],
  "type": "object"
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/position"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.