{"slug":"quantum-halowerk-com-v1-portfolio-qaoa-fab81b","title":"Enumerates every selection of exactly k assets for at most 16 assets, maximizing","host":"quantum.halowerk.com","method":"POST","resource":"https://quantum.halowerk.com/v1/portfolio-qaoa","category":"other","description":"Enumerates every selection of exactly k assets for at most 16 assets, maximizing summed expected return minus a caller-selected covariance penalty. It runs no quantum circuit and provides a deterministic classical optimum for testing a corresponding binary QAOA or QUBO formulation; it is not investm","price_listed":0.005,"price_asked":0.005,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":872,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"assets":[{"expected_return":0.08,"name":"A"},{"expected_return":0.06,"name":"B"},{"expected_return":0.1,"name":"C"},{"expected_return":0.04,"name":"D"}],"covariance":[[0.04,0.01,0.015,0.005],[0.01,0.03,0.008,0.004],[0.015,0.008,0.06,0.006],[0.005,0.004,0.006,0.02]],"risk_aversion":0.7,"select_count":2},"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":{"assets":{"items":{"additionalProperties":false,"properties":{"expected_return":{"maximum":1000,"minimum":-1000,"type":"number"},"name":{"maxLength":64,"minLength":1,"type":"string"}},"required":["name","expected_return"],"type":"object"},"maxItems":16,"minItems":1,"type":"array"},"covariance":{"items":{"items":{"maximum":1000000,"minimum":-1000000,"type":"number"},"maxItems":16,"minItems":1,"type":"array"},"maxItems":16,"minItems":1,"type":"array"},"risk_aversion":{"maximum":1000000,"minimum":0,"type":"number"},"select_count":{"maximum":16,"minimum":1,"type":"integer"}},"required":["assets","covariance","select_count","risk_aversion"],"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-09-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":872,"error":null}],"description_full":"Enumerates every selection of exactly k assets for at most 16 assets, maximizing summed expected return minus a caller-selected covariance penalty. It runs no quantum circuit and provides a deterministic classical optimum for testing a corresponding binary QAOA or QUBO formulation; it is not investment advice and ignores transaction costs and allocation sizes.","last_updated":"2026-09-01T07:52:25.653Z","schemes":["exact"]}