import 'package:test/test.dart'; import 'package:fintracker_api/fintracker_api.dart'; /// tests for RebalanceApi void main() { final instance = FintrackerApi().getRebalanceApi(); group(RebalanceApi, () { // Rebalance // //Future rebalanceRebalance(int portfolioId, { String dimension, CashAvailable cashAvailable }) async test('test rebalanceRebalance', () async { // TODO }); // Set Targets // // Replace the whole set for one dimension. The weights must add up to 1 within `WEIGHT_TOLERANCE`; otherwise the request is refused with the actual sum in the message, so the user can see by how much the plan misses rather than being handed a silently rescaled one. // //Future rebalanceSetTargets(int portfolioId, TargetsIn targetsIn) async test('test rebalanceSetTargets', () async { // TODO }); // Targets // //Future rebalanceTargets(int portfolioId, { String dimension }) async test('test rebalanceTargets', () async { // TODO }); }); }