Kraken · JSON Structure

Spot Rest Trade Info Structure

TradeInfo schema from Kraken Spot REST API

Type: object Properties: 13
CryptocurrencyExchangeTradingMarket DataSpot TradingFuturesDerivativesStakingEarnNFTWebSocketFIXCustodyOTCPrime BrokerageEmbedOAuthPublic APIs

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

Properties

ordertxid pair time type ordertype price cost fee vol margin misc ledgers posstatus

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-trade-info-structure.json",
  "name": "TradeInfo",
  "type": "object",
  "description": "TradeInfo schema from Kraken Spot REST API",
  "properties": {
    "ordertxid": {
      "type": "string",
      "examples": [
        "OQCLML-BW3P3-BUCMWZ"
      ]
    },
    "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"
      ]
    },
    "price": {
      "type": "string",
      "examples": [
        "0.01"
      ]
    },
    "cost": {
      "type": "string",
      "examples": [
        "0.01"
      ]
    },
    "fee": {
      "type": "string",
      "examples": [
        "0.01"
      ]
    },
    "vol": {
      "type": "string",
      "examples": [
        "0.01"
      ]
    },
    "margin": {
      "type": "string",
      "examples": [
        "0.01"
      ]
    },
    "misc": {
      "type": "string",
      "examples": [
        "string"
      ]
    },
    "ledgers": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "examples": [
        []
      ]
    },
    "posstatus": {
      "type": "string",
      "examples": [
        "string"
      ]
    }
  }
}