66 lines
1.6 KiB
Dart
66 lines
1.6 KiB
Dart
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<List<AllocationBucket>> analyticsAllocation({ String scope, AllocationDimension dimension }) async
|
|
test('test analyticsAllocation', () async {
|
|
// TODO
|
|
});
|
|
|
|
// Holdings
|
|
//
|
|
// Open positions, most valuable first; unpriced ones last with null values.
|
|
//
|
|
//Future<List<HoldingOut>> analyticsHoldings({ String scope }) async
|
|
test('test analyticsHoldings', () async {
|
|
// TODO
|
|
});
|
|
|
|
// Returns
|
|
//
|
|
// XIRR and TWR per period, shortest first.
|
|
//
|
|
//Future<List<ReturnsOut>> analyticsReturns({ String scope }) async
|
|
test('test analyticsReturns', () async {
|
|
// TODO
|
|
});
|
|
|
|
// Scopes
|
|
//
|
|
// Every set of accounts the metrics were built for.
|
|
//
|
|
//Future<List<ScopeOut>> 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<SummaryOut> analyticsSummary({ String scope }) async
|
|
test('test analyticsSummary', () async {
|
|
// TODO
|
|
});
|
|
|
|
// Value Series
|
|
//
|
|
// Daily portfolio value; defaults to the last 365 days.
|
|
//
|
|
//Future<List<ValueDay>> analyticsValueSeries({ String scope, DateTime from, DateTime to }) async
|
|
test('test analyticsValueSeries', () async {
|
|
// TODO
|
|
});
|
|
|
|
});
|
|
}
|