kabustation_client 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +188 -0
- data/Rakefile +10 -0
- data/docs/ApiSoftLimitResponse.md +32 -0
- data/docs/AuthApi.md +72 -0
- data/docs/BoardSuccess.md +142 -0
- data/docs/BoardSuccessBuy1.md +24 -0
- data/docs/BoardSuccessBuy10.md +20 -0
- data/docs/BoardSuccessBuy2.md +20 -0
- data/docs/BoardSuccessBuy3.md +20 -0
- data/docs/BoardSuccessBuy4.md +20 -0
- data/docs/BoardSuccessBuy5.md +20 -0
- data/docs/BoardSuccessBuy6.md +20 -0
- data/docs/BoardSuccessBuy7.md +20 -0
- data/docs/BoardSuccessBuy8.md +20 -0
- data/docs/BoardSuccessBuy9.md +20 -0
- data/docs/BoardSuccessSell1.md +24 -0
- data/docs/BoardSuccessSell10.md +20 -0
- data/docs/BoardSuccessSell2.md +20 -0
- data/docs/BoardSuccessSell3.md +20 -0
- data/docs/BoardSuccessSell4.md +20 -0
- data/docs/BoardSuccessSell5.md +20 -0
- data/docs/BoardSuccessSell6.md +20 -0
- data/docs/BoardSuccessSell7.md +20 -0
- data/docs/BoardSuccessSell8.md +20 -0
- data/docs/BoardSuccessSell9.md +20 -0
- data/docs/ErrorResponse.md +20 -0
- data/docs/ExchangeResponse.md +28 -0
- data/docs/InfoApi.md +924 -0
- data/docs/MarginPremiumResponse.md +22 -0
- data/docs/MarginPremiumResponseDayTrade.md +26 -0
- data/docs/MarginPremiumResponseGeneralMargin.md +26 -0
- data/docs/OrderApi.md +275 -0
- data/docs/OrderSuccess.md +20 -0
- data/docs/OrdersSuccess.md +58 -0
- data/docs/OrdersSuccessDetailsInner.md +44 -0
- data/docs/Positions.md +20 -0
- data/docs/PositionsDeriv.md +20 -0
- data/docs/PositionsSuccess.md +58 -0
- data/docs/PrimaryExchangeResponse.md +20 -0
- data/docs/RankingByCategoryResponse.md +22 -0
- data/docs/RankingByCategoryResponseRankingInner.md +34 -0
- data/docs/RankingByMarginResponse.md +22 -0
- data/docs/RankingByMarginResponseRankingInner.md +36 -0
- data/docs/RankingByTickCountResponse.md +22 -0
- data/docs/RankingByTickCountResponseRankingInner.md +46 -0
- data/docs/RankingByTradeValueResponse.md +22 -0
- data/docs/RankingByTradeValueResponseRankingInner.md +42 -0
- data/docs/RankingByTradeVolumeResponse.md +22 -0
- data/docs/RankingByTradeVolumeResponseRankingInner.md +42 -0
- data/docs/RankingDefaultResponse.md +22 -0
- data/docs/RankingDefaultResponseRankingInner.md +42 -0
- data/docs/RankingGet200Response.md +57 -0
- data/docs/RegistSuccess.md +18 -0
- data/docs/RegisterApi.md +206 -0
- data/docs/RegulationsResponse.md +20 -0
- data/docs/RegulationsResponseRegulationsInfoInner.md +30 -0
- data/docs/RequestCancelOrder.md +20 -0
- data/docs/RequestRegister.md +18 -0
- data/docs/RequestRegisterSymbolsInner.md +20 -0
- data/docs/RequestSendOrder.md +52 -0
- data/docs/RequestSendOrderDerivFuture.md +42 -0
- data/docs/RequestSendOrderDerivFutureReverseLimitOrder.md +24 -0
- data/docs/RequestSendOrderDerivOption.md +42 -0
- data/docs/RequestSendOrderReverseLimitOrder.md +26 -0
- data/docs/RequestToken.md +18 -0
- data/docs/RequestUnregister.md +18 -0
- data/docs/SymbolNameSuccess.md +20 -0
- data/docs/SymbolSuccess.md +64 -0
- data/docs/TokenSuccess.md +20 -0
- data/docs/UnregisterAllSuccess.md +18 -0
- data/docs/WalletApi.md +535 -0
- data/docs/WalletCashSuccess.md +22 -0
- data/docs/WalletFutureSuccess.md +22 -0
- data/docs/WalletMarginSuccess.md +24 -0
- data/docs/WalletOptionSuccess.md +22 -0
- data/git_push.sh +57 -0
- data/kabustation_client.gemspec +39 -0
- data/lib/kabustation_client/api/auth_api.rb +90 -0
- data/lib/kabustation_client/api/info_api.rb +1044 -0
- data/lib/kabustation_client/api/order_api.rb +322 -0
- data/lib/kabustation_client/api/register_api.rb +236 -0
- data/lib/kabustation_client/api/wallet_api.rb +558 -0
- data/lib/kabustation_client/api_client.rb +393 -0
- data/lib/kabustation_client/api_error.rb +58 -0
- data/lib/kabustation_client/configuration.rb +295 -0
- data/lib/kabustation_client/models/api_soft_limit_response.rb +285 -0
- data/lib/kabustation_client/models/board_success.rb +816 -0
- data/lib/kabustation_client/models/board_success_buy1.rb +246 -0
- data/lib/kabustation_client/models/board_success_buy10.rb +226 -0
- data/lib/kabustation_client/models/board_success_buy2.rb +226 -0
- data/lib/kabustation_client/models/board_success_buy3.rb +226 -0
- data/lib/kabustation_client/models/board_success_buy4.rb +226 -0
- data/lib/kabustation_client/models/board_success_buy5.rb +226 -0
- data/lib/kabustation_client/models/board_success_buy6.rb +226 -0
- data/lib/kabustation_client/models/board_success_buy7.rb +226 -0
- data/lib/kabustation_client/models/board_success_buy8.rb +226 -0
- data/lib/kabustation_client/models/board_success_buy9.rb +226 -0
- data/lib/kabustation_client/models/board_success_sell1.rb +246 -0
- data/lib/kabustation_client/models/board_success_sell10.rb +226 -0
- data/lib/kabustation_client/models/board_success_sell2.rb +226 -0
- data/lib/kabustation_client/models/board_success_sell3.rb +226 -0
- data/lib/kabustation_client/models/board_success_sell4.rb +226 -0
- data/lib/kabustation_client/models/board_success_sell5.rb +226 -0
- data/lib/kabustation_client/models/board_success_sell6.rb +226 -0
- data/lib/kabustation_client/models/board_success_sell7.rb +226 -0
- data/lib/kabustation_client/models/board_success_sell8.rb +226 -0
- data/lib/kabustation_client/models/board_success_sell9.rb +226 -0
- data/lib/kabustation_client/models/error_response.rb +225 -0
- data/lib/kabustation_client/models/exchange_response.rb +265 -0
- data/lib/kabustation_client/models/margin_premium_response.rb +233 -0
- data/lib/kabustation_client/models/margin_premium_response_day_trade.rb +256 -0
- data/lib/kabustation_client/models/margin_premium_response_general_margin.rb +256 -0
- data/lib/kabustation_client/models/order_success.rb +225 -0
- data/lib/kabustation_client/models/orders_success.rb +417 -0
- data/lib/kabustation_client/models/orders_success_details_inner.rb +345 -0
- data/lib/kabustation_client/models/positions.rb +225 -0
- data/lib/kabustation_client/models/positions_deriv.rb +225 -0
- data/lib/kabustation_client/models/positions_success.rb +415 -0
- data/lib/kabustation_client/models/primary_exchange_response.rb +225 -0
- data/lib/kabustation_client/models/ranking_by_category_response.rb +237 -0
- data/lib/kabustation_client/models/ranking_by_category_response_ranking_inner.rb +295 -0
- data/lib/kabustation_client/models/ranking_by_margin_response.rb +237 -0
- data/lib/kabustation_client/models/ranking_by_margin_response_ranking_inner.rb +305 -0
- data/lib/kabustation_client/models/ranking_by_tick_count_response.rb +237 -0
- data/lib/kabustation_client/models/ranking_by_tick_count_response_ranking_inner.rb +355 -0
- data/lib/kabustation_client/models/ranking_by_trade_value_response.rb +237 -0
- data/lib/kabustation_client/models/ranking_by_trade_value_response_ranking_inner.rb +335 -0
- data/lib/kabustation_client/models/ranking_by_trade_volume_response.rb +237 -0
- data/lib/kabustation_client/models/ranking_by_trade_volume_response_ranking_inner.rb +335 -0
- data/lib/kabustation_client/models/ranking_default_response.rb +237 -0
- data/lib/kabustation_client/models/ranking_default_response_ranking_inner.rb +335 -0
- data/lib/kabustation_client/models/ranking_get200_response.rb +109 -0
- data/lib/kabustation_client/models/regist_success.rb +217 -0
- data/lib/kabustation_client/models/regulations_response.rb +227 -0
- data/lib/kabustation_client/models/regulations_response_regulations_info_inner.rb +275 -0
- data/lib/kabustation_client/models/request_cancel_order.rb +239 -0
- data/lib/kabustation_client/models/request_register.rb +216 -0
- data/lib/kabustation_client/models/request_register_symbols_inner.rb +225 -0
- data/lib/kabustation_client/models/request_send_order.rb +470 -0
- data/lib/kabustation_client/models/request_send_order_deriv_future.rb +406 -0
- data/lib/kabustation_client/models/request_send_order_deriv_future_reverse_limit_order.rb +274 -0
- data/lib/kabustation_client/models/request_send_order_deriv_option.rb +406 -0
- data/lib/kabustation_client/models/request_send_order_reverse_limit_order.rb +291 -0
- data/lib/kabustation_client/models/request_token.rb +222 -0
- data/lib/kabustation_client/models/request_unregister.rb +217 -0
- data/lib/kabustation_client/models/symbol_name_success.rb +225 -0
- data/lib/kabustation_client/models/symbol_success.rb +445 -0
- data/lib/kabustation_client/models/token_success.rb +225 -0
- data/lib/kabustation_client/models/unregister_all_success.rb +215 -0
- data/lib/kabustation_client/models/wallet_cash_success.rb +235 -0
- data/lib/kabustation_client/models/wallet_future_success.rb +235 -0
- data/lib/kabustation_client/models/wallet_margin_success.rb +245 -0
- data/lib/kabustation_client/models/wallet_option_success.rb +235 -0
- data/lib/kabustation_client/version.rb +15 -0
- data/lib/kabustation_client.rb +112 -0
- data/spec/api/auth_api_spec.rb +47 -0
- data/spec/api/info_api_spec.rb +222 -0
- data/spec/api/order_api_spec.rb +87 -0
- data/spec/api/register_api_spec.rb +73 -0
- data/spec/api/wallet_api_spec.rb +135 -0
- data/spec/models/api_soft_limit_response_spec.rb +78 -0
- data/spec/models/board_success_buy10_spec.rb +42 -0
- data/spec/models/board_success_buy1_spec.rb +54 -0
- data/spec/models/board_success_buy2_spec.rb +42 -0
- data/spec/models/board_success_buy3_spec.rb +42 -0
- data/spec/models/board_success_buy4_spec.rb +42 -0
- data/spec/models/board_success_buy5_spec.rb +42 -0
- data/spec/models/board_success_buy6_spec.rb +42 -0
- data/spec/models/board_success_buy7_spec.rb +42 -0
- data/spec/models/board_success_buy8_spec.rb +42 -0
- data/spec/models/board_success_buy9_spec.rb +42 -0
- data/spec/models/board_success_sell10_spec.rb +42 -0
- data/spec/models/board_success_sell1_spec.rb +54 -0
- data/spec/models/board_success_sell2_spec.rb +42 -0
- data/spec/models/board_success_sell3_spec.rb +42 -0
- data/spec/models/board_success_sell4_spec.rb +42 -0
- data/spec/models/board_success_sell5_spec.rb +42 -0
- data/spec/models/board_success_sell6_spec.rb +42 -0
- data/spec/models/board_success_sell7_spec.rb +42 -0
- data/spec/models/board_success_sell8_spec.rb +42 -0
- data/spec/models/board_success_sell9_spec.rb +42 -0
- data/spec/models/board_success_spec.rb +408 -0
- data/spec/models/error_response_spec.rb +42 -0
- data/spec/models/exchange_response_spec.rb +66 -0
- data/spec/models/margin_premium_response_day_trade_spec.rb +60 -0
- data/spec/models/margin_premium_response_general_margin_spec.rb +60 -0
- data/spec/models/margin_premium_response_spec.rb +48 -0
- data/spec/models/order_success_spec.rb +42 -0
- data/spec/models/orders_success_details_inner_spec.rb +114 -0
- data/spec/models/orders_success_spec.rb +156 -0
- data/spec/models/positions_deriv_spec.rb +42 -0
- data/spec/models/positions_spec.rb +42 -0
- data/spec/models/positions_success_spec.rb +156 -0
- data/spec/models/primary_exchange_response_spec.rb +42 -0
- data/spec/models/ranking_by_category_response_ranking_inner_spec.rb +84 -0
- data/spec/models/ranking_by_category_response_spec.rb +48 -0
- data/spec/models/ranking_by_margin_response_ranking_inner_spec.rb +90 -0
- data/spec/models/ranking_by_margin_response_spec.rb +48 -0
- data/spec/models/ranking_by_tick_count_response_ranking_inner_spec.rb +120 -0
- data/spec/models/ranking_by_tick_count_response_spec.rb +48 -0
- data/spec/models/ranking_by_trade_value_response_ranking_inner_spec.rb +108 -0
- data/spec/models/ranking_by_trade_value_response_spec.rb +48 -0
- data/spec/models/ranking_by_trade_volume_response_ranking_inner_spec.rb +108 -0
- data/spec/models/ranking_by_trade_volume_response_spec.rb +48 -0
- data/spec/models/ranking_default_response_ranking_inner_spec.rb +108 -0
- data/spec/models/ranking_default_response_spec.rb +48 -0
- data/spec/models/ranking_get200_response_spec.rb +32 -0
- data/spec/models/regist_success_spec.rb +36 -0
- data/spec/models/regulations_response_regulations_info_inner_spec.rb +72 -0
- data/spec/models/regulations_response_spec.rb +42 -0
- data/spec/models/request_cancel_order_spec.rb +42 -0
- data/spec/models/request_register_spec.rb +36 -0
- data/spec/models/request_register_symbols_inner_spec.rb +42 -0
- data/spec/models/request_send_order_deriv_future_reverse_limit_order_spec.rb +54 -0
- data/spec/models/request_send_order_deriv_future_spec.rb +108 -0
- data/spec/models/request_send_order_deriv_option_spec.rb +108 -0
- data/spec/models/request_send_order_reverse_limit_order_spec.rb +60 -0
- data/spec/models/request_send_order_spec.rb +138 -0
- data/spec/models/request_token_spec.rb +36 -0
- data/spec/models/request_unregister_spec.rb +36 -0
- data/spec/models/symbol_name_success_spec.rb +42 -0
- data/spec/models/symbol_success_spec.rb +174 -0
- data/spec/models/token_success_spec.rb +42 -0
- data/spec/models/unregister_all_success_spec.rb +36 -0
- data/spec/models/wallet_cash_success_spec.rb +48 -0
- data/spec/models/wallet_future_success_spec.rb +48 -0
- data/spec/models/wallet_margin_success_spec.rb +54 -0
- data/spec/models/wallet_option_success_spec.rb +48 -0
- data/spec/spec_helper.rb +111 -0
- metadata +387 -0
@@ -0,0 +1,22 @@
|
|
1
|
+
# KabustationClient::MarginPremiumResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **symbol** | **String** | 銘柄コード | [optional] |
|
8
|
+
| **general_margin** | [**MarginPremiumResponseGeneralMargin**](MarginPremiumResponseGeneralMargin.md) | | [optional] |
|
9
|
+
| **day_trade** | [**MarginPremiumResponseDayTrade**](MarginPremiumResponseDayTrade.md) | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'kabustation_client'
|
15
|
+
|
16
|
+
instance = KabustationClient::MarginPremiumResponse.new(
|
17
|
+
symbol: null,
|
18
|
+
general_margin: null,
|
19
|
+
day_trade: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# KabustationClient::MarginPremiumResponseDayTrade
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **margin_premium_type** | **Integer** | プレミアム料入力区分 <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>null</td> <td>一般信用(デイトレ)非対応銘柄</td> </tr> <tr> <td>0</td> <td>プレミアム料がない銘柄</td> </tr> <tr> <td>1</td> <td>プレミアム料が固定の銘柄</td> </tr> <tr> <td>2</td> <td>プレミアム料が入札で決定する銘柄</td> </tr> </tbody> </table> | [optional] |
|
8
|
+
| **margin_premium** | **Float** | 確定プレミアム料<br> ※入札銘柄の場合、入札受付中は随時更新します。受付時間外は、確定したプレミアム料を返します。<br> ※非入札銘柄の場合、常に固定値を返します。<br> ※信用取引不可の場合、nullを返します。<br> ※19:30~翌営業日のプレミアム料になります。 | [optional] |
|
9
|
+
| **upper_margin_premium** | **Float** | 上限プレミアム料<br> ※プレミアム料がない場合は、nullを返します。 | [optional] |
|
10
|
+
| **lower_margin_premium** | **Float** | 下限プレミアム料<br> ※プレミアム料がない場合は、nullを返します。 | [optional] |
|
11
|
+
| **tick_margin_premium** | **Float** | プレミアム料刻値<br> ※入札可能銘柄以外は、nullを返します。 | [optional] |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'kabustation_client'
|
17
|
+
|
18
|
+
instance = KabustationClient::MarginPremiumResponseDayTrade.new(
|
19
|
+
margin_premium_type: null,
|
20
|
+
margin_premium: null,
|
21
|
+
upper_margin_premium: null,
|
22
|
+
lower_margin_premium: null,
|
23
|
+
tick_margin_premium: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# KabustationClient::MarginPremiumResponseGeneralMargin
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **margin_premium_type** | **Integer** | プレミアム料入力区分 <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>null</td> <td>一般信用(長期)非対応銘柄</td> </tr> <tr> <td>0</td> <td>プレミアム料がない銘柄</td> </tr> <tr> <td>1</td> <td>プレミアム料が固定の銘柄</td> </tr> <tr> <td>2</td> <td>プレミアム料が入札で決定する銘柄</td> </tr> </tbody> </table> | [optional] |
|
8
|
+
| **margin_premium** | **Float** | 確定プレミアム料<br> ※入札銘柄の場合、入札受付中は随時更新します。受付時間外は、確定したプレミアム料を返します。<br> ※非入札銘柄の場合、常に固定値を返します。<br> ※信用取引不可の場合、nullを返します。<br> ※19:30~翌営業日のプレミアム料になります。 | [optional] |
|
9
|
+
| **upper_margin_premium** | **Float** | 上限プレミアム料<br> ※プレミアム料がない場合は、nullを返します。 | [optional] |
|
10
|
+
| **lower_margin_premium** | **Float** | 下限プレミアム料<br> ※プレミアム料がない場合は、nullを返します。 | [optional] |
|
11
|
+
| **tick_margin_premium** | **Float** | プレミアム料刻値<br> ※入札可能銘柄以外は、nullを返します。 | [optional] |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'kabustation_client'
|
17
|
+
|
18
|
+
instance = KabustationClient::MarginPremiumResponseGeneralMargin.new(
|
19
|
+
margin_premium_type: null,
|
20
|
+
margin_premium: null,
|
21
|
+
upper_margin_premium: null,
|
22
|
+
lower_margin_premium: null,
|
23
|
+
tick_margin_premium: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
data/docs/OrderApi.md
ADDED
@@ -0,0 +1,275 @@
|
|
1
|
+
# KabustationClient::OrderApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost:18080/kabusapi*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**cancelorder_put**](OrderApi.md#cancelorder_put) | **PUT** /cancelorder | 注文取消 |
|
8
|
+
| [**sendoder_future_post**](OrderApi.md#sendoder_future_post) | **POST** /sendorder/future | 注文発注(先物) |
|
9
|
+
| [**sendorder_option_post**](OrderApi.md#sendorder_option_post) | **POST** /sendorder/option | 注文発注(オプション) |
|
10
|
+
| [**sendorder_post**](OrderApi.md#sendorder_post) | **POST** /sendorder | 注文発注(現物・信用) |
|
11
|
+
|
12
|
+
|
13
|
+
## cancelorder_put
|
14
|
+
|
15
|
+
> <OrderSuccess> cancelorder_put(x_api_key, request_cancel_order)
|
16
|
+
|
17
|
+
注文取消
|
18
|
+
|
19
|
+
注文を取消します
|
20
|
+
|
21
|
+
### Examples
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
require 'time'
|
25
|
+
require 'kabustation_client'
|
26
|
+
|
27
|
+
api_instance = KabustationClient::OrderApi.new
|
28
|
+
x_api_key = 'x_api_key_example' # String | トークン発行メソッドで取得した文字列
|
29
|
+
request_cancel_order = KabustationClient::RequestCancelOrder.new({order_id: '20200529A01N06848002', password: 'xxxxxx'}) # RequestCancelOrder |
|
30
|
+
|
31
|
+
begin
|
32
|
+
# 注文取消
|
33
|
+
result = api_instance.cancelorder_put(x_api_key, request_cancel_order)
|
34
|
+
p result
|
35
|
+
rescue KabustationClient::ApiError => e
|
36
|
+
puts "Error when calling OrderApi->cancelorder_put: #{e}"
|
37
|
+
end
|
38
|
+
```
|
39
|
+
|
40
|
+
#### Using the cancelorder_put_with_http_info variant
|
41
|
+
|
42
|
+
This returns an Array which contains the response data, status code and headers.
|
43
|
+
|
44
|
+
> <Array(<OrderSuccess>, Integer, Hash)> cancelorder_put_with_http_info(x_api_key, request_cancel_order)
|
45
|
+
|
46
|
+
```ruby
|
47
|
+
begin
|
48
|
+
# 注文取消
|
49
|
+
data, status_code, headers = api_instance.cancelorder_put_with_http_info(x_api_key, request_cancel_order)
|
50
|
+
p status_code # => 2xx
|
51
|
+
p headers # => { ... }
|
52
|
+
p data # => <OrderSuccess>
|
53
|
+
rescue KabustationClient::ApiError => e
|
54
|
+
puts "Error when calling OrderApi->cancelorder_put_with_http_info: #{e}"
|
55
|
+
end
|
56
|
+
```
|
57
|
+
|
58
|
+
### Parameters
|
59
|
+
|
60
|
+
| Name | Type | Description | Notes |
|
61
|
+
| ---- | ---- | ----------- | ----- |
|
62
|
+
| **x_api_key** | **String** | トークン発行メソッドで取得した文字列 | |
|
63
|
+
| **request_cancel_order** | [**RequestCancelOrder**](RequestCancelOrder.md) | | |
|
64
|
+
|
65
|
+
### Return type
|
66
|
+
|
67
|
+
[**OrderSuccess**](OrderSuccess.md)
|
68
|
+
|
69
|
+
### Authorization
|
70
|
+
|
71
|
+
No authorization required
|
72
|
+
|
73
|
+
### HTTP request headers
|
74
|
+
|
75
|
+
- **Content-Type**: application/json
|
76
|
+
- **Accept**: application/json
|
77
|
+
|
78
|
+
|
79
|
+
## sendoder_future_post
|
80
|
+
|
81
|
+
> <OrderSuccess> sendoder_future_post(x_api_key, request_send_order_deriv_future)
|
82
|
+
|
83
|
+
注文発注(先物)
|
84
|
+
|
85
|
+
先物銘柄の注文を発注します。<br> 同一の銘柄に対しての注文は同時に5件ほどを上限としてご利用ください。
|
86
|
+
|
87
|
+
### Examples
|
88
|
+
|
89
|
+
```ruby
|
90
|
+
require 'time'
|
91
|
+
require 'kabustation_client'
|
92
|
+
|
93
|
+
api_instance = KabustationClient::OrderApi.new
|
94
|
+
x_api_key = 'x_api_key_example' # String | トークン発行メソッドで取得した文字列
|
95
|
+
request_send_order_deriv_future = KabustationClient::RequestSendOrderDerivFuture.new({password: 'xxxxxx', symbol: '165120019', exchange: 37, trade_type: 37, time_in_force: 37, side: 'side_example', qty: 37, front_order_type: 37, price: 3.56, expire_day: 37}) # RequestSendOrderDerivFuture |
|
96
|
+
|
97
|
+
begin
|
98
|
+
# 注文発注(先物)
|
99
|
+
result = api_instance.sendoder_future_post(x_api_key, request_send_order_deriv_future)
|
100
|
+
p result
|
101
|
+
rescue KabustationClient::ApiError => e
|
102
|
+
puts "Error when calling OrderApi->sendoder_future_post: #{e}"
|
103
|
+
end
|
104
|
+
```
|
105
|
+
|
106
|
+
#### Using the sendoder_future_post_with_http_info variant
|
107
|
+
|
108
|
+
This returns an Array which contains the response data, status code and headers.
|
109
|
+
|
110
|
+
> <Array(<OrderSuccess>, Integer, Hash)> sendoder_future_post_with_http_info(x_api_key, request_send_order_deriv_future)
|
111
|
+
|
112
|
+
```ruby
|
113
|
+
begin
|
114
|
+
# 注文発注(先物)
|
115
|
+
data, status_code, headers = api_instance.sendoder_future_post_with_http_info(x_api_key, request_send_order_deriv_future)
|
116
|
+
p status_code # => 2xx
|
117
|
+
p headers # => { ... }
|
118
|
+
p data # => <OrderSuccess>
|
119
|
+
rescue KabustationClient::ApiError => e
|
120
|
+
puts "Error when calling OrderApi->sendoder_future_post_with_http_info: #{e}"
|
121
|
+
end
|
122
|
+
```
|
123
|
+
|
124
|
+
### Parameters
|
125
|
+
|
126
|
+
| Name | Type | Description | Notes |
|
127
|
+
| ---- | ---- | ----------- | ----- |
|
128
|
+
| **x_api_key** | **String** | トークン発行メソッドで取得した文字列 | |
|
129
|
+
| **request_send_order_deriv_future** | [**RequestSendOrderDerivFuture**](RequestSendOrderDerivFuture.md) | | |
|
130
|
+
|
131
|
+
### Return type
|
132
|
+
|
133
|
+
[**OrderSuccess**](OrderSuccess.md)
|
134
|
+
|
135
|
+
### Authorization
|
136
|
+
|
137
|
+
No authorization required
|
138
|
+
|
139
|
+
### HTTP request headers
|
140
|
+
|
141
|
+
- **Content-Type**: application/json
|
142
|
+
- **Accept**: application/json
|
143
|
+
|
144
|
+
|
145
|
+
## sendorder_option_post
|
146
|
+
|
147
|
+
> <OrderSuccess> sendorder_option_post(x_api_key, request_send_order_deriv_option)
|
148
|
+
|
149
|
+
注文発注(オプション)
|
150
|
+
|
151
|
+
オプション銘柄の注文を発注します。<br> 同一の銘柄に対しての注文は同時に5件ほどを上限としてご利用ください。
|
152
|
+
|
153
|
+
### Examples
|
154
|
+
|
155
|
+
```ruby
|
156
|
+
require 'time'
|
157
|
+
require 'kabustation_client'
|
158
|
+
|
159
|
+
api_instance = KabustationClient::OrderApi.new
|
160
|
+
x_api_key = 'x_api_key_example' # String | トークン発行メソッドで取得した文字列
|
161
|
+
request_send_order_deriv_option = KabustationClient::RequestSendOrderDerivOption.new({password: 'password_example', symbol: 'symbol_example', exchange: 37, trade_type: 37, time_in_force: 37, side: 'side_example', qty: 37, front_order_type: 37, price: 3.56, expire_day: 37}) # RequestSendOrderDerivOption |
|
162
|
+
|
163
|
+
begin
|
164
|
+
# 注文発注(オプション)
|
165
|
+
result = api_instance.sendorder_option_post(x_api_key, request_send_order_deriv_option)
|
166
|
+
p result
|
167
|
+
rescue KabustationClient::ApiError => e
|
168
|
+
puts "Error when calling OrderApi->sendorder_option_post: #{e}"
|
169
|
+
end
|
170
|
+
```
|
171
|
+
|
172
|
+
#### Using the sendorder_option_post_with_http_info variant
|
173
|
+
|
174
|
+
This returns an Array which contains the response data, status code and headers.
|
175
|
+
|
176
|
+
> <Array(<OrderSuccess>, Integer, Hash)> sendorder_option_post_with_http_info(x_api_key, request_send_order_deriv_option)
|
177
|
+
|
178
|
+
```ruby
|
179
|
+
begin
|
180
|
+
# 注文発注(オプション)
|
181
|
+
data, status_code, headers = api_instance.sendorder_option_post_with_http_info(x_api_key, request_send_order_deriv_option)
|
182
|
+
p status_code # => 2xx
|
183
|
+
p headers # => { ... }
|
184
|
+
p data # => <OrderSuccess>
|
185
|
+
rescue KabustationClient::ApiError => e
|
186
|
+
puts "Error when calling OrderApi->sendorder_option_post_with_http_info: #{e}"
|
187
|
+
end
|
188
|
+
```
|
189
|
+
|
190
|
+
### Parameters
|
191
|
+
|
192
|
+
| Name | Type | Description | Notes |
|
193
|
+
| ---- | ---- | ----------- | ----- |
|
194
|
+
| **x_api_key** | **String** | トークン発行メソッドで取得した文字列 | |
|
195
|
+
| **request_send_order_deriv_option** | [**RequestSendOrderDerivOption**](RequestSendOrderDerivOption.md) | | |
|
196
|
+
|
197
|
+
### Return type
|
198
|
+
|
199
|
+
[**OrderSuccess**](OrderSuccess.md)
|
200
|
+
|
201
|
+
### Authorization
|
202
|
+
|
203
|
+
No authorization required
|
204
|
+
|
205
|
+
### HTTP request headers
|
206
|
+
|
207
|
+
- **Content-Type**: application/json
|
208
|
+
- **Accept**: application/json
|
209
|
+
|
210
|
+
|
211
|
+
## sendorder_post
|
212
|
+
|
213
|
+
> <OrderSuccess> sendorder_post(x_api_key, request_send_order)
|
214
|
+
|
215
|
+
注文発注(現物・信用)
|
216
|
+
|
217
|
+
注文を発注します。<br> 同一の銘柄に対しての注文は同時に5件ほどを上限としてご利用ください。
|
218
|
+
|
219
|
+
### Examples
|
220
|
+
|
221
|
+
```ruby
|
222
|
+
require 'time'
|
223
|
+
require 'kabustation_client'
|
224
|
+
|
225
|
+
api_instance = KabustationClient::OrderApi.new
|
226
|
+
x_api_key = 'x_api_key_example' # String | トークン発行メソッドで取得した文字列
|
227
|
+
request_send_order = KabustationClient::RequestSendOrder.new({password: 'password_example', symbol: 'symbol_example', exchange: 37, security_type: 37, side: 'side_example', cash_margin: 37, deliv_type: 37, account_type: 37, qty: 37, front_order_type: 37, price: 3.56, expire_day: 37}) # RequestSendOrder |
|
228
|
+
|
229
|
+
begin
|
230
|
+
# 注文発注(現物・信用)
|
231
|
+
result = api_instance.sendorder_post(x_api_key, request_send_order)
|
232
|
+
p result
|
233
|
+
rescue KabustationClient::ApiError => e
|
234
|
+
puts "Error when calling OrderApi->sendorder_post: #{e}"
|
235
|
+
end
|
236
|
+
```
|
237
|
+
|
238
|
+
#### Using the sendorder_post_with_http_info variant
|
239
|
+
|
240
|
+
This returns an Array which contains the response data, status code and headers.
|
241
|
+
|
242
|
+
> <Array(<OrderSuccess>, Integer, Hash)> sendorder_post_with_http_info(x_api_key, request_send_order)
|
243
|
+
|
244
|
+
```ruby
|
245
|
+
begin
|
246
|
+
# 注文発注(現物・信用)
|
247
|
+
data, status_code, headers = api_instance.sendorder_post_with_http_info(x_api_key, request_send_order)
|
248
|
+
p status_code # => 2xx
|
249
|
+
p headers # => { ... }
|
250
|
+
p data # => <OrderSuccess>
|
251
|
+
rescue KabustationClient::ApiError => e
|
252
|
+
puts "Error when calling OrderApi->sendorder_post_with_http_info: #{e}"
|
253
|
+
end
|
254
|
+
```
|
255
|
+
|
256
|
+
### Parameters
|
257
|
+
|
258
|
+
| Name | Type | Description | Notes |
|
259
|
+
| ---- | ---- | ----------- | ----- |
|
260
|
+
| **x_api_key** | **String** | トークン発行メソッドで取得した文字列 | |
|
261
|
+
| **request_send_order** | [**RequestSendOrder**](RequestSendOrder.md) | | |
|
262
|
+
|
263
|
+
### Return type
|
264
|
+
|
265
|
+
[**OrderSuccess**](OrderSuccess.md)
|
266
|
+
|
267
|
+
### Authorization
|
268
|
+
|
269
|
+
No authorization required
|
270
|
+
|
271
|
+
### HTTP request headers
|
272
|
+
|
273
|
+
- **Content-Type**: application/json
|
274
|
+
- **Accept**: application/json
|
275
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# KabustationClient::OrderSuccess
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **result** | **Integer** | 結果コード<br>0が成功。それ以外はエラーコード。 | [optional] |
|
8
|
+
| **order_id** | **String** | 受付注文番号 | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'kabustation_client'
|
14
|
+
|
15
|
+
instance = KabustationClient::OrderSuccess.new(
|
16
|
+
result: 0,
|
17
|
+
order_id: 20200529A01N06848002
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,58 @@
|
|
1
|
+
# KabustationClient::OrdersSuccess
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | 注文番号 | [optional] |
|
8
|
+
| **state** | **Integer** | 状態<br> ※OrderStateと同一である <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>終了(発注エラー・取消済・全約定・失効・期限切れ)</td> </tr> </tbody> </table> | [optional] |
|
9
|
+
| **order_state** | **Integer** | 注文状態<br> ※Stateと同一である <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>終了(発注エラー・取消済・全約定・失効・期限切れ)</td> </tr> </tbody> </table> | [optional] |
|
10
|
+
| **ord_type** | **Integer** | 執行条件 <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>対当指値</td> </tr> <tr> <td>6</td> <td>IOC</td> </tr> </tbody> </table> | [optional] |
|
11
|
+
| **recv_time** | **String** | 受注日時 | [optional] |
|
12
|
+
| **symbol** | **String** | 銘柄コード | [optional] |
|
13
|
+
| **symbol_name** | **String** | 銘柄名 | [optional] |
|
14
|
+
| **exchange** | **Integer** | 市場コード <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>9</td> <td>SOR</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> | [optional] |
|
15
|
+
| **exchange_name** | **String** | 市場名 | [optional] |
|
16
|
+
| **time_in_force** | **Integer** | 有効期間条件<br>※先物・オプション銘柄の場合のみ <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>FAS</td> </tr> <tr> <td>2</td> <td>FAK</td> </tr> <tr> <td>3</td> <td>FOK</td> </tr> </tbody> </table> | [optional] |
|
17
|
+
| **price** | **Float** | 値段 | [optional] |
|
18
|
+
| **order_qty** | **Float** | 発注数量<br> ※注文期限切れと失効の場合、OrderQtyはゼロになりません。<br> ※期限切れと失効の確認方法としては、DetailsのRecType(3: 期限切れ、7: 失効)にてご確認ください。 | [optional] |
|
19
|
+
| **cum_qty** | **Float** | 約定数量 | [optional] |
|
20
|
+
| **side** | **String** | 売買区分 <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> | [optional] |
|
21
|
+
| **cash_margin** | **Integer** | 取引区分 <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> | [optional] |
|
22
|
+
| **account_type** | **Integer** | 口座種別 <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>2</td> <td>一般</td> </tr> <tr> <td>4</td> <td>特定</td> </tr> <tr> <td>12</td> <td>法人</td> </tr> </tbody> </table> | [optional] |
|
23
|
+
| **deliv_type** | **Integer** | 受渡区分 <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>2</td> <td>お預り金</td> </tr> <tr> <td>3</td> <td>auマネーコネクト</td> </tr> </tbody> </table> | [optional] |
|
24
|
+
| **expire_day** | **Integer** | 注文有効期限<br>yyyyMMdd形式 | [optional] |
|
25
|
+
| **margin_trade_type** | **Integer** | 信用取引区分<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> </tbody> </table> | [optional] |
|
26
|
+
| **margin_premium** | **Float** | プレミアム料<br> ※(注文中数量+約定済数量)×1株あたりプレミアム料として計算されます。<br> ※信用を注文した際に表示されます。<br> ※制度信用売/買、一般(長期)買、一般(デイトレ)買の場合は、Noneと返されます。<br> 一般(長期)売、一般(デイトレ)売の場合は、プレミアム料=0の場合、0(ゼロ)と返されます。 | [optional] |
|
27
|
+
| **details** | [**Array<OrdersSuccessDetailsInner>**](OrdersSuccessDetailsInner.md) | 注文詳細 | [optional] |
|
28
|
+
|
29
|
+
## Example
|
30
|
+
|
31
|
+
```ruby
|
32
|
+
require 'kabustation_client'
|
33
|
+
|
34
|
+
instance = KabustationClient::OrdersSuccess.new(
|
35
|
+
id: null,
|
36
|
+
state: null,
|
37
|
+
order_state: null,
|
38
|
+
ord_type: null,
|
39
|
+
recv_time: null,
|
40
|
+
symbol: null,
|
41
|
+
symbol_name: null,
|
42
|
+
exchange: null,
|
43
|
+
exchange_name: null,
|
44
|
+
time_in_force: null,
|
45
|
+
price: null,
|
46
|
+
order_qty: null,
|
47
|
+
cum_qty: null,
|
48
|
+
side: null,
|
49
|
+
cash_margin: null,
|
50
|
+
account_type: null,
|
51
|
+
deliv_type: null,
|
52
|
+
expire_day: null,
|
53
|
+
margin_trade_type: null,
|
54
|
+
margin_premium: null,
|
55
|
+
details: null
|
56
|
+
)
|
57
|
+
```
|
58
|
+
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# KabustationClient::OrdersSuccessDetailsInner
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **seq_num** | **Integer** | ※注文明細レコードの生成順序です。<br>※通番であるとは限りませんが、大小による順序は保たれています。 | [optional] |
|
8
|
+
| **id** | **String** | 注文詳細番号 | [optional] |
|
9
|
+
| **rec_type** | **Integer** | 明細種別 <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>訂正</td> </tr> <tr> <td>6</td> <td>取消</td> </tr> <tr> <td>7</td> <td>失効</td> </tr> <tr> <td>8</td> <td>約定</td> </tr> </tbody> </table> | [optional] |
|
10
|
+
| **exchange_id** | **String** | 取引所番号 | [optional] |
|
11
|
+
| **state** | **Integer** | 状態 <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>削除済み</td> </tr> </tbody> </table> | [optional] |
|
12
|
+
| **transact_time** | **String** | 処理時刻 | [optional] |
|
13
|
+
| **ord_type** | **Integer** | 執行条件 <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>null</td> <td>RecType=[6] 取消 の場合</td> </tr> <tr> <td>0</td> <td>RecType=[3] 期限切れ, [7] 失効, [8] 約定 の場合</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>不成</td> </tr> <tr> <td>5</td> <td>対当指値</td> </tr> <tr> <td>6</td> <td>IOC</td> </tr> </tbody> </table> | [optional] |
|
14
|
+
| **price** | **Float** | 値段 | [optional] |
|
15
|
+
| **qty** | **Float** | 数量 | [optional] |
|
16
|
+
| **execution_id** | **String** | 約定番号 | [optional] |
|
17
|
+
| **execution_day** | **Time** | 約定日時 | [optional] |
|
18
|
+
| **deliv_day** | **Integer** | 受渡日 | [optional] |
|
19
|
+
| **commission** | **Float** | 手数料<br>※注文詳細の明細種別が約定(RecType=8)の場合に設定。 | [optional] |
|
20
|
+
| **commission_tax** | **Float** | 手数料消費税<br>※明細種別は約定(RecType=8)の場合にのみ表示されます。 | [optional] |
|
21
|
+
|
22
|
+
## Example
|
23
|
+
|
24
|
+
```ruby
|
25
|
+
require 'kabustation_client'
|
26
|
+
|
27
|
+
instance = KabustationClient::OrdersSuccessDetailsInner.new(
|
28
|
+
seq_num: null,
|
29
|
+
id: null,
|
30
|
+
rec_type: 1,
|
31
|
+
exchange_id: null,
|
32
|
+
state: null,
|
33
|
+
transact_time: null,
|
34
|
+
ord_type: null,
|
35
|
+
price: null,
|
36
|
+
qty: null,
|
37
|
+
execution_id: null,
|
38
|
+
execution_day: null,
|
39
|
+
deliv_day: null,
|
40
|
+
commission: null,
|
41
|
+
commission_tax: null
|
42
|
+
)
|
43
|
+
```
|
44
|
+
|
data/docs/Positions.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# KabustationClient::Positions
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **hold_id** | **String** | 返済建玉ID | [optional] |
|
8
|
+
| **qty** | **Integer** | 返済建玉数量 | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'kabustation_client'
|
14
|
+
|
15
|
+
instance = KabustationClient::Positions.new(
|
16
|
+
hold_id: null,
|
17
|
+
qty: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# KabustationClient::PositionsDeriv
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **hold_id** | **String** | 返済建玉ID | [optional] |
|
8
|
+
| **qty** | **Integer** | 返済建玉数量 | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'kabustation_client'
|
14
|
+
|
15
|
+
instance = KabustationClient::PositionsDeriv.new(
|
16
|
+
hold_id: null,
|
17
|
+
qty: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,58 @@
|
|
1
|
+
# KabustationClient::PositionsSuccess
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **execution_id** | **String** | 約定番号<br>※現物取引では、nullが返ります。 | [optional] |
|
8
|
+
| **account_type** | **Integer** | 口座種別 <table> <thead> <tr> <th>定義値</th> <th>説明</th> </tr> </thead> <tbody> <tr> <td>2</td> <td>一般</td> </tr> <tr> <td>4</td> <td>特定</td> </tr> <tr> <td>12</td> <td>法人</td> </tr> </tbody> </table> | [optional] |
|
9
|
+
| **symbol** | **String** | 銘柄コード | [optional] |
|
10
|
+
| **symbol_name** | **String** | 銘柄名 | [optional] |
|
11
|
+
| **exchange** | **Integer** | 市場コード <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> | [optional] |
|
12
|
+
| **exchange_name** | **String** | 市場名 | [optional] |
|
13
|
+
| **security_type** | **Integer** | 銘柄種別<br>※先物・オプション銘柄の場合のみ | [optional] |
|
14
|
+
| **execution_day** | **Integer** | 約定日(建玉日)<br>※信用・先物・オプションの場合のみ<br>※現物取引では、nullが返ります。 | [optional] |
|
15
|
+
| **price** | **Float** | 値段 | [optional] |
|
16
|
+
| **leaves_qty** | **Float** | 残数量(保有数量) | [optional] |
|
17
|
+
| **hold_qty** | **Float** | 拘束数量(返済のために拘束されている数量) | [optional] |
|
18
|
+
| **side** | **String** | 売買区分 <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> | [optional] |
|
19
|
+
| **expenses** | **Float** | 諸経費<br>※信用・先物・オプションの場合のみ | [optional] |
|
20
|
+
| **commission** | **Float** | 手数料<br>※信用・先物・オプションの場合のみ | [optional] |
|
21
|
+
| **commission_tax** | **Float** | 手数料消費税<br>※信用・先物・オプションの場合のみ | [optional] |
|
22
|
+
| **expire_day** | **Integer** | 返済期日<br>※信用・先物・オプションの場合のみ | [optional] |
|
23
|
+
| **margin_trade_type** | **Integer** | 信用取引区分<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> </tbody> </table> | [optional] |
|
24
|
+
| **current_price** | **Float** | 現在値<br>追加情報出力フラグ:falseの場合、null | [optional] |
|
25
|
+
| **valuation** | **Float** | 評価金額<br>追加情報出力フラグ:falseの場合、null | [optional] |
|
26
|
+
| **profit_loss** | **Float** | 評価損益額<br>追加情報出力フラグ:falseの場合、null | [optional] |
|
27
|
+
| **profit_loss_rate** | **Float** | 評価損益率<br>追加情報出力フラグ:falseの場合、null | [optional] |
|
28
|
+
|
29
|
+
## Example
|
30
|
+
|
31
|
+
```ruby
|
32
|
+
require 'kabustation_client'
|
33
|
+
|
34
|
+
instance = KabustationClient::PositionsSuccess.new(
|
35
|
+
execution_id: null,
|
36
|
+
account_type: null,
|
37
|
+
symbol: null,
|
38
|
+
symbol_name: null,
|
39
|
+
exchange: null,
|
40
|
+
exchange_name: null,
|
41
|
+
security_type: null,
|
42
|
+
execution_day: null,
|
43
|
+
price: null,
|
44
|
+
leaves_qty: null,
|
45
|
+
hold_qty: null,
|
46
|
+
side: null,
|
47
|
+
expenses: null,
|
48
|
+
commission: null,
|
49
|
+
commission_tax: null,
|
50
|
+
expire_day: null,
|
51
|
+
margin_trade_type: null,
|
52
|
+
current_price: null,
|
53
|
+
valuation: null,
|
54
|
+
profit_loss: null,
|
55
|
+
profit_loss_rate: null
|
56
|
+
)
|
57
|
+
```
|
58
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# KabustationClient::PrimaryExchangeResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **symbol** | **String** | 銘柄コード<br>※対象商品は、株式のみ | [optional] |
|
8
|
+
| **primary_exchange** | **Integer** | 優先市場 <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> | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'kabustation_client'
|
14
|
+
|
15
|
+
instance = KabustationClient::PrimaryExchangeResponse.new(
|
16
|
+
symbol: null,
|
17
|
+
primary_exchange: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# KabustationClient::RankingByCategoryResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **String** | 種別<br> ※業種別値上がり率、業種別値下がり率の場合、市場は「null」になります | [optional] |
|
8
|
+
| **exchange_division** | **String** | 市場 | [optional] |
|
9
|
+
| **ranking** | [**Array<RankingByCategoryResponseRankingInner>**](RankingByCategoryResponseRankingInner.md) | ランキング | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'kabustation_client'
|
15
|
+
|
16
|
+
instance = KabustationClient::RankingByCategoryResponse.new(
|
17
|
+
type: null,
|
18
|
+
exchange_division: null,
|
19
|
+
ranking: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|