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
data/docs/WalletApi.md
CHANGED
@@ -16,7 +16,7 @@ All URIs are relative to *http://localhost:18080/kabusapi*
|
|
16
16
|
|
17
17
|
## wallet_cash_get
|
18
18
|
|
19
|
-
> <WalletCashSuccess> wallet_cash_get
|
19
|
+
> <WalletCashSuccess> wallet_cash_get
|
20
20
|
|
21
21
|
取引余力(現物)
|
22
22
|
|
@@ -27,13 +27,19 @@ All URIs are relative to *http://localhost:18080/kabusapi*
|
|
27
27
|
```ruby
|
28
28
|
require 'time'
|
29
29
|
require 'kabustation_client'
|
30
|
+
# setup authorization
|
31
|
+
KabustationClient.configure do |config|
|
32
|
+
# Configure API key authorization: ApiKeyAuth
|
33
|
+
config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
|
34
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
35
|
+
# config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
36
|
+
end
|
30
37
|
|
31
38
|
api_instance = KabustationClient::WalletApi.new
|
32
|
-
x_api_key = 'x_api_key_example' # String | トークン発行メソッドで取得した文字列
|
33
39
|
|
34
40
|
begin
|
35
41
|
# 取引余力(現物)
|
36
|
-
result = api_instance.wallet_cash_get
|
42
|
+
result = api_instance.wallet_cash_get
|
37
43
|
p result
|
38
44
|
rescue KabustationClient::ApiError => e
|
39
45
|
puts "Error when calling WalletApi->wallet_cash_get: #{e}"
|
@@ -44,12 +50,12 @@ end
|
|
44
50
|
|
45
51
|
This returns an Array which contains the response data, status code and headers.
|
46
52
|
|
47
|
-
> <Array(<WalletCashSuccess>, Integer, Hash)> wallet_cash_get_with_http_info
|
53
|
+
> <Array(<WalletCashSuccess>, Integer, Hash)> wallet_cash_get_with_http_info
|
48
54
|
|
49
55
|
```ruby
|
50
56
|
begin
|
51
57
|
# 取引余力(現物)
|
52
|
-
data, status_code, headers = api_instance.wallet_cash_get_with_http_info
|
58
|
+
data, status_code, headers = api_instance.wallet_cash_get_with_http_info
|
53
59
|
p status_code # => 2xx
|
54
60
|
p headers # => { ... }
|
55
61
|
p data # => <WalletCashSuccess>
|
@@ -60,9 +66,7 @@ end
|
|
60
66
|
|
61
67
|
### Parameters
|
62
68
|
|
63
|
-
|
64
|
-
| ---- | ---- | ----------- | ----- |
|
65
|
-
| **x_api_key** | **String** | トークン発行メソッドで取得した文字列 | |
|
69
|
+
This endpoint does not need any parameter.
|
66
70
|
|
67
71
|
### Return type
|
68
72
|
|
@@ -70,7 +74,7 @@ end
|
|
70
74
|
|
71
75
|
### Authorization
|
72
76
|
|
73
|
-
|
77
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
74
78
|
|
75
79
|
### HTTP request headers
|
76
80
|
|
@@ -80,7 +84,7 @@ No authorization required
|
|
80
84
|
|
81
85
|
## wallet_cash_symbol_get
|
82
86
|
|
83
|
-
> <WalletCashSuccess> wallet_cash_symbol_get(
|
87
|
+
> <WalletCashSuccess> wallet_cash_symbol_get(symbol)
|
84
88
|
|
85
89
|
取引余力(現物)(銘柄指定)
|
86
90
|
|
@@ -91,14 +95,20 @@ No authorization required
|
|
91
95
|
```ruby
|
92
96
|
require 'time'
|
93
97
|
require 'kabustation_client'
|
98
|
+
# setup authorization
|
99
|
+
KabustationClient.configure do |config|
|
100
|
+
# Configure API key authorization: ApiKeyAuth
|
101
|
+
config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
|
102
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
103
|
+
# config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
104
|
+
end
|
94
105
|
|
95
106
|
api_instance = KabustationClient::WalletApi.new
|
96
|
-
x_api_key = 'x_api_key_example' # String | トークン発行メソッドで取得した文字列
|
97
107
|
symbol = 'symbol_example' # 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>
|
98
108
|
|
99
109
|
begin
|
100
110
|
# 取引余力(現物)(銘柄指定)
|
101
|
-
result = api_instance.wallet_cash_symbol_get(
|
111
|
+
result = api_instance.wallet_cash_symbol_get(symbol)
|
102
112
|
p result
|
103
113
|
rescue KabustationClient::ApiError => e
|
104
114
|
puts "Error when calling WalletApi->wallet_cash_symbol_get: #{e}"
|
@@ -109,12 +119,12 @@ end
|
|
109
119
|
|
110
120
|
This returns an Array which contains the response data, status code and headers.
|
111
121
|
|
112
|
-
> <Array(<WalletCashSuccess>, Integer, Hash)> wallet_cash_symbol_get_with_http_info(
|
122
|
+
> <Array(<WalletCashSuccess>, Integer, Hash)> wallet_cash_symbol_get_with_http_info(symbol)
|
113
123
|
|
114
124
|
```ruby
|
115
125
|
begin
|
116
126
|
# 取引余力(現物)(銘柄指定)
|
117
|
-
data, status_code, headers = api_instance.wallet_cash_symbol_get_with_http_info(
|
127
|
+
data, status_code, headers = api_instance.wallet_cash_symbol_get_with_http_info(symbol)
|
118
128
|
p status_code # => 2xx
|
119
129
|
p headers # => { ... }
|
120
130
|
p data # => <WalletCashSuccess>
|
@@ -127,7 +137,6 @@ end
|
|
127
137
|
|
128
138
|
| Name | Type | Description | Notes |
|
129
139
|
| ---- | ---- | ----------- | ----- |
|
130
|
-
| **x_api_key** | **String** | トークン発行メソッドで取得した文字列 | |
|
131
140
|
| **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> | |
|
132
141
|
|
133
142
|
### Return type
|
@@ -136,7 +145,7 @@ end
|
|
136
145
|
|
137
146
|
### Authorization
|
138
147
|
|
139
|
-
|
148
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
140
149
|
|
141
150
|
### HTTP request headers
|
142
151
|
|
@@ -146,7 +155,7 @@ No authorization required
|
|
146
155
|
|
147
156
|
## wallet_future_get
|
148
157
|
|
149
|
-
> <WalletFutureSuccess> wallet_future_get
|
158
|
+
> <WalletFutureSuccess> wallet_future_get
|
150
159
|
|
151
160
|
取引余力(先物)
|
152
161
|
|
@@ -157,13 +166,19 @@ No authorization required
|
|
157
166
|
```ruby
|
158
167
|
require 'time'
|
159
168
|
require 'kabustation_client'
|
169
|
+
# setup authorization
|
170
|
+
KabustationClient.configure do |config|
|
171
|
+
# Configure API key authorization: ApiKeyAuth
|
172
|
+
config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
|
173
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
174
|
+
# config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
175
|
+
end
|
160
176
|
|
161
177
|
api_instance = KabustationClient::WalletApi.new
|
162
|
-
x_api_key = 'x_api_key_example' # String | トークン発行メソッドで取得した文字列
|
163
178
|
|
164
179
|
begin
|
165
180
|
# 取引余力(先物)
|
166
|
-
result = api_instance.wallet_future_get
|
181
|
+
result = api_instance.wallet_future_get
|
167
182
|
p result
|
168
183
|
rescue KabustationClient::ApiError => e
|
169
184
|
puts "Error when calling WalletApi->wallet_future_get: #{e}"
|
@@ -174,12 +189,12 @@ end
|
|
174
189
|
|
175
190
|
This returns an Array which contains the response data, status code and headers.
|
176
191
|
|
177
|
-
> <Array(<WalletFutureSuccess>, Integer, Hash)> wallet_future_get_with_http_info
|
192
|
+
> <Array(<WalletFutureSuccess>, Integer, Hash)> wallet_future_get_with_http_info
|
178
193
|
|
179
194
|
```ruby
|
180
195
|
begin
|
181
196
|
# 取引余力(先物)
|
182
|
-
data, status_code, headers = api_instance.wallet_future_get_with_http_info
|
197
|
+
data, status_code, headers = api_instance.wallet_future_get_with_http_info
|
183
198
|
p status_code # => 2xx
|
184
199
|
p headers # => { ... }
|
185
200
|
p data # => <WalletFutureSuccess>
|
@@ -190,9 +205,7 @@ end
|
|
190
205
|
|
191
206
|
### Parameters
|
192
207
|
|
193
|
-
|
194
|
-
| ---- | ---- | ----------- | ----- |
|
195
|
-
| **x_api_key** | **String** | トークン発行メソッドで取得した文字列 | |
|
208
|
+
This endpoint does not need any parameter.
|
196
209
|
|
197
210
|
### Return type
|
198
211
|
|
@@ -200,7 +213,7 @@ end
|
|
200
213
|
|
201
214
|
### Authorization
|
202
215
|
|
203
|
-
|
216
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
204
217
|
|
205
218
|
### HTTP request headers
|
206
219
|
|
@@ -210,7 +223,7 @@ No authorization required
|
|
210
223
|
|
211
224
|
## wallet_future_symbol_get
|
212
225
|
|
213
|
-
> <WalletFutureSuccess> wallet_future_symbol_get(
|
226
|
+
> <WalletFutureSuccess> wallet_future_symbol_get(symbol)
|
214
227
|
|
215
228
|
取引余力(先物)(銘柄指定)
|
216
229
|
|
@@ -221,14 +234,20 @@ No authorization required
|
|
221
234
|
```ruby
|
222
235
|
require 'time'
|
223
236
|
require 'kabustation_client'
|
237
|
+
# setup authorization
|
238
|
+
KabustationClient.configure do |config|
|
239
|
+
# Configure API key authorization: ApiKeyAuth
|
240
|
+
config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
|
241
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
242
|
+
# config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
243
|
+
end
|
224
244
|
|
225
245
|
api_instance = KabustationClient::WalletApi.new
|
226
|
-
x_api_key = 'x_api_key_example' # String | トークン発行メソッドで取得した文字列
|
227
246
|
symbol = 'symbol_example' # String | 銘柄コード <br> ※次の形式で入力してください。<br> [銘柄コード]@[市場コード]<br> ※市場コードは下記の定義値から選択してください。 ※SOR市場は取扱っておりませんのでご注意ください。<b>市場コード</b><br> <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>2</td> <td>日通し</td> </tr> <tr> <td>23</td> <td>日中</td> </tr> <tr> <td>24</td> <td>夜間</td> </tr> </tbody> </table>
|
228
247
|
|
229
248
|
begin
|
230
249
|
# 取引余力(先物)(銘柄指定)
|
231
|
-
result = api_instance.wallet_future_symbol_get(
|
250
|
+
result = api_instance.wallet_future_symbol_get(symbol)
|
232
251
|
p result
|
233
252
|
rescue KabustationClient::ApiError => e
|
234
253
|
puts "Error when calling WalletApi->wallet_future_symbol_get: #{e}"
|
@@ -239,12 +258,12 @@ end
|
|
239
258
|
|
240
259
|
This returns an Array which contains the response data, status code and headers.
|
241
260
|
|
242
|
-
> <Array(<WalletFutureSuccess>, Integer, Hash)> wallet_future_symbol_get_with_http_info(
|
261
|
+
> <Array(<WalletFutureSuccess>, Integer, Hash)> wallet_future_symbol_get_with_http_info(symbol)
|
243
262
|
|
244
263
|
```ruby
|
245
264
|
begin
|
246
265
|
# 取引余力(先物)(銘柄指定)
|
247
|
-
data, status_code, headers = api_instance.wallet_future_symbol_get_with_http_info(
|
266
|
+
data, status_code, headers = api_instance.wallet_future_symbol_get_with_http_info(symbol)
|
248
267
|
p status_code # => 2xx
|
249
268
|
p headers # => { ... }
|
250
269
|
p data # => <WalletFutureSuccess>
|
@@ -257,7 +276,6 @@ end
|
|
257
276
|
|
258
277
|
| Name | Type | Description | Notes |
|
259
278
|
| ---- | ---- | ----------- | ----- |
|
260
|
-
| **x_api_key** | **String** | トークン発行メソッドで取得した文字列 | |
|
261
279
|
| **symbol** | **String** | 銘柄コード <br> ※次の形式で入力してください。<br> [銘柄コード]@[市場コード]<br> ※市場コードは下記の定義値から選択してください。 ※SOR市場は取扱っておりませんのでご注意ください。<b>市場コード</b><br> <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>2</td> <td>日通し</td> </tr> <tr> <td>23</td> <td>日中</td> </tr> <tr> <td>24</td> <td>夜間</td> </tr> </tbody> </table> | |
|
262
280
|
|
263
281
|
### Return type
|
@@ -266,7 +284,7 @@ end
|
|
266
284
|
|
267
285
|
### Authorization
|
268
286
|
|
269
|
-
|
287
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
270
288
|
|
271
289
|
### HTTP request headers
|
272
290
|
|
@@ -276,7 +294,7 @@ No authorization required
|
|
276
294
|
|
277
295
|
## wallet_margin_get
|
278
296
|
|
279
|
-
> <WalletMarginSuccess> wallet_margin_get
|
297
|
+
> <WalletMarginSuccess> wallet_margin_get
|
280
298
|
|
281
299
|
取引余力(信用)
|
282
300
|
|
@@ -287,13 +305,19 @@ No authorization required
|
|
287
305
|
```ruby
|
288
306
|
require 'time'
|
289
307
|
require 'kabustation_client'
|
308
|
+
# setup authorization
|
309
|
+
KabustationClient.configure do |config|
|
310
|
+
# Configure API key authorization: ApiKeyAuth
|
311
|
+
config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
|
312
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
313
|
+
# config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
314
|
+
end
|
290
315
|
|
291
316
|
api_instance = KabustationClient::WalletApi.new
|
292
|
-
x_api_key = 'x_api_key_example' # String | トークン発行メソッドで取得した文字列
|
293
317
|
|
294
318
|
begin
|
295
319
|
# 取引余力(信用)
|
296
|
-
result = api_instance.wallet_margin_get
|
320
|
+
result = api_instance.wallet_margin_get
|
297
321
|
p result
|
298
322
|
rescue KabustationClient::ApiError => e
|
299
323
|
puts "Error when calling WalletApi->wallet_margin_get: #{e}"
|
@@ -304,12 +328,12 @@ end
|
|
304
328
|
|
305
329
|
This returns an Array which contains the response data, status code and headers.
|
306
330
|
|
307
|
-
> <Array(<WalletMarginSuccess>, Integer, Hash)> wallet_margin_get_with_http_info
|
331
|
+
> <Array(<WalletMarginSuccess>, Integer, Hash)> wallet_margin_get_with_http_info
|
308
332
|
|
309
333
|
```ruby
|
310
334
|
begin
|
311
335
|
# 取引余力(信用)
|
312
|
-
data, status_code, headers = api_instance.wallet_margin_get_with_http_info
|
336
|
+
data, status_code, headers = api_instance.wallet_margin_get_with_http_info
|
313
337
|
p status_code # => 2xx
|
314
338
|
p headers # => { ... }
|
315
339
|
p data # => <WalletMarginSuccess>
|
@@ -320,9 +344,7 @@ end
|
|
320
344
|
|
321
345
|
### Parameters
|
322
346
|
|
323
|
-
|
324
|
-
| ---- | ---- | ----------- | ----- |
|
325
|
-
| **x_api_key** | **String** | トークン発行メソッドで取得した文字列 | |
|
347
|
+
This endpoint does not need any parameter.
|
326
348
|
|
327
349
|
### Return type
|
328
350
|
|
@@ -330,7 +352,7 @@ end
|
|
330
352
|
|
331
353
|
### Authorization
|
332
354
|
|
333
|
-
|
355
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
334
356
|
|
335
357
|
### HTTP request headers
|
336
358
|
|
@@ -340,7 +362,7 @@ No authorization required
|
|
340
362
|
|
341
363
|
## wallet_margin_symbol_get
|
342
364
|
|
343
|
-
> <WalletMarginSuccess> wallet_margin_symbol_get(
|
365
|
+
> <WalletMarginSuccess> wallet_margin_symbol_get(symbol)
|
344
366
|
|
345
367
|
取引余力(信用)(銘柄指定)
|
346
368
|
|
@@ -351,14 +373,20 @@ No authorization required
|
|
351
373
|
```ruby
|
352
374
|
require 'time'
|
353
375
|
require 'kabustation_client'
|
376
|
+
# setup authorization
|
377
|
+
KabustationClient.configure do |config|
|
378
|
+
# Configure API key authorization: ApiKeyAuth
|
379
|
+
config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
|
380
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
381
|
+
# config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
382
|
+
end
|
354
383
|
|
355
384
|
api_instance = KabustationClient::WalletApi.new
|
356
|
-
x_api_key = 'x_api_key_example' # String | トークン発行メソッドで取得した文字列
|
357
385
|
symbol = 'symbol_example' # 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> </tbody> </table>
|
358
386
|
|
359
387
|
begin
|
360
388
|
# 取引余力(信用)(銘柄指定)
|
361
|
-
result = api_instance.wallet_margin_symbol_get(
|
389
|
+
result = api_instance.wallet_margin_symbol_get(symbol)
|
362
390
|
p result
|
363
391
|
rescue KabustationClient::ApiError => e
|
364
392
|
puts "Error when calling WalletApi->wallet_margin_symbol_get: #{e}"
|
@@ -369,12 +397,12 @@ end
|
|
369
397
|
|
370
398
|
This returns an Array which contains the response data, status code and headers.
|
371
399
|
|
372
|
-
> <Array(<WalletMarginSuccess>, Integer, Hash)> wallet_margin_symbol_get_with_http_info(
|
400
|
+
> <Array(<WalletMarginSuccess>, Integer, Hash)> wallet_margin_symbol_get_with_http_info(symbol)
|
373
401
|
|
374
402
|
```ruby
|
375
403
|
begin
|
376
404
|
# 取引余力(信用)(銘柄指定)
|
377
|
-
data, status_code, headers = api_instance.wallet_margin_symbol_get_with_http_info(
|
405
|
+
data, status_code, headers = api_instance.wallet_margin_symbol_get_with_http_info(symbol)
|
378
406
|
p status_code # => 2xx
|
379
407
|
p headers # => { ... }
|
380
408
|
p data # => <WalletMarginSuccess>
|
@@ -387,7 +415,6 @@ end
|
|
387
415
|
|
388
416
|
| Name | Type | Description | Notes |
|
389
417
|
| ---- | ---- | ----------- | ----- |
|
390
|
-
| **x_api_key** | **String** | トークン発行メソッドで取得した文字列 | |
|
391
418
|
| **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> </tbody> </table> | |
|
392
419
|
|
393
420
|
### Return type
|
@@ -396,7 +423,7 @@ end
|
|
396
423
|
|
397
424
|
### Authorization
|
398
425
|
|
399
|
-
|
426
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
400
427
|
|
401
428
|
### HTTP request headers
|
402
429
|
|
@@ -406,7 +433,7 @@ No authorization required
|
|
406
433
|
|
407
434
|
## wallet_option_get
|
408
435
|
|
409
|
-
> <WalletOptionSuccess> wallet_option_get
|
436
|
+
> <WalletOptionSuccess> wallet_option_get
|
410
437
|
|
411
438
|
取引余力(オプション)
|
412
439
|
|
@@ -417,13 +444,19 @@ No authorization required
|
|
417
444
|
```ruby
|
418
445
|
require 'time'
|
419
446
|
require 'kabustation_client'
|
447
|
+
# setup authorization
|
448
|
+
KabustationClient.configure do |config|
|
449
|
+
# Configure API key authorization: ApiKeyAuth
|
450
|
+
config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
|
451
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
452
|
+
# config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
453
|
+
end
|
420
454
|
|
421
455
|
api_instance = KabustationClient::WalletApi.new
|
422
|
-
x_api_key = 'x_api_key_example' # String | トークン発行メソッドで取得した文字列
|
423
456
|
|
424
457
|
begin
|
425
458
|
# 取引余力(オプション)
|
426
|
-
result = api_instance.wallet_option_get
|
459
|
+
result = api_instance.wallet_option_get
|
427
460
|
p result
|
428
461
|
rescue KabustationClient::ApiError => e
|
429
462
|
puts "Error when calling WalletApi->wallet_option_get: #{e}"
|
@@ -434,12 +467,12 @@ end
|
|
434
467
|
|
435
468
|
This returns an Array which contains the response data, status code and headers.
|
436
469
|
|
437
|
-
> <Array(<WalletOptionSuccess>, Integer, Hash)> wallet_option_get_with_http_info
|
470
|
+
> <Array(<WalletOptionSuccess>, Integer, Hash)> wallet_option_get_with_http_info
|
438
471
|
|
439
472
|
```ruby
|
440
473
|
begin
|
441
474
|
# 取引余力(オプション)
|
442
|
-
data, status_code, headers = api_instance.wallet_option_get_with_http_info
|
475
|
+
data, status_code, headers = api_instance.wallet_option_get_with_http_info
|
443
476
|
p status_code # => 2xx
|
444
477
|
p headers # => { ... }
|
445
478
|
p data # => <WalletOptionSuccess>
|
@@ -450,9 +483,7 @@ end
|
|
450
483
|
|
451
484
|
### Parameters
|
452
485
|
|
453
|
-
|
454
|
-
| ---- | ---- | ----------- | ----- |
|
455
|
-
| **x_api_key** | **String** | トークン発行メソッドで取得した文字列 | |
|
486
|
+
This endpoint does not need any parameter.
|
456
487
|
|
457
488
|
### Return type
|
458
489
|
|
@@ -460,7 +491,7 @@ end
|
|
460
491
|
|
461
492
|
### Authorization
|
462
493
|
|
463
|
-
|
494
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
464
495
|
|
465
496
|
### HTTP request headers
|
466
497
|
|
@@ -470,7 +501,7 @@ No authorization required
|
|
470
501
|
|
471
502
|
## wallet_option_symbol_get
|
472
503
|
|
473
|
-
> <WalletOptionSuccess> wallet_option_symbol_get(
|
504
|
+
> <WalletOptionSuccess> wallet_option_symbol_get(symbol)
|
474
505
|
|
475
506
|
取引余力(オプション)(銘柄指定)
|
476
507
|
|
@@ -481,14 +512,20 @@ No authorization required
|
|
481
512
|
```ruby
|
482
513
|
require 'time'
|
483
514
|
require 'kabustation_client'
|
515
|
+
# setup authorization
|
516
|
+
KabustationClient.configure do |config|
|
517
|
+
# Configure API key authorization: ApiKeyAuth
|
518
|
+
config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
|
519
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
520
|
+
# config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
|
521
|
+
end
|
484
522
|
|
485
523
|
api_instance = KabustationClient::WalletApi.new
|
486
|
-
x_api_key = 'x_api_key_example' # String | トークン発行メソッドで取得した文字列
|
487
524
|
symbol = 'symbol_example' # String | 銘柄コード <br> ※次の形式で入力してください。<br> [銘柄コード]@[市場コード]<br> ※市場コードは下記の定義値から選択してください。 <b>市場コード</b> <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>2</td> <td>日通し</td> </tr> <tr> <td>23</td> <td>日中</td> </tr> <tr> <td>24</td> <td>夜間</td> </tr> </tbody> </table>
|
488
525
|
|
489
526
|
begin
|
490
527
|
# 取引余力(オプション)(銘柄指定)
|
491
|
-
result = api_instance.wallet_option_symbol_get(
|
528
|
+
result = api_instance.wallet_option_symbol_get(symbol)
|
492
529
|
p result
|
493
530
|
rescue KabustationClient::ApiError => e
|
494
531
|
puts "Error when calling WalletApi->wallet_option_symbol_get: #{e}"
|
@@ -499,12 +536,12 @@ end
|
|
499
536
|
|
500
537
|
This returns an Array which contains the response data, status code and headers.
|
501
538
|
|
502
|
-
> <Array(<WalletOptionSuccess>, Integer, Hash)> wallet_option_symbol_get_with_http_info(
|
539
|
+
> <Array(<WalletOptionSuccess>, Integer, Hash)> wallet_option_symbol_get_with_http_info(symbol)
|
503
540
|
|
504
541
|
```ruby
|
505
542
|
begin
|
506
543
|
# 取引余力(オプション)(銘柄指定)
|
507
|
-
data, status_code, headers = api_instance.wallet_option_symbol_get_with_http_info(
|
544
|
+
data, status_code, headers = api_instance.wallet_option_symbol_get_with_http_info(symbol)
|
508
545
|
p status_code # => 2xx
|
509
546
|
p headers # => { ... }
|
510
547
|
p data # => <WalletOptionSuccess>
|
@@ -517,7 +554,6 @@ end
|
|
517
554
|
|
518
555
|
| Name | Type | Description | Notes |
|
519
556
|
| ---- | ---- | ----------- | ----- |
|
520
|
-
| **x_api_key** | **String** | トークン発行メソッドで取得した文字列 | |
|
521
557
|
| **symbol** | **String** | 銘柄コード <br> ※次の形式で入力してください。<br> [銘柄コード]@[市場コード]<br> ※市場コードは下記の定義値から選択してください。 <b>市場コード</b> <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>2</td> <td>日通し</td> </tr> <tr> <td>23</td> <td>日中</td> </tr> <tr> <td>24</td> <td>夜間</td> </tr> </tbody> </table> | |
|
522
558
|
|
523
559
|
### Return type
|
@@ -526,7 +562,7 @@ end
|
|
526
562
|
|
527
563
|
### Authorization
|
528
564
|
|
529
|
-
|
565
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
530
566
|
|
531
567
|
### HTTP request headers
|
532
568
|
|