import 'package:tinkoff_invest_api/api.dart';
All URIs are relative to https://api-invest.tinkoff.ru/openapi
Method | HTTP request | Description |
---|---|---|
marketBondsGet | get /market/bonds | Получение списка облигаций |
marketCandlesGet | get /market/candles | Получение исторических свечей по FIGI |
marketCurrenciesGet | get /market/currencies | Получение списка валютных пар |
marketEtfsGet | get /market/etfs | Получение списка ETF |
marketOrderbookGet | get /market/orderbook | Получение стакана по FIGI |
marketSearchByFigiGet | get /market/search/by-figi | Получение инструмента по FIGI |
marketSearchByTickerGet | get /market/search/by-ticker | Получение инструмента по тикеру |
marketStocksGet | get /market/stocks | Получение списка акций |
MarketInstrumentListResponse marketBondsGet()
Получение списка облигаций
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 MarketApi();
try {
var result = api_instance.marketBondsGet();
print(result);
} catch (e) {
print('Exception when calling MarketApi->marketBondsGet: $e\n');
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CandlesResponse marketCandlesGet(figi, from, to, interval)
Получение исторических свечей по FIGI
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 MarketApi();
var figi = figi_example; // String | FIGI
var from = 2019-08-19T18:38:33.131642+03:00; // DateTime | Начало временного промежутка
var to = 2019-08-19T18:38:33.131642+03:00; // DateTime | Конец временного промежутка
var interval = ; // CandleResolution | Интервал свечи
try {
var result = api_instance.marketCandlesGet(figi, from, to, interval);
print(result);
} catch (e) {
print('Exception when calling MarketApi->marketCandlesGet: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
figi | String | FIGI | |
from | DateTime | Начало временного промежутка | |
to | DateTime | Конец временного промежутка | |
interval | CandleResolution | Интервал свечи |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MarketInstrumentListResponse marketCurrenciesGet()
Получение списка валютных пар
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 MarketApi();
try {
var result = api_instance.marketCurrenciesGet();
print(result);
} catch (e) {
print('Exception when calling MarketApi->marketCurrenciesGet: $e\n');
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MarketInstrumentListResponse marketEtfsGet()
Получение списка ETF
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 MarketApi();
try {
var result = api_instance.marketEtfsGet();
print(result);
} catch (e) {
print('Exception when calling MarketApi->marketEtfsGet: $e\n');
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrderbookResponse marketOrderbookGet(figi, depth)
Получение стакана по FIGI
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 MarketApi();
var figi = figi_example; // String | FIGI
var depth = 56; // int | Глубина стакана [1..20]
try {
var result = api_instance.marketOrderbookGet(figi, depth);
print(result);
} catch (e) {
print('Exception when calling MarketApi->marketOrderbookGet: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
figi | String | FIGI | |
depth | int | Глубина стакана [1..20] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SearchMarketInstrumentResponse marketSearchByFigiGet(figi)
Получение инструмента по FIGI
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 MarketApi();
var figi = figi_example; // String | FIGI
try {
var result = api_instance.marketSearchByFigiGet(figi);
print(result);
} catch (e) {
print('Exception when calling MarketApi->marketSearchByFigiGet: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
figi | String | FIGI |
SearchMarketInstrumentResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MarketInstrumentListResponse marketSearchByTickerGet(ticker)
Получение инструмента по тикеру
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 MarketApi();
var ticker = ticker_example; // String | Тикер инструмента
try {
var result = api_instance.marketSearchByTickerGet(ticker);
print(result);
} catch (e) {
print('Exception when calling MarketApi->marketSearchByTickerGet: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
ticker | String | Тикер инструмента |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MarketInstrumentListResponse marketStocksGet()
Получение списка акций
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 MarketApi();
try {
var result = api_instance.marketStocksGet();
print(result);
} catch (e) {
print('Exception when calling MarketApi->marketStocksGet: $e\n');
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]