{"slug":"api-duoleads-com-v1-num-allocate-16f4e7","title":"Split a money amount into shares without losing or inventing a cent","host":"api.duoleads.com","method":"GET","resource":"https://api.duoleads.com/v1/num/allocate","category":"other","description":"Split a money amount into shares without losing or inventing a cent. Divide evenly into N parts, or by a list of ratios, and the remainder is distributed one minor unit at a time by a named, deterministic rule — largest-remainder, first-wins or last-wins — so the parts always sum exactly to the orig","price_listed":0.05,"price_asked":0.05,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":20,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"amount":"100.00","currency":"EUR","parts":"3"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"properties":{"amount":{"description":"Decimal amount, absolute value below 1e12.","maxLength":24,"type":"string"},"currency":{"description":"ISO 4217 alpha-3 code.","maxLength":16,"type":"string"},"parts":{"description":"Number of equal parts, 1-1000. One of parts or ratios.","maxLength":64,"pattern":"^[+-]?\\d+$","type":"string"},"ratios":{"description":"Comma-separated non-negative ratios, at most 1000. One of parts or ratios.","maxLength":4096,"type":"string"},"rule":{"default":"largest-remainder","description":"Remainder rule: largest-remainder (default), first, last or round-robin.","enum":["largest-remainder","first","last","round-robin"],"maxLength":64,"type":"string"}},"required":["amount","currency"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"properties":{"data":{"type":"object"},"meta":{"properties":{"computed_at":{"type":"string"},"deterministic":{"type":"boolean"},"disclaimer":{"type":"string"},"price_usd":{"type":"string"},"request_id":{"type":"string"},"sources":{"type":"array"}},"required":["request_id","computed_at","price_usd","deterministic","disclaimer"],"type":"object"},"ok":{"const":true,"type":"boolean"},"route":{"type":"string"},"version":{"type":"string"}},"required":["ok","route","version","data","meta"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-29","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.05,"price_match":true,"latency_ms":20,"error":null}],"description_full":"Split a money amount into shares without losing or inventing a cent. Divide evenly into N parts, or by a list of ratios, and the remainder is distributed one minor unit at a time by a named, deterministic rule — largest-remainder, first-wins or last-wins — so the parts always sum exactly to the original. Uses Unicode CLDR minor-unit digits, so zero- and three-decimal currencies work (CLDR differs from ISO 4217 for a few, e.g. IDR, HUF: 0).","last_updated":"2026-09-28T23:40:13.608Z","schemes":["exact"]}