2.4 KiB
2.4 KiB
fintracker_api.api.EventsApi
Load the API package
import 'package:fintracker_api/api.dart';
All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| eventsList | GET /api/v1/events | List |
eventsList
EventPage eventsList(from, to, accountId, instrumentId, kind, status, externalFlow, q, page, pageSize)
List
One page of ledger events, newest first, with RUB amounts at each own date's rate.
Example
import 'package:fintracker_api/api.dart';
final api = FintrackerApi().getEventsApi();
final DateTime from = 2013-10-20; // DateTime |
final DateTime to = 2013-10-20; // DateTime |
final int accountId = 56; // int |
final int instrumentId = 56; // int |
final EventKind kind = ; // EventKind |
final EventStatus status = ; // EventStatus |
final bool externalFlow = true; // bool | only the events XIRR reads as boundary flows
final String q = q_example; // String | substring of description or ticker
final int page = 56; // int |
final int pageSize = 56; // int |
try {
final response = api.eventsList(from, to, accountId, instrumentId, kind, status, externalFlow, q, page, pageSize);
print(response);
} on DioException catch (e) {
print('Exception when calling EventsApi->eventsList: $e\n');
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| from | DateTime | [optional] | |
| to | DateTime | [optional] | |
| accountId | int | [optional] | |
| instrumentId | int | [optional] | |
| kind | EventKind | [optional] | |
| status | EventStatus | [optional] | |
| externalFlow | bool | only the events XIRR reads as boundary flows | [optional] |
| q | String | substring of description or ticker | [optional] |
| page | int | [optional] [default to 1] | |
| pageSize | int | [optional] [default to 50] |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]