Class: KabustationClient::InfoApi
- Inherits:
-
Object
- Object
- KabustationClient::InfoApi
- Defined in:
- lib/kabustation_client/api/info_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#apisoftlimit_get(opts = {}) ⇒ ApiSoftLimitResponse
ソフトリミット kabuステーションAPIのソフトリミット値を取得する.
-
#apisoftlimit_get_with_http_info(opts = {}) ⇒ Array<(ApiSoftLimitResponse, Integer, Hash)>
ソフトリミット kabuステーションAPIのソフトリミット値を取得する.
-
#board_get(symbol, opts = {}) ⇒ BoardSuccess
時価情報・板情報 指定した銘柄の時価情報・板情報を取得します
レスポンスの一部にnullが発生した場合、該当銘柄を銘柄登録をしてから、
再度時価情報・板情報APIを実行してください。. -
#board_get_with_http_info(symbol, opts = {}) ⇒ Array<(BoardSuccess, Integer, Hash)>
時価情報・板情報 指定した銘柄の時価情報・板情報を取得します<br> レスポンスの一部にnullが発生した場合、該当銘柄を銘柄登録をしてから、 <br>再度時価情報・板情報APIを実行してください。.
-
#exchange_get(symbol, opts = {}) ⇒ ExchangeResponse
為替情報 マネービューの情報を取得する.
-
#exchange_get_with_http_info(symbol, opts = {}) ⇒ Array<(ExchangeResponse, Integer, Hash)>
為替情報 マネービューの情報を取得する.
-
#initialize(api_client = ApiClient.default) ⇒ InfoApi
constructor
A new instance of InfoApi.
-
#marginpremium_get(symbol, opts = {}) ⇒ MarginPremiumResponse
プレミアム料取得 指定した銘柄のプレミアム料を取得するAPI.
-
#marginpremium_get_with_http_info(symbol, opts = {}) ⇒ Array<(MarginPremiumResponse, Integer, Hash)>
プレミアム料取得 指定した銘柄のプレミアム料を取得するAPI.
-
#orders_get(opts = {}) ⇒ Array<OrdersSuccess>
注文約定照会 注文一覧を取得します。
※下記Queryパラメータは任意設定となります。. -
#orders_get_with_http_info(opts = {}) ⇒ Array<(Array<OrdersSuccess>, Integer, Hash)>
注文約定照会 注文一覧を取得します。<br> ※下記Queryパラメータは任意設定となります。.
-
#positions_get(opts = {}) ⇒ Array<PositionsSuccess>
残高照会 残高一覧を取得します。
※下記Queryパラメータは任意設定となります。. -
#positions_get_with_http_info(opts = {}) ⇒ Array<(Array<PositionsSuccess>, Integer, Hash)>
残高照会 残高一覧を取得します。<br>※下記Queryパラメータは任意設定となります。.
-
#primary_exchange_get(symbol, opts = {}) ⇒ PrimaryExchangeResponse
優先市場 株式の優先市場を取得する.
-
#primary_exchange_get_with_http_info(symbol, opts = {}) ⇒ Array<(PrimaryExchangeResponse, Integer, Hash)>
優先市場 株式の優先市場を取得する.
-
#ranking_get(type, exchange_division, opts = {}) ⇒ RankingGet200Response
詳細ランキング 詳細ランキング画面と同様の各種ランキングを返します。
ランキングの対象日はkabuステーションが保持している当日のデータとなります。
※株価情報ランキング、業種別指数ランキングは、下記の時間帯でデータがクリアされるため、
その間の詳細ランキングAPIは空レスポンスとなります。
データクリア:平日7:53頃-9:00過ぎ頃
※信用情報ランキングは毎週第3営業日の7:55頃にデータが更新されます。. -
#ranking_get_with_http_info(type, exchange_division, opts = {}) ⇒ Array<(RankingGet200Response, Integer, Hash)>
詳細ランキング 詳細ランキング画面と同様の各種ランキングを返します。 <br>ランキングの対象日はkabuステーションが保持している当日のデータとなります。 <br>※株価情報ランキング、業種別指数ランキングは、下記の時間帯でデータがクリアされるため、 <br>その間の詳細ランキングAPIは空レスポンスとなります。 <br>データクリア:平日7:53頃-9:00過ぎ頃 <br>※信用情報ランキングは毎週第3営業日の7:55頃にデータが更新されます。.
-
#regulations_get(symbol, opts = {}) ⇒ RegulationsResponse
規制情報 規制情報+空売り規制情報を取得する.
-
#regulations_get_with_http_info(symbol, opts = {}) ⇒ Array<(RegulationsResponse, Integer, Hash)>
規制情報 規制情報+空売り規制情報を取得する.
-
#symbol_get(symbol, opts = {}) ⇒ SymbolSuccess
銘柄情報 指定した銘柄情報を取得します.
-
#symbol_get_with_http_info(symbol, opts = {}) ⇒ Array<(SymbolSuccess, Integer, Hash)>
銘柄情報 指定した銘柄情報を取得します.
-
#symbolname_future_get(deriv_month, opts = {}) ⇒ SymbolNameSuccess
先物銘柄コード取得 先物銘柄コード取得.
-
#symbolname_future_get_with_http_info(deriv_month, opts = {}) ⇒ Array<(SymbolNameSuccess, Integer, Hash)>
先物銘柄コード取得 先物銘柄コード取得.
-
#symbolname_option_get(deriv_month, put_or_call, strike_price, opts = {}) ⇒ SymbolNameSuccess
オプション銘柄コード取得 オプション銘柄コード取得.
-
#symbolname_option_get_with_http_info(deriv_month, put_or_call, strike_price, opts = {}) ⇒ Array<(SymbolNameSuccess, Integer, Hash)>
オプション銘柄コード取得 オプション銘柄コード取得.
-
#symbolname_option_mini_get(deriv_month, deriv_weekly, put_or_call, strike_price, opts = {}) ⇒ SymbolNameSuccess
ミニオプション(限週)銘柄コード取得 ミニオプション(限週)銘柄コード取得.
-
#symbolname_option_mini_get_with_http_info(deriv_month, deriv_weekly, put_or_call, strike_price, opts = {}) ⇒ Array<(SymbolNameSuccess, Integer, Hash)>
ミニオプション(限週)銘柄コード取得 ミニオプション(限週)銘柄コード取得.
Constructor Details
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/kabustation_client/api/info_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#apisoftlimit_get(opts = {}) ⇒ ApiSoftLimitResponse
ソフトリミット kabuステーションAPIのソフトリミット値を取得する
26 27 28 29 |
# File 'lib/kabustation_client/api/info_api.rb', line 26 def apisoftlimit_get(opts = {}) data, _status_code, _headers = apisoftlimit_get_with_http_info(opts) data end |
#apisoftlimit_get_with_http_info(opts = {}) ⇒ Array<(ApiSoftLimitResponse, Integer, Hash)>
ソフトリミット kabuステーションAPIのソフトリミット値を取得する
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/kabustation_client/api/info_api.rb', line 35 def apisoftlimit_get_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: InfoApi.apisoftlimit_get ...' end # resource path local_var_path = '/apisoftlimit' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'ApiSoftLimitResponse' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKeyAuth'] = opts.merge( :operation => :"InfoApi.apisoftlimit_get", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: InfoApi#apisoftlimit_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#board_get(symbol, opts = {}) ⇒ BoardSuccess
時価情報・板情報 指定した銘柄の時価情報・板情報を取得します
レスポンスの一部にnullが発生した場合、該当銘柄を銘柄登録をしてから、
再度時価情報・板情報APIを実行してください。
84 85 86 87 |
# File 'lib/kabustation_client/api/info_api.rb', line 84 def board_get(symbol, opts = {}) data, _status_code, _headers = board_get_with_http_info(symbol, opts) data end |
#board_get_with_http_info(symbol, opts = {}) ⇒ Array<(BoardSuccess, Integer, Hash)>
時価情報・板情報 指定した銘柄の時価情報・板情報を取得します<br> レスポンスの一部にnullが発生した場合、該当銘柄を銘柄登録をしてから、 <br>再度時価情報・板情報APIを実行してください。
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 |
# File 'lib/kabustation_client/api/info_api.rb', line 94 def board_get_with_http_info(symbol, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: InfoApi.board_get ...' end # verify the required parameter 'symbol' is set if @api_client.config.client_side_validation && symbol.nil? fail ArgumentError, "Missing the required parameter 'symbol' when calling InfoApi.board_get" end # resource path local_var_path = '/board/{symbol}'.sub('{' + 'symbol' + '}', CGI.escape(symbol.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'BoardSuccess' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKeyAuth'] = opts.merge( :operation => :"InfoApi.board_get", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: InfoApi#board_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#exchange_get(symbol, opts = {}) ⇒ ExchangeResponse
為替情報 マネービューの情報を取得する
147 148 149 150 |
# File 'lib/kabustation_client/api/info_api.rb', line 147 def exchange_get(symbol, opts = {}) data, _status_code, _headers = exchange_get_with_http_info(symbol, opts) data end |
#exchange_get_with_http_info(symbol, opts = {}) ⇒ Array<(ExchangeResponse, Integer, Hash)>
為替情報 マネービューの情報を取得する
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 |
# File 'lib/kabustation_client/api/info_api.rb', line 157 def exchange_get_with_http_info(symbol, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: InfoApi.exchange_get ...' end # verify the required parameter 'symbol' is set if @api_client.config.client_side_validation && symbol.nil? fail ArgumentError, "Missing the required parameter 'symbol' when calling InfoApi.exchange_get" end # verify enum value allowable_values = ["usdjpy", "eurjpy", "gbpjpy", "audjpy", "chfjpy", "cadjpy", "nzdjpy", "zarjpy", "eurusd", "gbpusd", "audusd"] if @api_client.config.client_side_validation && !allowable_values.include?(symbol) fail ArgumentError, "invalid value for \"symbol\", must be one of #{allowable_values}" end # resource path local_var_path = '/exchange/{symbol}'.sub('{' + 'symbol' + '}', CGI.escape(symbol.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'ExchangeResponse' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKeyAuth'] = opts.merge( :operation => :"InfoApi.exchange_get", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: InfoApi#exchange_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#marginpremium_get(symbol, opts = {}) ⇒ MarginPremiumResponse
プレミアム料取得 指定した銘柄のプレミアム料を取得するAPI
215 216 217 218 |
# File 'lib/kabustation_client/api/info_api.rb', line 215 def marginpremium_get(symbol, opts = {}) data, _status_code, _headers = marginpremium_get_with_http_info(symbol, opts) data end |
#marginpremium_get_with_http_info(symbol, opts = {}) ⇒ Array<(MarginPremiumResponse, Integer, Hash)>
プレミアム料取得 指定した銘柄のプレミアム料を取得するAPI
225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 |
# File 'lib/kabustation_client/api/info_api.rb', line 225 def marginpremium_get_with_http_info(symbol, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: InfoApi.marginpremium_get ...' end # verify the required parameter 'symbol' is set if @api_client.config.client_side_validation && symbol.nil? fail ArgumentError, "Missing the required parameter 'symbol' when calling InfoApi.marginpremium_get" end # resource path local_var_path = '/margin/marginpremium/{symbol}'.sub('{' + 'symbol' + '}', CGI.escape(symbol.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'MarginPremiumResponse' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKeyAuth'] = opts.merge( :operation => :"InfoApi.marginpremium_get", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: InfoApi#marginpremium_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#orders_get(opts = {}) ⇒ Array<OrdersSuccess>
注文約定照会 注文一覧を取得します。
※下記Queryパラメータは任意設定となります。
285 286 287 288 |
# File 'lib/kabustation_client/api/info_api.rb', line 285 def orders_get(opts = {}) data, _status_code, _headers = orders_get_with_http_info(opts) data end |
#orders_get_with_http_info(opts = {}) ⇒ Array<(Array<OrdersSuccess>, Integer, Hash)>
注文約定照会 注文一覧を取得します。<br> ※下記Queryパラメータは任意設定となります。
302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 |
# File 'lib/kabustation_client/api/info_api.rb', line 302 def orders_get_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: InfoApi.orders_get ...' end allowable_values = ["0", "1", "2", "3", "4"] if @api_client.config.client_side_validation && opts[:'product'] && !allowable_values.include?(opts[:'product']) fail ArgumentError, "invalid value for \"product\", must be one of #{allowable_values}" end allowable_values = ["1", "2", "3", "4", "5"] if @api_client.config.client_side_validation && opts[:'state'] && !allowable_values.include?(opts[:'state']) fail ArgumentError, "invalid value for \"state\", must be one of #{allowable_values}" end allowable_values = ["1", "2"] if @api_client.config.client_side_validation && opts[:'side'] && !allowable_values.include?(opts[:'side']) fail ArgumentError, "invalid value for \"side\", must be one of #{allowable_values}" end allowable_values = ["2", "3"] if @api_client.config.client_side_validation && opts[:'cashmargin'] && !allowable_values.include?(opts[:'cashmargin']) fail ArgumentError, "invalid value for \"cashmargin\", must be one of #{allowable_values}" end # resource path local_var_path = '/orders' # query parameters query_params = opts[:query_params] || {} query_params[:'product'] = opts[:'product'] if !opts[:'product'].nil? query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil? query_params[:'updtime'] = opts[:'updtime'] if !opts[:'updtime'].nil? query_params[:'details'] = opts[:'details'] if !opts[:'details'].nil? query_params[:'symbol'] = opts[:'symbol'] if !opts[:'symbol'].nil? query_params[:'state'] = opts[:'state'] if !opts[:'state'].nil? query_params[:'side'] = opts[:'side'] if !opts[:'side'].nil? query_params[:'cashmargin'] = opts[:'cashmargin'] if !opts[:'cashmargin'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Array<OrdersSuccess>' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKeyAuth'] = opts.merge( :operation => :"InfoApi.orders_get", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: InfoApi#orders_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#positions_get(opts = {}) ⇒ Array<PositionsSuccess>
残高照会 残高一覧を取得します。
※下記Queryパラメータは任意設定となります。
378 379 380 381 |
# File 'lib/kabustation_client/api/info_api.rb', line 378 def positions_get(opts = {}) data, _status_code, _headers = positions_get_with_http_info(opts) data end |
#positions_get_with_http_info(opts = {}) ⇒ Array<(Array<PositionsSuccess>, Integer, Hash)>
残高照会 残高一覧を取得します。<br>※下記Queryパラメータは任意設定となります。
391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 |
# File 'lib/kabustation_client/api/info_api.rb', line 391 def positions_get_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: InfoApi.positions_get ...' end allowable_values = ["0", "1", "2", "3", "4"] if @api_client.config.client_side_validation && opts[:'product'] && !allowable_values.include?(opts[:'product']) fail ArgumentError, "invalid value for \"product\", must be one of #{allowable_values}" end allowable_values = ["1", "2"] if @api_client.config.client_side_validation && opts[:'side'] && !allowable_values.include?(opts[:'side']) fail ArgumentError, "invalid value for \"side\", must be one of #{allowable_values}" end # resource path local_var_path = '/positions' # query parameters query_params = opts[:query_params] || {} query_params[:'product'] = opts[:'product'] if !opts[:'product'].nil? query_params[:'symbol'] = opts[:'symbol'] if !opts[:'symbol'].nil? query_params[:'side'] = opts[:'side'] if !opts[:'side'].nil? query_params[:'addinfo'] = opts[:'addinfo'] if !opts[:'addinfo'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Array<PositionsSuccess>' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKeyAuth'] = opts.merge( :operation => :"InfoApi.positions_get", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: InfoApi#positions_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#primary_exchange_get(symbol, opts = {}) ⇒ PrimaryExchangeResponse
優先市場 株式の優先市場を取得する
452 453 454 455 |
# File 'lib/kabustation_client/api/info_api.rb', line 452 def primary_exchange_get(symbol, opts = {}) data, _status_code, _headers = primary_exchange_get_with_http_info(symbol, opts) data end |
#primary_exchange_get_with_http_info(symbol, opts = {}) ⇒ Array<(PrimaryExchangeResponse, Integer, Hash)>
優先市場 株式の優先市場を取得する
462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 |
# File 'lib/kabustation_client/api/info_api.rb', line 462 def primary_exchange_get_with_http_info(symbol, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: InfoApi.primary_exchange_get ...' end # verify the required parameter 'symbol' is set if @api_client.config.client_side_validation && symbol.nil? fail ArgumentError, "Missing the required parameter 'symbol' when calling InfoApi.primary_exchange_get" end # resource path local_var_path = '/primaryexchange/{symbol}'.sub('{' + 'symbol' + '}', CGI.escape(symbol.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'PrimaryExchangeResponse' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKeyAuth'] = opts.merge( :operation => :"InfoApi.primary_exchange_get", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: InfoApi#primary_exchange_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#ranking_get(type, exchange_division, opts = {}) ⇒ RankingGet200Response
詳細ランキング 詳細ランキング画面と同様の各種ランキングを返します。
ランキングの対象日はkabuステーションが保持している当日のデータとなります。
※株価情報ランキング、業種別指数ランキングは、下記の時間帯でデータがクリアされるため、
その間の詳細ランキングAPIは空レスポンスとなります。
データクリア:平日7:53頃-9:00過ぎ頃
※信用情報ランキングは毎週第3営業日の7:55頃にデータが更新されます。
516 517 518 519 |
# File 'lib/kabustation_client/api/info_api.rb', line 516 def ranking_get(type, exchange_division, opts = {}) data, _status_code, _headers = ranking_get_with_http_info(type, exchange_division, opts) data end |
#ranking_get_with_http_info(type, exchange_division, opts = {}) ⇒ Array<(RankingGet200Response, Integer, Hash)>
詳細ランキング 詳細ランキング画面と同様の各種ランキングを返します。 <br>ランキングの対象日はkabuステーションが保持している当日のデータとなります。 <br>※株価情報ランキング、業種別指数ランキングは、下記の時間帯でデータがクリアされるため、 <br>その間の詳細ランキングAPIは空レスポンスとなります。 <br>データクリア:平日7:53頃-9:00過ぎ頃 <br>※信用情報ランキングは毎週第3営業日の7:55頃にデータが更新されます。
527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 |
# File 'lib/kabustation_client/api/info_api.rb', line 527 def ranking_get_with_http_info(type, exchange_division, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: InfoApi.ranking_get ...' end # verify the required parameter 'type' is set if @api_client.config.client_side_validation && type.nil? fail ArgumentError, "Missing the required parameter 'type' when calling InfoApi.ranking_get" end # verify enum value allowable_values = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15"] if @api_client.config.client_side_validation && !allowable_values.include?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{allowable_values}" end # verify the required parameter 'exchange_division' is set if @api_client.config.client_side_validation && exchange_division.nil? fail ArgumentError, "Missing the required parameter 'exchange_division' when calling InfoApi.ranking_get" end # verify enum value allowable_values = ["ALL", "T", "TP", "TS", "TG", "M", "FK", "S"] if @api_client.config.client_side_validation && !allowable_values.include?(exchange_division) fail ArgumentError, "invalid value for \"exchange_division\", must be one of #{allowable_values}" end # resource path local_var_path = '/ranking' # query parameters query_params = opts[:query_params] || {} query_params[:'Type'] = type query_params[:'ExchangeDivision'] = exchange_division # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'RankingGet200Response' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKeyAuth'] = opts.merge( :operation => :"InfoApi.ranking_get", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: InfoApi#ranking_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#regulations_get(symbol, opts = {}) ⇒ RegulationsResponse
規制情報 規制情報+空売り規制情報を取得する
596 597 598 599 |
# File 'lib/kabustation_client/api/info_api.rb', line 596 def regulations_get(symbol, opts = {}) data, _status_code, _headers = regulations_get_with_http_info(symbol, opts) data end |
#regulations_get_with_http_info(symbol, opts = {}) ⇒ Array<(RegulationsResponse, Integer, Hash)>
規制情報 規制情報+空売り規制情報を取得する
606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 |
# File 'lib/kabustation_client/api/info_api.rb', line 606 def regulations_get_with_http_info(symbol, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: InfoApi.regulations_get ...' end # verify the required parameter 'symbol' is set if @api_client.config.client_side_validation && symbol.nil? fail ArgumentError, "Missing the required parameter 'symbol' when calling InfoApi.regulations_get" end # resource path local_var_path = '/regulations/{symbol}'.sub('{' + 'symbol' + '}', CGI.escape(symbol.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'RegulationsResponse' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKeyAuth'] = opts.merge( :operation => :"InfoApi.regulations_get", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: InfoApi#regulations_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#symbol_get(symbol, opts = {}) ⇒ SymbolSuccess
銘柄情報 指定した銘柄情報を取得します
660 661 662 663 |
# File 'lib/kabustation_client/api/info_api.rb', line 660 def symbol_get(symbol, opts = {}) data, _status_code, _headers = symbol_get_with_http_info(symbol, opts) data end |
#symbol_get_with_http_info(symbol, opts = {}) ⇒ Array<(SymbolSuccess, Integer, Hash)>
銘柄情報 指定した銘柄情報を取得します
671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 |
# File 'lib/kabustation_client/api/info_api.rb', line 671 def symbol_get_with_http_info(symbol, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: InfoApi.symbol_get ...' end # verify the required parameter 'symbol' is set if @api_client.config.client_side_validation && symbol.nil? fail ArgumentError, "Missing the required parameter 'symbol' when calling InfoApi.symbol_get" end # resource path local_var_path = '/symbol/{symbol}'.sub('{' + 'symbol' + '}', CGI.escape(symbol.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'addinfo'] = opts[:'addinfo'] if !opts[:'addinfo'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'SymbolSuccess' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKeyAuth'] = opts.merge( :operation => :"InfoApi.symbol_get", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: InfoApi#symbol_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#symbolname_future_get(deriv_month, opts = {}) ⇒ SymbolNameSuccess
先物銘柄コード取得 先物銘柄コード取得
726 727 728 729 |
# File 'lib/kabustation_client/api/info_api.rb', line 726 def symbolname_future_get(deriv_month, opts = {}) data, _status_code, _headers = symbolname_future_get_with_http_info(deriv_month, opts) data end |
#symbolname_future_get_with_http_info(deriv_month, opts = {}) ⇒ Array<(SymbolNameSuccess, Integer, Hash)>
先物銘柄コード取得 先物銘柄コード取得
737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 |
# File 'lib/kabustation_client/api/info_api.rb', line 737 def symbolname_future_get_with_http_info(deriv_month, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: InfoApi.symbolname_future_get ...' end # verify the required parameter 'deriv_month' is set if @api_client.config.client_side_validation && deriv_month.nil? fail ArgumentError, "Missing the required parameter 'deriv_month' when calling InfoApi.symbolname_future_get" end # resource path local_var_path = '/symbolname/future' # query parameters query_params = opts[:query_params] || {} query_params[:'DerivMonth'] = deriv_month query_params[:'FutureCode'] = opts[:'future_code'] if !opts[:'future_code'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'SymbolNameSuccess' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKeyAuth'] = opts.merge( :operation => :"InfoApi.symbolname_future_get", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: InfoApi#symbolname_future_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#symbolname_option_get(deriv_month, put_or_call, strike_price, opts = {}) ⇒ SymbolNameSuccess
オプション銘柄コード取得 オプション銘柄コード取得
795 796 797 798 |
# File 'lib/kabustation_client/api/info_api.rb', line 795 def symbolname_option_get(deriv_month, put_or_call, strike_price, opts = {}) data, _status_code, _headers = symbolname_option_get_with_http_info(deriv_month, put_or_call, strike_price, opts) data end |
#symbolname_option_get_with_http_info(deriv_month, put_or_call, strike_price, opts = {}) ⇒ Array<(SymbolNameSuccess, Integer, Hash)>
オプション銘柄コード取得 オプション銘柄コード取得
808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 |
# File 'lib/kabustation_client/api/info_api.rb', line 808 def symbolname_option_get_with_http_info(deriv_month, put_or_call, strike_price, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: InfoApi.symbolname_option_get ...' end # verify the required parameter 'deriv_month' is set if @api_client.config.client_side_validation && deriv_month.nil? fail ArgumentError, "Missing the required parameter 'deriv_month' when calling InfoApi.symbolname_option_get" end # verify the required parameter 'put_or_call' is set if @api_client.config.client_side_validation && put_or_call.nil? fail ArgumentError, "Missing the required parameter 'put_or_call' when calling InfoApi.symbolname_option_get" end # verify the required parameter 'strike_price' is set if @api_client.config.client_side_validation && strike_price.nil? fail ArgumentError, "Missing the required parameter 'strike_price' when calling InfoApi.symbolname_option_get" end # resource path local_var_path = '/symbolname/option' # query parameters query_params = opts[:query_params] || {} query_params[:'DerivMonth'] = deriv_month query_params[:'PutOrCall'] = put_or_call query_params[:'StrikePrice'] = strike_price query_params[:'OptionCode'] = opts[:'option_code'] if !opts[:'option_code'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'SymbolNameSuccess' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKeyAuth'] = opts.merge( :operation => :"InfoApi.symbolname_option_get", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: InfoApi#symbolname_option_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#symbolname_option_mini_get(deriv_month, deriv_weekly, put_or_call, strike_price, opts = {}) ⇒ SymbolNameSuccess
ミニオプション(限週)銘柄コード取得 ミニオプション(限週)銘柄コード取得
876 877 878 879 |
# File 'lib/kabustation_client/api/info_api.rb', line 876 def symbolname_option_mini_get(deriv_month, deriv_weekly, put_or_call, strike_price, opts = {}) data, _status_code, _headers = symbolname_option_mini_get_with_http_info(deriv_month, deriv_weekly, put_or_call, strike_price, opts) data end |
#symbolname_option_mini_get_with_http_info(deriv_month, deriv_weekly, put_or_call, strike_price, opts = {}) ⇒ Array<(SymbolNameSuccess, Integer, Hash)>
ミニオプション(限週)銘柄コード取得 ミニオプション(限週)銘柄コード取得
889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 |
# File 'lib/kabustation_client/api/info_api.rb', line 889 def symbolname_option_mini_get_with_http_info(deriv_month, deriv_weekly, put_or_call, strike_price, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: InfoApi.symbolname_option_mini_get ...' end # verify the required parameter 'deriv_month' is set if @api_client.config.client_side_validation && deriv_month.nil? fail ArgumentError, "Missing the required parameter 'deriv_month' when calling InfoApi.symbolname_option_mini_get" end # verify the required parameter 'deriv_weekly' is set if @api_client.config.client_side_validation && deriv_weekly.nil? fail ArgumentError, "Missing the required parameter 'deriv_weekly' when calling InfoApi.symbolname_option_mini_get" end # verify the required parameter 'put_or_call' is set if @api_client.config.client_side_validation && put_or_call.nil? fail ArgumentError, "Missing the required parameter 'put_or_call' when calling InfoApi.symbolname_option_mini_get" end # verify the required parameter 'strike_price' is set if @api_client.config.client_side_validation && strike_price.nil? fail ArgumentError, "Missing the required parameter 'strike_price' when calling InfoApi.symbolname_option_mini_get" end # resource path local_var_path = '/symbolname/minioptionweekly' # query parameters query_params = opts[:query_params] || {} query_params[:'DerivMonth'] = deriv_month query_params[:'DerivWeekly'] = deriv_weekly query_params[:'PutOrCall'] = put_or_call query_params[:'StrikePrice'] = strike_price # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'SymbolNameSuccess' # auth_names auth_names = opts[:debug_auth_names] || ['ApiKeyAuth'] = opts.merge( :operation => :"InfoApi.symbolname_option_mini_get", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: InfoApi#symbolname_option_mini_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |