Skip to content
HALOWERK

Blockchain Data

coinwerk / quote spread midpoint

Coinwerk: Compute bid-ask spread relative to the exact midpoint, rounded up to basis points. 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-spread-midpoint

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
bid_unitsstringYes
ask_unitsstringYes
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "bid_units",
    "ask_units"
  ],
  "properties": {
    "bid_units": {
      "type": "string",
      "pattern": "^[1-9][0-9]{0,77}(?![\\s\\S])",
      "maxLength": 79
    },
    "ask_units": {
      "type": "string",
      "pattern": "^[1-9][0-9]{0,77}(?![\\s\\S])",
      "maxLength": 79
    }
  }
}

Open original schema

Published input example

{
  "bid_units": "990",
  "ask_units": "1010"
}

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