Skip to content
HALOWERK

Financial Market Data

depth book sweep cost

Order book sweep calculates filled units, total quote ticks and the last execution price. Use it when an agent needs help pricing a marketable order from supplied levels.

POST https://finanz.halowerk.com/v1/depth-book-sweep-cost

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
levelsarrayYes
sideSee schemaYes
quantityintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "levels": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "integer",
          "minimum": 1,
          "maximum": 1000000
        },
        "maxItems": 2,
        "minItems": 2
      },
      "maxItems": 50,
      "minItems": 1
    },
    "side": {
      "enum": [
        "buy",
        "sell"
      ]
    },
    "quantity": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000000
    }
  },
  "required": [
    "levels",
    "side",
    "quantity"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "levels": [
    [
      81599,
      75
    ],
    [
      81600,
      100
    ]
  ],
  "side": "buy",
  "quantity": 90
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub โ†’