Skip to content
HALOWERK

Blockchain Data

coinwerk / quote expiry margin

Coinwerk: Calculate remaining usable quote time after allowing for confirmation and submission delays. 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-expiry-margin

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
expiry_epochstringYes
now_epochstringYes
inclusion_secondsstringYes
confirmation_secondsstringYes
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "expiry_epoch",
    "now_epoch",
    "inclusion_seconds",
    "confirmation_seconds"
  ],
  "properties": {
    "expiry_epoch": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,77})(?![\\s\\S])",
      "maxLength": 79
    },
    "now_epoch": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,77})(?![\\s\\S])",
      "maxLength": 79
    },
    "inclusion_seconds": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,77})(?![\\s\\S])",
      "maxLength": 79
    },
    "confirmation_seconds": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,77})(?![\\s\\S])",
      "maxLength": 79
    }
  }
}

Open original schema

Published input example

{
  "expiry_epoch": "200",
  "now_epoch": "150",
  "inclusion_seconds": "12",
  "confirmation_seconds": "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 โ†’