tinkoff_invest_client 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +169 -0
- data/Rakefile +10 -0
- data/docs/BrokerAccountType.md +15 -0
- data/docs/Candle.md +32 -0
- data/docs/CandleResolution.md +15 -0
- data/docs/Candles.md +22 -0
- data/docs/CandlesResponse.md +22 -0
- data/docs/Currencies.md +18 -0
- data/docs/Currency.md +15 -0
- data/docs/CurrencyPosition.md +22 -0
- data/docs/Empty.md +22 -0
- data/docs/Error.md +22 -0
- data/docs/ErrorPayload.md +20 -0
- data/docs/InstrumentType.md +15 -0
- data/docs/LimitOrderRequest.md +22 -0
- data/docs/LimitOrderResponse.md +22 -0
- data/docs/MarketApi.md +547 -0
- data/docs/MarketInstrument.md +34 -0
- data/docs/MarketInstrumentList.md +20 -0
- data/docs/MarketInstrumentListResponse.md +22 -0
- data/docs/MarketInstrumentResponse.md +22 -0
- data/docs/MarketOrderRequest.md +20 -0
- data/docs/MarketOrderResponse.md +22 -0
- data/docs/MoneyAmount.md +20 -0
- data/docs/Operation.md +44 -0
- data/docs/OperationStatus.md +15 -0
- data/docs/OperationTrade.md +24 -0
- data/docs/OperationType.md +15 -0
- data/docs/OperationTypeWithCommission.md +15 -0
- data/docs/Operations.md +18 -0
- data/docs/OperationsApi.md +83 -0
- data/docs/OperationsResponse.md +22 -0
- data/docs/Order.md +32 -0
- data/docs/OrderResponse.md +20 -0
- data/docs/OrderStatus.md +15 -0
- data/docs/OrderType.md +15 -0
- data/docs/Orderbook.md +38 -0
- data/docs/OrderbookResponse.md +22 -0
- data/docs/OrdersApi.md +297 -0
- data/docs/OrdersResponse.md +22 -0
- data/docs/PlacedLimitOrder.md +32 -0
- data/docs/PlacedMarketOrder.md +32 -0
- data/docs/Portfolio.md +18 -0
- data/docs/PortfolioApi.md +147 -0
- data/docs/PortfolioCurrenciesResponse.md +22 -0
- data/docs/PortfolioPosition.md +38 -0
- data/docs/PortfolioResponse.md +22 -0
- data/docs/SandboxAccount.md +20 -0
- data/docs/SandboxApi.md +367 -0
- data/docs/SandboxCurrency.md +15 -0
- data/docs/SandboxRegisterRequest.md +18 -0
- data/docs/SandboxRegisterResponse.md +22 -0
- data/docs/SandboxSetCurrencyBalanceRequest.md +20 -0
- data/docs/SandboxSetPositionBalanceRequest.md +20 -0
- data/docs/SearchMarketInstrument.md +32 -0
- data/docs/SearchMarketInstrumentResponse.md +22 -0
- data/docs/TradeStatus.md +15 -0
- data/docs/UserAccount.md +20 -0
- data/docs/UserAccounts.md +18 -0
- data/docs/UserAccountsResponse.md +22 -0
- data/docs/UserApi.md +72 -0
- data/generator_options.md +1 -0
- data/git_push.sh +58 -0
- data/lib/tinkoff_invest_client.rb +98 -0
- data/lib/tinkoff_invest_client/api/market_api.rb +518 -0
- data/lib/tinkoff_invest_client/api/operations_api.rb +97 -0
- data/lib/tinkoff_invest_client/api/orders_api.rb +291 -0
- data/lib/tinkoff_invest_client/api/portfolio_api.rb +138 -0
- data/lib/tinkoff_invest_client/api/sandbox_api.rb +335 -0
- data/lib/tinkoff_invest_client/api/user_api.rb +77 -0
- data/lib/tinkoff_invest_client/api_client.rb +390 -0
- data/lib/tinkoff_invest_client/api_error.rb +57 -0
- data/lib/tinkoff_invest_client/configuration.rb +281 -0
- data/lib/tinkoff_invest_client/models/broker_account_type.rb +37 -0
- data/lib/tinkoff_invest_client/models/candle.rb +322 -0
- data/lib/tinkoff_invest_client/models/candle_resolution.rb +46 -0
- data/lib/tinkoff_invest_client/models/candles.rb +253 -0
- data/lib/tinkoff_invest_client/models/candles_response.rb +253 -0
- data/lib/tinkoff_invest_client/models/currencies.rb +225 -0
- data/lib/tinkoff_invest_client/models/currency.rb +44 -0
- data/lib/tinkoff_invest_client/models/currency_position.rb +246 -0
- data/lib/tinkoff_invest_client/models/empty.rb +253 -0
- data/lib/tinkoff_invest_client/models/error.rb +253 -0
- data/lib/tinkoff_invest_client/models/error_payload.rb +227 -0
- data/lib/tinkoff_invest_client/models/instrument_type.rb +39 -0
- data/lib/tinkoff_invest_client/models/limit_order_request.rb +251 -0
- data/lib/tinkoff_invest_client/models/limit_order_response.rb +253 -0
- data/lib/tinkoff_invest_client/models/market_instrument.rb +317 -0
- data/lib/tinkoff_invest_client/models/market_instrument_list.rb +239 -0
- data/lib/tinkoff_invest_client/models/market_instrument_list_response.rb +253 -0
- data/lib/tinkoff_invest_client/models/market_instrument_response.rb +253 -0
- data/lib/tinkoff_invest_client/models/market_order_request.rb +237 -0
- data/lib/tinkoff_invest_client/models/market_order_response.rb +253 -0
- data/lib/tinkoff_invest_client/models/money_amount.rb +237 -0
- data/lib/tinkoff_invest_client/models/operation.rb +370 -0
- data/lib/tinkoff_invest_client/models/operation_status.rb +38 -0
- data/lib/tinkoff_invest_client/models/operation_trade.rb +266 -0
- data/lib/tinkoff_invest_client/models/operation_type.rb +37 -0
- data/lib/tinkoff_invest_client/models/operation_type_with_commission.rb +56 -0
- data/lib/tinkoff_invest_client/models/operations.rb +225 -0
- data/lib/tinkoff_invest_client/models/operations_response.rb +253 -0
- data/lib/tinkoff_invest_client/models/order.rb +321 -0
- data/lib/tinkoff_invest_client/models/order_response.rb +237 -0
- data/lib/tinkoff_invest_client/models/order_status.rb +44 -0
- data/lib/tinkoff_invest_client/models/order_type.rb +37 -0
- data/lib/tinkoff_invest_client/models/orderbook.rb +346 -0
- data/lib/tinkoff_invest_client/models/orderbook_response.rb +253 -0
- data/lib/tinkoff_invest_client/models/orders_response.rb +255 -0
- data/lib/tinkoff_invest_client/models/placed_limit_order.rb +307 -0
- data/lib/tinkoff_invest_client/models/placed_market_order.rb +307 -0
- data/lib/tinkoff_invest_client/models/portfolio.rb +225 -0
- data/lib/tinkoff_invest_client/models/portfolio_currencies_response.rb +253 -0
- data/lib/tinkoff_invest_client/models/portfolio_position.rb +333 -0
- data/lib/tinkoff_invest_client/models/portfolio_response.rb +253 -0
- data/lib/tinkoff_invest_client/models/sandbox_account.rb +237 -0
- data/lib/tinkoff_invest_client/models/sandbox_currency.rb +44 -0
- data/lib/tinkoff_invest_client/models/sandbox_register_request.rb +218 -0
- data/lib/tinkoff_invest_client/models/sandbox_register_response.rb +253 -0
- data/lib/tinkoff_invest_client/models/sandbox_set_currency_balance_request.rb +237 -0
- data/lib/tinkoff_invest_client/models/sandbox_set_position_balance_request.rb +232 -0
- data/lib/tinkoff_invest_client/models/search_market_instrument.rb +307 -0
- data/lib/tinkoff_invest_client/models/search_market_instrument_response.rb +253 -0
- data/lib/tinkoff_invest_client/models/trade_status.rb +37 -0
- data/lib/tinkoff_invest_client/models/user_account.rb +237 -0
- data/lib/tinkoff_invest_client/models/user_accounts.rb +225 -0
- data/lib/tinkoff_invest_client/models/user_accounts_response.rb +253 -0
- data/lib/tinkoff_invest_client/version.rb +15 -0
- data/spec/api/market_api_spec.rb +123 -0
- data/spec/api/operations_api_spec.rb +49 -0
- data/spec/api/orders_api_spec.rb +84 -0
- data/spec/api/portfolio_api_spec.rb +57 -0
- data/spec/api/sandbox_api_spec.rb +95 -0
- data/spec/api/user_api_spec.rb +45 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/broker_account_type_spec.rb +28 -0
- data/spec/models/candle_resolution_spec.rb +28 -0
- data/spec/models/candle_spec.rb +76 -0
- data/spec/models/candles_response_spec.rb +46 -0
- data/spec/models/candles_spec.rb +46 -0
- data/spec/models/currencies_spec.rb +34 -0
- data/spec/models/currency_position_spec.rb +46 -0
- data/spec/models/currency_spec.rb +28 -0
- data/spec/models/empty_spec.rb +46 -0
- data/spec/models/error_payload_spec.rb +40 -0
- data/spec/models/error_spec.rb +46 -0
- data/spec/models/instrument_type_spec.rb +28 -0
- data/spec/models/limit_order_request_spec.rb +46 -0
- data/spec/models/limit_order_response_spec.rb +46 -0
- data/spec/models/market_instrument_list_response_spec.rb +46 -0
- data/spec/models/market_instrument_list_spec.rb +40 -0
- data/spec/models/market_instrument_response_spec.rb +46 -0
- data/spec/models/market_instrument_spec.rb +82 -0
- data/spec/models/market_order_request_spec.rb +40 -0
- data/spec/models/market_order_response_spec.rb +46 -0
- data/spec/models/money_amount_spec.rb +40 -0
- data/spec/models/operation_spec.rb +112 -0
- data/spec/models/operation_status_spec.rb +28 -0
- data/spec/models/operation_trade_spec.rb +52 -0
- data/spec/models/operation_type_spec.rb +28 -0
- data/spec/models/operation_type_with_commission_spec.rb +28 -0
- data/spec/models/operations_response_spec.rb +46 -0
- data/spec/models/operations_spec.rb +34 -0
- data/spec/models/order_response_spec.rb +40 -0
- data/spec/models/order_spec.rb +76 -0
- data/spec/models/order_status_spec.rb +28 -0
- data/spec/models/order_type_spec.rb +28 -0
- data/spec/models/orderbook_response_spec.rb +46 -0
- data/spec/models/orderbook_spec.rb +94 -0
- data/spec/models/orders_response_spec.rb +46 -0
- data/spec/models/placed_limit_order_spec.rb +76 -0
- data/spec/models/placed_market_order_spec.rb +76 -0
- data/spec/models/portfolio_currencies_response_spec.rb +46 -0
- data/spec/models/portfolio_position_spec.rb +94 -0
- data/spec/models/portfolio_response_spec.rb +46 -0
- data/spec/models/portfolio_spec.rb +34 -0
- data/spec/models/sandbox_account_spec.rb +40 -0
- data/spec/models/sandbox_currency_spec.rb +28 -0
- data/spec/models/sandbox_register_request_spec.rb +34 -0
- data/spec/models/sandbox_register_response_spec.rb +46 -0
- data/spec/models/sandbox_set_currency_balance_request_spec.rb +40 -0
- data/spec/models/sandbox_set_position_balance_request_spec.rb +40 -0
- data/spec/models/search_market_instrument_response_spec.rb +46 -0
- data/spec/models/search_market_instrument_spec.rb +76 -0
- data/spec/models/trade_status_spec.rb +28 -0
- data/spec/models/user_account_spec.rb +40 -0
- data/spec/models/user_accounts_response_spec.rb +46 -0
- data/spec/models/user_accounts_spec.rb +34 -0
- data/spec/spec_helper.rb +111 -0
- data/tinkoff_invest_client.gemspec +38 -0
- metadata +336 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 198927092957aff05f999334043fdbef43f0e334df5afc0bcc33c860cffd2489
|
4
|
+
data.tar.gz: 8b214b4a4879d9aefbc1f298066db533e4ed07ad92262a1c68dc7633098da10f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 97bf37727b6cebbbe45a4596c80315e9f2f52d90d3514c03390682c342a4d8c1b317be70cec13750d6f75d574163222b9707f4d97daaf42d053afdba0d13ec34
|
7
|
+
data.tar.gz: 8ea26c03ef274ebcf4cbc13d62f394672ab8e3cca601f4553b6ff8f9b1b58ca114fb727ac77b66d37772e2ec27e6fcc3b50b1a2daf4da2308ed1c386f7b03936
|
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,169 @@
|
|
1
|
+
# tinkoff_invest_client
|
2
|
+
|
3
|
+
TinkoffInvestClient - the Ruby gem for the OpenAPI
|
4
|
+
|
5
|
+
tinkoff.ru/invest OpenAPI.
|
6
|
+
|
7
|
+
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
|
+
|
9
|
+
- API version: 1.0.0
|
10
|
+
- Package version: 1.0.0
|
11
|
+
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
|
+
|
13
|
+
## Installation
|
14
|
+
|
15
|
+
### Build a gem
|
16
|
+
|
17
|
+
To build the Ruby code into a gem:
|
18
|
+
|
19
|
+
```shell
|
20
|
+
gem build tinkoff_invest_client.gemspec
|
21
|
+
```
|
22
|
+
|
23
|
+
Then either install the gem locally:
|
24
|
+
|
25
|
+
```shell
|
26
|
+
gem install ./tinkoff_invest_client-1.0.0.gem
|
27
|
+
```
|
28
|
+
|
29
|
+
(for development, run `gem install --dev ./tinkoff_invest_client-1.0.0.gem` to install the development dependencies)
|
30
|
+
|
31
|
+
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
32
|
+
|
33
|
+
Finally add this to the Gemfile:
|
34
|
+
|
35
|
+
gem 'tinkoff_invest_client', '~> 1.0.0'
|
36
|
+
|
37
|
+
### Install from Git
|
38
|
+
|
39
|
+
If the Ruby gem is hosted at a git repository: https://github.com/ThinkAndRun/tinkoff_invest_client, then add the following in the Gemfile:
|
40
|
+
|
41
|
+
gem 'tinkoff_invest_client', :git => 'https://github.com/ThinkAndRun/tinkoff_invest_client.git'
|
42
|
+
|
43
|
+
### Include the Ruby code directly
|
44
|
+
|
45
|
+
Include the Ruby code directly using `-I` as follows:
|
46
|
+
|
47
|
+
```shell
|
48
|
+
ruby -Ilib script.rb
|
49
|
+
```
|
50
|
+
|
51
|
+
## Getting Started
|
52
|
+
|
53
|
+
Please follow the [installation](#installation) procedure and then run the following code:
|
54
|
+
|
55
|
+
```ruby
|
56
|
+
# Load the gem
|
57
|
+
require 'tinkoff_invest_client'
|
58
|
+
|
59
|
+
# Setup authorization
|
60
|
+
TinkoffInvestClient.configure do |config|
|
61
|
+
# Configure Bearer authorization: sso_auth
|
62
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
63
|
+
end
|
64
|
+
|
65
|
+
api_instance = TinkoffInvestClient::MarketApi.new
|
66
|
+
|
67
|
+
begin
|
68
|
+
#Получение списка облигаций
|
69
|
+
result = api_instance.market_bonds_get
|
70
|
+
p result
|
71
|
+
rescue TinkoffInvestClient::ApiError => e
|
72
|
+
puts "Exception when calling MarketApi->market_bonds_get: #{e}"
|
73
|
+
end
|
74
|
+
|
75
|
+
```
|
76
|
+
|
77
|
+
## Documentation for API Endpoints
|
78
|
+
|
79
|
+
All URIs are relative to *https://api-invest.tinkoff.ru/openapi*
|
80
|
+
|
81
|
+
Class | Method | HTTP request | Description
|
82
|
+
------------ | ------------- | ------------- | -------------
|
83
|
+
*TinkoffInvestClient::MarketApi* | [**market_bonds_get**](docs/MarketApi.md#market_bonds_get) | **GET** /market/bonds | Получение списка облигаций
|
84
|
+
*TinkoffInvestClient::MarketApi* | [**market_candles_get**](docs/MarketApi.md#market_candles_get) | **GET** /market/candles | Получение исторических свечей по FIGI
|
85
|
+
*TinkoffInvestClient::MarketApi* | [**market_currencies_get**](docs/MarketApi.md#market_currencies_get) | **GET** /market/currencies | Получение списка валютных пар
|
86
|
+
*TinkoffInvestClient::MarketApi* | [**market_etfs_get**](docs/MarketApi.md#market_etfs_get) | **GET** /market/etfs | Получение списка ETF
|
87
|
+
*TinkoffInvestClient::MarketApi* | [**market_orderbook_get**](docs/MarketApi.md#market_orderbook_get) | **GET** /market/orderbook | Получение стакана по FIGI
|
88
|
+
*TinkoffInvestClient::MarketApi* | [**market_search_by_figi_get**](docs/MarketApi.md#market_search_by_figi_get) | **GET** /market/search/by-figi | Получение инструмента по FIGI
|
89
|
+
*TinkoffInvestClient::MarketApi* | [**market_search_by_ticker_get**](docs/MarketApi.md#market_search_by_ticker_get) | **GET** /market/search/by-ticker | Получение инструмента по тикеру
|
90
|
+
*TinkoffInvestClient::MarketApi* | [**market_stocks_get**](docs/MarketApi.md#market_stocks_get) | **GET** /market/stocks | Получение списка акций
|
91
|
+
*TinkoffInvestClient::OperationsApi* | [**operations_get**](docs/OperationsApi.md#operations_get) | **GET** /operations | Получение списка операций
|
92
|
+
*TinkoffInvestClient::OrdersApi* | [**orders_cancel_post**](docs/OrdersApi.md#orders_cancel_post) | **POST** /orders/cancel | Отмена заявки
|
93
|
+
*TinkoffInvestClient::OrdersApi* | [**orders_get**](docs/OrdersApi.md#orders_get) | **GET** /orders | Получение списка активных заявок
|
94
|
+
*TinkoffInvestClient::OrdersApi* | [**orders_limit_order_post**](docs/OrdersApi.md#orders_limit_order_post) | **POST** /orders/limit-order | Создание лимитной заявки
|
95
|
+
*TinkoffInvestClient::OrdersApi* | [**orders_market_order_post**](docs/OrdersApi.md#orders_market_order_post) | **POST** /orders/market-order | Создание рыночной заявки
|
96
|
+
*TinkoffInvestClient::PortfolioApi* | [**portfolio_currencies_get**](docs/PortfolioApi.md#portfolio_currencies_get) | **GET** /portfolio/currencies | Получение валютных активов клиента
|
97
|
+
*TinkoffInvestClient::PortfolioApi* | [**portfolio_get**](docs/PortfolioApi.md#portfolio_get) | **GET** /portfolio | Получение портфеля клиента
|
98
|
+
*TinkoffInvestClient::SandboxApi* | [**sandbox_clear_post**](docs/SandboxApi.md#sandbox_clear_post) | **POST** /sandbox/clear | Удаление всех позиций
|
99
|
+
*TinkoffInvestClient::SandboxApi* | [**sandbox_currencies_balance_post**](docs/SandboxApi.md#sandbox_currencies_balance_post) | **POST** /sandbox/currencies/balance | Выставление баланса по валютным позициям
|
100
|
+
*TinkoffInvestClient::SandboxApi* | [**sandbox_positions_balance_post**](docs/SandboxApi.md#sandbox_positions_balance_post) | **POST** /sandbox/positions/balance | Выставление баланса по инструментным позициям
|
101
|
+
*TinkoffInvestClient::SandboxApi* | [**sandbox_register_post**](docs/SandboxApi.md#sandbox_register_post) | **POST** /sandbox/register | Регистрация клиента в sandbox
|
102
|
+
*TinkoffInvestClient::SandboxApi* | [**sandbox_remove_post**](docs/SandboxApi.md#sandbox_remove_post) | **POST** /sandbox/remove | Удаление счета
|
103
|
+
*TinkoffInvestClient::UserApi* | [**user_accounts_get**](docs/UserApi.md#user_accounts_get) | **GET** /user/accounts | Получение брокерских счетов клиента
|
104
|
+
|
105
|
+
|
106
|
+
## Documentation for Models
|
107
|
+
|
108
|
+
- [TinkoffInvestClient::BrokerAccountType](docs/BrokerAccountType.md)
|
109
|
+
- [TinkoffInvestClient::Candle](docs/Candle.md)
|
110
|
+
- [TinkoffInvestClient::CandleResolution](docs/CandleResolution.md)
|
111
|
+
- [TinkoffInvestClient::Candles](docs/Candles.md)
|
112
|
+
- [TinkoffInvestClient::CandlesResponse](docs/CandlesResponse.md)
|
113
|
+
- [TinkoffInvestClient::Currencies](docs/Currencies.md)
|
114
|
+
- [TinkoffInvestClient::Currency](docs/Currency.md)
|
115
|
+
- [TinkoffInvestClient::CurrencyPosition](docs/CurrencyPosition.md)
|
116
|
+
- [TinkoffInvestClient::Empty](docs/Empty.md)
|
117
|
+
- [TinkoffInvestClient::Error](docs/Error.md)
|
118
|
+
- [TinkoffInvestClient::ErrorPayload](docs/ErrorPayload.md)
|
119
|
+
- [TinkoffInvestClient::InstrumentType](docs/InstrumentType.md)
|
120
|
+
- [TinkoffInvestClient::LimitOrderRequest](docs/LimitOrderRequest.md)
|
121
|
+
- [TinkoffInvestClient::LimitOrderResponse](docs/LimitOrderResponse.md)
|
122
|
+
- [TinkoffInvestClient::MarketInstrument](docs/MarketInstrument.md)
|
123
|
+
- [TinkoffInvestClient::MarketInstrumentList](docs/MarketInstrumentList.md)
|
124
|
+
- [TinkoffInvestClient::MarketInstrumentListResponse](docs/MarketInstrumentListResponse.md)
|
125
|
+
- [TinkoffInvestClient::MarketInstrumentResponse](docs/MarketInstrumentResponse.md)
|
126
|
+
- [TinkoffInvestClient::MarketOrderRequest](docs/MarketOrderRequest.md)
|
127
|
+
- [TinkoffInvestClient::MarketOrderResponse](docs/MarketOrderResponse.md)
|
128
|
+
- [TinkoffInvestClient::MoneyAmount](docs/MoneyAmount.md)
|
129
|
+
- [TinkoffInvestClient::Operation](docs/Operation.md)
|
130
|
+
- [TinkoffInvestClient::OperationStatus](docs/OperationStatus.md)
|
131
|
+
- [TinkoffInvestClient::OperationTrade](docs/OperationTrade.md)
|
132
|
+
- [TinkoffInvestClient::OperationType](docs/OperationType.md)
|
133
|
+
- [TinkoffInvestClient::OperationTypeWithCommission](docs/OperationTypeWithCommission.md)
|
134
|
+
- [TinkoffInvestClient::Operations](docs/Operations.md)
|
135
|
+
- [TinkoffInvestClient::OperationsResponse](docs/OperationsResponse.md)
|
136
|
+
- [TinkoffInvestClient::Order](docs/Order.md)
|
137
|
+
- [TinkoffInvestClient::OrderResponse](docs/OrderResponse.md)
|
138
|
+
- [TinkoffInvestClient::OrderStatus](docs/OrderStatus.md)
|
139
|
+
- [TinkoffInvestClient::OrderType](docs/OrderType.md)
|
140
|
+
- [TinkoffInvestClient::Orderbook](docs/Orderbook.md)
|
141
|
+
- [TinkoffInvestClient::OrderbookResponse](docs/OrderbookResponse.md)
|
142
|
+
- [TinkoffInvestClient::OrdersResponse](docs/OrdersResponse.md)
|
143
|
+
- [TinkoffInvestClient::PlacedLimitOrder](docs/PlacedLimitOrder.md)
|
144
|
+
- [TinkoffInvestClient::PlacedMarketOrder](docs/PlacedMarketOrder.md)
|
145
|
+
- [TinkoffInvestClient::Portfolio](docs/Portfolio.md)
|
146
|
+
- [TinkoffInvestClient::PortfolioCurrenciesResponse](docs/PortfolioCurrenciesResponse.md)
|
147
|
+
- [TinkoffInvestClient::PortfolioPosition](docs/PortfolioPosition.md)
|
148
|
+
- [TinkoffInvestClient::PortfolioResponse](docs/PortfolioResponse.md)
|
149
|
+
- [TinkoffInvestClient::SandboxAccount](docs/SandboxAccount.md)
|
150
|
+
- [TinkoffInvestClient::SandboxCurrency](docs/SandboxCurrency.md)
|
151
|
+
- [TinkoffInvestClient::SandboxRegisterRequest](docs/SandboxRegisterRequest.md)
|
152
|
+
- [TinkoffInvestClient::SandboxRegisterResponse](docs/SandboxRegisterResponse.md)
|
153
|
+
- [TinkoffInvestClient::SandboxSetCurrencyBalanceRequest](docs/SandboxSetCurrencyBalanceRequest.md)
|
154
|
+
- [TinkoffInvestClient::SandboxSetPositionBalanceRequest](docs/SandboxSetPositionBalanceRequest.md)
|
155
|
+
- [TinkoffInvestClient::SearchMarketInstrument](docs/SearchMarketInstrument.md)
|
156
|
+
- [TinkoffInvestClient::SearchMarketInstrumentResponse](docs/SearchMarketInstrumentResponse.md)
|
157
|
+
- [TinkoffInvestClient::TradeStatus](docs/TradeStatus.md)
|
158
|
+
- [TinkoffInvestClient::UserAccount](docs/UserAccount.md)
|
159
|
+
- [TinkoffInvestClient::UserAccounts](docs/UserAccounts.md)
|
160
|
+
- [TinkoffInvestClient::UserAccountsResponse](docs/UserAccountsResponse.md)
|
161
|
+
|
162
|
+
|
163
|
+
## Documentation for Authorization
|
164
|
+
|
165
|
+
|
166
|
+
### sso_auth
|
167
|
+
|
168
|
+
- **Type**: Bearer authentication
|
169
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# TinkoffInvestClient::BrokerAccountType
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
|
8
|
+
## Example
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'tinkoff_invest_client'
|
12
|
+
|
13
|
+
instance = TinkoffInvestClient::BrokerAccountType.new()
|
14
|
+
```
|
15
|
+
|
data/docs/Candle.md
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# TinkoffInvestClient::Candle
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **figi** | **String** | | |
|
8
|
+
| **interval** | [**CandleResolution**](CandleResolution.md) | | |
|
9
|
+
| **o** | **Float** | | |
|
10
|
+
| **c** | **Float** | | |
|
11
|
+
| **h** | **Float** | | |
|
12
|
+
| **l** | **Float** | | |
|
13
|
+
| **v** | **Integer** | | |
|
14
|
+
| **time** | **Time** | ISO8601 | |
|
15
|
+
|
16
|
+
## Example
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'tinkoff_invest_client'
|
20
|
+
|
21
|
+
instance = TinkoffInvestClient::Candle.new(
|
22
|
+
figi: null,
|
23
|
+
interval: null,
|
24
|
+
o: null,
|
25
|
+
c: null,
|
26
|
+
h: null,
|
27
|
+
l: null,
|
28
|
+
v: null,
|
29
|
+
time: 2019-08-19T18:38:33.131642+03:00
|
30
|
+
)
|
31
|
+
```
|
32
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# TinkoffInvestClient::CandleResolution
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
|
8
|
+
## Example
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'tinkoff_invest_client'
|
12
|
+
|
13
|
+
instance = TinkoffInvestClient::CandleResolution.new()
|
14
|
+
```
|
15
|
+
|
data/docs/Candles.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# TinkoffInvestClient::Candles
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **figi** | **String** | | |
|
8
|
+
| **interval** | [**CandleResolution**](CandleResolution.md) | | |
|
9
|
+
| **candles** | [**Array<Candle>**](Candle.md) | | |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'tinkoff_invest_client'
|
15
|
+
|
16
|
+
instance = TinkoffInvestClient::Candles.new(
|
17
|
+
figi: null,
|
18
|
+
interval: null,
|
19
|
+
candles: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# TinkoffInvestClient::CandlesResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **tracking_id** | **String** | | |
|
8
|
+
| **status** | **String** | | [default to 'Ok'] |
|
9
|
+
| **payload** | [**Candles**](Candles.md) | | |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'tinkoff_invest_client'
|
15
|
+
|
16
|
+
instance = TinkoffInvestClient::CandlesResponse.new(
|
17
|
+
tracking_id: null,
|
18
|
+
status: null,
|
19
|
+
payload: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
data/docs/Currencies.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# TinkoffInvestClient::Currencies
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **currencies** | [**Array<CurrencyPosition>**](CurrencyPosition.md) | | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'tinkoff_invest_client'
|
13
|
+
|
14
|
+
instance = TinkoffInvestClient::Currencies.new(
|
15
|
+
currencies: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
data/docs/Currency.md
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# TinkoffInvestClient::Currency
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
|
8
|
+
## Example
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'tinkoff_invest_client'
|
12
|
+
|
13
|
+
instance = TinkoffInvestClient::Currency.new()
|
14
|
+
```
|
15
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# TinkoffInvestClient::CurrencyPosition
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **currency** | [**Currency**](Currency.md) | | |
|
8
|
+
| **balance** | **Float** | | |
|
9
|
+
| **blocked** | **Float** | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'tinkoff_invest_client'
|
15
|
+
|
16
|
+
instance = TinkoffInvestClient::CurrencyPosition.new(
|
17
|
+
currency: null,
|
18
|
+
balance: null,
|
19
|
+
blocked: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
data/docs/Empty.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# TinkoffInvestClient::Empty
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **tracking_id** | **String** | | |
|
8
|
+
| **payload** | **Object** | | |
|
9
|
+
| **status** | **String** | | [default to 'Ok'] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'tinkoff_invest_client'
|
15
|
+
|
16
|
+
instance = TinkoffInvestClient::Empty.new(
|
17
|
+
tracking_id: null,
|
18
|
+
payload: null,
|
19
|
+
status: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
data/docs/Error.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# TinkoffInvestClient::Error
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **tracking_id** | **String** | | |
|
8
|
+
| **status** | **String** | | [default to 'Error'] |
|
9
|
+
| **payload** | [**ErrorPayload**](ErrorPayload.md) | | |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'tinkoff_invest_client'
|
15
|
+
|
16
|
+
instance = TinkoffInvestClient::Error.new(
|
17
|
+
tracking_id: null,
|
18
|
+
status: null,
|
19
|
+
payload: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# TinkoffInvestClient::ErrorPayload
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **message** | **String** | | [optional] |
|
8
|
+
| **code** | **String** | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'tinkoff_invest_client'
|
14
|
+
|
15
|
+
instance = TinkoffInvestClient::ErrorPayload.new(
|
16
|
+
message: null,
|
17
|
+
code: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|