{"slug":"handel-halowerk-com-v1-price-elasticity-98d15f","title":"Fits a constant-elasticity demand curve to the price and sales series you supply","host":"handel.halowerk.com","method":"POST","resource":"https://handel.halowerk.com/v1/price-elasticity","category":"market","description":"Fits a constant-elasticity demand curve to the price and sales series you supply and returns the elasticity with its standard error, t statistic, two-sided p value and a Student t confidence interval, not a normal one, because at eight observations the difference in interval width is double-digit pe","price_listed":0.005,"price_asked":0.005,"state":"answering","state_label":"Answering","checks_7d":7,"answered_7d":7,"latency_ms_median":1186,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"confidence_level":0.95,"currency":"EUR","observations":[{"period_start":"2026-01-05","price":24.9,"units_sold":412},{"period_start":"2026-01-12","price":22.9,"units_sold":503},{"period_start":"2026-01-19","price":26.9,"units_sold":341},{"period_start":"2026-01-26","price":19.9,"units_sold":688},{"period_start":"2026-02-02","price":24.9,"units_sold":431},{"period_start":"2026-02-09","price":29.9,"units_sold":262},{"period_start":"2026-02-16","price":21.9,"units_sold":559},{"period_start":"2026-02-23","price":27.9,"units_sold":301},{"period_start":"2026-03-02","price":23.9,"units_sold":470},{"period_start":"2026-03-09","price":18.9,"units_sold":742}],"price_grid":[19.9,21.9,23.9,25.9,27.9],"unit_cost":11.5},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"confidence_level":{"default":0.95,"description":"Confidence level for the elasticity interval. Student t, not normal.","enum":[0.8,0.9,0.95],"type":"number"},"currency":{"default":"EUR","description":"ISO 4217 code for every amount in this request. Not converted, only carried through.","maxLength":3,"minLength":3,"type":"string"},"include_competitor_price":{"default":false,"description":"Whether to add the log competitor price as a second regressor and report the cross-price elasticity. Every observation must then carry competitor_price.","type":"boolean"},"include_promotion":{"default":false,"description":"Whether to add the promotion indicator as a regressor.","type":"boolean"},"observations":{"description":"Your own price and sales history for one SKU. Every amount is in the currency named at document level.","items":{"additionalProperties":false,"properties":{"competitor_price":{"description":"Competitor price in that period. Only used when include_competitor_price is true; you bring the figure, nothing is looked up.","exclusiveMinimum":0,"maximum":100000000,"type":"number"},"period_start":{"description":"Optional period label as YYYY-MM-DD, passed through unchanged.","pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"price":{"description":"Selling price in that period. Must be positive: the estimation is on logarithms.","exclusiveMinimum":0,"maximum":100000000,"type":"number"},"promotion":{"default":false,"description":"Whether the period was a promotion. Enters the fit as a separate indicator when include_promotion is true, so that a campaign is not attributed to the price.","type":"boolean"},"units_sold":{"description":"Units sold at that price. A zero cannot enter a log-log fit and is excluded, reported and never silently dropped.","maximum":1000000000,"minimum":0,"type":"number"}},"required":["price","units_sold"],"type":"object"},"maxItems":2000,"minItems":4,"type":"array"},"price_grid":{"description":"Candidate prices to evaluate with predicted units and contribution. Evaluated at the fitted model, in the order you give them.","items":{"exclusiveMinimum":0,"maximum":100000000,"type":"number"},"maxItems":200,"type":"array"},"unit_cost":{"description":"Variable cost per unit. Required for the contribution-optimal price; without it only the elasticity is returned.","maximum":100000000,"minimum":0,"type":"number"}},"required":["observations"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-27","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":1186,"error":null},{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":1307,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":1182,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":1206,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":1185,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":1170,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":1192,"error":null},{"day":"2026-11-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":1177,"error":null},{"day":"2026-11-19","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":1171,"error":null},{"day":"2026-11-18","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":1171,"error":null},{"day":"2026-11-17","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":1148,"error":null},{"day":"2026-11-16","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":1194,"error":null},{"day":"2026-11-15","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":1165,"error":null},{"day":"2026-11-14","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":1166,"error":null},{"day":"2026-11-13","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":1147,"error":null},{"day":"2026-11-12","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":1174,"error":null},{"day":"2026-11-11","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":1133,"error":null},{"day":"2026-11-10","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":1182,"error":null},{"day":"2026-11-09","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":1306,"error":null},{"day":"2026-11-08","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":1162,"error":null},{"day":"2026-11-07","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":1208,"error":null},{"day":"2026-11-06","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":1156,"error":null},{"day":"2026-11-05","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":1295,"error":null},{"day":"2026-11-04","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":1161,"error":null},{"day":"2026-11-03","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":1179,"error":null}],"description_full":"Fits a constant-elasticity demand curve to the price and sales series you supply and returns the elasticity with its standard error, t statistic, two-sided p value and a Student t confidence interval, not a normal one, because at eight observations the difference in interval width is double-digit percent and a too narrow interval is exactly the kind of number a machine reuses unchecked.","last_updated":"2026-11-02T15:06:03.685Z","schemes":["exact"]}