kabustation_client 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/gem-push.yml +36 -0
- data/.github/workflows/ruby.yml +38 -0
- data/.gitignore +39 -0
- data/.gitlab-ci.yml +26 -0
- data/.openapi-generator/FILES +162 -0
- data/.openapi-generator/VERSION +1 -0
- data/.openapi-generator-ignore +23 -0
- data/.rspec +2 -0
- data/.rubocop.yml +148 -0
- data/.travis.yml +11 -0
- data/README.md +74 -9
- data/bin/console +11 -0
- data/bin/setup +8 -0
- data/docs/InfoApi.md +157 -93
- data/docs/OrderApi.md +48 -28
- data/docs/RegisterApi.md +37 -23
- data/docs/RequestSendOrderDerivFutureReverseLimitOrder.md +1 -1
- data/docs/RequestSendOrderReverseLimitOrder.md +1 -1
- data/docs/WalletApi.md +100 -64
- data/kabu_STATION_API.yaml +8698 -0
- data/kabustation_client.gemspec +6 -2
- data/lib/kabustation_client/api/info_api.rb +52 -143
- data/lib/kabustation_client/api/order_api.rb +16 -44
- data/lib/kabustation_client/api/register_api.rb +12 -33
- data/lib/kabustation_client/api/wallet_api.rb +32 -88
- data/lib/kabustation_client/api_client.rb +1 -0
- data/lib/kabustation_client/configuration.rb +7 -0
- data/lib/kabustation_client/models/request_send_order_deriv_future_reverse_limit_order.rb +1 -1
- data/lib/kabustation_client/models/request_send_order_reverse_limit_order.rb +1 -1
- data/lib/kabustation_client/push_client.rb +53 -0
- data/lib/kabustation_client/version.rb +1 -1
- data/lib/kabustation_client.rb +3 -0
- metadata +91 -63
@@ -21,27 +21,21 @@ module KabustationClient
|
|
21
21
|
end
|
22
22
|
# ソフトリミット
|
23
23
|
# kabuステーションAPIのソフトリミット値を取得する
|
24
|
-
# @param x_api_key [String] トークン発行メソッドで取得した文字列
|
25
24
|
# @param [Hash] opts the optional parameters
|
26
25
|
# @return [ApiSoftLimitResponse]
|
27
|
-
def apisoftlimit_get(
|
28
|
-
data, _status_code, _headers = apisoftlimit_get_with_http_info(
|
26
|
+
def apisoftlimit_get(opts = {})
|
27
|
+
data, _status_code, _headers = apisoftlimit_get_with_http_info(opts)
|
29
28
|
data
|
30
29
|
end
|
31
30
|
|
32
31
|
# ソフトリミット
|
33
32
|
# kabuステーションAPIのソフトリミット値を取得する
|
34
|
-
# @param x_api_key [String] トークン発行メソッドで取得した文字列
|
35
33
|
# @param [Hash] opts the optional parameters
|
36
34
|
# @return [Array<(ApiSoftLimitResponse, Integer, Hash)>] ApiSoftLimitResponse data, response status code and response headers
|
37
|
-
def apisoftlimit_get_with_http_info(
|
35
|
+
def apisoftlimit_get_with_http_info(opts = {})
|
38
36
|
if @api_client.config.debugging
|
39
37
|
@api_client.config.logger.debug 'Calling API: InfoApi.apisoftlimit_get ...'
|
40
38
|
end
|
41
|
-
# verify the required parameter 'x_api_key' is set
|
42
|
-
if @api_client.config.client_side_validation && x_api_key.nil?
|
43
|
-
fail ArgumentError, "Missing the required parameter 'x_api_key' when calling InfoApi.apisoftlimit_get"
|
44
|
-
end
|
45
39
|
# resource path
|
46
40
|
local_var_path = '/apisoftlimit'
|
47
41
|
|
@@ -52,7 +46,6 @@ module KabustationClient
|
|
52
46
|
header_params = opts[:header_params] || {}
|
53
47
|
# HTTP header 'Accept' (if needed)
|
54
48
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
|
-
header_params[:'X-API-KEY'] = x_api_key
|
56
49
|
|
57
50
|
# form parameters
|
58
51
|
form_params = opts[:form_params] || {}
|
@@ -64,7 +57,7 @@ module KabustationClient
|
|
64
57
|
return_type = opts[:debug_return_type] || 'ApiSoftLimitResponse'
|
65
58
|
|
66
59
|
# auth_names
|
67
|
-
auth_names = opts[:debug_auth_names] || []
|
60
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
68
61
|
|
69
62
|
new_options = opts.merge(
|
70
63
|
:operation => :"InfoApi.apisoftlimit_get",
|
@@ -85,29 +78,23 @@ module KabustationClient
|
|
85
78
|
|
86
79
|
# 時価情報・板情報
|
87
80
|
# 指定した銘柄の時価情報・板情報を取得します<br> レスポンスの一部にnullが発生した場合、該当銘柄を銘柄登録をしてから、 <br>再度時価情報・板情報APIを実行してください。
|
88
|
-
# @param x_api_key [String] トークン発行メソッドで取得した文字列
|
89
81
|
# @param symbol [String] 銘柄コード <br> ※次の形式で入力してください。<br> [銘柄コード]@[市場コード]<br> ※市場コードは下記の定義値から選択してください。<br> ※SOR市場は取扱っておりませんのでご注意ください。<b>市場コード</b><br> <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>東証</td> </tr> <tr> <td>3</td> <td>名証</td> </tr> <tr> <td>5</td> <td>福証</td> </tr> <tr> <td>6</td> <td>札証</td> </tr> <tr> <td>2</td> <td>日通し</td> </tr> <tr> <td>23</td> <td>日中</td> </tr> <tr> <td>24</td> <td>夜間</td> </tr> </tbody> </table>
|
90
82
|
# @param [Hash] opts the optional parameters
|
91
83
|
# @return [BoardSuccess]
|
92
|
-
def board_get(
|
93
|
-
data, _status_code, _headers = board_get_with_http_info(
|
84
|
+
def board_get(symbol, opts = {})
|
85
|
+
data, _status_code, _headers = board_get_with_http_info(symbol, opts)
|
94
86
|
data
|
95
87
|
end
|
96
88
|
|
97
89
|
# 時価情報・板情報
|
98
90
|
# 指定した銘柄の時価情報・板情報を取得します<br> レスポンスの一部にnullが発生した場合、該当銘柄を銘柄登録をしてから、 <br>再度時価情報・板情報APIを実行してください。
|
99
|
-
# @param x_api_key [String] トークン発行メソッドで取得した文字列
|
100
91
|
# @param symbol [String] 銘柄コード <br> ※次の形式で入力してください。<br> [銘柄コード]@[市場コード]<br> ※市場コードは下記の定義値から選択してください。<br> ※SOR市場は取扱っておりませんのでご注意ください。<b>市場コード</b><br> <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>東証</td> </tr> <tr> <td>3</td> <td>名証</td> </tr> <tr> <td>5</td> <td>福証</td> </tr> <tr> <td>6</td> <td>札証</td> </tr> <tr> <td>2</td> <td>日通し</td> </tr> <tr> <td>23</td> <td>日中</td> </tr> <tr> <td>24</td> <td>夜間</td> </tr> </tbody> </table>
|
101
92
|
# @param [Hash] opts the optional parameters
|
102
93
|
# @return [Array<(BoardSuccess, Integer, Hash)>] BoardSuccess data, response status code and response headers
|
103
|
-
def board_get_with_http_info(
|
94
|
+
def board_get_with_http_info(symbol, opts = {})
|
104
95
|
if @api_client.config.debugging
|
105
96
|
@api_client.config.logger.debug 'Calling API: InfoApi.board_get ...'
|
106
97
|
end
|
107
|
-
# verify the required parameter 'x_api_key' is set
|
108
|
-
if @api_client.config.client_side_validation && x_api_key.nil?
|
109
|
-
fail ArgumentError, "Missing the required parameter 'x_api_key' when calling InfoApi.board_get"
|
110
|
-
end
|
111
98
|
# verify the required parameter 'symbol' is set
|
112
99
|
if @api_client.config.client_side_validation && symbol.nil?
|
113
100
|
fail ArgumentError, "Missing the required parameter 'symbol' when calling InfoApi.board_get"
|
@@ -122,7 +109,6 @@ module KabustationClient
|
|
122
109
|
header_params = opts[:header_params] || {}
|
123
110
|
# HTTP header 'Accept' (if needed)
|
124
111
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
125
|
-
header_params[:'X-API-KEY'] = x_api_key
|
126
112
|
|
127
113
|
# form parameters
|
128
114
|
form_params = opts[:form_params] || {}
|
@@ -134,7 +120,7 @@ module KabustationClient
|
|
134
120
|
return_type = opts[:debug_return_type] || 'BoardSuccess'
|
135
121
|
|
136
122
|
# auth_names
|
137
|
-
auth_names = opts[:debug_auth_names] || []
|
123
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
138
124
|
|
139
125
|
new_options = opts.merge(
|
140
126
|
:operation => :"InfoApi.board_get",
|
@@ -155,29 +141,23 @@ module KabustationClient
|
|
155
141
|
|
156
142
|
# 為替情報
|
157
143
|
# マネービューの情報を取得する
|
158
|
-
# @param x_api_key [String] トークン発行メソッドで取得した文字列
|
159
144
|
# @param symbol [String] 通貨 <table> <thead> <tr> <th>定義値</th> <th>内容</th> </tr> </thead> <tbody> <tr> <td>usdjpy</td> <td>USD/JPY</td> </tr> <tr> <td>eurjpy</td> <td>EUR/JPY</td> </tr> <tr> <td>gbpjpy</td> <td>GBP/JPY</td> </tr> <tr> <td>audjpy</td> <td>AUD/JPY</td> </tr> <tr> <td>chfjpy</td> <td>CHF/JPY</td> </tr> <tr> <td>cadjpy</td> <td>CAD/JPY</td> </tr> <tr> <td>nzdjpy</td> <td>NZD/JPY</td> </tr> <tr> <td>zarjpy</td> <td>ZAR/JPY</td> </tr> <tr> <td>eurusd</td> <td>EUR/USD</td> </tr> <tr> <td>gbpusd</td> <td>GBP/USD</td> </tr> <tr> <td>audusd</td> <td>AUD/USD</td> </tr> </tbody> </table>
|
160
145
|
# @param [Hash] opts the optional parameters
|
161
146
|
# @return [ExchangeResponse]
|
162
|
-
def exchange_get(
|
163
|
-
data, _status_code, _headers = exchange_get_with_http_info(
|
147
|
+
def exchange_get(symbol, opts = {})
|
148
|
+
data, _status_code, _headers = exchange_get_with_http_info(symbol, opts)
|
164
149
|
data
|
165
150
|
end
|
166
151
|
|
167
152
|
# 為替情報
|
168
153
|
# マネービューの情報を取得する
|
169
|
-
# @param x_api_key [String] トークン発行メソッドで取得した文字列
|
170
154
|
# @param symbol [String] 通貨 <table> <thead> <tr> <th>定義値</th> <th>内容</th> </tr> </thead> <tbody> <tr> <td>usdjpy</td> <td>USD/JPY</td> </tr> <tr> <td>eurjpy</td> <td>EUR/JPY</td> </tr> <tr> <td>gbpjpy</td> <td>GBP/JPY</td> </tr> <tr> <td>audjpy</td> <td>AUD/JPY</td> </tr> <tr> <td>chfjpy</td> <td>CHF/JPY</td> </tr> <tr> <td>cadjpy</td> <td>CAD/JPY</td> </tr> <tr> <td>nzdjpy</td> <td>NZD/JPY</td> </tr> <tr> <td>zarjpy</td> <td>ZAR/JPY</td> </tr> <tr> <td>eurusd</td> <td>EUR/USD</td> </tr> <tr> <td>gbpusd</td> <td>GBP/USD</td> </tr> <tr> <td>audusd</td> <td>AUD/USD</td> </tr> </tbody> </table>
|
171
155
|
# @param [Hash] opts the optional parameters
|
172
156
|
# @return [Array<(ExchangeResponse, Integer, Hash)>] ExchangeResponse data, response status code and response headers
|
173
|
-
def exchange_get_with_http_info(
|
157
|
+
def exchange_get_with_http_info(symbol, opts = {})
|
174
158
|
if @api_client.config.debugging
|
175
159
|
@api_client.config.logger.debug 'Calling API: InfoApi.exchange_get ...'
|
176
160
|
end
|
177
|
-
# verify the required parameter 'x_api_key' is set
|
178
|
-
if @api_client.config.client_side_validation && x_api_key.nil?
|
179
|
-
fail ArgumentError, "Missing the required parameter 'x_api_key' when calling InfoApi.exchange_get"
|
180
|
-
end
|
181
161
|
# verify the required parameter 'symbol' is set
|
182
162
|
if @api_client.config.client_side_validation && symbol.nil?
|
183
163
|
fail ArgumentError, "Missing the required parameter 'symbol' when calling InfoApi.exchange_get"
|
@@ -197,7 +177,6 @@ module KabustationClient
|
|
197
177
|
header_params = opts[:header_params] || {}
|
198
178
|
# HTTP header 'Accept' (if needed)
|
199
179
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
200
|
-
header_params[:'X-API-KEY'] = x_api_key
|
201
180
|
|
202
181
|
# form parameters
|
203
182
|
form_params = opts[:form_params] || {}
|
@@ -209,7 +188,7 @@ module KabustationClient
|
|
209
188
|
return_type = opts[:debug_return_type] || 'ExchangeResponse'
|
210
189
|
|
211
190
|
# auth_names
|
212
|
-
auth_names = opts[:debug_auth_names] || []
|
191
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
213
192
|
|
214
193
|
new_options = opts.merge(
|
215
194
|
:operation => :"InfoApi.exchange_get",
|
@@ -230,29 +209,23 @@ module KabustationClient
|
|
230
209
|
|
231
210
|
# プレミアム料取得
|
232
211
|
# 指定した銘柄のプレミアム料を取得するAPI
|
233
|
-
# @param x_api_key [String] トークン発行メソッドで取得した文字列
|
234
212
|
# @param symbol [String] 銘柄コード
|
235
213
|
# @param [Hash] opts the optional parameters
|
236
214
|
# @return [MarginPremiumResponse]
|
237
|
-
def marginpremium_get(
|
238
|
-
data, _status_code, _headers = marginpremium_get_with_http_info(
|
215
|
+
def marginpremium_get(symbol, opts = {})
|
216
|
+
data, _status_code, _headers = marginpremium_get_with_http_info(symbol, opts)
|
239
217
|
data
|
240
218
|
end
|
241
219
|
|
242
220
|
# プレミアム料取得
|
243
221
|
# 指定した銘柄のプレミアム料を取得するAPI
|
244
|
-
# @param x_api_key [String] トークン発行メソッドで取得した文字列
|
245
222
|
# @param symbol [String] 銘柄コード
|
246
223
|
# @param [Hash] opts the optional parameters
|
247
224
|
# @return [Array<(MarginPremiumResponse, Integer, Hash)>] MarginPremiumResponse data, response status code and response headers
|
248
|
-
def marginpremium_get_with_http_info(
|
225
|
+
def marginpremium_get_with_http_info(symbol, opts = {})
|
249
226
|
if @api_client.config.debugging
|
250
227
|
@api_client.config.logger.debug 'Calling API: InfoApi.marginpremium_get ...'
|
251
228
|
end
|
252
|
-
# verify the required parameter 'x_api_key' is set
|
253
|
-
if @api_client.config.client_side_validation && x_api_key.nil?
|
254
|
-
fail ArgumentError, "Missing the required parameter 'x_api_key' when calling InfoApi.marginpremium_get"
|
255
|
-
end
|
256
229
|
# verify the required parameter 'symbol' is set
|
257
230
|
if @api_client.config.client_side_validation && symbol.nil?
|
258
231
|
fail ArgumentError, "Missing the required parameter 'symbol' when calling InfoApi.marginpremium_get"
|
@@ -267,7 +240,6 @@ module KabustationClient
|
|
267
240
|
header_params = opts[:header_params] || {}
|
268
241
|
# HTTP header 'Accept' (if needed)
|
269
242
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
270
|
-
header_params[:'X-API-KEY'] = x_api_key
|
271
243
|
|
272
244
|
# form parameters
|
273
245
|
form_params = opts[:form_params] || {}
|
@@ -279,7 +251,7 @@ module KabustationClient
|
|
279
251
|
return_type = opts[:debug_return_type] || 'MarginPremiumResponse'
|
280
252
|
|
281
253
|
# auth_names
|
282
|
-
auth_names = opts[:debug_auth_names] || []
|
254
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
283
255
|
|
284
256
|
new_options = opts.merge(
|
285
257
|
:operation => :"InfoApi.marginpremium_get",
|
@@ -300,7 +272,6 @@ module KabustationClient
|
|
300
272
|
|
301
273
|
# 注文約定照会
|
302
274
|
# 注文一覧を取得します。<br> ※下記Queryパラメータは任意設定となります。
|
303
|
-
# @param x_api_key [String] トークン発行メソッドで取得した文字列
|
304
275
|
# @param [Hash] opts the optional parameters
|
305
276
|
# @option opts [String] :product 取得する商品 <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>0</td> <td>すべて </td> </tr> <tr> <td>1</td> <td>現物</td> </tr> <tr> <td>2</td> <td>信用</td> </tr> <tr> <td>3</td> <td>先物</td> </tr> <tr> <td>4</td> <td>OP</td> </tr> </tbody> </table>
|
306
277
|
# @option opts [String] :id 注文番号<br> ※指定された注文番号と一致する注文のみレスポンスします。<br> ※指定された注文番号との比較では大文字小文字を区別しません。<br> ※複数の注文番号を指定することはできません。
|
@@ -311,14 +282,13 @@ module KabustationClient
|
|
311
282
|
# @option opts [String] :side 売買区分<br> ※指定された売買区分と一致する注文のみレスポンスします。<br> ※フィルタには数字の入力のみ受け付けます。<br> ※複数の売買区分を指定することができません。 <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>売</td> </tr> <tr> <td>2</td> <td>買</td> </tr> </tbody> </table>
|
312
283
|
# @option opts [String] :cashmargin 取引区分<br> ※指定された取引区分と一致する注文のみレスポンスします。<br> ※フィルタには数字の入力のみ受け付けます。<br> ※複数の取引区分を指定することができません。 <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>2</td> <td>新規</td> </tr> <tr> <td>3</td> <td>返済</td> </tr> </tbody> </table>
|
313
284
|
# @return [Array<OrdersSuccess>]
|
314
|
-
def orders_get(
|
315
|
-
data, _status_code, _headers = orders_get_with_http_info(
|
285
|
+
def orders_get(opts = {})
|
286
|
+
data, _status_code, _headers = orders_get_with_http_info(opts)
|
316
287
|
data
|
317
288
|
end
|
318
289
|
|
319
290
|
# 注文約定照会
|
320
291
|
# 注文一覧を取得します。<br> ※下記Queryパラメータは任意設定となります。
|
321
|
-
# @param x_api_key [String] トークン発行メソッドで取得した文字列
|
322
292
|
# @param [Hash] opts the optional parameters
|
323
293
|
# @option opts [String] :product 取得する商品 <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>0</td> <td>すべて </td> </tr> <tr> <td>1</td> <td>現物</td> </tr> <tr> <td>2</td> <td>信用</td> </tr> <tr> <td>3</td> <td>先物</td> </tr> <tr> <td>4</td> <td>OP</td> </tr> </tbody> </table>
|
324
294
|
# @option opts [String] :id 注文番号<br> ※指定された注文番号と一致する注文のみレスポンスします。<br> ※指定された注文番号との比較では大文字小文字を区別しません。<br> ※複数の注文番号を指定することはできません。
|
@@ -329,14 +299,10 @@ module KabustationClient
|
|
329
299
|
# @option opts [String] :side 売買区分<br> ※指定された売買区分と一致する注文のみレスポンスします。<br> ※フィルタには数字の入力のみ受け付けます。<br> ※複数の売買区分を指定することができません。 <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>売</td> </tr> <tr> <td>2</td> <td>買</td> </tr> </tbody> </table>
|
330
300
|
# @option opts [String] :cashmargin 取引区分<br> ※指定された取引区分と一致する注文のみレスポンスします。<br> ※フィルタには数字の入力のみ受け付けます。<br> ※複数の取引区分を指定することができません。 <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>2</td> <td>新規</td> </tr> <tr> <td>3</td> <td>返済</td> </tr> </tbody> </table>
|
331
301
|
# @return [Array<(Array<OrdersSuccess>, Integer, Hash)>] Array<OrdersSuccess> data, response status code and response headers
|
332
|
-
def orders_get_with_http_info(
|
302
|
+
def orders_get_with_http_info(opts = {})
|
333
303
|
if @api_client.config.debugging
|
334
304
|
@api_client.config.logger.debug 'Calling API: InfoApi.orders_get ...'
|
335
305
|
end
|
336
|
-
# verify the required parameter 'x_api_key' is set
|
337
|
-
if @api_client.config.client_side_validation && x_api_key.nil?
|
338
|
-
fail ArgumentError, "Missing the required parameter 'x_api_key' when calling InfoApi.orders_get"
|
339
|
-
end
|
340
306
|
allowable_values = ["0", "1", "2", "3", "4"]
|
341
307
|
if @api_client.config.client_side_validation && opts[:'product'] && !allowable_values.include?(opts[:'product'])
|
342
308
|
fail ArgumentError, "invalid value for \"product\", must be one of #{allowable_values}"
|
@@ -371,7 +337,6 @@ module KabustationClient
|
|
371
337
|
header_params = opts[:header_params] || {}
|
372
338
|
# HTTP header 'Accept' (if needed)
|
373
339
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
374
|
-
header_params[:'X-API-KEY'] = x_api_key
|
375
340
|
|
376
341
|
# form parameters
|
377
342
|
form_params = opts[:form_params] || {}
|
@@ -383,7 +348,7 @@ module KabustationClient
|
|
383
348
|
return_type = opts[:debug_return_type] || 'Array<OrdersSuccess>'
|
384
349
|
|
385
350
|
# auth_names
|
386
|
-
auth_names = opts[:debug_auth_names] || []
|
351
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
387
352
|
|
388
353
|
new_options = opts.merge(
|
389
354
|
:operation => :"InfoApi.orders_get",
|
@@ -404,35 +369,29 @@ module KabustationClient
|
|
404
369
|
|
405
370
|
# 残高照会
|
406
371
|
# 残高一覧を取得します。<br>※下記Queryパラメータは任意設定となります。
|
407
|
-
# @param x_api_key [String] トークン発行メソッドで取得した文字列
|
408
372
|
# @param [Hash] opts the optional parameters
|
409
373
|
# @option opts [String] :product 取得する商品 <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>0</td> <td>すべて</td> </tr> <tr> <td>1</td> <td>現物</td> </tr> <tr> <td>2</td> <td>信用</td> </tr> <tr> <td>3</td> <td>先物</td> </tr> <tr> <td>4</td> <td>OP</td> </tr> </tbody> </table>
|
410
374
|
# @option opts [String] :symbol 銘柄コード<br>※指定された銘柄コードと一致するポジションのみレスポンスします。<br>※複数の銘柄コードを指定することはできません。
|
411
375
|
# @option opts [String] :side 売買区分フィルタ<br> 指定された売買区分と一致する注文を返す <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>売</td> </tr> <tr> <td>2</td> <td>買</td> </tr> </tbody> </table>
|
412
376
|
# @option opts [String] :addinfo 追加情報出力フラグ(未指定時:true)<br> ※追加情報は、「現在値」、「評価金額」、「評価損益額」、「評価損益率」を意味します。 <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>true</td> <td>追加情報を出力する</td> </tr> <tr> <td>false</td> <td>追加情報を出力しない</td> </tr> </tbody> </table>
|
413
377
|
# @return [Array<PositionsSuccess>]
|
414
|
-
def positions_get(
|
415
|
-
data, _status_code, _headers = positions_get_with_http_info(
|
378
|
+
def positions_get(opts = {})
|
379
|
+
data, _status_code, _headers = positions_get_with_http_info(opts)
|
416
380
|
data
|
417
381
|
end
|
418
382
|
|
419
383
|
# 残高照会
|
420
384
|
# 残高一覧を取得します。<br>※下記Queryパラメータは任意設定となります。
|
421
|
-
# @param x_api_key [String] トークン発行メソッドで取得した文字列
|
422
385
|
# @param [Hash] opts the optional parameters
|
423
386
|
# @option opts [String] :product 取得する商品 <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>0</td> <td>すべて</td> </tr> <tr> <td>1</td> <td>現物</td> </tr> <tr> <td>2</td> <td>信用</td> </tr> <tr> <td>3</td> <td>先物</td> </tr> <tr> <td>4</td> <td>OP</td> </tr> </tbody> </table>
|
424
387
|
# @option opts [String] :symbol 銘柄コード<br>※指定された銘柄コードと一致するポジションのみレスポンスします。<br>※複数の銘柄コードを指定することはできません。
|
425
388
|
# @option opts [String] :side 売買区分フィルタ<br> 指定された売買区分と一致する注文を返す <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>売</td> </tr> <tr> <td>2</td> <td>買</td> </tr> </tbody> </table>
|
426
389
|
# @option opts [String] :addinfo 追加情報出力フラグ(未指定時:true)<br> ※追加情報は、「現在値」、「評価金額」、「評価損益額」、「評価損益率」を意味します。 <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>true</td> <td>追加情報を出力する</td> </tr> <tr> <td>false</td> <td>追加情報を出力しない</td> </tr> </tbody> </table>
|
427
390
|
# @return [Array<(Array<PositionsSuccess>, Integer, Hash)>] Array<PositionsSuccess> data, response status code and response headers
|
428
|
-
def positions_get_with_http_info(
|
391
|
+
def positions_get_with_http_info(opts = {})
|
429
392
|
if @api_client.config.debugging
|
430
393
|
@api_client.config.logger.debug 'Calling API: InfoApi.positions_get ...'
|
431
394
|
end
|
432
|
-
# verify the required parameter 'x_api_key' is set
|
433
|
-
if @api_client.config.client_side_validation && x_api_key.nil?
|
434
|
-
fail ArgumentError, "Missing the required parameter 'x_api_key' when calling InfoApi.positions_get"
|
435
|
-
end
|
436
395
|
allowable_values = ["0", "1", "2", "3", "4"]
|
437
396
|
if @api_client.config.client_side_validation && opts[:'product'] && !allowable_values.include?(opts[:'product'])
|
438
397
|
fail ArgumentError, "invalid value for \"product\", must be one of #{allowable_values}"
|
@@ -455,7 +414,6 @@ module KabustationClient
|
|
455
414
|
header_params = opts[:header_params] || {}
|
456
415
|
# HTTP header 'Accept' (if needed)
|
457
416
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
458
|
-
header_params[:'X-API-KEY'] = x_api_key
|
459
417
|
|
460
418
|
# form parameters
|
461
419
|
form_params = opts[:form_params] || {}
|
@@ -467,7 +425,7 @@ module KabustationClient
|
|
467
425
|
return_type = opts[:debug_return_type] || 'Array<PositionsSuccess>'
|
468
426
|
|
469
427
|
# auth_names
|
470
|
-
auth_names = opts[:debug_auth_names] || []
|
428
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
471
429
|
|
472
430
|
new_options = opts.merge(
|
473
431
|
:operation => :"InfoApi.positions_get",
|
@@ -488,29 +446,23 @@ module KabustationClient
|
|
488
446
|
|
489
447
|
# 優先市場
|
490
448
|
# 株式の優先市場を取得する
|
491
|
-
# @param x_api_key [String] トークン発行メソッドで取得した文字列
|
492
449
|
# @param symbol [String] 銘柄コード
|
493
450
|
# @param [Hash] opts the optional parameters
|
494
451
|
# @return [PrimaryExchangeResponse]
|
495
|
-
def primary_exchange_get(
|
496
|
-
data, _status_code, _headers = primary_exchange_get_with_http_info(
|
452
|
+
def primary_exchange_get(symbol, opts = {})
|
453
|
+
data, _status_code, _headers = primary_exchange_get_with_http_info(symbol, opts)
|
497
454
|
data
|
498
455
|
end
|
499
456
|
|
500
457
|
# 優先市場
|
501
458
|
# 株式の優先市場を取得する
|
502
|
-
# @param x_api_key [String] トークン発行メソッドで取得した文字列
|
503
459
|
# @param symbol [String] 銘柄コード
|
504
460
|
# @param [Hash] opts the optional parameters
|
505
461
|
# @return [Array<(PrimaryExchangeResponse, Integer, Hash)>] PrimaryExchangeResponse data, response status code and response headers
|
506
|
-
def primary_exchange_get_with_http_info(
|
462
|
+
def primary_exchange_get_with_http_info(symbol, opts = {})
|
507
463
|
if @api_client.config.debugging
|
508
464
|
@api_client.config.logger.debug 'Calling API: InfoApi.primary_exchange_get ...'
|
509
465
|
end
|
510
|
-
# verify the required parameter 'x_api_key' is set
|
511
|
-
if @api_client.config.client_side_validation && x_api_key.nil?
|
512
|
-
fail ArgumentError, "Missing the required parameter 'x_api_key' when calling InfoApi.primary_exchange_get"
|
513
|
-
end
|
514
466
|
# verify the required parameter 'symbol' is set
|
515
467
|
if @api_client.config.client_side_validation && symbol.nil?
|
516
468
|
fail ArgumentError, "Missing the required parameter 'symbol' when calling InfoApi.primary_exchange_get"
|
@@ -525,7 +477,6 @@ module KabustationClient
|
|
525
477
|
header_params = opts[:header_params] || {}
|
526
478
|
# HTTP header 'Accept' (if needed)
|
527
479
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
528
|
-
header_params[:'X-API-KEY'] = x_api_key
|
529
480
|
|
530
481
|
# form parameters
|
531
482
|
form_params = opts[:form_params] || {}
|
@@ -537,7 +488,7 @@ module KabustationClient
|
|
537
488
|
return_type = opts[:debug_return_type] || 'PrimaryExchangeResponse'
|
538
489
|
|
539
490
|
# auth_names
|
540
|
-
auth_names = opts[:debug_auth_names] || []
|
491
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
541
492
|
|
542
493
|
new_options = opts.merge(
|
543
494
|
:operation => :"InfoApi.primary_exchange_get",
|
@@ -558,31 +509,25 @@ module KabustationClient
|
|
558
509
|
|
559
510
|
# 詳細ランキング
|
560
511
|
# 詳細ランキング画面と同様の各種ランキングを返します。 <br>ランキングの対象日はkabuステーションが保持している当日のデータとなります。 <br>※株価情報ランキング、業種別指数ランキングは、下記の時間帯でデータがクリアされるため、 <br>その間の詳細ランキングAPIは空レスポンスとなります。 <br>データクリア:平日7:53頃-9:00過ぎ頃 <br>※信用情報ランキングは毎週第3営業日の7:55頃にデータが更新されます。
|
561
|
-
# @param x_api_key [String] トークン発行メソッドで取得した文字列
|
562
512
|
# @param type [String] 種別<br> ※信用情報ランキングに「福証」「札証」を指定した場合は、空レスポンスになります <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>値上がり率(デフォルト)</td> </tr> <tr> <td>2</td> <td>値下がり率</td> </tr> <tr> <td>3</td> <td>売買高上位</td> </tr> <tr> <td>4</td> <td>売買代金</td> </tr> <tr> <td>5</td> <td>TICK回数</td> </tr> <tr> <td>6</td> <td>売買高急増</td> </tr> <tr> <td>7</td> <td>売買代金急増</td> </tr> <tr> <td>8</td> <td>信用売残増</td> </tr> <tr> <td>9</td> <td>信用売残減</td> </tr> <tr> <td>10</td> <td>信用買残増</td> </tr> <tr> <td>11</td> <td>信用買残減</td> </tr> <tr> <td>12</td> <td>信用高倍率</td> </tr> <tr> <td>13</td> <td>信用低倍率</td> </tr> <tr> <td>14</td> <td>業種別値上がり率</td> </tr> <tr> <td>15</td> <td>業種別値下がり率</td> </tr> </tbody> </table>
|
563
513
|
# @param exchange_division [String] 市場<br> ※業種別値上がり率・値下がり率に市場を指定しても無視されます <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>ALL</td> <td>全市場(デフォルト)</td> </tr> <tr> <td>T</td> <td>東証全体</td> </tr> <tr> <td>TP</td> <td>東証プライム</td> </tr> <tr> <td>TS</td> <td>東証スタンダード</td> </tr> <tr> <td>TG</td> <td>グロース250</td> </tr> <tr> <td>M</td> <td>名証</td> </tr> <tr> <td>FK</td> <td>福証</td> </tr> <tr> <td>S</td> <td>札証</td> </tr> </tbody> </table>
|
564
514
|
# @param [Hash] opts the optional parameters
|
565
515
|
# @return [RankingGet200Response]
|
566
|
-
def ranking_get(
|
567
|
-
data, _status_code, _headers = ranking_get_with_http_info(
|
516
|
+
def ranking_get(type, exchange_division, opts = {})
|
517
|
+
data, _status_code, _headers = ranking_get_with_http_info(type, exchange_division, opts)
|
568
518
|
data
|
569
519
|
end
|
570
520
|
|
571
521
|
# 詳細ランキング
|
572
522
|
# 詳細ランキング画面と同様の各種ランキングを返します。 <br>ランキングの対象日はkabuステーションが保持している当日のデータとなります。 <br>※株価情報ランキング、業種別指数ランキングは、下記の時間帯でデータがクリアされるため、 <br>その間の詳細ランキングAPIは空レスポンスとなります。 <br>データクリア:平日7:53頃-9:00過ぎ頃 <br>※信用情報ランキングは毎週第3営業日の7:55頃にデータが更新されます。
|
573
|
-
# @param x_api_key [String] トークン発行メソッドで取得した文字列
|
574
523
|
# @param type [String] 種別<br> ※信用情報ランキングに「福証」「札証」を指定した場合は、空レスポンスになります <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>値上がり率(デフォルト)</td> </tr> <tr> <td>2</td> <td>値下がり率</td> </tr> <tr> <td>3</td> <td>売買高上位</td> </tr> <tr> <td>4</td> <td>売買代金</td> </tr> <tr> <td>5</td> <td>TICK回数</td> </tr> <tr> <td>6</td> <td>売買高急増</td> </tr> <tr> <td>7</td> <td>売買代金急増</td> </tr> <tr> <td>8</td> <td>信用売残増</td> </tr> <tr> <td>9</td> <td>信用売残減</td> </tr> <tr> <td>10</td> <td>信用買残増</td> </tr> <tr> <td>11</td> <td>信用買残減</td> </tr> <tr> <td>12</td> <td>信用高倍率</td> </tr> <tr> <td>13</td> <td>信用低倍率</td> </tr> <tr> <td>14</td> <td>業種別値上がり率</td> </tr> <tr> <td>15</td> <td>業種別値下がり率</td> </tr> </tbody> </table>
|
575
524
|
# @param exchange_division [String] 市場<br> ※業種別値上がり率・値下がり率に市場を指定しても無視されます <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>ALL</td> <td>全市場(デフォルト)</td> </tr> <tr> <td>T</td> <td>東証全体</td> </tr> <tr> <td>TP</td> <td>東証プライム</td> </tr> <tr> <td>TS</td> <td>東証スタンダード</td> </tr> <tr> <td>TG</td> <td>グロース250</td> </tr> <tr> <td>M</td> <td>名証</td> </tr> <tr> <td>FK</td> <td>福証</td> </tr> <tr> <td>S</td> <td>札証</td> </tr> </tbody> </table>
|
576
525
|
# @param [Hash] opts the optional parameters
|
577
526
|
# @return [Array<(RankingGet200Response, Integer, Hash)>] RankingGet200Response data, response status code and response headers
|
578
|
-
def ranking_get_with_http_info(
|
527
|
+
def ranking_get_with_http_info(type, exchange_division, opts = {})
|
579
528
|
if @api_client.config.debugging
|
580
529
|
@api_client.config.logger.debug 'Calling API: InfoApi.ranking_get ...'
|
581
530
|
end
|
582
|
-
# verify the required parameter 'x_api_key' is set
|
583
|
-
if @api_client.config.client_side_validation && x_api_key.nil?
|
584
|
-
fail ArgumentError, "Missing the required parameter 'x_api_key' when calling InfoApi.ranking_get"
|
585
|
-
end
|
586
531
|
# verify the required parameter 'type' is set
|
587
532
|
if @api_client.config.client_side_validation && type.nil?
|
588
533
|
fail ArgumentError, "Missing the required parameter 'type' when calling InfoApi.ranking_get"
|
@@ -613,7 +558,6 @@ module KabustationClient
|
|
613
558
|
header_params = opts[:header_params] || {}
|
614
559
|
# HTTP header 'Accept' (if needed)
|
615
560
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
616
|
-
header_params[:'X-API-KEY'] = x_api_key
|
617
561
|
|
618
562
|
# form parameters
|
619
563
|
form_params = opts[:form_params] || {}
|
@@ -625,7 +569,7 @@ module KabustationClient
|
|
625
569
|
return_type = opts[:debug_return_type] || 'RankingGet200Response'
|
626
570
|
|
627
571
|
# auth_names
|
628
|
-
auth_names = opts[:debug_auth_names] || []
|
572
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
629
573
|
|
630
574
|
new_options = opts.merge(
|
631
575
|
:operation => :"InfoApi.ranking_get",
|
@@ -646,29 +590,23 @@ module KabustationClient
|
|
646
590
|
|
647
591
|
# 規制情報
|
648
592
|
# 規制情報+空売り規制情報を取得する
|
649
|
-
# @param x_api_key [String] トークン発行メソッドで取得した文字列
|
650
593
|
# @param symbol [String] 銘柄コード <br> ※次の形式で入力してください。<br> [銘柄コード]@[市場コード]<br> ※市場コードは下記の定義値から選択してください。 <b>市場コード</b> <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>東証</td> </tr> <tr> <td>3</td> <td>名証</td> </tr> <tr> <td>5</td> <td>福証</td> </tr> <tr> <td>6</td> <td>札証</td> </tr> </tbody> </table>
|
651
594
|
# @param [Hash] opts the optional parameters
|
652
595
|
# @return [RegulationsResponse]
|
653
|
-
def regulations_get(
|
654
|
-
data, _status_code, _headers = regulations_get_with_http_info(
|
596
|
+
def regulations_get(symbol, opts = {})
|
597
|
+
data, _status_code, _headers = regulations_get_with_http_info(symbol, opts)
|
655
598
|
data
|
656
599
|
end
|
657
600
|
|
658
601
|
# 規制情報
|
659
602
|
# 規制情報+空売り規制情報を取得する
|
660
|
-
# @param x_api_key [String] トークン発行メソッドで取得した文字列
|
661
603
|
# @param symbol [String] 銘柄コード <br> ※次の形式で入力してください。<br> [銘柄コード]@[市場コード]<br> ※市場コードは下記の定義値から選択してください。 <b>市場コード</b> <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>東証</td> </tr> <tr> <td>3</td> <td>名証</td> </tr> <tr> <td>5</td> <td>福証</td> </tr> <tr> <td>6</td> <td>札証</td> </tr> </tbody> </table>
|
662
604
|
# @param [Hash] opts the optional parameters
|
663
605
|
# @return [Array<(RegulationsResponse, Integer, Hash)>] RegulationsResponse data, response status code and response headers
|
664
|
-
def regulations_get_with_http_info(
|
606
|
+
def regulations_get_with_http_info(symbol, opts = {})
|
665
607
|
if @api_client.config.debugging
|
666
608
|
@api_client.config.logger.debug 'Calling API: InfoApi.regulations_get ...'
|
667
609
|
end
|
668
|
-
# verify the required parameter 'x_api_key' is set
|
669
|
-
if @api_client.config.client_side_validation && x_api_key.nil?
|
670
|
-
fail ArgumentError, "Missing the required parameter 'x_api_key' when calling InfoApi.regulations_get"
|
671
|
-
end
|
672
610
|
# verify the required parameter 'symbol' is set
|
673
611
|
if @api_client.config.client_side_validation && symbol.nil?
|
674
612
|
fail ArgumentError, "Missing the required parameter 'symbol' when calling InfoApi.regulations_get"
|
@@ -683,7 +621,6 @@ module KabustationClient
|
|
683
621
|
header_params = opts[:header_params] || {}
|
684
622
|
# HTTP header 'Accept' (if needed)
|
685
623
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
686
|
-
header_params[:'X-API-KEY'] = x_api_key
|
687
624
|
|
688
625
|
# form parameters
|
689
626
|
form_params = opts[:form_params] || {}
|
@@ -695,7 +632,7 @@ module KabustationClient
|
|
695
632
|
return_type = opts[:debug_return_type] || 'RegulationsResponse'
|
696
633
|
|
697
634
|
# auth_names
|
698
|
-
auth_names = opts[:debug_auth_names] || []
|
635
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
699
636
|
|
700
637
|
new_options = opts.merge(
|
701
638
|
:operation => :"InfoApi.regulations_get",
|
@@ -716,31 +653,25 @@ module KabustationClient
|
|
716
653
|
|
717
654
|
# 銘柄情報
|
718
655
|
# 指定した銘柄情報を取得します
|
719
|
-
# @param x_api_key [String] トークン発行メソッドで取得した文字列
|
720
656
|
# @param symbol [String] 銘柄コード <br> ※次の形式で入力してください。<br> [銘柄コード]@[市場コード]<br> ※市場コードは下記の定義値から選択してください。<br> ※SOR市場は取扱っておりませんのでご注意ください。<b>市場コード</b><br> <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>東証</td> </tr> <tr> <td>3</td> <td>名証</td> </tr> <tr> <td>5</td> <td>福証</td> </tr> <tr> <td>6</td> <td>札証</td> </tr> <tr> <td>2</td> <td>日通し</td> </tr> <tr> <td>23</td> <td>日中</td> </tr> <tr> <td>24</td> <td>夜間</td> </tr> </tbody> </table>
|
721
657
|
# @param [Hash] opts the optional parameters
|
722
658
|
# @option opts [String] :addinfo 追加情報出力フラグ(未指定時:true)<br> ※追加情報は、「時価総額」、「発行済み株式数」、「決算期日」、「清算値」を意味します。 <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>true</td> <td>追加情報を出力する</td> </tr> <tr> <td>false</td> <td>追加情報を出力しない</td> </tr> </tbody> </table>
|
723
659
|
# @return [SymbolSuccess]
|
724
|
-
def symbol_get(
|
725
|
-
data, _status_code, _headers = symbol_get_with_http_info(
|
660
|
+
def symbol_get(symbol, opts = {})
|
661
|
+
data, _status_code, _headers = symbol_get_with_http_info(symbol, opts)
|
726
662
|
data
|
727
663
|
end
|
728
664
|
|
729
665
|
# 銘柄情報
|
730
666
|
# 指定した銘柄情報を取得します
|
731
|
-
# @param x_api_key [String] トークン発行メソッドで取得した文字列
|
732
667
|
# @param symbol [String] 銘柄コード <br> ※次の形式で入力してください。<br> [銘柄コード]@[市場コード]<br> ※市場コードは下記の定義値から選択してください。<br> ※SOR市場は取扱っておりませんのでご注意ください。<b>市場コード</b><br> <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>東証</td> </tr> <tr> <td>3</td> <td>名証</td> </tr> <tr> <td>5</td> <td>福証</td> </tr> <tr> <td>6</td> <td>札証</td> </tr> <tr> <td>2</td> <td>日通し</td> </tr> <tr> <td>23</td> <td>日中</td> </tr> <tr> <td>24</td> <td>夜間</td> </tr> </tbody> </table>
|
733
668
|
# @param [Hash] opts the optional parameters
|
734
669
|
# @option opts [String] :addinfo 追加情報出力フラグ(未指定時:true)<br> ※追加情報は、「時価総額」、「発行済み株式数」、「決算期日」、「清算値」を意味します。 <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>true</td> <td>追加情報を出力する</td> </tr> <tr> <td>false</td> <td>追加情報を出力しない</td> </tr> </tbody> </table>
|
735
670
|
# @return [Array<(SymbolSuccess, Integer, Hash)>] SymbolSuccess data, response status code and response headers
|
736
|
-
def symbol_get_with_http_info(
|
671
|
+
def symbol_get_with_http_info(symbol, opts = {})
|
737
672
|
if @api_client.config.debugging
|
738
673
|
@api_client.config.logger.debug 'Calling API: InfoApi.symbol_get ...'
|
739
674
|
end
|
740
|
-
# verify the required parameter 'x_api_key' is set
|
741
|
-
if @api_client.config.client_side_validation && x_api_key.nil?
|
742
|
-
fail ArgumentError, "Missing the required parameter 'x_api_key' when calling InfoApi.symbol_get"
|
743
|
-
end
|
744
675
|
# verify the required parameter 'symbol' is set
|
745
676
|
if @api_client.config.client_side_validation && symbol.nil?
|
746
677
|
fail ArgumentError, "Missing the required parameter 'symbol' when calling InfoApi.symbol_get"
|
@@ -756,7 +687,6 @@ module KabustationClient
|
|
756
687
|
header_params = opts[:header_params] || {}
|
757
688
|
# HTTP header 'Accept' (if needed)
|
758
689
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
759
|
-
header_params[:'X-API-KEY'] = x_api_key
|
760
690
|
|
761
691
|
# form parameters
|
762
692
|
form_params = opts[:form_params] || {}
|
@@ -768,7 +698,7 @@ module KabustationClient
|
|
768
698
|
return_type = opts[:debug_return_type] || 'SymbolSuccess'
|
769
699
|
|
770
700
|
# auth_names
|
771
|
-
auth_names = opts[:debug_auth_names] || []
|
701
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
772
702
|
|
773
703
|
new_options = opts.merge(
|
774
704
|
:operation => :"InfoApi.symbol_get",
|
@@ -789,31 +719,25 @@ module KabustationClient
|
|
789
719
|
|
790
720
|
# 先物銘柄コード取得
|
791
721
|
# 先物銘柄コード取得
|
792
|
-
# @param x_api_key [String] トークン発行メソッドで取得した文字列
|
793
722
|
# @param deriv_month [Integer] 限月<br> ※限月はyyyyMM形式で指定します。0を指定した場合、直近限月となります。<br> ※取引最終日に「0」(直近限月)を指定した場合、日中・夜間の時間帯に関わらず、 取引最終日を迎える限月の銘柄コードを返します。取引最終日を迎える銘柄の取引は日中取引をもって終了となりますので、ご注意ください。<br>
|
794
723
|
# @param [Hash] opts the optional parameters
|
795
724
|
# @option opts [String] :future_code 先物コード<br> ※大文字小文字は区別しません。 <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>NK225</td> <td>日経平均先物</td> </tr> <tr> <td>NK225mini</td> <td>日経225mini先物</td> </tr> <tr> <td>TOPIX</td> <td>TOPIX先物</td> </tr> <tr> <td>TOPIXmini</td> <td>ミニTOPIX先物</td> </tr> <tr> <td>GROWTH</td> <td>グロース250先物</td> </tr> <tr> <td>JPX400</td> <td>JPX日経400先物</td> </tr> <tr> <td>DOW</td> <td>NYダウ先物</td> </tr> <tr> <td>VI</td> <td>日経平均VI先物</td> </tr> <tr> <td>Core30</td> <td>TOPIX Core30先物</td> </tr> <tr> <td>REIT</td> <td>東証REIT指数先物</td> </tr> <tr> <td>NK225micro</td> <td>日経225マイクロ先物</td> </tr> </tbody> </table>
|
796
725
|
# @return [SymbolNameSuccess]
|
797
|
-
def symbolname_future_get(
|
798
|
-
data, _status_code, _headers = symbolname_future_get_with_http_info(
|
726
|
+
def symbolname_future_get(deriv_month, opts = {})
|
727
|
+
data, _status_code, _headers = symbolname_future_get_with_http_info(deriv_month, opts)
|
799
728
|
data
|
800
729
|
end
|
801
730
|
|
802
731
|
# 先物銘柄コード取得
|
803
732
|
# 先物銘柄コード取得
|
804
|
-
# @param x_api_key [String] トークン発行メソッドで取得した文字列
|
805
733
|
# @param deriv_month [Integer] 限月<br> ※限月はyyyyMM形式で指定します。0を指定した場合、直近限月となります。<br> ※取引最終日に「0」(直近限月)を指定した場合、日中・夜間の時間帯に関わらず、 取引最終日を迎える限月の銘柄コードを返します。取引最終日を迎える銘柄の取引は日中取引をもって終了となりますので、ご注意ください。<br>
|
806
734
|
# @param [Hash] opts the optional parameters
|
807
735
|
# @option opts [String] :future_code 先物コード<br> ※大文字小文字は区別しません。 <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>NK225</td> <td>日経平均先物</td> </tr> <tr> <td>NK225mini</td> <td>日経225mini先物</td> </tr> <tr> <td>TOPIX</td> <td>TOPIX先物</td> </tr> <tr> <td>TOPIXmini</td> <td>ミニTOPIX先物</td> </tr> <tr> <td>GROWTH</td> <td>グロース250先物</td> </tr> <tr> <td>JPX400</td> <td>JPX日経400先物</td> </tr> <tr> <td>DOW</td> <td>NYダウ先物</td> </tr> <tr> <td>VI</td> <td>日経平均VI先物</td> </tr> <tr> <td>Core30</td> <td>TOPIX Core30先物</td> </tr> <tr> <td>REIT</td> <td>東証REIT指数先物</td> </tr> <tr> <td>NK225micro</td> <td>日経225マイクロ先物</td> </tr> </tbody> </table>
|
808
736
|
# @return [Array<(SymbolNameSuccess, Integer, Hash)>] SymbolNameSuccess data, response status code and response headers
|
809
|
-
def symbolname_future_get_with_http_info(
|
737
|
+
def symbolname_future_get_with_http_info(deriv_month, opts = {})
|
810
738
|
if @api_client.config.debugging
|
811
739
|
@api_client.config.logger.debug 'Calling API: InfoApi.symbolname_future_get ...'
|
812
740
|
end
|
813
|
-
# verify the required parameter 'x_api_key' is set
|
814
|
-
if @api_client.config.client_side_validation && x_api_key.nil?
|
815
|
-
fail ArgumentError, "Missing the required parameter 'x_api_key' when calling InfoApi.symbolname_future_get"
|
816
|
-
end
|
817
741
|
# verify the required parameter 'deriv_month' is set
|
818
742
|
if @api_client.config.client_side_validation && deriv_month.nil?
|
819
743
|
fail ArgumentError, "Missing the required parameter 'deriv_month' when calling InfoApi.symbolname_future_get"
|
@@ -830,7 +754,6 @@ module KabustationClient
|
|
830
754
|
header_params = opts[:header_params] || {}
|
831
755
|
# HTTP header 'Accept' (if needed)
|
832
756
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
833
|
-
header_params[:'X-API-KEY'] = x_api_key
|
834
757
|
|
835
758
|
# form parameters
|
836
759
|
form_params = opts[:form_params] || {}
|
@@ -842,7 +765,7 @@ module KabustationClient
|
|
842
765
|
return_type = opts[:debug_return_type] || 'SymbolNameSuccess'
|
843
766
|
|
844
767
|
# auth_names
|
845
|
-
auth_names = opts[:debug_auth_names] || []
|
768
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
846
769
|
|
847
770
|
new_options = opts.merge(
|
848
771
|
:operation => :"InfoApi.symbolname_future_get",
|
@@ -863,35 +786,29 @@ module KabustationClient
|
|
863
786
|
|
864
787
|
# オプション銘柄コード取得
|
865
788
|
# オプション銘柄コード取得
|
866
|
-
# @param x_api_key [String] トークン発行メソッドで取得した文字列
|
867
789
|
# @param deriv_month [Integer] 限月<br>※限月はyyyyMM形式で指定します。0を指定した場合、直近限月となります。<br>※取引最終日に「0」(直近限月)を指定した場合、日中・夜間の時間帯に関わらず、取引最終日を迎える限月の銘柄コードを返します。取引最終日を迎える銘柄の取引は日中取引をもって終了となりますので、ご注意ください。
|
868
790
|
# @param put_or_call [String] コール or プット<br> ※大文字小文字は区別しません。 <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>P</td> <td>PUT</td> </tr> <tr> <td>C</td> <td>CALL</td> </tr> </tbody> </table>
|
869
791
|
# @param strike_price [Integer] 権利行使価格<br>※0を指定した場合、APIを実行した時点でのATMとなります。
|
870
792
|
# @param [Hash] opts the optional parameters
|
871
793
|
# @option opts [String] :option_code オプションコード<br> ※指定なしの場合は、日経225オプションを対象とする。<br> <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>NK225op</td> <td>日経225オプション</td> </tr> <tr> <td>NK225miniop</td> <td>日経225ミニオプション</td> </tr> </tbody> </table>
|
872
794
|
# @return [SymbolNameSuccess]
|
873
|
-
def symbolname_option_get(
|
874
|
-
data, _status_code, _headers = symbolname_option_get_with_http_info(
|
795
|
+
def symbolname_option_get(deriv_month, put_or_call, strike_price, opts = {})
|
796
|
+
data, _status_code, _headers = symbolname_option_get_with_http_info(deriv_month, put_or_call, strike_price, opts)
|
875
797
|
data
|
876
798
|
end
|
877
799
|
|
878
800
|
# オプション銘柄コード取得
|
879
801
|
# オプション銘柄コード取得
|
880
|
-
# @param x_api_key [String] トークン発行メソッドで取得した文字列
|
881
802
|
# @param deriv_month [Integer] 限月<br>※限月はyyyyMM形式で指定します。0を指定した場合、直近限月となります。<br>※取引最終日に「0」(直近限月)を指定した場合、日中・夜間の時間帯に関わらず、取引最終日を迎える限月の銘柄コードを返します。取引最終日を迎える銘柄の取引は日中取引をもって終了となりますので、ご注意ください。
|
882
803
|
# @param put_or_call [String] コール or プット<br> ※大文字小文字は区別しません。 <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>P</td> <td>PUT</td> </tr> <tr> <td>C</td> <td>CALL</td> </tr> </tbody> </table>
|
883
804
|
# @param strike_price [Integer] 権利行使価格<br>※0を指定した場合、APIを実行した時点でのATMとなります。
|
884
805
|
# @param [Hash] opts the optional parameters
|
885
806
|
# @option opts [String] :option_code オプションコード<br> ※指定なしの場合は、日経225オプションを対象とする。<br> <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>NK225op</td> <td>日経225オプション</td> </tr> <tr> <td>NK225miniop</td> <td>日経225ミニオプション</td> </tr> </tbody> </table>
|
886
807
|
# @return [Array<(SymbolNameSuccess, Integer, Hash)>] SymbolNameSuccess data, response status code and response headers
|
887
|
-
def symbolname_option_get_with_http_info(
|
808
|
+
def symbolname_option_get_with_http_info(deriv_month, put_or_call, strike_price, opts = {})
|
888
809
|
if @api_client.config.debugging
|
889
810
|
@api_client.config.logger.debug 'Calling API: InfoApi.symbolname_option_get ...'
|
890
811
|
end
|
891
|
-
# verify the required parameter 'x_api_key' is set
|
892
|
-
if @api_client.config.client_side_validation && x_api_key.nil?
|
893
|
-
fail ArgumentError, "Missing the required parameter 'x_api_key' when calling InfoApi.symbolname_option_get"
|
894
|
-
end
|
895
812
|
# verify the required parameter 'deriv_month' is set
|
896
813
|
if @api_client.config.client_side_validation && deriv_month.nil?
|
897
814
|
fail ArgumentError, "Missing the required parameter 'deriv_month' when calling InfoApi.symbolname_option_get"
|
@@ -918,7 +835,6 @@ module KabustationClient
|
|
918
835
|
header_params = opts[:header_params] || {}
|
919
836
|
# HTTP header 'Accept' (if needed)
|
920
837
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
921
|
-
header_params[:'X-API-KEY'] = x_api_key
|
922
838
|
|
923
839
|
# form parameters
|
924
840
|
form_params = opts[:form_params] || {}
|
@@ -930,7 +846,7 @@ module KabustationClient
|
|
930
846
|
return_type = opts[:debug_return_type] || 'SymbolNameSuccess'
|
931
847
|
|
932
848
|
# auth_names
|
933
|
-
auth_names = opts[:debug_auth_names] || []
|
849
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
934
850
|
|
935
851
|
new_options = opts.merge(
|
936
852
|
:operation => :"InfoApi.symbolname_option_get",
|
@@ -951,35 +867,29 @@ module KabustationClient
|
|
951
867
|
|
952
868
|
# ミニオプション(限週)銘柄コード取得
|
953
869
|
# ミニオプション(限週)銘柄コード取得
|
954
|
-
# @param x_api_key [String] トークン発行メソッドで取得した文字列
|
955
870
|
# @param deriv_month [Integer] 限月<br>※限月はyyyyMM形式で指定します。0を指定した場合、直近限月となります。<br>※取引最終日に「0」(直近限月)を指定した場合、日中・夜間の時間帯に関わらず、取引最終日を迎える限月の銘柄コードを返します。取引最終日を迎える銘柄の取引は日中取引をもって終了となりますので、ご注意ください。
|
956
871
|
# @param deriv_weekly [Integer] 限週<br>※限週は0,1,3,4,5のいずれかを指定します。0を指定した場合、指定した限月の直近限週となります。<br>※取引最終日に「0」(直近限週)を指定した場合、日中・夜間の時間帯に関わらず、取引最終日を迎える限週の銘柄コードを返します。取引最終日を迎える銘柄の取引は日中取引をもって終了となりますので、ご注意ください。
|
957
872
|
# @param put_or_call [String] コール or プット<br> ※大文字小文字は区別しません。 <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>P</td> <td>PUT</td> </tr> <tr> <td>C</td> <td>CALL</td> </tr> </tbody> </table>
|
958
873
|
# @param strike_price [Integer] 権利行使価格<br>※0を指定した場合、APIを実行した時点でのATMとなります。
|
959
874
|
# @param [Hash] opts the optional parameters
|
960
875
|
# @return [SymbolNameSuccess]
|
961
|
-
def symbolname_option_mini_get(
|
962
|
-
data, _status_code, _headers = symbolname_option_mini_get_with_http_info(
|
876
|
+
def symbolname_option_mini_get(deriv_month, deriv_weekly, put_or_call, strike_price, opts = {})
|
877
|
+
data, _status_code, _headers = symbolname_option_mini_get_with_http_info(deriv_month, deriv_weekly, put_or_call, strike_price, opts)
|
963
878
|
data
|
964
879
|
end
|
965
880
|
|
966
881
|
# ミニオプション(限週)銘柄コード取得
|
967
882
|
# ミニオプション(限週)銘柄コード取得
|
968
|
-
# @param x_api_key [String] トークン発行メソッドで取得した文字列
|
969
883
|
# @param deriv_month [Integer] 限月<br>※限月はyyyyMM形式で指定します。0を指定した場合、直近限月となります。<br>※取引最終日に「0」(直近限月)を指定した場合、日中・夜間の時間帯に関わらず、取引最終日を迎える限月の銘柄コードを返します。取引最終日を迎える銘柄の取引は日中取引をもって終了となりますので、ご注意ください。
|
970
884
|
# @param deriv_weekly [Integer] 限週<br>※限週は0,1,3,4,5のいずれかを指定します。0を指定した場合、指定した限月の直近限週となります。<br>※取引最終日に「0」(直近限週)を指定した場合、日中・夜間の時間帯に関わらず、取引最終日を迎える限週の銘柄コードを返します。取引最終日を迎える銘柄の取引は日中取引をもって終了となりますので、ご注意ください。
|
971
885
|
# @param put_or_call [String] コール or プット<br> ※大文字小文字は区別しません。 <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>P</td> <td>PUT</td> </tr> <tr> <td>C</td> <td>CALL</td> </tr> </tbody> </table>
|
972
886
|
# @param strike_price [Integer] 権利行使価格<br>※0を指定した場合、APIを実行した時点でのATMとなります。
|
973
887
|
# @param [Hash] opts the optional parameters
|
974
888
|
# @return [Array<(SymbolNameSuccess, Integer, Hash)>] SymbolNameSuccess data, response status code and response headers
|
975
|
-
def symbolname_option_mini_get_with_http_info(
|
889
|
+
def symbolname_option_mini_get_with_http_info(deriv_month, deriv_weekly, put_or_call, strike_price, opts = {})
|
976
890
|
if @api_client.config.debugging
|
977
891
|
@api_client.config.logger.debug 'Calling API: InfoApi.symbolname_option_mini_get ...'
|
978
892
|
end
|
979
|
-
# verify the required parameter 'x_api_key' is set
|
980
|
-
if @api_client.config.client_side_validation && x_api_key.nil?
|
981
|
-
fail ArgumentError, "Missing the required parameter 'x_api_key' when calling InfoApi.symbolname_option_mini_get"
|
982
|
-
end
|
983
893
|
# verify the required parameter 'deriv_month' is set
|
984
894
|
if @api_client.config.client_side_validation && deriv_month.nil?
|
985
895
|
fail ArgumentError, "Missing the required parameter 'deriv_month' when calling InfoApi.symbolname_option_mini_get"
|
@@ -1010,7 +920,6 @@ module KabustationClient
|
|
1010
920
|
header_params = opts[:header_params] || {}
|
1011
921
|
# HTTP header 'Accept' (if needed)
|
1012
922
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1013
|
-
header_params[:'X-API-KEY'] = x_api_key
|
1014
923
|
|
1015
924
|
# form parameters
|
1016
925
|
form_params = opts[:form_params] || {}
|
@@ -1022,7 +931,7 @@ module KabustationClient
|
|
1022
931
|
return_type = opts[:debug_return_type] || 'SymbolNameSuccess'
|
1023
932
|
|
1024
933
|
# auth_names
|
1025
|
-
auth_names = opts[:debug_auth_names] || []
|
934
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
1026
935
|
|
1027
936
|
new_options = opts.merge(
|
1028
937
|
:operation => :"InfoApi.symbolname_option_mini_get",
|