import 'package:tinkoff_invest_api/api.dart';
All URIs are relative to https://api-invest.tinkoff.ru/openapi
Method | HTTP request | Description |
---|---|---|
portfolioCurrenciesGet | get /portfolio/currencies | Получение валютных активов клиента |
portfolioGet | get /portfolio | Получение портфеля клиента |
PortfolioCurrenciesResponse portfolioCurrenciesGet(brokerAccountId)
Получение валютных активов клиента
import 'package:tinkoff_invest_api/api.dart';
// TODO Configure HTTP basic authorization: sso_auth
//defaultApiClient.getAuthentication<HttpBasicAuth>('sso_auth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('sso_auth').password = 'YOUR_PASSWORD';
var api_instance = new PortfolioApi();
var brokerAccountId = brokerAccountId_example; // String | Номер счета (по умолчанию - Тинькофф)
try {
var result = api_instance.portfolioCurrenciesGet(brokerAccountId);
print(result);
} catch (e) {
print('Exception when calling PortfolioApi->portfolioCurrenciesGet: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
brokerAccountId | String | Номер счета (по умолчанию - Тинькофф) | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PortfolioResponse portfolioGet(brokerAccountId)
Получение портфеля клиента
import 'package:tinkoff_invest_api/api.dart';
// TODO Configure HTTP basic authorization: sso_auth
//defaultApiClient.getAuthentication<HttpBasicAuth>('sso_auth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('sso_auth').password = 'YOUR_PASSWORD';
var api_instance = new PortfolioApi();
var brokerAccountId = brokerAccountId_example; // String | Номер счета (по умолчанию - Тинькофф)
try {
var result = api_instance.portfolioGet(brokerAccountId);
print(result);
} catch (e) {
print('Exception when calling PortfolioApi->portfolioGet: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
brokerAccountId | String | Номер счета (по умолчанию - Тинькофф) | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]