import 'package:test/test.dart'; import 'package:fintracker_api/fintracker_api.dart'; /// tests for AnalyticsApi void main() { final instance = FintrackerApi().getAnalyticsApi(); group(AnalyticsApi, () { // Allocation // // Buckets of one dimension (or all four), largest first. // //Future> analyticsAllocation({ String scope, AllocationDimension dimension }) async test('test analyticsAllocation', () async { // TODO }); // Holdings // // Open positions, most valuable first; unpriced ones last with null values. // //Future> analyticsHoldings({ String scope }) async test('test analyticsHoldings', () async { // TODO }); // Returns // // XIRR and TWR per period, shortest first. // //Future> analyticsReturns({ String scope }) async test('test analyticsReturns', () async { // TODO }); // Scopes // // Every set of accounts the metrics were built for. // //Future> analyticsScopes() async test('test analyticsScopes', () async { // TODO }); // Summary // // One screen's worth: the latest day, the totals it adds up to, and the returns. // //Future analyticsSummary({ String scope }) async test('test analyticsSummary', () async { // TODO }); // Value Series // // Daily portfolio value; defaults to the last 365 days. // //Future> analyticsValueSeries({ String scope, DateTime from, DateTime to }) async test('test analyticsValueSeries', () async { // TODO }); }); }