Skip to content
HALOWERK

Blockchain Data

coinwerk / quote roundtrip loss

Coinwerk: Measure source-unit loss on a round trip using separate buy and sell ratios with per-leg floor rounding. 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-roundtrip-loss

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
source_unitsstringYes
buy_numstringYes
buy_denstringYes
sell_numstringYes
sell_denstringYes
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "source_units",
    "buy_num",
    "buy_den",
    "sell_num",
    "sell_den"
  ],
  "properties": {
    "source_units": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,77})(?![\\s\\S])",
      "maxLength": 79
    },
    "buy_num": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,77})(?![\\s\\S])",
      "maxLength": 79
    },
    "buy_den": {
      "type": "string",
      "pattern": "^[1-9][0-9]{0,77}(?![\\s\\S])",
      "maxLength": 79
    },
    "sell_num": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,77})(?![\\s\\S])",
      "maxLength": 79
    },
    "sell_den": {
      "type": "string",
      "pattern": "^[1-9][0-9]{0,77}(?![\\s\\S])",
      "maxLength": 79
    }
  }
}

Open original schema

Published input example

{
  "source_units": "100",
  "buy_num": "97",
  "buy_den": "100",
  "sell_num": "99",
  "sell_den": "100"
}

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