Skip to content
HALOWERK

Blockchain Data

coinwerk / quote reverse rate

Coinwerk: Find minimum integer source units required to deliver specified target units under a rational quote. 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-reverse-rate

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
target_unitsstringYes
rate_numstringYes
rate_denstringYes
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "target_units",
    "rate_num",
    "rate_den"
  ],
  "properties": {
    "target_units": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]{0,77})(?![\\s\\S])",
      "maxLength": 79
    },
    "rate_num": {
      "type": "string",
      "pattern": "^[1-9][0-9]{0,77}(?![\\s\\S])",
      "maxLength": 79
    },
    "rate_den": {
      "type": "string",
      "pattern": "^[1-9][0-9]{0,77}(?![\\s\\S])",
      "maxLength": 79
    }
  }
}

Open original schema

Published input example

{
  "target_units": "101",
  "rate_num": "3",
  "rate_den": "2"
}

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