Skip to content
HALOWERK

Blockchain Data

coinwerk / quote depth fill

Coinwerk: Compute the total cost of buying from two quoted depth levels, rejecting insufficient depth. Prices are rational in the same scale. Uses supplied records only. USDC amounts are integer micro-USDC strings; rates labeled bps are basis points.

POST https://kette.halowerk.com/v1/coinwerk/quote-depth-fill

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
size_unitsstringYes
first_depthstringYes
second_depthstringYes
first_pricestringYes
second_pricestringYes
price_scalestringYes
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "size_units",
    "first_depth",
    "second_depth",
    "first_price",
    "second_price",
    "price_scale"
  ],
  "properties": {
    "size_units": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,77})(?![\\s\\S])",
      "maxLength": 79
    },
    "first_depth": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,77})(?![\\s\\S])",
      "maxLength": 79
    },
    "second_depth": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,77})(?![\\s\\S])",
      "maxLength": 79
    },
    "first_price": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,77})(?![\\s\\S])",
      "maxLength": 79
    },
    "second_price": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,77})(?![\\s\\S])",
      "maxLength": 79
    },
    "price_scale": {
      "type": "string",
      "pattern": "^[1-9][0-9]{0,77}(?![\\s\\S])",
      "maxLength": 79
    }
  }
}

Open original schema

Published input example

{
  "size_units": "15",
  "first_depth": "10",
  "second_depth": "8",
  "first_price": "20",
  "second_price": "30",
  "price_scale": "10"
}

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 โ†’