tinkoff_invest_client 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +169 -0
  4. data/Rakefile +10 -0
  5. data/docs/BrokerAccountType.md +15 -0
  6. data/docs/Candle.md +32 -0
  7. data/docs/CandleResolution.md +15 -0
  8. data/docs/Candles.md +22 -0
  9. data/docs/CandlesResponse.md +22 -0
  10. data/docs/Currencies.md +18 -0
  11. data/docs/Currency.md +15 -0
  12. data/docs/CurrencyPosition.md +22 -0
  13. data/docs/Empty.md +22 -0
  14. data/docs/Error.md +22 -0
  15. data/docs/ErrorPayload.md +20 -0
  16. data/docs/InstrumentType.md +15 -0
  17. data/docs/LimitOrderRequest.md +22 -0
  18. data/docs/LimitOrderResponse.md +22 -0
  19. data/docs/MarketApi.md +547 -0
  20. data/docs/MarketInstrument.md +34 -0
  21. data/docs/MarketInstrumentList.md +20 -0
  22. data/docs/MarketInstrumentListResponse.md +22 -0
  23. data/docs/MarketInstrumentResponse.md +22 -0
  24. data/docs/MarketOrderRequest.md +20 -0
  25. data/docs/MarketOrderResponse.md +22 -0
  26. data/docs/MoneyAmount.md +20 -0
  27. data/docs/Operation.md +44 -0
  28. data/docs/OperationStatus.md +15 -0
  29. data/docs/OperationTrade.md +24 -0
  30. data/docs/OperationType.md +15 -0
  31. data/docs/OperationTypeWithCommission.md +15 -0
  32. data/docs/Operations.md +18 -0
  33. data/docs/OperationsApi.md +83 -0
  34. data/docs/OperationsResponse.md +22 -0
  35. data/docs/Order.md +32 -0
  36. data/docs/OrderResponse.md +20 -0
  37. data/docs/OrderStatus.md +15 -0
  38. data/docs/OrderType.md +15 -0
  39. data/docs/Orderbook.md +38 -0
  40. data/docs/OrderbookResponse.md +22 -0
  41. data/docs/OrdersApi.md +297 -0
  42. data/docs/OrdersResponse.md +22 -0
  43. data/docs/PlacedLimitOrder.md +32 -0
  44. data/docs/PlacedMarketOrder.md +32 -0
  45. data/docs/Portfolio.md +18 -0
  46. data/docs/PortfolioApi.md +147 -0
  47. data/docs/PortfolioCurrenciesResponse.md +22 -0
  48. data/docs/PortfolioPosition.md +38 -0
  49. data/docs/PortfolioResponse.md +22 -0
  50. data/docs/SandboxAccount.md +20 -0
  51. data/docs/SandboxApi.md +367 -0
  52. data/docs/SandboxCurrency.md +15 -0
  53. data/docs/SandboxRegisterRequest.md +18 -0
  54. data/docs/SandboxRegisterResponse.md +22 -0
  55. data/docs/SandboxSetCurrencyBalanceRequest.md +20 -0
  56. data/docs/SandboxSetPositionBalanceRequest.md +20 -0
  57. data/docs/SearchMarketInstrument.md +32 -0
  58. data/docs/SearchMarketInstrumentResponse.md +22 -0
  59. data/docs/TradeStatus.md +15 -0
  60. data/docs/UserAccount.md +20 -0
  61. data/docs/UserAccounts.md +18 -0
  62. data/docs/UserAccountsResponse.md +22 -0
  63. data/docs/UserApi.md +72 -0
  64. data/generator_options.md +1 -0
  65. data/git_push.sh +58 -0
  66. data/lib/tinkoff_invest_client.rb +98 -0
  67. data/lib/tinkoff_invest_client/api/market_api.rb +518 -0
  68. data/lib/tinkoff_invest_client/api/operations_api.rb +97 -0
  69. data/lib/tinkoff_invest_client/api/orders_api.rb +291 -0
  70. data/lib/tinkoff_invest_client/api/portfolio_api.rb +138 -0
  71. data/lib/tinkoff_invest_client/api/sandbox_api.rb +335 -0
  72. data/lib/tinkoff_invest_client/api/user_api.rb +77 -0
  73. data/lib/tinkoff_invest_client/api_client.rb +390 -0
  74. data/lib/tinkoff_invest_client/api_error.rb +57 -0
  75. data/lib/tinkoff_invest_client/configuration.rb +281 -0
  76. data/lib/tinkoff_invest_client/models/broker_account_type.rb +37 -0
  77. data/lib/tinkoff_invest_client/models/candle.rb +322 -0
  78. data/lib/tinkoff_invest_client/models/candle_resolution.rb +46 -0
  79. data/lib/tinkoff_invest_client/models/candles.rb +253 -0
  80. data/lib/tinkoff_invest_client/models/candles_response.rb +253 -0
  81. data/lib/tinkoff_invest_client/models/currencies.rb +225 -0
  82. data/lib/tinkoff_invest_client/models/currency.rb +44 -0
  83. data/lib/tinkoff_invest_client/models/currency_position.rb +246 -0
  84. data/lib/tinkoff_invest_client/models/empty.rb +253 -0
  85. data/lib/tinkoff_invest_client/models/error.rb +253 -0
  86. data/lib/tinkoff_invest_client/models/error_payload.rb +227 -0
  87. data/lib/tinkoff_invest_client/models/instrument_type.rb +39 -0
  88. data/lib/tinkoff_invest_client/models/limit_order_request.rb +251 -0
  89. data/lib/tinkoff_invest_client/models/limit_order_response.rb +253 -0
  90. data/lib/tinkoff_invest_client/models/market_instrument.rb +317 -0
  91. data/lib/tinkoff_invest_client/models/market_instrument_list.rb +239 -0
  92. data/lib/tinkoff_invest_client/models/market_instrument_list_response.rb +253 -0
  93. data/lib/tinkoff_invest_client/models/market_instrument_response.rb +253 -0
  94. data/lib/tinkoff_invest_client/models/market_order_request.rb +237 -0
  95. data/lib/tinkoff_invest_client/models/market_order_response.rb +253 -0
  96. data/lib/tinkoff_invest_client/models/money_amount.rb +237 -0
  97. data/lib/tinkoff_invest_client/models/operation.rb +370 -0
  98. data/lib/tinkoff_invest_client/models/operation_status.rb +38 -0
  99. data/lib/tinkoff_invest_client/models/operation_trade.rb +266 -0
  100. data/lib/tinkoff_invest_client/models/operation_type.rb +37 -0
  101. data/lib/tinkoff_invest_client/models/operation_type_with_commission.rb +56 -0
  102. data/lib/tinkoff_invest_client/models/operations.rb +225 -0
  103. data/lib/tinkoff_invest_client/models/operations_response.rb +253 -0
  104. data/lib/tinkoff_invest_client/models/order.rb +321 -0
  105. data/lib/tinkoff_invest_client/models/order_response.rb +237 -0
  106. data/lib/tinkoff_invest_client/models/order_status.rb +44 -0
  107. data/lib/tinkoff_invest_client/models/order_type.rb +37 -0
  108. data/lib/tinkoff_invest_client/models/orderbook.rb +346 -0
  109. data/lib/tinkoff_invest_client/models/orderbook_response.rb +253 -0
  110. data/lib/tinkoff_invest_client/models/orders_response.rb +255 -0
  111. data/lib/tinkoff_invest_client/models/placed_limit_order.rb +307 -0
  112. data/lib/tinkoff_invest_client/models/placed_market_order.rb +307 -0
  113. data/lib/tinkoff_invest_client/models/portfolio.rb +225 -0
  114. data/lib/tinkoff_invest_client/models/portfolio_currencies_response.rb +253 -0
  115. data/lib/tinkoff_invest_client/models/portfolio_position.rb +333 -0
  116. data/lib/tinkoff_invest_client/models/portfolio_response.rb +253 -0
  117. data/lib/tinkoff_invest_client/models/sandbox_account.rb +237 -0
  118. data/lib/tinkoff_invest_client/models/sandbox_currency.rb +44 -0
  119. data/lib/tinkoff_invest_client/models/sandbox_register_request.rb +218 -0
  120. data/lib/tinkoff_invest_client/models/sandbox_register_response.rb +253 -0
  121. data/lib/tinkoff_invest_client/models/sandbox_set_currency_balance_request.rb +237 -0
  122. data/lib/tinkoff_invest_client/models/sandbox_set_position_balance_request.rb +232 -0
  123. data/lib/tinkoff_invest_client/models/search_market_instrument.rb +307 -0
  124. data/lib/tinkoff_invest_client/models/search_market_instrument_response.rb +253 -0
  125. data/lib/tinkoff_invest_client/models/trade_status.rb +37 -0
  126. data/lib/tinkoff_invest_client/models/user_account.rb +237 -0
  127. data/lib/tinkoff_invest_client/models/user_accounts.rb +225 -0
  128. data/lib/tinkoff_invest_client/models/user_accounts_response.rb +253 -0
  129. data/lib/tinkoff_invest_client/version.rb +15 -0
  130. data/spec/api/market_api_spec.rb +123 -0
  131. data/spec/api/operations_api_spec.rb +49 -0
  132. data/spec/api/orders_api_spec.rb +84 -0
  133. data/spec/api/portfolio_api_spec.rb +57 -0
  134. data/spec/api/sandbox_api_spec.rb +95 -0
  135. data/spec/api/user_api_spec.rb +45 -0
  136. data/spec/api_client_spec.rb +226 -0
  137. data/spec/configuration_spec.rb +42 -0
  138. data/spec/models/broker_account_type_spec.rb +28 -0
  139. data/spec/models/candle_resolution_spec.rb +28 -0
  140. data/spec/models/candle_spec.rb +76 -0
  141. data/spec/models/candles_response_spec.rb +46 -0
  142. data/spec/models/candles_spec.rb +46 -0
  143. data/spec/models/currencies_spec.rb +34 -0
  144. data/spec/models/currency_position_spec.rb +46 -0
  145. data/spec/models/currency_spec.rb +28 -0
  146. data/spec/models/empty_spec.rb +46 -0
  147. data/spec/models/error_payload_spec.rb +40 -0
  148. data/spec/models/error_spec.rb +46 -0
  149. data/spec/models/instrument_type_spec.rb +28 -0
  150. data/spec/models/limit_order_request_spec.rb +46 -0
  151. data/spec/models/limit_order_response_spec.rb +46 -0
  152. data/spec/models/market_instrument_list_response_spec.rb +46 -0
  153. data/spec/models/market_instrument_list_spec.rb +40 -0
  154. data/spec/models/market_instrument_response_spec.rb +46 -0
  155. data/spec/models/market_instrument_spec.rb +82 -0
  156. data/spec/models/market_order_request_spec.rb +40 -0
  157. data/spec/models/market_order_response_spec.rb +46 -0
  158. data/spec/models/money_amount_spec.rb +40 -0
  159. data/spec/models/operation_spec.rb +112 -0
  160. data/spec/models/operation_status_spec.rb +28 -0
  161. data/spec/models/operation_trade_spec.rb +52 -0
  162. data/spec/models/operation_type_spec.rb +28 -0
  163. data/spec/models/operation_type_with_commission_spec.rb +28 -0
  164. data/spec/models/operations_response_spec.rb +46 -0
  165. data/spec/models/operations_spec.rb +34 -0
  166. data/spec/models/order_response_spec.rb +40 -0
  167. data/spec/models/order_spec.rb +76 -0
  168. data/spec/models/order_status_spec.rb +28 -0
  169. data/spec/models/order_type_spec.rb +28 -0
  170. data/spec/models/orderbook_response_spec.rb +46 -0
  171. data/spec/models/orderbook_spec.rb +94 -0
  172. data/spec/models/orders_response_spec.rb +46 -0
  173. data/spec/models/placed_limit_order_spec.rb +76 -0
  174. data/spec/models/placed_market_order_spec.rb +76 -0
  175. data/spec/models/portfolio_currencies_response_spec.rb +46 -0
  176. data/spec/models/portfolio_position_spec.rb +94 -0
  177. data/spec/models/portfolio_response_spec.rb +46 -0
  178. data/spec/models/portfolio_spec.rb +34 -0
  179. data/spec/models/sandbox_account_spec.rb +40 -0
  180. data/spec/models/sandbox_currency_spec.rb +28 -0
  181. data/spec/models/sandbox_register_request_spec.rb +34 -0
  182. data/spec/models/sandbox_register_response_spec.rb +46 -0
  183. data/spec/models/sandbox_set_currency_balance_request_spec.rb +40 -0
  184. data/spec/models/sandbox_set_position_balance_request_spec.rb +40 -0
  185. data/spec/models/search_market_instrument_response_spec.rb +46 -0
  186. data/spec/models/search_market_instrument_spec.rb +76 -0
  187. data/spec/models/trade_status_spec.rb +28 -0
  188. data/spec/models/user_account_spec.rb +40 -0
  189. data/spec/models/user_accounts_response_spec.rb +46 -0
  190. data/spec/models/user_accounts_spec.rb +34 -0
  191. data/spec/spec_helper.rb +111 -0
  192. data/tinkoff_invest_client.gemspec +38 -0
  193. metadata +336 -0
@@ -0,0 +1,76 @@
1
+ =begin
2
+ #OpenAPI
3
+
4
+ #tinkoff.ru/invest OpenAPI.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: al.a.volkov@tinkoff.ru
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for TinkoffInvestClient::SearchMarketInstrument
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe TinkoffInvestClient::SearchMarketInstrument do
21
+ let(:instance) { TinkoffInvestClient::SearchMarketInstrument.new }
22
+
23
+ describe 'test an instance of SearchMarketInstrument' do
24
+ it 'should create an instance of SearchMarketInstrument' do
25
+ expect(instance).to be_instance_of(TinkoffInvestClient::SearchMarketInstrument)
26
+ end
27
+ end
28
+ describe 'test attribute "figi"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
34
+ describe 'test attribute "ticker"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
40
+ describe 'test attribute "isin"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ describe 'test attribute "min_price_increment"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ describe 'test attribute "lot"' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ describe 'test attribute "currency"' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
+ end
62
+ end
63
+
64
+ describe 'test attribute "name"' do
65
+ it 'should work' do
66
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
+ end
68
+ end
69
+
70
+ describe 'test attribute "type"' do
71
+ it 'should work' do
72
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
73
+ end
74
+ end
75
+
76
+ end
@@ -0,0 +1,28 @@
1
+ =begin
2
+ #OpenAPI
3
+
4
+ #tinkoff.ru/invest OpenAPI.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: al.a.volkov@tinkoff.ru
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for TinkoffInvestClient::TradeStatus
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe TinkoffInvestClient::TradeStatus do
21
+ let(:instance) { TinkoffInvestClient::TradeStatus.new }
22
+
23
+ describe 'test an instance of TradeStatus' do
24
+ it 'should create an instance of TradeStatus' do
25
+ expect(instance).to be_instance_of(TinkoffInvestClient::TradeStatus)
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,40 @@
1
+ =begin
2
+ #OpenAPI
3
+
4
+ #tinkoff.ru/invest OpenAPI.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: al.a.volkov@tinkoff.ru
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for TinkoffInvestClient::UserAccount
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe TinkoffInvestClient::UserAccount do
21
+ let(:instance) { TinkoffInvestClient::UserAccount.new }
22
+
23
+ describe 'test an instance of UserAccount' do
24
+ it 'should create an instance of UserAccount' do
25
+ expect(instance).to be_instance_of(TinkoffInvestClient::UserAccount)
26
+ end
27
+ end
28
+ describe 'test attribute "broker_account_type"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
34
+ describe 'test attribute "broker_account_id"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
40
+ end
@@ -0,0 +1,46 @@
1
+ =begin
2
+ #OpenAPI
3
+
4
+ #tinkoff.ru/invest OpenAPI.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: al.a.volkov@tinkoff.ru
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for TinkoffInvestClient::UserAccountsResponse
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe TinkoffInvestClient::UserAccountsResponse do
21
+ let(:instance) { TinkoffInvestClient::UserAccountsResponse.new }
22
+
23
+ describe 'test an instance of UserAccountsResponse' do
24
+ it 'should create an instance of UserAccountsResponse' do
25
+ expect(instance).to be_instance_of(TinkoffInvestClient::UserAccountsResponse)
26
+ end
27
+ end
28
+ describe 'test attribute "tracking_id"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
34
+ describe 'test attribute "status"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
40
+ describe 'test attribute "payload"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ end
@@ -0,0 +1,34 @@
1
+ =begin
2
+ #OpenAPI
3
+
4
+ #tinkoff.ru/invest OpenAPI.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: al.a.volkov@tinkoff.ru
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for TinkoffInvestClient::UserAccounts
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe TinkoffInvestClient::UserAccounts do
21
+ let(:instance) { TinkoffInvestClient::UserAccounts.new }
22
+
23
+ describe 'test an instance of UserAccounts' do
24
+ it 'should create an instance of UserAccounts' do
25
+ expect(instance).to be_instance_of(TinkoffInvestClient::UserAccounts)
26
+ end
27
+ end
28
+ describe 'test attribute "accounts"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
34
+ end
@@ -0,0 +1,111 @@
1
+ =begin
2
+ #OpenAPI
3
+
4
+ #tinkoff.ru/invest OpenAPI.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: al.a.volkov@tinkoff.ru
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.1
10
+
11
+ =end
12
+
13
+ # load the gem
14
+ require 'tinkoff_invest_client'
15
+
16
+ # The following was generated by the `rspec --init` command. Conventionally, all
17
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
18
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
19
+ # this file to always be loaded, without a need to explicitly require it in any
20
+ # files.
21
+ #
22
+ # Given that it is always loaded, you are encouraged to keep this file as
23
+ # light-weight as possible. Requiring heavyweight dependencies from this file
24
+ # will add to the boot time of your test suite on EVERY test run, even for an
25
+ # individual file that may not need all of that loaded. Instead, consider making
26
+ # a separate helper file that requires the additional dependencies and performs
27
+ # the additional setup, and require it from the spec files that actually need
28
+ # it.
29
+ #
30
+ # The `.rspec` file also contains a few flags that are not defaults but that
31
+ # users commonly want.
32
+ #
33
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
34
+ RSpec.configure do |config|
35
+ # rspec-expectations config goes here. You can use an alternate
36
+ # assertion/expectation library such as wrong or the stdlib/minitest
37
+ # assertions if you prefer.
38
+ config.expect_with :rspec do |expectations|
39
+ # This option will default to `true` in RSpec 4. It makes the `description`
40
+ # and `failure_message` of custom matchers include text for helper methods
41
+ # defined using `chain`, e.g.:
42
+ # be_bigger_than(2).and_smaller_than(4).description
43
+ # # => "be bigger than 2 and smaller than 4"
44
+ # ...rather than:
45
+ # # => "be bigger than 2"
46
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
47
+ end
48
+
49
+ # rspec-mocks config goes here. You can use an alternate test double
50
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
51
+ config.mock_with :rspec do |mocks|
52
+ # Prevents you from mocking or stubbing a method that does not exist on
53
+ # a real object. This is generally recommended, and will default to
54
+ # `true` in RSpec 4.
55
+ mocks.verify_partial_doubles = true
56
+ end
57
+
58
+ # The settings below are suggested to provide a good initial experience
59
+ # with RSpec, but feel free to customize to your heart's content.
60
+ =begin
61
+ # These two settings work together to allow you to limit a spec run
62
+ # to individual examples or groups you care about by tagging them with
63
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
64
+ # get run.
65
+ config.filter_run :focus
66
+ config.run_all_when_everything_filtered = true
67
+
68
+ # Allows RSpec to persist some state between runs in order to support
69
+ # the `--only-failures` and `--next-failure` CLI options. We recommend
70
+ # you configure your source control system to ignore this file.
71
+ config.example_status_persistence_file_path = "spec/examples.txt"
72
+
73
+ # Limits the available syntax to the non-monkey patched syntax that is
74
+ # recommended. For more details, see:
75
+ # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
76
+ # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
77
+ # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
78
+ config.disable_monkey_patching!
79
+
80
+ # This setting enables warnings. It's recommended, but in some cases may
81
+ # be too noisy due to issues in dependencies.
82
+ config.warnings = true
83
+
84
+ # Many RSpec users commonly either run the entire suite or an individual
85
+ # file, and it's useful to allow more verbose output when running an
86
+ # individual spec file.
87
+ if config.files_to_run.one?
88
+ # Use the documentation formatter for detailed output,
89
+ # unless a formatter has already been configured
90
+ # (e.g. via a command-line flag).
91
+ config.default_formatter = 'doc'
92
+ end
93
+
94
+ # Print the 10 slowest examples and example groups at the
95
+ # end of the spec run, to help surface which specs are running
96
+ # particularly slow.
97
+ config.profile_examples = 10
98
+
99
+ # Run specs in random order to surface order dependencies. If you find an
100
+ # order dependency and want to debug it, you can fix the order by providing
101
+ # the seed, which is printed after each run.
102
+ # --seed 1234
103
+ config.order = :random
104
+
105
+ # Seed global randomization in this process using the `--seed` CLI option.
106
+ # Setting this allows you to use `--seed` to deterministically reproduce
107
+ # test failures related to randomization by passing the same `--seed` value
108
+ # as the one that triggered the failure.
109
+ Kernel.srand config.seed
110
+ =end
111
+ end
@@ -0,0 +1,38 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ =begin
4
+ #OpenAPI
5
+
6
+ #tinkoff.ru/invest OpenAPI.
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Contact: al.a.volkov@tinkoff.ru
10
+ Generated by: https://openapi-generator.tech
11
+ OpenAPI Generator version: 5.0.1
12
+
13
+ =end
14
+
15
+ $:.push File.expand_path("../lib", __FILE__)
16
+ require "tinkoff_invest_client/version"
17
+
18
+ Gem::Specification.new do |s|
19
+ s.name = "tinkoff_invest_client"
20
+ s.version = TinkoffInvestClient::VERSION
21
+ s.platform = Gem::Platform::RUBY
22
+ s.authors = ["Oleg Belov"]
23
+ s.email = ["al.a.volkov@tinkoff.ru"]
24
+ s.homepage = "https://github.com/ThinkAndRun/tinkoff_invest_client"
25
+ s.summary = "Tinkoff Invest OpenAPI Ruby Gem"
26
+ s.description = "tinkoff.ru/invest OpenAPI."
27
+ s.license = "MIT"
28
+ s.required_ruby_version = ">= 2.4"
29
+
30
+ s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
+
32
+ s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
33
+
34
+ s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
35
+ s.test_files = `find spec/*`.split("\n")
36
+ s.executables = []
37
+ s.require_paths = ["lib"]
38
+ end
metadata ADDED
@@ -0,0 +1,336 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tinkoff_invest_client
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Oleg Belov
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-03-16 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: typhoeus
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.0.1
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '1.0'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 1.0.1
33
+ - !ruby/object:Gem::Dependency
34
+ name: rspec
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: 3.6.0
40
+ - - "~>"
41
+ - !ruby/object:Gem::Version
42
+ version: '3.6'
43
+ type: :development
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: 3.6.0
50
+ - - "~>"
51
+ - !ruby/object:Gem::Version
52
+ version: '3.6'
53
+ description: tinkoff.ru/invest OpenAPI.
54
+ email:
55
+ - al.a.volkov@tinkoff.ru
56
+ executables: []
57
+ extensions: []
58
+ extra_rdoc_files: []
59
+ files:
60
+ - Gemfile
61
+ - README.md
62
+ - Rakefile
63
+ - docs/BrokerAccountType.md
64
+ - docs/Candle.md
65
+ - docs/CandleResolution.md
66
+ - docs/Candles.md
67
+ - docs/CandlesResponse.md
68
+ - docs/Currencies.md
69
+ - docs/Currency.md
70
+ - docs/CurrencyPosition.md
71
+ - docs/Empty.md
72
+ - docs/Error.md
73
+ - docs/ErrorPayload.md
74
+ - docs/InstrumentType.md
75
+ - docs/LimitOrderRequest.md
76
+ - docs/LimitOrderResponse.md
77
+ - docs/MarketApi.md
78
+ - docs/MarketInstrument.md
79
+ - docs/MarketInstrumentList.md
80
+ - docs/MarketInstrumentListResponse.md
81
+ - docs/MarketInstrumentResponse.md
82
+ - docs/MarketOrderRequest.md
83
+ - docs/MarketOrderResponse.md
84
+ - docs/MoneyAmount.md
85
+ - docs/Operation.md
86
+ - docs/OperationStatus.md
87
+ - docs/OperationTrade.md
88
+ - docs/OperationType.md
89
+ - docs/OperationTypeWithCommission.md
90
+ - docs/Operations.md
91
+ - docs/OperationsApi.md
92
+ - docs/OperationsResponse.md
93
+ - docs/Order.md
94
+ - docs/OrderResponse.md
95
+ - docs/OrderStatus.md
96
+ - docs/OrderType.md
97
+ - docs/Orderbook.md
98
+ - docs/OrderbookResponse.md
99
+ - docs/OrdersApi.md
100
+ - docs/OrdersResponse.md
101
+ - docs/PlacedLimitOrder.md
102
+ - docs/PlacedMarketOrder.md
103
+ - docs/Portfolio.md
104
+ - docs/PortfolioApi.md
105
+ - docs/PortfolioCurrenciesResponse.md
106
+ - docs/PortfolioPosition.md
107
+ - docs/PortfolioResponse.md
108
+ - docs/SandboxAccount.md
109
+ - docs/SandboxApi.md
110
+ - docs/SandboxCurrency.md
111
+ - docs/SandboxRegisterRequest.md
112
+ - docs/SandboxRegisterResponse.md
113
+ - docs/SandboxSetCurrencyBalanceRequest.md
114
+ - docs/SandboxSetPositionBalanceRequest.md
115
+ - docs/SearchMarketInstrument.md
116
+ - docs/SearchMarketInstrumentResponse.md
117
+ - docs/TradeStatus.md
118
+ - docs/UserAccount.md
119
+ - docs/UserAccounts.md
120
+ - docs/UserAccountsResponse.md
121
+ - docs/UserApi.md
122
+ - generator_options.md
123
+ - git_push.sh
124
+ - lib/tinkoff_invest_client.rb
125
+ - lib/tinkoff_invest_client/api/market_api.rb
126
+ - lib/tinkoff_invest_client/api/operations_api.rb
127
+ - lib/tinkoff_invest_client/api/orders_api.rb
128
+ - lib/tinkoff_invest_client/api/portfolio_api.rb
129
+ - lib/tinkoff_invest_client/api/sandbox_api.rb
130
+ - lib/tinkoff_invest_client/api/user_api.rb
131
+ - lib/tinkoff_invest_client/api_client.rb
132
+ - lib/tinkoff_invest_client/api_error.rb
133
+ - lib/tinkoff_invest_client/configuration.rb
134
+ - lib/tinkoff_invest_client/models/broker_account_type.rb
135
+ - lib/tinkoff_invest_client/models/candle.rb
136
+ - lib/tinkoff_invest_client/models/candle_resolution.rb
137
+ - lib/tinkoff_invest_client/models/candles.rb
138
+ - lib/tinkoff_invest_client/models/candles_response.rb
139
+ - lib/tinkoff_invest_client/models/currencies.rb
140
+ - lib/tinkoff_invest_client/models/currency.rb
141
+ - lib/tinkoff_invest_client/models/currency_position.rb
142
+ - lib/tinkoff_invest_client/models/empty.rb
143
+ - lib/tinkoff_invest_client/models/error.rb
144
+ - lib/tinkoff_invest_client/models/error_payload.rb
145
+ - lib/tinkoff_invest_client/models/instrument_type.rb
146
+ - lib/tinkoff_invest_client/models/limit_order_request.rb
147
+ - lib/tinkoff_invest_client/models/limit_order_response.rb
148
+ - lib/tinkoff_invest_client/models/market_instrument.rb
149
+ - lib/tinkoff_invest_client/models/market_instrument_list.rb
150
+ - lib/tinkoff_invest_client/models/market_instrument_list_response.rb
151
+ - lib/tinkoff_invest_client/models/market_instrument_response.rb
152
+ - lib/tinkoff_invest_client/models/market_order_request.rb
153
+ - lib/tinkoff_invest_client/models/market_order_response.rb
154
+ - lib/tinkoff_invest_client/models/money_amount.rb
155
+ - lib/tinkoff_invest_client/models/operation.rb
156
+ - lib/tinkoff_invest_client/models/operation_status.rb
157
+ - lib/tinkoff_invest_client/models/operation_trade.rb
158
+ - lib/tinkoff_invest_client/models/operation_type.rb
159
+ - lib/tinkoff_invest_client/models/operation_type_with_commission.rb
160
+ - lib/tinkoff_invest_client/models/operations.rb
161
+ - lib/tinkoff_invest_client/models/operations_response.rb
162
+ - lib/tinkoff_invest_client/models/order.rb
163
+ - lib/tinkoff_invest_client/models/order_response.rb
164
+ - lib/tinkoff_invest_client/models/order_status.rb
165
+ - lib/tinkoff_invest_client/models/order_type.rb
166
+ - lib/tinkoff_invest_client/models/orderbook.rb
167
+ - lib/tinkoff_invest_client/models/orderbook_response.rb
168
+ - lib/tinkoff_invest_client/models/orders_response.rb
169
+ - lib/tinkoff_invest_client/models/placed_limit_order.rb
170
+ - lib/tinkoff_invest_client/models/placed_market_order.rb
171
+ - lib/tinkoff_invest_client/models/portfolio.rb
172
+ - lib/tinkoff_invest_client/models/portfolio_currencies_response.rb
173
+ - lib/tinkoff_invest_client/models/portfolio_position.rb
174
+ - lib/tinkoff_invest_client/models/portfolio_response.rb
175
+ - lib/tinkoff_invest_client/models/sandbox_account.rb
176
+ - lib/tinkoff_invest_client/models/sandbox_currency.rb
177
+ - lib/tinkoff_invest_client/models/sandbox_register_request.rb
178
+ - lib/tinkoff_invest_client/models/sandbox_register_response.rb
179
+ - lib/tinkoff_invest_client/models/sandbox_set_currency_balance_request.rb
180
+ - lib/tinkoff_invest_client/models/sandbox_set_position_balance_request.rb
181
+ - lib/tinkoff_invest_client/models/search_market_instrument.rb
182
+ - lib/tinkoff_invest_client/models/search_market_instrument_response.rb
183
+ - lib/tinkoff_invest_client/models/trade_status.rb
184
+ - lib/tinkoff_invest_client/models/user_account.rb
185
+ - lib/tinkoff_invest_client/models/user_accounts.rb
186
+ - lib/tinkoff_invest_client/models/user_accounts_response.rb
187
+ - lib/tinkoff_invest_client/version.rb
188
+ - spec/api/market_api_spec.rb
189
+ - spec/api/operations_api_spec.rb
190
+ - spec/api/orders_api_spec.rb
191
+ - spec/api/portfolio_api_spec.rb
192
+ - spec/api/sandbox_api_spec.rb
193
+ - spec/api/user_api_spec.rb
194
+ - spec/api_client_spec.rb
195
+ - spec/configuration_spec.rb
196
+ - spec/models/broker_account_type_spec.rb
197
+ - spec/models/candle_resolution_spec.rb
198
+ - spec/models/candle_spec.rb
199
+ - spec/models/candles_response_spec.rb
200
+ - spec/models/candles_spec.rb
201
+ - spec/models/currencies_spec.rb
202
+ - spec/models/currency_position_spec.rb
203
+ - spec/models/currency_spec.rb
204
+ - spec/models/empty_spec.rb
205
+ - spec/models/error_payload_spec.rb
206
+ - spec/models/error_spec.rb
207
+ - spec/models/instrument_type_spec.rb
208
+ - spec/models/limit_order_request_spec.rb
209
+ - spec/models/limit_order_response_spec.rb
210
+ - spec/models/market_instrument_list_response_spec.rb
211
+ - spec/models/market_instrument_list_spec.rb
212
+ - spec/models/market_instrument_response_spec.rb
213
+ - spec/models/market_instrument_spec.rb
214
+ - spec/models/market_order_request_spec.rb
215
+ - spec/models/market_order_response_spec.rb
216
+ - spec/models/money_amount_spec.rb
217
+ - spec/models/operation_spec.rb
218
+ - spec/models/operation_status_spec.rb
219
+ - spec/models/operation_trade_spec.rb
220
+ - spec/models/operation_type_spec.rb
221
+ - spec/models/operation_type_with_commission_spec.rb
222
+ - spec/models/operations_response_spec.rb
223
+ - spec/models/operations_spec.rb
224
+ - spec/models/order_response_spec.rb
225
+ - spec/models/order_spec.rb
226
+ - spec/models/order_status_spec.rb
227
+ - spec/models/order_type_spec.rb
228
+ - spec/models/orderbook_response_spec.rb
229
+ - spec/models/orderbook_spec.rb
230
+ - spec/models/orders_response_spec.rb
231
+ - spec/models/placed_limit_order_spec.rb
232
+ - spec/models/placed_market_order_spec.rb
233
+ - spec/models/portfolio_currencies_response_spec.rb
234
+ - spec/models/portfolio_position_spec.rb
235
+ - spec/models/portfolio_response_spec.rb
236
+ - spec/models/portfolio_spec.rb
237
+ - spec/models/sandbox_account_spec.rb
238
+ - spec/models/sandbox_currency_spec.rb
239
+ - spec/models/sandbox_register_request_spec.rb
240
+ - spec/models/sandbox_register_response_spec.rb
241
+ - spec/models/sandbox_set_currency_balance_request_spec.rb
242
+ - spec/models/sandbox_set_position_balance_request_spec.rb
243
+ - spec/models/search_market_instrument_response_spec.rb
244
+ - spec/models/search_market_instrument_spec.rb
245
+ - spec/models/trade_status_spec.rb
246
+ - spec/models/user_account_spec.rb
247
+ - spec/models/user_accounts_response_spec.rb
248
+ - spec/models/user_accounts_spec.rb
249
+ - spec/spec_helper.rb
250
+ - tinkoff_invest_client.gemspec
251
+ homepage: https://github.com/ThinkAndRun/tinkoff_invest_client
252
+ licenses:
253
+ - MIT
254
+ metadata: {}
255
+ post_install_message:
256
+ rdoc_options: []
257
+ require_paths:
258
+ - lib
259
+ required_ruby_version: !ruby/object:Gem::Requirement
260
+ requirements:
261
+ - - ">="
262
+ - !ruby/object:Gem::Version
263
+ version: '2.4'
264
+ required_rubygems_version: !ruby/object:Gem::Requirement
265
+ requirements:
266
+ - - ">="
267
+ - !ruby/object:Gem::Version
268
+ version: '0'
269
+ requirements: []
270
+ rubygems_version: 3.0.6
271
+ signing_key:
272
+ specification_version: 4
273
+ summary: Tinkoff Invest OpenAPI Ruby Gem
274
+ test_files:
275
+ - spec/api/operations_api_spec.rb
276
+ - spec/api/orders_api_spec.rb
277
+ - spec/api/user_api_spec.rb
278
+ - spec/api/sandbox_api_spec.rb
279
+ - spec/api/market_api_spec.rb
280
+ - spec/api/portfolio_api_spec.rb
281
+ - spec/api_client_spec.rb
282
+ - spec/configuration_spec.rb
283
+ - spec/models/error_spec.rb
284
+ - spec/models/sandbox_register_request_spec.rb
285
+ - spec/models/portfolio_spec.rb
286
+ - spec/models/orderbook_spec.rb
287
+ - spec/models/limit_order_response_spec.rb
288
+ - spec/models/orderbook_response_spec.rb
289
+ - spec/models/user_accounts_spec.rb
290
+ - spec/models/portfolio_response_spec.rb
291
+ - spec/models/operations_spec.rb
292
+ - spec/models/order_status_spec.rb
293
+ - spec/models/user_account_spec.rb
294
+ - spec/models/currencies_spec.rb
295
+ - spec/models/candles_response_spec.rb
296
+ - spec/models/limit_order_request_spec.rb
297
+ - spec/models/order_response_spec.rb
298
+ - spec/models/orders_response_spec.rb
299
+ - spec/models/operations_response_spec.rb
300
+ - spec/models/operation_status_spec.rb
301
+ - spec/models/sandbox_currency_spec.rb
302
+ - spec/models/order_type_spec.rb
303
+ - spec/models/market_instrument_list_spec.rb
304
+ - spec/models/money_amount_spec.rb
305
+ - spec/models/trade_status_spec.rb
306
+ - spec/models/market_instrument_spec.rb
307
+ - spec/models/error_payload_spec.rb
308
+ - spec/models/market_instrument_response_spec.rb
309
+ - spec/models/placed_market_order_spec.rb
310
+ - spec/models/operation_type_with_commission_spec.rb
311
+ - spec/models/sandbox_account_spec.rb
312
+ - spec/models/sandbox_register_response_spec.rb
313
+ - spec/models/candles_spec.rb
314
+ - spec/models/currency_spec.rb
315
+ - spec/models/market_order_request_spec.rb
316
+ - spec/models/user_accounts_response_spec.rb
317
+ - spec/models/search_market_instrument_response_spec.rb
318
+ - spec/models/placed_limit_order_spec.rb
319
+ - spec/models/candle_resolution_spec.rb
320
+ - spec/models/currency_position_spec.rb
321
+ - spec/models/empty_spec.rb
322
+ - spec/models/order_spec.rb
323
+ - spec/models/sandbox_set_position_balance_request_spec.rb
324
+ - spec/models/candle_spec.rb
325
+ - spec/models/portfolio_position_spec.rb
326
+ - spec/models/market_instrument_list_response_spec.rb
327
+ - spec/models/operation_spec.rb
328
+ - spec/models/portfolio_currencies_response_spec.rb
329
+ - spec/models/operation_trade_spec.rb
330
+ - spec/models/broker_account_type_spec.rb
331
+ - spec/models/instrument_type_spec.rb
332
+ - spec/models/sandbox_set_currency_balance_request_spec.rb
333
+ - spec/models/operation_type_spec.rb
334
+ - spec/models/search_market_instrument_spec.rb
335
+ - spec/models/market_order_response_spec.rb
336
+ - spec/spec_helper.rb