kabustation_client 1.0.0 → 1.1.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.
@@ -21,29 +21,23 @@ module KabustationClient
21
21
  end
22
22
  # 注文取消
23
23
  # 注文を取消します
24
- # @param x_api_key [String] トークン発行メソッドで取得した文字列
25
24
  # @param request_cancel_order [RequestCancelOrder]
26
25
  # @param [Hash] opts the optional parameters
27
26
  # @return [OrderSuccess]
28
- def cancelorder_put(x_api_key, request_cancel_order, opts = {})
29
- data, _status_code, _headers = cancelorder_put_with_http_info(x_api_key, request_cancel_order, opts)
27
+ def cancelorder_put(request_cancel_order, opts = {})
28
+ data, _status_code, _headers = cancelorder_put_with_http_info(request_cancel_order, opts)
30
29
  data
31
30
  end
32
31
 
33
32
  # 注文取消
34
33
  # 注文を取消します
35
- # @param x_api_key [String] トークン発行メソッドで取得した文字列
36
34
  # @param request_cancel_order [RequestCancelOrder]
37
35
  # @param [Hash] opts the optional parameters
38
36
  # @return [Array<(OrderSuccess, Integer, Hash)>] OrderSuccess data, response status code and response headers
39
- def cancelorder_put_with_http_info(x_api_key, request_cancel_order, opts = {})
37
+ def cancelorder_put_with_http_info(request_cancel_order, opts = {})
40
38
  if @api_client.config.debugging
41
39
  @api_client.config.logger.debug 'Calling API: OrderApi.cancelorder_put ...'
42
40
  end
43
- # verify the required parameter 'x_api_key' is set
44
- if @api_client.config.client_side_validation && x_api_key.nil?
45
- fail ArgumentError, "Missing the required parameter 'x_api_key' when calling OrderApi.cancelorder_put"
46
- end
47
41
  # verify the required parameter 'request_cancel_order' is set
48
42
  if @api_client.config.client_side_validation && request_cancel_order.nil?
49
43
  fail ArgumentError, "Missing the required parameter 'request_cancel_order' when calling OrderApi.cancelorder_put"
@@ -63,7 +57,6 @@ module KabustationClient
63
57
  if !content_type.nil?
64
58
  header_params['Content-Type'] = content_type
65
59
  end
66
- header_params[:'X-API-KEY'] = x_api_key
67
60
 
68
61
  # form parameters
69
62
  form_params = opts[:form_params] || {}
@@ -75,7 +68,7 @@ module KabustationClient
75
68
  return_type = opts[:debug_return_type] || 'OrderSuccess'
76
69
 
77
70
  # auth_names
78
- auth_names = opts[:debug_auth_names] || []
71
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
79
72
 
80
73
  new_options = opts.merge(
81
74
  :operation => :"OrderApi.cancelorder_put",
@@ -96,29 +89,23 @@ module KabustationClient
96
89
 
97
90
  # 注文発注(先物)
98
91
  # 先物銘柄の注文を発注します。<br> 同一の銘柄に対しての注文は同時に5件ほどを上限としてご利用ください。
99
- # @param x_api_key [String] トークン発行メソッドで取得した文字列
100
92
  # @param request_send_order_deriv_future [RequestSendOrderDerivFuture]
101
93
  # @param [Hash] opts the optional parameters
102
94
  # @return [OrderSuccess]
103
- def sendoder_future_post(x_api_key, request_send_order_deriv_future, opts = {})
104
- data, _status_code, _headers = sendoder_future_post_with_http_info(x_api_key, request_send_order_deriv_future, opts)
95
+ def sendoder_future_post(request_send_order_deriv_future, opts = {})
96
+ data, _status_code, _headers = sendoder_future_post_with_http_info(request_send_order_deriv_future, opts)
105
97
  data
106
98
  end
107
99
 
108
100
  # 注文発注(先物)
109
101
  # 先物銘柄の注文を発注します。&lt;br&gt; 同一の銘柄に対しての注文は同時に5件ほどを上限としてご利用ください。
110
- # @param x_api_key [String] トークン発行メソッドで取得した文字列
111
102
  # @param request_send_order_deriv_future [RequestSendOrderDerivFuture]
112
103
  # @param [Hash] opts the optional parameters
113
104
  # @return [Array<(OrderSuccess, Integer, Hash)>] OrderSuccess data, response status code and response headers
114
- def sendoder_future_post_with_http_info(x_api_key, request_send_order_deriv_future, opts = {})
105
+ def sendoder_future_post_with_http_info(request_send_order_deriv_future, opts = {})
115
106
  if @api_client.config.debugging
116
107
  @api_client.config.logger.debug 'Calling API: OrderApi.sendoder_future_post ...'
117
108
  end
118
- # verify the required parameter 'x_api_key' is set
119
- if @api_client.config.client_side_validation && x_api_key.nil?
120
- fail ArgumentError, "Missing the required parameter 'x_api_key' when calling OrderApi.sendoder_future_post"
121
- end
122
109
  # verify the required parameter 'request_send_order_deriv_future' is set
123
110
  if @api_client.config.client_side_validation && request_send_order_deriv_future.nil?
124
111
  fail ArgumentError, "Missing the required parameter 'request_send_order_deriv_future' when calling OrderApi.sendoder_future_post"
@@ -138,7 +125,6 @@ module KabustationClient
138
125
  if !content_type.nil?
139
126
  header_params['Content-Type'] = content_type
140
127
  end
141
- header_params[:'X-API-KEY'] = x_api_key
142
128
 
143
129
  # form parameters
144
130
  form_params = opts[:form_params] || {}
@@ -150,7 +136,7 @@ module KabustationClient
150
136
  return_type = opts[:debug_return_type] || 'OrderSuccess'
151
137
 
152
138
  # auth_names
153
- auth_names = opts[:debug_auth_names] || []
139
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
154
140
 
155
141
  new_options = opts.merge(
156
142
  :operation => :"OrderApi.sendoder_future_post",
@@ -171,29 +157,23 @@ module KabustationClient
171
157
 
172
158
  # 注文発注(オプション)
173
159
  # オプション銘柄の注文を発注します。<br> 同一の銘柄に対しての注文は同時に5件ほどを上限としてご利用ください。
174
- # @param x_api_key [String] トークン発行メソッドで取得した文字列
175
160
  # @param request_send_order_deriv_option [RequestSendOrderDerivOption]
176
161
  # @param [Hash] opts the optional parameters
177
162
  # @return [OrderSuccess]
178
- def sendorder_option_post(x_api_key, request_send_order_deriv_option, opts = {})
179
- data, _status_code, _headers = sendorder_option_post_with_http_info(x_api_key, request_send_order_deriv_option, opts)
163
+ def sendorder_option_post(request_send_order_deriv_option, opts = {})
164
+ data, _status_code, _headers = sendorder_option_post_with_http_info(request_send_order_deriv_option, opts)
180
165
  data
181
166
  end
182
167
 
183
168
  # 注文発注(オプション)
184
169
  # オプション銘柄の注文を発注します。&lt;br&gt; 同一の銘柄に対しての注文は同時に5件ほどを上限としてご利用ください。
185
- # @param x_api_key [String] トークン発行メソッドで取得した文字列
186
170
  # @param request_send_order_deriv_option [RequestSendOrderDerivOption]
187
171
  # @param [Hash] opts the optional parameters
188
172
  # @return [Array<(OrderSuccess, Integer, Hash)>] OrderSuccess data, response status code and response headers
189
- def sendorder_option_post_with_http_info(x_api_key, request_send_order_deriv_option, opts = {})
173
+ def sendorder_option_post_with_http_info(request_send_order_deriv_option, opts = {})
190
174
  if @api_client.config.debugging
191
175
  @api_client.config.logger.debug 'Calling API: OrderApi.sendorder_option_post ...'
192
176
  end
193
- # verify the required parameter 'x_api_key' is set
194
- if @api_client.config.client_side_validation && x_api_key.nil?
195
- fail ArgumentError, "Missing the required parameter 'x_api_key' when calling OrderApi.sendorder_option_post"
196
- end
197
177
  # verify the required parameter 'request_send_order_deriv_option' is set
198
178
  if @api_client.config.client_side_validation && request_send_order_deriv_option.nil?
199
179
  fail ArgumentError, "Missing the required parameter 'request_send_order_deriv_option' when calling OrderApi.sendorder_option_post"
@@ -213,7 +193,6 @@ module KabustationClient
213
193
  if !content_type.nil?
214
194
  header_params['Content-Type'] = content_type
215
195
  end
216
- header_params[:'X-API-KEY'] = x_api_key
217
196
 
218
197
  # form parameters
219
198
  form_params = opts[:form_params] || {}
@@ -225,7 +204,7 @@ module KabustationClient
225
204
  return_type = opts[:debug_return_type] || 'OrderSuccess'
226
205
 
227
206
  # auth_names
228
- auth_names = opts[:debug_auth_names] || []
207
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
229
208
 
230
209
  new_options = opts.merge(
231
210
  :operation => :"OrderApi.sendorder_option_post",
@@ -246,29 +225,23 @@ module KabustationClient
246
225
 
247
226
  # 注文発注(現物・信用)
248
227
  # 注文を発注します。<br> 同一の銘柄に対しての注文は同時に5件ほどを上限としてご利用ください。
249
- # @param x_api_key [String] トークン発行メソッドで取得した文字列
250
228
  # @param request_send_order [RequestSendOrder]
251
229
  # @param [Hash] opts the optional parameters
252
230
  # @return [OrderSuccess]
253
- def sendorder_post(x_api_key, request_send_order, opts = {})
254
- data, _status_code, _headers = sendorder_post_with_http_info(x_api_key, request_send_order, opts)
231
+ def sendorder_post(request_send_order, opts = {})
232
+ data, _status_code, _headers = sendorder_post_with_http_info(request_send_order, opts)
255
233
  data
256
234
  end
257
235
 
258
236
  # 注文発注(現物・信用)
259
237
  # 注文を発注します。&lt;br&gt; 同一の銘柄に対しての注文は同時に5件ほどを上限としてご利用ください。
260
- # @param x_api_key [String] トークン発行メソッドで取得した文字列
261
238
  # @param request_send_order [RequestSendOrder]
262
239
  # @param [Hash] opts the optional parameters
263
240
  # @return [Array<(OrderSuccess, Integer, Hash)>] OrderSuccess data, response status code and response headers
264
- def sendorder_post_with_http_info(x_api_key, request_send_order, opts = {})
241
+ def sendorder_post_with_http_info(request_send_order, opts = {})
265
242
  if @api_client.config.debugging
266
243
  @api_client.config.logger.debug 'Calling API: OrderApi.sendorder_post ...'
267
244
  end
268
- # verify the required parameter 'x_api_key' is set
269
- if @api_client.config.client_side_validation && x_api_key.nil?
270
- fail ArgumentError, "Missing the required parameter 'x_api_key' when calling OrderApi.sendorder_post"
271
- end
272
245
  # verify the required parameter 'request_send_order' is set
273
246
  if @api_client.config.client_side_validation && request_send_order.nil?
274
247
  fail ArgumentError, "Missing the required parameter 'request_send_order' when calling OrderApi.sendorder_post"
@@ -288,7 +261,6 @@ module KabustationClient
288
261
  if !content_type.nil?
289
262
  header_params['Content-Type'] = content_type
290
263
  end
291
- header_params[:'X-API-KEY'] = x_api_key
292
264
 
293
265
  # form parameters
294
266
  form_params = opts[:form_params] || {}
@@ -300,7 +272,7 @@ module KabustationClient
300
272
  return_type = opts[:debug_return_type] || 'OrderSuccess'
301
273
 
302
274
  # auth_names
303
- auth_names = opts[:debug_auth_names] || []
275
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
304
276
 
305
277
  new_options = opts.merge(
306
278
  :operation => :"OrderApi.sendorder_post",
@@ -21,29 +21,23 @@ module KabustationClient
21
21
  end
22
22
  # 銘柄登録
23
23
  # PUSH配信する銘柄を登録します。<br> API登録銘柄リストを開くには、kabuステーションAPIインジケーターを右クリックし「API登録銘柄リスト」を選択してください。
24
- # @param x_api_key [String] トークン発行メソッドで取得した文字列
25
24
  # @param request_register [RequestRegister] 登録する銘柄のリスト
26
25
  # @param [Hash] opts the optional parameters
27
26
  # @return [RegistSuccess]
28
- def register_put(x_api_key, request_register, opts = {})
29
- data, _status_code, _headers = register_put_with_http_info(x_api_key, request_register, opts)
27
+ def register_put(request_register, opts = {})
28
+ data, _status_code, _headers = register_put_with_http_info(request_register, opts)
30
29
  data
31
30
  end
32
31
 
33
32
  # 銘柄登録
34
33
  # PUSH配信する銘柄を登録します。&lt;br&gt; API登録銘柄リストを開くには、kabuステーションAPIインジケーターを右クリックし「API登録銘柄リスト」を選択してください。
35
- # @param x_api_key [String] トークン発行メソッドで取得した文字列
36
34
  # @param request_register [RequestRegister] 登録する銘柄のリスト
37
35
  # @param [Hash] opts the optional parameters
38
36
  # @return [Array<(RegistSuccess, Integer, Hash)>] RegistSuccess data, response status code and response headers
39
- def register_put_with_http_info(x_api_key, request_register, opts = {})
37
+ def register_put_with_http_info(request_register, opts = {})
40
38
  if @api_client.config.debugging
41
39
  @api_client.config.logger.debug 'Calling API: RegisterApi.register_put ...'
42
40
  end
43
- # verify the required parameter 'x_api_key' is set
44
- if @api_client.config.client_side_validation && x_api_key.nil?
45
- fail ArgumentError, "Missing the required parameter 'x_api_key' when calling RegisterApi.register_put"
46
- end
47
41
  # verify the required parameter 'request_register' is set
48
42
  if @api_client.config.client_side_validation && request_register.nil?
49
43
  fail ArgumentError, "Missing the required parameter 'request_register' when calling RegisterApi.register_put"
@@ -63,7 +57,6 @@ module KabustationClient
63
57
  if !content_type.nil?
64
58
  header_params['Content-Type'] = content_type
65
59
  end
66
- header_params[:'X-API-KEY'] = x_api_key
67
60
 
68
61
  # form parameters
69
62
  form_params = opts[:form_params] || {}
@@ -75,7 +68,7 @@ module KabustationClient
75
68
  return_type = opts[:debug_return_type] || 'RegistSuccess'
76
69
 
77
70
  # auth_names
78
- auth_names = opts[:debug_auth_names] || []
71
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
79
72
 
80
73
  new_options = opts.merge(
81
74
  :operation => :"RegisterApi.register_put",
@@ -96,27 +89,21 @@ module KabustationClient
96
89
 
97
90
  # 銘柄登録全解除
98
91
  # API登録銘柄リストに登録されている銘柄をすべて解除します
99
- # @param x_api_key [String] トークン発行メソッドで取得した文字列
100
92
  # @param [Hash] opts the optional parameters
101
93
  # @return [UnregisterAllSuccess]
102
- def unregister_all_put(x_api_key, opts = {})
103
- data, _status_code, _headers = unregister_all_put_with_http_info(x_api_key, opts)
94
+ def unregister_all_put(opts = {})
95
+ data, _status_code, _headers = unregister_all_put_with_http_info(opts)
104
96
  data
105
97
  end
106
98
 
107
99
  # 銘柄登録全解除
108
100
  # API登録銘柄リストに登録されている銘柄をすべて解除します
109
- # @param x_api_key [String] トークン発行メソッドで取得した文字列
110
101
  # @param [Hash] opts the optional parameters
111
102
  # @return [Array<(UnregisterAllSuccess, Integer, Hash)>] UnregisterAllSuccess data, response status code and response headers
112
- def unregister_all_put_with_http_info(x_api_key, opts = {})
103
+ def unregister_all_put_with_http_info(opts = {})
113
104
  if @api_client.config.debugging
114
105
  @api_client.config.logger.debug 'Calling API: RegisterApi.unregister_all_put ...'
115
106
  end
116
- # verify the required parameter 'x_api_key' is set
117
- if @api_client.config.client_side_validation && x_api_key.nil?
118
- fail ArgumentError, "Missing the required parameter 'x_api_key' when calling RegisterApi.unregister_all_put"
119
- end
120
107
  # resource path
121
108
  local_var_path = '/unregister/all'
122
109
 
@@ -127,7 +114,6 @@ module KabustationClient
127
114
  header_params = opts[:header_params] || {}
128
115
  # HTTP header 'Accept' (if needed)
129
116
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
130
- header_params[:'X-API-KEY'] = x_api_key
131
117
 
132
118
  # form parameters
133
119
  form_params = opts[:form_params] || {}
@@ -139,7 +125,7 @@ module KabustationClient
139
125
  return_type = opts[:debug_return_type] || 'UnregisterAllSuccess'
140
126
 
141
127
  # auth_names
142
- auth_names = opts[:debug_auth_names] || []
128
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
143
129
 
144
130
  new_options = opts.merge(
145
131
  :operation => :"RegisterApi.unregister_all_put",
@@ -160,29 +146,23 @@ module KabustationClient
160
146
 
161
147
  # 銘柄登録解除
162
148
  # API登録銘柄リストに登録されている銘柄を解除します
163
- # @param x_api_key [String] トークン発行メソッドで取得した文字列
164
149
  # @param request_unregister [RequestUnregister] 登録解除する銘柄のリスト
165
150
  # @param [Hash] opts the optional parameters
166
151
  # @return [RegistSuccess]
167
- def unregister_put(x_api_key, request_unregister, opts = {})
168
- data, _status_code, _headers = unregister_put_with_http_info(x_api_key, request_unregister, opts)
152
+ def unregister_put(request_unregister, opts = {})
153
+ data, _status_code, _headers = unregister_put_with_http_info(request_unregister, opts)
169
154
  data
170
155
  end
171
156
 
172
157
  # 銘柄登録解除
173
158
  # API登録銘柄リストに登録されている銘柄を解除します
174
- # @param x_api_key [String] トークン発行メソッドで取得した文字列
175
159
  # @param request_unregister [RequestUnregister] 登録解除する銘柄のリスト
176
160
  # @param [Hash] opts the optional parameters
177
161
  # @return [Array<(RegistSuccess, Integer, Hash)>] RegistSuccess data, response status code and response headers
178
- def unregister_put_with_http_info(x_api_key, request_unregister, opts = {})
162
+ def unregister_put_with_http_info(request_unregister, opts = {})
179
163
  if @api_client.config.debugging
180
164
  @api_client.config.logger.debug 'Calling API: RegisterApi.unregister_put ...'
181
165
  end
182
- # verify the required parameter 'x_api_key' is set
183
- if @api_client.config.client_side_validation && x_api_key.nil?
184
- fail ArgumentError, "Missing the required parameter 'x_api_key' when calling RegisterApi.unregister_put"
185
- end
186
166
  # verify the required parameter 'request_unregister' is set
187
167
  if @api_client.config.client_side_validation && request_unregister.nil?
188
168
  fail ArgumentError, "Missing the required parameter 'request_unregister' when calling RegisterApi.unregister_put"
@@ -202,7 +182,6 @@ module KabustationClient
202
182
  if !content_type.nil?
203
183
  header_params['Content-Type'] = content_type
204
184
  end
205
- header_params[:'X-API-KEY'] = x_api_key
206
185
 
207
186
  # form parameters
208
187
  form_params = opts[:form_params] || {}
@@ -214,7 +193,7 @@ module KabustationClient
214
193
  return_type = opts[:debug_return_type] || 'RegistSuccess'
215
194
 
216
195
  # auth_names
217
- auth_names = opts[:debug_auth_names] || []
196
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
218
197
 
219
198
  new_options = opts.merge(
220
199
  :operation => :"RegisterApi.unregister_put",