{
  "version": "xarts.financial-series/1",
  "family": "financial-series",
  "provenance": {
    "legacyId": "depth"
  },
  "document": {
    "exportTextMeasurement": "glyph-advances",
    "header": {
      "title": "La horquilla dice líquido; el libro dice lo contrario",
      "subtitle": "Libro de órdenes al cierre — profundidad acumulada a cada lado del precio medio, en títulos"
    },
    "footer": {
      "source": "Instantánea ilustrativa del libro de órdenes de una mediana del mercado continuo. Veinte niveles, diez por lado; la acumulación y la horquilla las calcula la propia figura sobre esas veinte filas.",
      "notes": "La profundidad acumulada a un precio es todo el papel que hay entre el precio medio y ese precio, así que se lee desde el centro hacia fuera y no de izquierda a derecha. La horquilla —cuatro céntimos, 0,10 %— es el hueco sin tinta del centro: lo que la figura añade a ese número es cuánto papel hay detrás de él.",
      "alt": "Dos curvas escalonadas enfrentadas alrededor de 41,26 euros. A la izquierda, la demanda acumulada crece hasta 44.700 títulos en 40,90, con un escalón grande en 41,00 (12.400 títulos). A la derecha, la oferta acumulada llega a 43.450 en 42,10, pero 17.600 de ellos —el 41 %— están en un solo precio, 42,00: entre el precio medio y ese muro sólo hay 22.050 títulos. La horquilla, cuatro céntimos, es el hueco vacío del centro."
    },
    "spacing": {
      "horizontalPadding": 24,
      "topPadding": 22,
      "bottomPadding": 24,
      "minimumTextGap": 6
    }
  },
  "presentation": {
    "theme": "anlak",
    "dimensions": {
      "width": 940,
      "height": 560
    },
    "locale": "es-ES",
    "fonts": "reference",
    "surface": "theme",
    "framePadding": 24
  },
  "output": {
    "filename": "depth",
    "embedSpec": true,
    "geometryDecimals": 2
  },
  "operation": "order-book",
  "data": {
    "priceUnit": "EUR",
    "quantityUnit": "títulos",
    "rows": [
      {
        "id": "level-1",
        "side": "bid",
        "price": 41.24,
        "quantity": 1850
      },
      {
        "id": "level-2",
        "side": "bid",
        "price": 41.22,
        "quantity": 2400
      },
      {
        "id": "level-3",
        "side": "bid",
        "price": 41.2,
        "quantity": 3100
      },
      {
        "id": "level-4",
        "side": "bid",
        "price": 41.18,
        "quantity": 2750
      },
      {
        "id": "level-5",
        "side": "bid",
        "price": 41.15,
        "quantity": 4900
      },
      {
        "id": "level-6",
        "side": "bid",
        "price": 41.1,
        "quantity": 6200
      },
      {
        "id": "level-7",
        "side": "bid",
        "price": 41.05,
        "quantity": 3400
      },
      {
        "id": "level-8",
        "side": "bid",
        "price": 41,
        "quantity": 12400
      },
      {
        "id": "level-9",
        "side": "bid",
        "price": 40.95,
        "quantity": 2100
      },
      {
        "id": "level-10",
        "side": "bid",
        "price": 40.9,
        "quantity": 5600
      },
      {
        "id": "level-11",
        "side": "ask",
        "price": 41.28,
        "quantity": 1200
      },
      {
        "id": "level-12",
        "side": "ask",
        "price": 41.3,
        "quantity": 1950
      },
      {
        "id": "level-13",
        "side": "ask",
        "price": 41.32,
        "quantity": 2200
      },
      {
        "id": "level-14",
        "side": "ask",
        "price": 41.35,
        "quantity": 2800
      },
      {
        "id": "level-15",
        "side": "ask",
        "price": 41.4,
        "quantity": 3600
      },
      {
        "id": "level-16",
        "side": "ask",
        "price": 41.5,
        "quantity": 4100
      },
      {
        "id": "level-17",
        "side": "ask",
        "price": 41.6,
        "quantity": 2900
      },
      {
        "id": "level-18",
        "side": "ask",
        "price": 41.75,
        "quantity": 3300
      },
      {
        "id": "level-19",
        "side": "ask",
        "price": 42,
        "quantity": 17600
      },
      {
        "id": "level-20",
        "side": "ask",
        "price": 42.1,
        "quantity": 3800
      }
    ]
  },
  "calculation": {
    "duplicates": "sum",
    "order": "best-price-outwards",
    "crossedBook": "reject",
    "minimumLevels": 2,
    "measure": "quantity",
    "pricePadding": 0.05,
    "quantityPadding": 0.08
  },
  "layout": {
    "view": "opposing-step-depth",
    "margin": {
      "top": 24,
      "right": 20,
      "bottom": 56,
      "left": 48
    },
    "xTicks": 6,
    "yTicks": 5,
    "axisInkPadding": 0,
    "axisMeasurementNumerals": "proportional-nums",
    "noteMargin": 12,
    "titleGap": 16,
    "bottomMaximumFraction": 0.28,
    "sideInset": 3,
    "sideMidpointGap": 10,
    "sideCurveGap": 6,
    "midpointMaximumWidth": 220
  },
  "marks": {
    "bid": {
      "fill": "#91abb7",
      "stroke": "series.blue"
    },
    "ask": {
      "fill": "#dacacf",
      "stroke": "series.red"
    },
    "fillOpacity": 1,
    "strokeWidth": 1.5,
    "midpoint": {
      "color": "textSecondary",
      "width": 1,
      "dash": "3 3"
    }
  },
  "labels": {
    "bid": "Demanda",
    "ask": "Oferta",
    "priceTitle": "Precio",
    "quantityTitle": "Profundidad acumulada",
    "shareTitle": "Profundidad acumulada (% del libro)",
    "note": "Profundidad acumulada desde el precio medio hacia fuera; el hueco central es la horquilla",
    "spread": "horquilla",
    "atPrice": "A este precio",
    "cumulative": "Acumulado hasta aquí",
    "fromMidpoint": "desde el precio medio",
    "noteColor": "textMuted",
    "valueColor": "textSecondary",
    "sideFontSize": 12,
    "valueFontSize": 11,
    "maximumPriceDecimals": 6,
    "fractionalQuantityDecimals": 2
  },
  "interaction": {
    "tooltip": true
  },
  "annotations": [
    {
      "id": "muro",
      "rowId": "level-19",
      "type": "pill",
      "label": "{quantity} {quantityUnit} a {price}: el {sideShare} % del papel en venta",
      "fill": "#c15a50",
      "textColor": "#ffffff",
      "opacity": 0.85,
      "direction": "down",
      "leader": true,
      "offset": [
        -206,
        -34
      ]
    },
    {
      "id": "aire",
      "rowId": "level-17",
      "type": "pill",
      "label": "hasta aquí sólo hay {cumulative}",
      "fill": "#014d64",
      "textColor": "#ffffff",
      "opacity": 0.85,
      "direction": "neutral",
      "leader": true,
      "offset": [
        -40,
        -76
      ]
    }
  ]
}
