{"service":"HALOWERK finopswerk","endpoint":"/v1/daily-weighted-capital-return-ledger","method":"POST","content_type":"application/json","inputSchema":{"type":"object","properties":{"begin_value":{"type":"integer","minimum":0,"maximum":1000000},"end_value":{"type":"integer","minimum":0,"maximum":1000000},"period_days":{"type":"integer","minimum":1,"maximum":366},"flows":{"type":"array","items":{"type":"object","properties":{"amount_minor":{"type":"integer","minimum":-1000000,"maximum":1000000},"day_domain":{"type":"array","items":{"type":"integer","minimum":0,"maximum":366},"minItems":1,"maxItems":2}},"required":["amount_minor","day_domain"],"additionalProperties":false},"minItems":0,"maxItems":8},"report":{"type":"object","properties":{"flow_weights":{"type":"array","items":{"type":"object","properties":{"n":{"anyOf":[{"type":"string","pattern":"^(0|-?[1-9][0-9]{0,63})$","maxLength":65},{"type":"null"}]},"d":{"anyOf":[{"type":"string","pattern":"^[1-9][0-9]{0,63}$","maxLength":64},{"type":"null"}]}},"required":["n","d"],"additionalProperties":false},"minItems":0,"maxItems":8},"weighted_flows":{"type":"array","items":{"type":"object","properties":{"n":{"anyOf":[{"type":"string","pattern":"^(0|-?[1-9][0-9]{0,63})$","maxLength":65},{"type":"null"}]},"d":{"anyOf":[{"type":"string","pattern":"^[1-9][0-9]{0,63}$","maxLength":64},{"type":"null"}]}},"required":["n","d"],"additionalProperties":false},"minItems":0,"maxItems":8},"net_external_flow":{"anyOf":[{"type":"integer","minimum":-1000000000,"maximum":1000000000},{"type":"null"}]},"investment_gain":{"anyOf":[{"type":"integer","minimum":-1000000000,"maximum":1000000000},{"type":"null"}]},"weighted_capital":{"type":"object","properties":{"n":{"anyOf":[{"type":"string","pattern":"^(0|-?[1-9][0-9]{0,63})$","maxLength":65},{"type":"null"}]},"d":{"anyOf":[{"type":"string","pattern":"^[1-9][0-9]{0,63}$","maxLength":64},{"type":"null"}]}},"required":["n","d"],"additionalProperties":false},"return":{"type":"object","properties":{"n":{"anyOf":[{"type":"string","pattern":"^(0|-?[1-9][0-9]{0,63})$","maxLength":65},{"type":"null"}]},"d":{"anyOf":[{"type":"string","pattern":"^[1-9][0-9]{0,63}$","maxLength":64},{"type":"null"}]}},"required":["n","d"],"additionalProperties":false},"return_defined":{"anyOf":[{"type":"integer","minimum":0,"maximum":1},{"type":"null"}]}},"required":["flow_weights","weighted_flows","net_external_flow","investment_gain","weighted_capital","return","return_defined"],"additionalProperties":false}},"required":["begin_value","end_value","period_days","flows","report"],"additionalProperties":false},"requestExample":{"begin_value":100000,"end_value":135000,"period_days":30,"flows":[{"amount_minor":-2000,"day_domain":[6]},{"amount_minor":20000,"day_domain":[11]}],"report":{"flow_weights":[{"n":"4","d":"5"},{"n":"19","d":"30"}],"weighted_flows":[{"n":"-1600","d":"1"},{"n":"38000","d":"3"}],"net_external_flow":18000,"investment_gain":17000,"weighted_capital":{"n":"333200","d":"3"},"return":{"n":"15","d":"98"},"return_defined":1}},"operations":[{"method":"POST","inputSchema":{"type":"object","properties":{"begin_value":{"type":"integer","minimum":0,"maximum":1000000},"end_value":{"type":"integer","minimum":0,"maximum":1000000},"period_days":{"type":"integer","minimum":1,"maximum":366},"flows":{"type":"array","items":{"type":"object","properties":{"amount_minor":{"type":"integer","minimum":-1000000,"maximum":1000000},"day_domain":{"type":"array","items":{"type":"integer","minimum":0,"maximum":366},"minItems":1,"maxItems":2}},"required":["amount_minor","day_domain"],"additionalProperties":false},"minItems":0,"maxItems":8},"report":{"type":"object","properties":{"flow_weights":{"type":"array","items":{"type":"object","properties":{"n":{"anyOf":[{"type":"string","pattern":"^(0|-?[1-9][0-9]{0,63})$","maxLength":65},{"type":"null"}]},"d":{"anyOf":[{"type":"string","pattern":"^[1-9][0-9]{0,63}$","maxLength":64},{"type":"null"}]}},"required":["n","d"],"additionalProperties":false},"minItems":0,"maxItems":8},"weighted_flows":{"type":"array","items":{"type":"object","properties":{"n":{"anyOf":[{"type":"string","pattern":"^(0|-?[1-9][0-9]{0,63})$","maxLength":65},{"type":"null"}]},"d":{"anyOf":[{"type":"string","pattern":"^[1-9][0-9]{0,63}$","maxLength":64},{"type":"null"}]}},"required":["n","d"],"additionalProperties":false},"minItems":0,"maxItems":8},"net_external_flow":{"anyOf":[{"type":"integer","minimum":-1000000000,"maximum":1000000000},{"type":"null"}]},"investment_gain":{"anyOf":[{"type":"integer","minimum":-1000000000,"maximum":1000000000},{"type":"null"}]},"weighted_capital":{"type":"object","properties":{"n":{"anyOf":[{"type":"string","pattern":"^(0|-?[1-9][0-9]{0,63})$","maxLength":65},{"type":"null"}]},"d":{"anyOf":[{"type":"string","pattern":"^[1-9][0-9]{0,63}$","maxLength":64},{"type":"null"}]}},"required":["n","d"],"additionalProperties":false},"return":{"type":"object","properties":{"n":{"anyOf":[{"type":"string","pattern":"^(0|-?[1-9][0-9]{0,63})$","maxLength":65},{"type":"null"}]},"d":{"anyOf":[{"type":"string","pattern":"^[1-9][0-9]{0,63}$","maxLength":64},{"type":"null"}]}},"required":["n","d"],"additionalProperties":false},"return_defined":{"anyOf":[{"type":"integer","minimum":0,"maximum":1},{"type":"null"}]}},"required":["flow_weights","weighted_flows","net_external_flow","investment_gain","weighted_capital","return","return_defined"],"additionalProperties":false}},"required":["begin_value","end_value","period_days","flows","report"],"additionalProperties":false},"requestExample":{"begin_value":100000,"end_value":135000,"period_days":30,"flows":[{"amount_minor":-2000,"day_domain":[6]},{"amount_minor":20000,"day_domain":[11]}],"report":{"flow_weights":[{"n":"4","d":"5"},{"n":"19","d":"30"}],"weighted_flows":[{"n":"-1600","d":"1"},{"n":"38000","d":"3"}],"net_external_flow":18000,"investment_gain":17000,"weighted_capital":{"n":"333200","d":"3"},"return":{"n":"15","d":"98"},"return_defined":1}}}]}