Kraken · JSON Structure

Spot Rest Position Structure

Position schema from Kraken Spot REST API

Type: object Properties: 17
CryptocurrencyExchangeTradingMarket DataSpot TradingFuturesDerivativesStakingEarnNFTWebSocketFIXCustodyOTCPrime BrokerageEmbedOAuthPublic APIs

Position is a JSON Structure definition published by Kraken, describing 17 properties. It conforms to the https://json-structure.org/json-structure/v0/schema meta-schema.

Properties

ordertxid posstatus pair time type ordertype cost fee vol vol_closed margin value net terms rollovertm misc oflags

Meta-schema: https://json-structure.org/json-structure/v0/schema

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/json-structure/v0/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/kraken/refs/heads/main/json-structure/spot-rest-position-structure.json",
  "name": "Position",
  "type": "object",
  "description": "Position schema from Kraken Spot REST API",
  "properties": {
    "ordertxid": {
      "type": "string",
      "examples": [
        "OQCLML-BW3P3-BUCMWZ"
      ]
    },
    "posstatus": {
      "type": "string",
      "examples": [
        "string"
      ]
    },
    "pair": {
      "type": "string",
      "examples": [
        "XBTUSD"
      ]
    },
    "time": {
      "type": "double",
      "examples": [
        "2026-05-30T00:00:00Z"
      ]
    },
    "type": {
      "type": "string",
      "enum": [
        "buy",
        "sell"
      ],
      "examples": [
        "buy"
      ]
    },
    "ordertype": {
      "type": "string",
      "examples": [
        "limit"
      ]
    },
    "cost": {
      "type": "string",
      "examples": [
        "0.01"
      ]
    },
    "fee": {
      "type": "string",
      "examples": [
        "0.01"
      ]
    },
    "vol": {
      "type": "string",
      "examples": [
        "0.01"
      ]
    },
    "vol_closed": {
      "type": "string",
      "examples": [
        "0.01"
      ]
    },
    "margin": {
      "type": "string",
      "examples": [
        "0.01"
      ]
    },
    "value": {
      "type": "string",
      "examples": [
        "string"
      ]
    },
    "net": {
      "type": "string",
      "examples": [
        "string"
      ]
    },
    "terms": {
      "type": "string",
      "examples": [
        "string"
      ]
    },
    "rollovertm": {
      "type": "string",
      "examples": [
        "string"
      ]
    },
    "misc": {
      "type": "string",
      "examples": [
        "string"
      ]
    },
    "oflags": {
      "type": "string",
      "examples": [
        "string"
      ]
    }
  }
}