MantaAPI
Portfolio Rebalancing (Optimisation)
4 min
1 creating a strategy 1 1 through mantawealth for pure wealth strategies (see docid\ c7icflhn3thuwxgyhtuxg ), mantawealth can be used to create the required strategies (e g min cvar or tracking error minimization) these can then be seen and used within the api to access mantawealth, enter the following address into browser, making sure mytoken is replaced with your api token https //wealth mantarisk com/wealth index?token=mytoken then navigate to the rebalancing section where you will be able to add and modify rebalancing strategies note that the rebalancing section will remain empty until a portfolio has been selected 1 2 through the api the https //app swaggerhub com/apis docs/mantarisk/rest/0 1#/strategy offer a programmatic way of creating and managing optimisation and risk management strategies the put / strategy endpoint uses references for constraints (e g rule id 21 corresponds to tracking error minimisation) and rules which can be found under the /reference endpoints 1 3 through the strategy builder the strategy builder is available to users with a mantarisk account it allows complex strategies mixing portfolio and tactical algorithms to be created and tested if you are logged in, you can https //mantarisk com/strategy builder , else click on login > mantarisk api we suggest you use our default strategy to start with make note of the number preceeding the name of the strategy this is the strategy id and you will need it for later in the example below 183 2 rebalancing (optimising) portfolio(s) once a strategy has been created, it can be used to optimise portfolio(s) to do this you must use the https //app swaggerhub com/apis docs/mantarisk/rest/0 1#/analytics/get portfolio rebalance refering the client reference and strategy id from the previous steps 3 backtesting the https //app swaggerhub com/apis docs/mantarisk/rest/0 1#/analytics/get portfolio backtest endpoints allows the backtesting of a strategy against a specific portfolio the backtesting is conducted asynchronously as it can take multiple minutes to complete the get method can be called to check on the state of the calculations using the status field