Skip to main content
cURL
curl --request GET \
  --url https://test.deribit.com/api/v2/private/get_positions \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "2.0",
  "id": 2236,
  "method": "private/get_positions",
  "params": {
    "currency": "BTC",
    "kind": "future"
  }
}
'
{
  "jsonrpc": "2.0",
  "id": 2236,
  "result": [
    {
      "average_price": 7440.18,
      "delta": 0.006687487,
      "direction": "buy",
      "estimated_liquidation_price": 1.74,
      "floating_profit_loss": 0,
      "index_price": 7466.79,
      "initial_margin": 0.000197283,
      "instrument_name": "BTC-PERPETUAL",
      "interest_value": 1.7362511643080387,
      "kind": "future",
      "leverage": 34,
      "maintenance_margin": 0.000143783,
      "mark_price": 7476.65,
      "open_orders_margin": 0.000197288,
      "realized_funding": -1e-8,
      "realized_profit_loss": -9e-9,
      "settlement_price": 7476.65,
      "size": 50,
      "size_currency": 0.006687487,
      "total_profit_loss": 0.000032781
    }
  ]
}

Query Parameters

currency
enum<string>

Currency name or "any" if don't care

Available options:
BTC,
ETH,
USDC,
USDT,
EURR,
any
Example:

"BTC"

kind
enum<string>

Kind filter on positions Instrument kind: "future", "option", "spot", "future_combo", "option_combo"

Available options:
future,
option,
spot,
future_combo,
option_combo
Example:

"future"

subaccount_id
integer

The user id for the subaccount

Response

Success response

jsonrpc
enum<string>
required

The JSON-RPC version (2.0)

Available options:
2.0
result
object[]
required
id
integer

The id that was sent in the request