openapi: 3.0.0
info:
version: "1.5"
title: "kabuステーションAPI"
contact:
url: https://kabucom.github.io/kabusapi/ptal/index.html
x-logo:
url: ../ptal/content/image/common/logo.png
termsOfService: https://kabucom.github.io/kabusapi/ptal/guide.html
description: "# 定義情報 \n REST APIのコード一覧、エンドポイントは下記リンク参照 \n - [REST APIコード一覧](../ptal/error.html)"
servers:
- url: http://localhost:18080/kabusapi
description: 本番用
- url: http://localhost:18081/kabusapi
description: 検証用
tags:
- name: auth
description: |-
APIトークンを発行します。
x-displayName: 認証
- name: order
description: |-
注文の発注・取消を行います。
発注系のリクエストは秒間5件ほどの流量制限を設けています。
x-displayName: 発注
- name: wallet
description: |-
取引余力を取得します。
取引余力のリクエストは秒間10件ほどの流量制限を設けています。
x-displayName: 取引余力
- name: info
description: |-
銘柄情報の取得や注文・残高の照会を行います。
情報系のリクエストは秒間10件ほどの流量制限を設けています。
リクエストされた銘柄は自動でAPI登録銘柄リストに登録されます。
API登録銘柄リストに登録できる銘柄数は、REST/PUSHを含めて最大50銘柄です。
x-displayName: 情報
- name: register
description: |-
PUSH配信する銘柄の登録や解除を行います。
登録された銘柄はkabuステーションのAPI登録銘柄リストに表示されます。
API登録銘柄リストに登録できる銘柄数は、REST/PUSHを含めて最大50銘柄です。
x-displayName: "銘柄登録"
paths:
/token:
post:
operationId: tokenPost
tags:
- "auth"
summary: "トークン発行"
description: |-
APIトークンを発行します。
発行したトークンは有効である限り使用することができ、リクエストごとに発行する必要はありません。
発行されたAPIトークンは以下のタイミングで無効となります。
・kabuステーションを終了した時
・kabuステーションからログアウトした時
・別のトークンが新たに発行された時
※kabuステーションは早朝、強制的にログアウトいたしますのでご留意ください。
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/RequestToken"
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/TokenSuccess"
"400":
description: BadRequest
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"403":
description: Forbidden
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"404":
description: NotFound
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"405":
description: MethodNotAllowed
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"413":
description: RequestEntityTooLarge
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"415":
description: UnsupportedMediaType
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"429":
description: TooManyRequests
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"500":
description: InternalServerError
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/sendorder:
post:
tags:
- "order"
operationId: sendorderPost
summary: "注文発注(現物・信用)"
description: |-
注文を発注します。
同一の銘柄に対しての注文は同時に5件ほどを上限としてご利用ください。
parameters:
- in: header
name: X-API-KEY
description: トークン発行メソッドで取得した文字列
schema:
type: string
required: true
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/RequestSendOrder"
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/OrderSuccess"
"400":
description: BadRequest
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"403":
description: Forbidden
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"404":
description: NotFound
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"405":
description: MethodNotAllowed
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"413":
description: RequestEntityTooLarge
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"415":
description: UnsupportedMediaType
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"429":
description: TooManyRequests
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"500":
description: InternalServerError
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/sendorder/future:
post:
tags:
- "order"
operationId: sendoderFuturePost
summary: "注文発注(先物)"
description: |-
先物銘柄の注文を発注します。
同一の銘柄に対しての注文は同時に5件ほどを上限としてご利用ください。
parameters:
- in: header
name: X-API-KEY
description: トークン発行メソッドで取得した文字列
schema:
type: string
required: true
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/RequestSendOrderDerivFuture"
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/OrderSuccess"
"400":
description: BadRequest
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"403":
description: Forbidden
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"404":
description: NotFound
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"405":
description: MethodNotAllowed
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"413":
description: RequestEntityTooLarge
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"415":
description: UnsupportedMediaType
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"429":
description: TooManyRequests
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"500":
description: InternalServerError
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/sendorder/option:
post:
tags:
- "order"
operationId: sendorderOptionPost
summary: "注文発注(オプション)"
description: |-
オプション銘柄の注文を発注します。
同一の銘柄に対しての注文は同時に5件ほどを上限としてご利用ください。
parameters:
- in: header
name: X-API-KEY
description: トークン発行メソッドで取得した文字列
schema:
type: string
required: true
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/RequestSendOrderDerivOption"
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/OrderSuccess"
"400":
description: BadRequest
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"403":
description: Forbidden
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"404":
description: NotFound
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"405":
description: MethodNotAllowed
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"413":
description: RequestEntityTooLarge
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"415":
description: UnsupportedMediaType
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"429":
description: TooManyRequests
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"500":
description: InternalServerError
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/cancelorder:
put:
tags:
- "order"
operationId: cancelorderPut
summary: "注文取消"
description: "注文を取消します"
parameters:
- in: header
name: X-API-KEY
description: トークン発行メソッドで取得した文字列
schema:
type: string
required: true
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/RequestCancelOrder"
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/OrderSuccess"
"400":
description: BadRequest
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"403":
description: Forbidden
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"404":
description: NotFound
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"405":
description: MethodNotAllowed
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"413":
description: RequestEntityTooLarge
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"415":
description: UnsupportedMediaType
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"429":
description: TooManyRequests
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"500":
description: InternalServerError
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/wallet/cash:
get:
tags:
- "wallet"
operationId: walletCashGet
summary: "取引余力(現物)"
description: "口座の取引余力(現物)を取得します"
parameters:
- in: header
name: X-API-KEY
description: トークン発行メソッドで取得した文字列
schema:
type: string
required: true
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/WalletCashSuccess"
"400":
description: BadRequest
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"403":
description: Forbidden
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"404":
description: NotFound
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"405":
description: MethodNotAllowed
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"413":
description: RequestEntityTooLarge
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"415":
description: UnsupportedMediaType
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"429":
description: TooManyRequests
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"500":
description: InternalServerError
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/wallet/cash/{symbol}:
get:
tags:
- "wallet"
summary: "取引余力(現物)(銘柄指定)"
description: "指定した銘柄の取引余力(現物)を取得します"
parameters:
- in: header
name: X-API-KEY
description: トークン発行メソッドで取得した文字列
schema:
type: string
required: true
- in: path
name: symbol
schema:
type: string
required: true
description: |-
銘柄コード
※次の形式で入力してください。
[銘柄コード]@[市場コード]
※市場コードは下記の定義値から選択してください。
市場コード
定義値 |
説明 |
1 |
東証 |
3 |
名証 |
5 |
福証 |
6 |
札証 |
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/WalletCashSuccess"
"400":
description: BadRequest
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"403":
description: Forbidden
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"404":
description: NotFound
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"405":
description: MethodNotAllowed
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"413":
description: RequestEntityTooLarge
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"415":
description: UnsupportedMediaType
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"429":
description: TooManyRequests
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"500":
description: InternalServerError
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/wallet/margin:
get:
tags:
- "wallet"
operationId: walletMarginGet
summary: "取引余力(信用)"
description: "口座の取引余力(信用)を取得します"
parameters:
- in: header
name: X-API-KEY
description: トークン発行メソッドで取得した文字列
schema:
type: string
required: true
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/WalletMarginSuccess"
"400":
description: BadRequest
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"403":
description: Forbidden
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"404":
description: NotFound
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"405":
description: MethodNotAllowed
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"413":
description: RequestEntityTooLarge
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"415":
description: UnsupportedMediaType
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"429":
description: TooManyRequests
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"500":
description: InternalServerError
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/wallet/margin/{symbol}:
get:
tags:
- "wallet"
summary: "取引余力(信用)(銘柄指定)"
description: "指定した銘柄の取引余力(信用)を取得します"
parameters:
- in: header
name: X-API-KEY
description: トークン発行メソッドで取得した文字列
schema:
type: string
required: true
- in: path
name: symbol
schema:
type: string
required: true
description: |-
銘柄コード
※次の形式で入力してください。
[銘柄コード]@[市場コード]
※市場コードは下記の定義値から選択してください。
市場コード
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/WalletMarginSuccess"
"400":
description: BadRequest
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"403":
description: Forbidden
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"404":
description: NotFound
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"405":
description: MethodNotAllowed
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"413":
description: RequestEntityTooLarge
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"415":
description: UnsupportedMediaType
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"429":
description: TooManyRequests
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"500":
description: InternalServerError
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/wallet/future:
get:
tags:
- "wallet"
operationId: walletFutureGet
summary: "取引余力(先物)"
description: "口座の取引余力(先物)を取得します"
parameters:
- in: header
name: X-API-KEY
description: トークン発行メソッドで取得した文字列
schema:
type: string
required: true
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/WalletFutureSuccess"
"400":
description: BadRequest
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"403":
description: Forbidden
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"404":
description: NotFound
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"405":
description: MethodNotAllowed
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"413":
description: RequestEntityTooLarge
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"415":
description: UnsupportedMediaType
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"429":
description: TooManyRequests
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"500":
description: InternalServerError
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/wallet/future/{symbol}:
get:
tags:
- "wallet"
summary: "取引余力(先物)(銘柄指定)"
description: "指定した銘柄の取引余力(先物)を取得します"
parameters:
- in: header
name: X-API-KEY
description: トークン発行メソッドで取得した文字列
schema:
type: string
required: true
- in: path
name: symbol
schema:
type: string
required: true
description: |-
銘柄コード
※次の形式で入力してください。
[銘柄コード]@[市場コード]
※市場コードは下記の定義値から選択してください。
※SOR市場は取扱っておりませんのでご注意ください。市場コード
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/WalletFutureSuccess"
"400":
description: BadRequest
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"403":
description: Forbidden
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"404":
description: NotFound
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"405":
description: MethodNotAllowed
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"413":
description: RequestEntityTooLarge
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"415":
description: UnsupportedMediaType
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"429":
description: TooManyRequests
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"500":
description: InternalServerError
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/wallet/option:
get:
tags:
- "wallet"
operationId: walletOptionGet
summary: "取引余力(オプション)"
description: "口座の取引余力(オプション)を取得します"
parameters:
- in: header
name: X-API-KEY
description: トークン発行メソッドで取得した文字列
schema:
type: string
required: true
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/WalletOptionSuccess"
"400":
description: BadRequest
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"403":
description: Forbidden
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"404":
description: NotFound
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"405":
description: MethodNotAllowed
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"413":
description: RequestEntityTooLarge
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"415":
description: UnsupportedMediaType
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"429":
description: TooManyRequests
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"500":
description: InternalServerError
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/wallet/option/{symbol}:
get:
tags:
- "wallet"
summary: "取引余力(オプション)(銘柄指定)"
description: "指定した銘柄の取引余力(オプション)を取得します"
parameters:
- in: header
name: X-API-KEY
description: トークン発行メソッドで取得した文字列
schema:
type: string
required: true
- in: path
name: symbol
schema:
type: string
required: true
description: |-
銘柄コード
※次の形式で入力してください。
[銘柄コード]@[市場コード]
※市場コードは下記の定義値から選択してください。
市場コード
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/WalletOptionSuccess"
"400":
description: BadRequest
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"403":
description: Forbidden
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"404":
description: NotFound
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"405":
description: MethodNotAllowed
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"413":
description: RequestEntityTooLarge
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"415":
description: UnsupportedMediaType
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"429":
description: TooManyRequests
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"500":
description: InternalServerError
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/board/{symbol}:
get:
tags:
- "info"
operationId: boardGet
summary: "時価情報・板情報"
description: |-
指定した銘柄の時価情報・板情報を取得します
レスポンスの一部にnullが発生した場合、該当銘柄を銘柄登録をしてから、
再度時価情報・板情報APIを実行してください。
parameters:
- in: header
name: X-API-KEY
description: トークン発行メソッドで取得した文字列
schema:
type: string
required: true
- in: path
name: symbol
schema:
type: string
required: true
description: |-
銘柄コード
※次の形式で入力してください。
[銘柄コード]@[市場コード]
※市場コードは下記の定義値から選択してください。
※SOR市場は取扱っておりませんのでご注意ください。市場コード
定義値 |
説明 |
1 |
東証 |
3 |
名証 |
5 |
福証 |
6 |
札証 |
2 |
日通し |
23 |
日中 |
24 |
夜間 |
responses:
"200":
x-summary: OK
description: |-
※①:レスポンスにある「Bid」と「Ask」は、本来の意味である「買気配」と「売気配」と逆になっております。実際に返却される値は日本語の説明に準じたものになりますので、ご注意いただきますようお願い申し上げます。ご迷惑をおかけしまして、誠に申し訳ございません。
影響するキー名:
BidQty, BidPrice, BidTime, BidSign
AskQty, AskPrice, AskTime, AskSign
content:
application/json:
schema:
$ref: "#/components/schemas/BoardSuccess"
"400":
description: BadRequest
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"403":
description: Forbidden
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"404":
description: NotFound
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"405":
description: MethodNotAllowed
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"413":
description: RequestEntityTooLarge
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"415":
description: UnsupportedMediaType
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"429":
description: TooManyRequests
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"500":
description: InternalServerError
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/symbol/{symbol}:
get:
tags:
- "info"
operationId: symbolGet
summary: "銘柄情報"
description: "指定した銘柄情報を取得します"
parameters:
- in: header
name: X-API-KEY
description: トークン発行メソッドで取得した文字列
schema:
type: string
required: true
- in: path
name: symbol
schema:
type: string
required: true
description: |-
銘柄コード
※次の形式で入力してください。
[銘柄コード]@[市場コード]
※市場コードは下記の定義値から選択してください。
※SOR市場は取扱っておりませんのでご注意ください。市場コード
定義値 |
説明 |
1 |
東証 |
3 |
名証 |
5 |
福証 |
6 |
札証 |
2 |
日通し |
23 |
日中 |
24 |
夜間 |
- in: query
name: addinfo
description: |-
追加情報出力フラグ(未指定時:true)
※追加情報は、「時価総額」、「発行済み株式数」、「決算期日」、「清算値」を意味します。
定義値 |
説明 |
true |
追加情報を出力する |
false |
追加情報を出力しない |
schema:
type: string
required: false
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/SymbolSuccess"
"400":
description: BadRequest
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"403":
description: Forbidden
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"404":
description: NotFound
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"405":
description: MethodNotAllowed
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"413":
description: RequestEntityTooLarge
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"415":
description: UnsupportedMediaType
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"429":
description: TooManyRequests
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"500":
description: InternalServerError
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/orders:
get:
tags:
- "info"
operationId: ordersGet
summary: "注文約定照会"
description: |-
注文一覧を取得します。
※下記Queryパラメータは任意設定となります。
parameters:
- in: header
name: X-API-KEY
description: トークン発行メソッドで取得した文字列
schema:
type: string
required: true
- in: query
name: product
schema:
type: string
enum:
- "0"
- "1"
- "2"
- "3"
- "4"
required: false
description: |-
取得する商品
定義値 |
説明 |
0 |
すべて |
1 |
現物 |
2 |
信用 |
3 |
先物 |
4 |
OP |
- in: query
name: id
description: |-
注文番号
※指定された注文番号と一致する注文のみレスポンスします。
※指定された注文番号との比較では大文字小文字を区別しません。
※複数の注文番号を指定することはできません。
required: false
schema:
type: string
- in: query
name: updtime
description: |-
更新日時
※形式:yyyyMMddHHmmss (例:20201201123456)
※指定された更新日時以降(指定日時含む)に更新された注文のみレスポンスします。
※複数の更新日時を指定することはできません。
schema:
type: string
required: false
- in: query
name: details
description: |-
注文詳細抑止
定義値 |
説明 |
true |
注文詳細を出力する(デフォルト) |
false |
注文詳細の出力しない |
schema:
type: string
required: false
- in: query
name: symbol
schema:
type: string
description: 銘柄コード
※指定された銘柄コードと一致する注文のみレスポンスします。
※複数の銘柄コードを指定することができません。
required: false
- in: query
name: state
description: |-
状態
※指定された状態と一致する注文のみレスポンスします。
※フィルタには数字の入力のみ受け付けます。
※複数の状態を指定することはできません。
定義値 |
説明 |
1 |
待機(発注待機) |
2 |
処理中(発注送信中) |
3 |
処理済(発注済・訂正済) |
4 |
訂正取消送信中 |
5 |
終了(発注エラー・取消済・全約定・失効・期限切れ) |
schema:
type: string
enum:
- "1"
- "2"
- "3"
- "4"
- "5"
required: false
- in: query
name: side
description: |-
売買区分
※指定された売買区分と一致する注文のみレスポンスします。
※フィルタには数字の入力のみ受け付けます。
※複数の売買区分を指定することができません。
required: false
schema:
type: string
enum:
- "1"
- "2"
- in: query
name: cashmargin
schema:
type: string
enum:
- "2"
- "3"
description: |-
取引区分
※指定された取引区分と一致する注文のみレスポンスします。
※フィルタには数字の入力のみ受け付けます。
※複数の取引区分を指定することができません。
responses:
"200":
description: OK
content:
application/json:
schema:
type: "array"
items:
$ref: "#/components/schemas/OrdersSuccess"
"400":
description: BadRequest
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"403":
description: Forbidden
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"404":
description: NotFound
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"405":
description: MethodNotAllowed
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"413":
description: RequestEntityTooLarge
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"415":
description: UnsupportedMediaType
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"429":
description: TooManyRequests
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"500":
description: InternalServerError
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/positions:
get:
tags:
- "info"
operationId: positionsGet
summary: "残高照会"
description: "残高一覧を取得します。
※下記Queryパラメータは任意設定となります。"
parameters:
- in: header
name: X-API-KEY
description: トークン発行メソッドで取得した文字列
schema:
type: string
required: true
- in: query
name: product
description: |-
取得する商品
定義値 |
説明 |
0 |
すべて |
1 |
現物 |
2 |
信用 |
3 |
先物 |
4 |
OP |
schema:
type: string
enum:
- "0"
- "1"
- "2"
- "3"
- "4"
required: false
- in: query
name: symbol
description: "銘柄コード
※指定された銘柄コードと一致するポジションのみレスポンスします。
※複数の銘柄コードを指定することはできません。"
schema:
type: string
required: false
- in: query
name: side
description: |-
売買区分フィルタ
指定された売買区分と一致する注文を返す
schema:
type: string
enum:
- "1"
- "2"
required: false
- in: query
name: addinfo
description: |-
追加情報出力フラグ(未指定時:true)
※追加情報は、「現在値」、「評価金額」、「評価損益額」、「評価損益率」を意味します。
定義値 |
説明 |
true |
追加情報を出力する |
false |
追加情報を出力しない |
schema:
type: string
required: false
responses:
"200":
description: OK
content:
application/json:
schema:
type: "array"
items:
$ref: "#/components/schemas/PositionsSuccess"
"400":
description: BadRequest
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"403":
description: Forbidden
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"404":
description: NotFound
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"405":
description: MethodNotAllowed
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"413":
description: RequestEntityTooLarge
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"415":
description: UnsupportedMediaType
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"429":
description: TooManyRequests
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"500":
description: InternalServerError
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/register:
put:
tags:
- "register"
operationId: registerPut
summary: "銘柄登録"
description: |-
PUSH配信する銘柄を登録します。
API登録銘柄リストを開くには、kabuステーションAPIインジケーターを右クリックし「API登録銘柄リスト」を選択してください。
parameters:
- in: header
name: X-API-KEY
description: トークン発行メソッドで取得した文字列
schema:
type: string
required: true
requestBody:
required: true
description: 登録する銘柄のリスト
content:
application/json:
schema:
$ref: "#/components/schemas/RequestRegister"
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/RegistSuccess"
"400":
description: BadRequest
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"403":
description: Forbidden
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"404":
description: NotFound
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"405":
description: MethodNotAllowed
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"413":
description: RequestEntityTooLarge
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"415":
description: UnsupportedMediaType
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"429":
description: TooManyRequests
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"500":
description: InternalServerError
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/unregister:
put:
tags:
- "register"
operationId: unregisterPut
summary: "銘柄登録解除"
description: "API登録銘柄リストに登録されている銘柄を解除します"
parameters:
- in: header
name: X-API-KEY
description: トークン発行メソッドで取得した文字列
schema:
type: string
required: true
requestBody:
required: true
description: 登録解除する銘柄のリスト
content:
application/json:
schema:
$ref: "#/components/schemas/RequestUnregister"
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/RegistSuccess"
"400":
description: BadRequest
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"403":
description: Forbidden
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"404":
description: NotFound
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"405":
description: MethodNotAllowed
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"413":
description: RequestEntityTooLarge
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"415":
description: UnsupportedMediaType
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"429":
description: TooManyRequests
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"500":
description: InternalServerError
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/unregister/all:
put:
tags:
- "register"
operationId: unregisterAllPut
summary: "銘柄登録全解除"
description: "API登録銘柄リストに登録されている銘柄をすべて解除します"
parameters:
- in: header
name: X-API-KEY
description: トークン発行メソッドで取得した文字列
schema:
type: string
required: true
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/UnregisterAllSuccess"
"400":
description: BadRequest
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"403":
description: Forbidden
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"404":
description: NotFound
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"405":
description: MethodNotAllowed
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"413":
description: RequestEntityTooLarge
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"415":
description: UnsupportedMediaType
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"429":
description: TooManyRequests
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"500":
description: InternalServerError
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/symbolname/future:
get:
tags:
- "info"
operationId: symbolnameFutureGet
summary: "先物銘柄コード取得"
description: "先物銘柄コード取得"
parameters:
- in: header
name: X-API-KEY
description: トークン発行メソッドで取得した文字列
schema:
type: string
required: true
- in: query
name: FutureCode
schema:
type: string
description: |-
先物コード
※大文字小文字は区別しません。
定義値 |
説明 |
NK225 |
日経平均先物 |
NK225mini |
日経225mini先物 |
TOPIX |
TOPIX先物 |
TOPIXmini |
ミニTOPIX先物 |
GROWTH |
グロース250先物 |
JPX400 |
JPX日経400先物 |
DOW |
NYダウ先物 |
VI |
日経平均VI先物 |
Core30 |
TOPIX Core30先物 |
REIT |
東証REIT指数先物 |
NK225micro |
日経225マイクロ先物 |
- in: "query"
name: "DerivMonth"
description: |-
限月
※限月はyyyyMM形式で指定します。0を指定した場合、直近限月となります。
※取引最終日に「0」(直近限月)を指定した場合、日中・夜間の時間帯に関わらず、
取引最終日を迎える限月の銘柄コードを返します。取引最終日を迎える銘柄の取引は日中取引をもって終了となりますので、ご注意ください。
required: true
schema:
type: integer
format: int32
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/SymbolNameSuccess"
"400":
description: BadRequest
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"403":
description: Forbidden
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"404":
description: NotFound
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"405":
description: MethodNotAllowed
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"413":
description: RequestEntityTooLarge
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"415":
description: UnsupportedMediaType
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"429":
description: TooManyRequests
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"500":
description: InternalServerError
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/symbolname/option:
get:
tags:
- "info"
operationId: symbolnameOptionGet
summary: "オプション銘柄コード取得"
description: "オプション銘柄コード取得"
parameters:
- in: header
name: X-API-KEY
description: トークン発行メソッドで取得した文字列
schema:
type: string
required: true
- in: "query"
name: "OptionCode"
description: |-
オプションコード
※指定なしの場合は、日経225オプションを対象とする。
定義値 |
説明 |
NK225op |
日経225オプション |
NK225miniop |
日経225ミニオプション |
schema:
type: string
required: false
- in: "query"
name: "DerivMonth"
description: "限月
※限月はyyyyMM形式で指定します。0を指定した場合、直近限月となります。
※取引最終日に「0」(直近限月)を指定した場合、日中・夜間の時間帯に関わらず、取引最終日を迎える限月の銘柄コードを返します。取引最終日を迎える銘柄の取引は日中取引をもって終了となりますので、ご注意ください。"
required: true
schema:
type: integer
format: int32
- in: "query"
name: "PutOrCall"
description: |-
コール or プット
※大文字小文字は区別しません。
schema:
type: string
required: true
- in: "query"
name: "StrikePrice"
description: "権利行使価格
※0を指定した場合、APIを実行した時点でのATMとなります。"
required: true
schema:
type: "integer"
format: "int32"
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/SymbolNameSuccess"
"400":
description: BadRequest
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"403":
description: Forbidden
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"404":
description: NotFound
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"405":
description: MethodNotAllowed
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"413":
description: RequestEntityTooLarge
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"415":
description: UnsupportedMediaType
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"429":
description: TooManyRequests
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"500":
description: InternalServerError
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/symbolname/minioptionweekly:
get:
tags:
- "info"
operationId: symbolnameOptionMiniGet
summary: "ミニオプション(限週)銘柄コード取得"
description: "ミニオプション(限週)銘柄コード取得"
parameters:
- in: header
name: X-API-KEY
description: トークン発行メソッドで取得した文字列
schema:
type: string
required: true
- in: "query"
name: "DerivMonth"
description: "限月
※限月はyyyyMM形式で指定します。0を指定した場合、直近限月となります。
※取引最終日に「0」(直近限月)を指定した場合、日中・夜間の時間帯に関わらず、取引最終日を迎える限月の銘柄コードを返します。取引最終日を迎える銘柄の取引は日中取引をもって終了となりますので、ご注意ください。"
required: true
schema:
type: integer
format: int32
- in: "query"
name: "DerivWeekly"
description: "限週
※限週は0,1,3,4,5のいずれかを指定します。0を指定した場合、指定した限月の直近限週となります。
※取引最終日に「0」(直近限週)を指定した場合、日中・夜間の時間帯に関わらず、取引最終日を迎える限週の銘柄コードを返します。取引最終日を迎える銘柄の取引は日中取引をもって終了となりますので、ご注意ください。"
required: true
schema:
type: integer
format: int32
- in: "query"
name: "PutOrCall"
description: |-
コール or プット
※大文字小文字は区別しません。
schema:
type: string
required: true
- in: "query"
name: "StrikePrice"
description: "権利行使価格
※0を指定した場合、APIを実行した時点でのATMとなります。"
required: true
schema:
type: "integer"
format: "int32"
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/SymbolNameSuccess"
"400":
description: BadRequest
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"403":
description: Forbidden
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"404":
description: NotFound
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"405":
description: MethodNotAllowed
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"413":
description: RequestEntityTooLarge
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"415":
description: UnsupportedMediaType
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"429":
description: TooManyRequests
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"500":
description: InternalServerError
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/ranking:
get:
tags:
- "info"
operationId: rankingGet
summary: "詳細ランキング"
description: |-
詳細ランキング画面と同様の各種ランキングを返します。
ランキングの対象日はkabuステーションが保持している当日のデータとなります。
※株価情報ランキング、業種別指数ランキングは、下記の時間帯でデータがクリアされるため、
その間の詳細ランキングAPIは空レスポンスとなります。
データクリア:平日7:53頃-9:00過ぎ頃
※信用情報ランキングは毎週第3営業日の7:55頃にデータが更新されます。
parameters:
- in: header
name: X-API-KEY
description: トークン発行メソッドで取得した文字列
schema:
type: string
required: true
- in: query
name: Type
description: |-
種別
※信用情報ランキングに「福証」「札証」を指定した場合は、空レスポンスになります
定義値 |
説明 |
1 |
値上がり率(デフォルト) |
2 |
値下がり率 |
3 |
売買高上位 |
4 |
売買代金 |
5 |
TICK回数 |
6 |
売買高急増 |
7 |
売買代金急増 |
8 |
信用売残増 |
9 |
信用売残減 |
10 |
信用買残増 |
11 |
信用買残減 |
12 |
信用高倍率 |
13 |
信用低倍率 |
14 |
業種別値上がり率 |
15 |
業種別値下がり率 |
schema:
type: string
enum:
- "1"
- "2"
- "3"
- "4"
- "5"
- "6"
- "7"
- "8"
- "9"
- "10"
- "11"
- "12"
- "13"
- "14"
- "15"
required: true
- in: query
name: ExchangeDivision
description: |-
市場
※業種別値上がり率・値下がり率に市場を指定しても無視されます
定義値 |
説明 |
ALL |
全市場(デフォルト) |
T |
東証全体 |
TP |
東証プライム |
TS |
東証スタンダード |
TG |
グロース250 |
M |
名証 |
FK |
福証 |
S |
札証 |
schema:
type: string
enum:
- ALL
- T
- TP
- TS
- TG
- M
- FK
- S
required: true
responses:
"200":
description: OK
content:
application/json:
schema:
oneOf:
- $ref: "#/components/schemas/RankingDefaultResponse"
- $ref: "#/components/schemas/RankingByTickCountResponse"
- $ref: "#/components/schemas/RankingByTradeVolumeResponse"
- $ref: "#/components/schemas/RankingByTradeValueResponse"
- $ref: "#/components/schemas/RankingByMarginResponse"
- $ref: "#/components/schemas/RankingByCategoryResponse"
"400":
description: BadRequest
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"403":
description: Forbidden
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"404":
description: NotFound
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"405":
description: MethodNotAllowed
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"413":
description: RequestEntityTooLarge
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"415":
description: UnsupportedMediaType
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"429":
description: TooManyRequests
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"500":
description: InternalServerError
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/exchange/{symbol}:
get:
tags:
- "info"
operationId: exchangeGet
summary: "為替情報"
description: "マネービューの情報を取得する"
parameters:
- in: header
name: X-API-KEY
description: トークン発行メソッドで取得した文字列
schema:
type: string
required: true
- in: path
name: symbol
description: |-
通貨
定義値 |
内容 |
usdjpy |
USD/JPY |
eurjpy |
EUR/JPY |
gbpjpy |
GBP/JPY |
audjpy |
AUD/JPY |
chfjpy |
CHF/JPY |
cadjpy |
CAD/JPY |
nzdjpy |
NZD/JPY |
zarjpy |
ZAR/JPY |
eurusd |
EUR/USD |
gbpusd |
GBP/USD |
audusd |
AUD/USD |
schema:
type: string
enum:
- usdjpy
- eurjpy
- gbpjpy
- audjpy
- chfjpy
- cadjpy
- nzdjpy
- zarjpy
- eurusd
- gbpusd
- audusd
required: true
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/ExchangeResponse"
"400":
description: BadRequest
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"403":
description: Forbidden
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"404":
description: NotFound
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"405":
description: MethodNotAllowed
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"413":
description: RequestEntityTooLarge
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"415":
description: UnsupportedMediaType
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"429":
description: TooManyRequests
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"500":
description: InternalServerError
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/regulations/{symbol}:
get:
tags:
- "info"
operationId: regulationsGet
summary: "規制情報"
description: "規制情報+空売り規制情報を取得する"
parameters:
- in: header
name: X-API-KEY
description: トークン発行メソッドで取得した文字列
schema:
type: string
required: true
- in: path
name: symbol
schema:
type: string
required: true
description: |-
銘柄コード
※次の形式で入力してください。
[銘柄コード]@[市場コード]
※市場コードは下記の定義値から選択してください。
市場コード
定義値 |
説明 |
1 |
東証 |
3 |
名証 |
5 |
福証 |
6 |
札証 |
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/RegulationsResponse"
"400":
description: BadRequest
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"403":
description: Forbidden
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"404":
description: NotFound
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"405":
description: MethodNotAllowed
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"413":
description: RequestEntityTooLarge
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"415":
description: UnsupportedMediaType
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"429":
description: TooManyRequests
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"500":
description: InternalServerError
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/primaryexchange/{symbol}:
get:
tags:
- info
operationId: primaryExchangeGet
summary: 優先市場
description: 株式の優先市場を取得する
parameters:
- in: header
name: X-API-KEY
description: トークン発行メソッドで取得した文字列
schema:
type: string
required: true
- in: path
name: symbol
description: 銘柄コード
schema:
type: string
required: true
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/PrimaryExchangeResponse"
"400":
description: BadRequest
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"403":
description: Forbidden
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"404":
description: NotFound
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"405":
description: MethodNotAllowed
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"413":
description: RequestEntityTooLarge
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"415":
description: UnsupportedMediaType
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"429":
description: TooManyRequests
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"500":
description: InternalServerError
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/apisoftlimit:
get:
tags:
- info
operationId: apisoftlimitGet
summary: ソフトリミット
description: kabuステーションAPIのソフトリミット値を取得する
parameters:
- in: header
name: X-API-KEY
description: トークン発行メソッドで取得した文字列
schema:
type: string
required: true
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/ApiSoftLimitResponse"
"400":
description: BadRequest
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"403":
description: Forbidden
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"404":
description: NotFound
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"405":
description: MethodNotAllowed
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"413":
description: RequestEntityTooLarge
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"415":
description: UnsupportedMediaType
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"429":
description: TooManyRequests
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"500":
description: InternalServerError
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/margin/marginpremium/{symbol}:
get:
tags:
- info
operationId: marginpremiumGet
summary: プレミアム料取得
description: 指定した銘柄のプレミアム料を取得するAPI
parameters:
- in: header
name: X-API-KEY
description: トークン発行メソッドで取得した文字列
schema:
type: string
required: true
- in: path
name: symbol
description: 銘柄コード
schema:
type: string
required: true
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/MarginPremiumResponse"
"400":
description: BadRequest
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"401":
description: Unauthorized
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"403":
description: Forbidden
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"404":
description: NotFound
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"405":
description: MethodNotAllowed
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"413":
description: RequestEntityTooLarge
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"415":
description: UnsupportedMediaType
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"429":
description: TooManyRequests
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"500":
description: InternalServerError
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
# Component Schemas
components:
schemas:
# Request
RequestToken:
type: "object"
required:
- APIPassword
properties:
APIPassword:
description: "APIパスワード"
type: "string"
example: "xxxxxx"
RequestSendOrder:
type: object
required:
- Symbol
- Exchange
- SecurityType
- Side
- CashMargin
- DelivType
- AccountType
- Qty
- Price
- ExpireDay
- FrontOrderType
properties:
Symbol:
description: 銘柄コード
type: "string"
Exchange:
description: |-
市場コード
定義値 |
説明 |
1 |
東証 |
3 |
名証 |
5 |
福証 |
6 |
札証 |
type: "integer"
format: "int32"
SecurityType:
description: |-
商品種別
type: "integer"
format: "int32"
Side:
description: |-
売買区分
type: "string"
CashMargin:
description: |-
信用区分
type: "integer"
format: "int32"
MarginTradeType:
description: |-
信用取引区分
※現物取引の場合は指定不要。
※信用取引の場合、必須。
定義値 |
説明 |
1 |
制度信用 |
2 |
一般信用(長期) |
3 |
一般信用(デイトレ) |
type: "integer"
format: "int32"
MarginPremiumUnit:
description: |-
1株あたりのプレミアム料(円)
※プレミアム料の刻値は、プレミアム料取得APIのレスポンスにある"TickMarginPremium"にてご確認ください。
※入札受付中(19:30~20:30)プレミアム料入札可能銘柄の場合、「MarginPremiumUnit」は必須となります。
※入札受付中(19:30~20:30)のプレミアム料入札可能銘柄以外の場合は、「MarginPremiumUnit」の記載は無視されます。
※入札受付中以外の時間帯では、「MarginPremiumUnit」の記載は無視されます。
type: "number"
format: "double"
DelivType:
description: |-
受渡区分
※現物買は指定必須。
※現物売は「0(指定なし)」を設定
※信用新規は「0(指定なし)」を設定
※信用返済は指定必須
※auマネーコネクトが有効の場合にのみ、「3」を設定可能
定義値 |
説明 |
0 |
指定なし |
2 |
お預り金 |
3 |
auマネーコネクト |
type: "integer"
format: "int32"
FundType:
description: |-
資産区分(預り区分)
※現物買は、指定必須。
※現物売は、「' '」 半角スペース2つを指定必須。
※信用新規と信用返済は、「11」を指定するか、または指定なしでも可。指定しない場合は「11」が自動的にセットされます。
定義値 |
説明 |
(半角スペース2つ) |
現物売の場合 |
02 |
保護 |
AA |
信用代用 |
11 |
信用取引 |
type: "string"
AccountType:
description: |-
口座種別
type: "integer"
format: "int32"
Qty:
description: "注文数量
※信用一括返済の場合、返済したい合計数量を入力してください。"
type: "integer"
format: "int32"
ClosePositionOrder:
description: |-
決済順序
※信用返済の場合、必須。
※ClosePositionOrderとClosePositionsはどちらか一方のみ指定可能。
※ClosePositionOrderとClosePositionsを両方指定した場合、エラー。
定義値 |
説明 |
0 |
日付(古い順)、損益(高い順) |
1 |
日付(古い順)、損益(低い順) |
2 |
日付(新しい順)、損益(高い順) |
3 |
日付(新しい順)、損益(低い順) |
4 |
損益(高い順)、日付(古い順) |
5 |
損益(高い順)、日付(新しい順) |
6 |
損益(低い順)、日付(古い順) |
7 |
損益(低い順)、日付(新しい順) |
type: "integer"
format: "int32"
ClosePositions:
description: 返済建玉指定
※信用返済の場合、必須。
※ClosePositionOrderとClosePositionsはどちらか一方のみ指定可能。
※ClosePositionOrderとClosePositionsを両方指定した場合、エラー。
※信用一括返済の場合、各建玉IDと返済したい数量を入力してください。
※建玉IDは「E」から始まる番号です。
type: "array"
items:
$ref: "#/components/schemas/Positions"
FrontOrderType:
description: |-
執行条件
定義値 |
説明 |
”Price"の指定 |
10 |
成行 |
0 |
13 |
寄成(前場) |
0 |
14 |
寄成(後場) |
0 |
15 |
引成(前場) |
0 |
16 |
引成(後場) |
0 |
17 |
IOC成行 |
0 |
20 |
指値 |
発注したい金額 |
21 |
寄指(前場) |
発注したい金額 |
22 |
寄指(後場) |
発注したい金額 |
23 |
引指(前場) |
発注したい金額 |
24 |
引指(後場) |
発注したい金額 |
25 |
不成(前場) |
発注したい金額 |
26 |
不成(後場) |
発注したい金額 |
27 |
IOC指値 |
発注したい金額 |
30 |
逆指値 |
指定なし ※AfterHitPriceで指定ください |
type: "integer"
format: "int32"
Price:
description: 注文価格
※FrontOrderTypeで成行を指定した場合、0を指定する。
※詳細について、”FrontOrderType”をご確認ください。
type: "number"
format: "double"
ExpireDay:
description: |-
注文有効期限
yyyyMMdd形式。
「0」を指定すると、kabuステーション上の発注画面の「本日」に対応する日付として扱います。
「本日」は直近の注文可能日となり、以下のように設定されます。
引けまでの間 : 当日
引け後 : 翌取引所営業日
休前日 : 休日明けの取引所営業日
※ 日替わりはkabuステーションが日付変更通知を受信したタイミングです。
type: "integer"
format: "int32"
ReverseLimitOrder:
description: |-
逆指値条件
※FrontOrderTypeで逆指値を指定した場合のみ必須。
type: "object"
required:
- TriggerSec
- TriggerPrice
- UnderOver
- AfterHitOrderType
- AfterHitPrice
properties:
TriggerSec:
description: |-
トリガ銘柄
※未設定の場合はエラーになります。
定義値 |
説明 |
1 |
発注銘柄 |
2 |
NK225指数 |
3 |
TOPIX指数 |
type: "integer"
format: "int32"
TriggerPrice:
description: |-
トリガ価格
※未設定の場合はエラーになります。
※数字以外が設定された場合はエラーになります。
type: "number"
format: "double"
UnderOver:
description: |-
以上/以下
※未設定の場合はエラーになります。
※1、2以外が指定された場合はエラーになります。
type: "integer"
format: "int32"
AfterHitOrderType:
description: |-
ヒット後執行条件
※未設定の場合はエラーになります。
※1、2、3以外が指定された場合はエラーになります。
type: "integer"
format: "int32"
AfterHitPrice:
description: |-
ヒット後注文価格
※未設定の場合はエラーになります。
※数字以外が設定された場合はエラーになります。
ヒット後執行条件に従い、下記のようにヒット後注文価格を設定してください。
ヒット後執行条件 |
設定価格 |
成行 |
0 |
指値 |
指値の単価 |
不成 |
不成の単価 |
type: "number"
format: "double"
example:
Symbol: "9433"
Exchange: 1
SecurityType: 1
Side: "1"
CashMargin: 3
MarginTradeType: 3
MarginPremiumUnit: 12.34
DelivType: 2
AccountType: 4
Qty: 500
ClosePositions: [
{
HoldID: "E20200702xxxxx",
Qty: 500
}
]
FrontOrderType: 30
ExpireDay: 20200903
ReverseLimitOrder: {
TriggerSec: 1,
TriggerPrice: 40000,
UnderOver: 2,
AfterHitOrderType: 1,
AfterHitPrice: 0
}
RequestSendOrderDerivFuture:
type: "object"
required:
- Symbol
- Exchange
- TradeType
- TimeInForce
- Side
- Qty
- Price
- ExpireDay
- FrontOrderType
properties:
Symbol:
description: "銘柄コード
※取引最終日に「先物銘柄コード取得」でDerivMonthに0(直近限月)を指定した場合、日中・夜間の時間帯に関わらず、取引最終日を迎える限月の銘柄コードを返します。取引最終日を迎える銘柄の取引は日中取引をもって終了となりますので、ご注意ください。"
type: "string"
example: "165120019"
Exchange:
description: 市場コード
定義値 |
説明 |
2 |
日通し |
23 |
日中 |
24 |
夜間 |
32 |
SOR日通し |
33 |
SOR日中 |
34 |
SOR夜間 |
SOR日中、SOR夜間、SOR日通しは一部銘柄のみ対象となります。
SOR対象銘柄は以下をご参照ください。
先物SOR取扱銘柄 |
有効限月 |
日経225先物ラージ |
直近2限月 |
日経225先物ミニ |
直近4限月 |
TOPIX先物ラージ |
直近2限月 |
TOPIX先物ミニ |
直近3限月 |
東証マザーズ指数先物 |
直近2限月 |
JPX日経400先物 |
直近2限月 |
NYダウ先物 |
直近2限月 |
type: "integer"
format: "int32"
TradeType:
description: |-
取引区分
type: "integer"
format: "int32"
TimeInForce:
description: |-
有効期間条件
※執行条件(FrontOrderType)、有効期限条件(TimeInForce)、市場コード(Exchange)で選択できる組み合わせは下表のようになります。
■日中、夜間、日通し対応表
執行条件 |
有効 期間条件 |
市場コード |
日中 |
夜間 |
日通し |
指値 |
FAS |
● |
● |
● |
指値 |
FAK |
● |
● |
- |
指値 |
FOK |
● |
● |
- |
成行 |
FAK |
● |
● |
- |
成行 |
FOK |
● |
● |
- |
逆指値(指値) |
FAK |
● |
● |
● |
逆指値(成行) |
FAK |
● |
● |
- |
引成 |
FAK |
● |
● |
- |
引指 |
FAS |
● |
● |
- |
■SOR日中、SOR夜間、SOR日通し対応表
執行条件 |
有効 期間条件 |
市場コード |
SOR日中 |
SOR夜間 |
SOR日通し |
指値 |
FAS |
● |
● |
● |
指値 |
FAK |
● |
● |
- |
指値 |
FOK |
● |
● |
- |
成行 |
FAK |
● |
● |
- |
成行 |
FOK |
● |
● |
- |
逆指値(指値) |
FAK |
● |
● |
● |
逆指値(成行) |
FAK |
● |
● |
- |
引成 |
FAK |
- |
- |
- |
引指 |
FAS |
- |
- |
- |
type: "integer"
format: "int32"
Side:
description: |-
売買区分
type: "string"
Qty:
description: "注文数量"
type: "integer"
format: "int32"
ClosePositionOrder:
description: |-
決済順序
※ClosePositionOrderとClosePositionsはどちらか一方のみ指定可能。
※ClosePositionOrderとClosePositionsを両方指定した場合、エラー。
定義値 |
説明 |
0 |
日付(古い順)、損益(高い順) |
1 |
日付(古い順)、損益(低い順) |
2 |
日付(新しい順)、損益(高い順) |
3 |
日付(新しい順)、損益(低い順) |
4 |
損益(高い順)、日付(古い順) |
5 |
損益(高い順)、日付(新しい順) |
6 |
損益(低い順)、日付(古い順) |
7 |
損益(低い順)、日付(新しい順) |
type: "integer"
format: "int32"
ClosePositions:
description: "返済建玉指定
※ClosePositionOrderとClosePositionsはどちらか一方のみ指定可能。
※ClosePositionOrderとClosePositionsを両方指定した場合、エラー。"
type: "array"
items:
$ref: "#/components/schemas/PositionsDeriv"
FrontOrderType:
description: |-
執行条件
定義値 |
説明 |
”Price”の指定 |
18 |
引成(派生) ※TimeInForceは、「FAK」のみ有効 |
0 |
20 |
指値 |
発注したい金額 |
28 |
引指(派生) ※TimeInForceは、「FAS」のみ有効 |
発注したい金額 |
30 |
逆指値 |
指定なし ※AfterHitPriceで指定ください |
120 |
成行(マーケットオーダー) |
0 |
type: "integer"
format: "int32"
Price:
description: "注文価格
※FrontOrderTypeで成行を指定した場合、0を指定する。
※詳細について、”FrontOrderType”をご確認ください。"
type: "number"
format: "double"
ExpireDay:
description: |-
注文有効期限
yyyyMMdd形式。
「0」を指定すると、kabuステーション上の発注画面の「本日」に対応する日付として扱います。
「本日」は直近の注文可能日となり、以下のように設定されます。
その市場の引けまでの間 : 当日
その市場の引け後 : 翌取引所営業日
その市場の休前日 : 休日明けの取引所営業日
※ 日替わりはkabuステーションが日付変更通知を受信したタイミングです。
※ 日通しの場合、夜間取引の引け後に日付が更新されます。
type: "integer"
format: "int32"
ReverseLimitOrder:
description: |-
逆指値条件
※FrontOrderTypeで逆指値を指定した場合のみ必須。
type: "object"
required:
- TriggerPrice
- UnderOver
- AfterHitOrderType
- AfterHitPrice
properties:
TriggerPrice:
description: |-
トリガ価格
※未設定の場合はエラーになります。
※数字以外が設定された場合はエラーになります。
type: "number"
format: "double"
UnderOver:
description: |-
以上/以下
※未設定の場合はエラーになります。
※1、2以外が指定された場合はエラーになります。
type: "integer"
format: "int32"
AfterHitOrderType:
description: |-
ヒット後執行条件
※未設定の場合はエラーになります。
※日通の注文で2以外が指定された場合はエラーになります。
※日中、夜間の注文で1、2以外が指定された場合はエラーになります。
※逆指値(成行)で有効期間条件(TimeInForce)にFAK以外を指定された場合はエラーになります。
※逆指値(指値)で有効期間条件(TimeInForce)にFAS以外を指定された場合はエラーになります。
type: "integer"
format: "int32"
AfterHitPrice:
description: |-
ヒット後注文価格
※未設定の場合はエラーになります。
※数字以外が設定された場合はエラーになります。
ヒット後執行条件に従い、下記のようにヒット後注文価格を設定してください。
ヒット後執行条件 |
設定価格 |
成行 |
0 |
指値 |
指値の単価 |
type: "number"
format: "double"
example:
Symbol: "165120019"
Exchange : 23
TradeType: 2
TimeInForce: 2
Side: "1"
Qty: 1
ClosePositions: [
{
HoldID: "E20200903xxxxx",
Qty: 1
}
]
FrontOrderType: 30
ExpireDay: 20200903
ReverseLimitOrder: {
TriggerPrice: 100,
UnderOver: 1,
AfterHitOrderType: 1,
AfterHitPrice: 0
}
RequestSendOrderDerivOption:
type: "object"
required:
- Symbol
- Exchange
- TradeType
- TimeInForce
- Side
- Qty
- Price
- ExpireDay
- FrontOrderType
properties:
Symbol:
description: "銘柄コード
※取引最終日に「オプション銘柄コード取得」でDerivMonthに0(直近限月)を指定した場合、日中・夜間の時間帯に関わらず、取引最終日を迎える限月の銘柄コードを返します。取引最終日を迎える銘柄の取引は日中取引をもって終了となりますので、ご注意ください。"
type: "string"
Exchange:
description: |-
市場コード
type: "integer"
format: "int32"
TradeType:
description: |-
取引区分
type: "integer"
format: "int32"
TimeInForce:
description: |-
有効期間条件
※執行条件(FrontOrderType)、有効期限条件(TimeInForce)、市場コード(Exchange)で選択できる組み合わせは下表のようになります。
執行条件 |
有効期間条件 |
市場コード |
日中 |
夜間 |
日通し |
指値 |
FAS |
● |
● |
● |
指値 |
FAK |
● |
● |
- |
指値 |
FOK |
● |
● |
- |
成行 |
FAK |
● |
● |
- |
成行 |
FOK |
● |
● |
- |
逆指値(指値) |
FAK |
● |
● |
● |
逆指値(成行) |
FAK |
● |
● |
- |
引成 |
FAK |
● |
● |
- |
引指 |
FAS |
● |
● |
- |
type: "integer"
format: "int32"
Side:
description: |-
売買区分
type: "string"
Qty:
description: "注文数量"
type: "integer"
format: "int32"
ClosePositionOrder:
description: |-
決済順序
※ClosePositionOrderとClosePositionsはどちらか一方のみ指定可能。
※ClosePositionOrderとClosePositionsを両方指定した場合、エラー。
定義値 |
説明 |
0 |
日付(古い順)、損益(高い順) |
1 |
日付(古い順)、損益(低い順) |
2 |
日付(新しい順)、損益(高い順) |
3 |
日付(新しい順)、損益(低い順) |
4 |
損益(高い順)、日付(古い順) |
5 |
損益(高い順)、日付(新しい順) |
6 |
損益(低い順)、日付(古い順) |
7 |
損益(低い順)、日付(新しい順) |
type: "integer"
format: "int32"
ClosePositions:
description: "返済建玉指定
※ClosePositionOrderとClosePositionsはどちらか一方のみ指定可能。
※ClosePositionOrderとClosePositionsを両方指定した場合、エラー。"
type: "array"
items:
$ref: "#/components/schemas/PositionsDeriv"
FrontOrderType:
description: |-
執行条件
定義値 |
説明 |
”Price”の指定 |
18 |
引成(派生) ※TimeInForceは、「FAK」のみ有効 |
0 |
20 |
指値 |
発注したい金額 |
28 |
引指(派生) ※TimeInForceは、「FAS」のみ有効 |
発注したい金額 |
30 |
逆指値 |
指定なし ※AfterHitPriceで指定ください |
120 |
成行(マーケットオーダー) |
0 |
type: "integer"
format: "int32"
Price:
description: "注文価格
※FrontOrderTypeで成行を指定した場合、0を指定する。
※詳細について、”FrontOrderType”をご確認ください。"
type: "number"
format: "double"
ExpireDay:
description: |-
注文有効期限
yyyyMMdd形式。
「0」を指定すると、kabuステーション上の発注画面の「本日」に対応する日付として扱います。
「本日」は直近の注文可能日となり、以下のように設定されます。
その市場の引けまでの間 : 当日
その市場の引け後 : 翌取引所営業日
その市場の休前日 : 休日明けの取引所営業日
※ 日替わりはkabuステーションが日付変更通知を受信したタイミングです。
※ 日通しの場合、夜間取引の引け後に日付が更新されます。
type: "integer"
format: "int32"
ReverseLimitOrder:
description: |-
逆指値条件
※FrontOrderTypeで逆指値を指定した場合のみ必須。
type: "object"
required:
- TriggerPrice
- UnderOver
- AfterHitOrderType
- AfterHitPrice
properties:
TriggerPrice:
description: |-
トリガ価格
※未設定の場合はエラーになります。
※数字以外が設定された場合はエラーになります。
type: "number"
format: "double"
UnderOver:
description: |-
以上/以下
※未設定の場合はエラーになります。
※1、2以外が指定された場合はエラーになります。
type: "integer"
format: "int32"
AfterHitOrderType:
description: |-
ヒット後執行条件
※未設定の場合はエラーになります。
※日通の注文で2以外が指定された場合はエラーになります。
※日中、夜間の注文で1、2以外が指定された場合はエラーになります。
※逆指値(成行)で有効期間条件(TimeInForce)にFAK以外を指定された場合はエラーになります。
※逆指値(指値)で有効期間条件(TimeInForce)にFAS以外を指定された場合はエラーになります。
type: "integer"
format: "int32"
AfterHitPrice:
description: |-
ヒット後注文価格
※未設定の場合はエラーになります。
※数字以外が設定された場合はエラーになります。
ヒット後執行条件に従い、下記のようにヒット後注文価格を設定してください。
ヒット後執行条件 |
設定価格 |
成行 |
0 |
指値 |
指値の単価 |
type: "number"
format: "double"
example:
Symbol: "165120019"
Exchange : 23
TradeType: 2
TimeInForce: 2
Side: "1"
Qty: 1
ClosePositions: [
{
HoldID: "E20200903xxxxx",
Qty: 1
}
]
FrontOrderType: 30
ExpireDay: 20200903
ReverseLimitOrder: {
TriggerPrice: 100,
UnderOver: 1,
AfterHitOrderType: 1,
AfterHitPrice: 0
}
Positions:
type: "object"
properties:
HoldID:
description: "返済建玉ID"
type: "string"
Qty:
description: "返済建玉数量"
type: "integer"
format: "int32"
PositionsDeriv:
type: "object"
properties:
HoldID:
description: "返済建玉ID"
type: "string"
Qty:
description: "返済建玉数量"
type: "integer"
format: "int32"
RequestCancelOrder:
type: "object"
required:
- OrderId
properties:
OrderId:
description: "注文番号
sendorderのレスポンスで受け取るOrderID。"
type: "string"
example: "20200529A01N06848002"
RequestRegister:
type: "object"
properties:
Symbols:
type: "array"
items:
type: "object"
properties:
Symbol:
description: "銘柄コード"
type: "string"
example: "9433"
Exchange:
description: |-
市場コード
定義値 |
説明 |
1 |
東証 |
3 |
名証 |
5 |
福証 |
6 |
札証 |
2 |
日通し |
23 |
日中 |
24 |
夜間 |
type: "integer"
format: "int32"
example: 1
RequestUnregister:
type: "object"
properties:
Symbols:
description: |-
※為替銘柄を登録する場合、銘柄名は"通貨A" + "/" + "通貨B"、市場コードは"300"で指定してください。
例:'Symbol': 'EUR/USD', "Exchange": 300
type: "array"
items:
type: "object"
properties:
Symbol:
description: "銘柄コード"
type: "string"
example: "9433"
Exchange:
description: |-
市場コード
定義値 |
説明 |
1 |
東証 |
3 |
名証 |
5 |
福証 |
6 |
札証 |
2 |
日通し |
23 |
日中 |
24 |
夜間 |
type: "integer"
format: "int32"
example: 1
TokenSuccess:
type: "object"
properties:
ResultCode:
description: "結果コード
0が成功。それ以外はエラーコード。"
type: "integer"
format: "int32"
example: 0
Token:
description: "APIトークン"
type: "string"
example: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
OrderSuccess:
type: "object"
properties:
Result:
description: "結果コード
0が成功。それ以外はエラーコード。"
type: "integer"
format: "int32"
example: 0
OrderId:
description: "受付注文番号"
type: "string"
example: "20200529A01N06848002"
WalletCashSuccess:
type: "object"
properties:
StockAccountWallet:
description: "現物買付可能額
※auマネーコネクトが有効の場合、auじぶん銀行の残高を含めた合計可能額を表示する
※auマネーコネクトが無効の場合、三菱UFJ eスマート証券の可能額のみを表示する"
type: "number"
format: "double"
example: null
AuKCStockAccountWallet:
description: "うち、三菱UFJ eスマート証券可能額"
type: "number"
format: "double"
example: null
AuJbnStockAccountWallet:
description: "うち、auじぶん銀行残高
※auマネーコネクトが無効の場合、「0」を表示する"
type: "number"
format: "double"
example: null
WalletMarginSuccess:
type: "object"
properties:
MarginAccountWallet:
description: "信用新規可能額"
type: "number"
format: "double"
example: null
DepositkeepRate:
description: "保証金維持率
※銘柄指定の場合のみ
※銘柄が指定されなかった場合、0.0を返す。"
type: "number"
format: "double"
example: null
ConsignmentDepositRate:
description: "委託保証金率
※銘柄指定の場合のみ。
※銘柄が指定されなかった場合、Noneを返す。"
type: "number"
format: "double"
example: null
CashOfConsignmentDepositRate:
description: "現金委託保証金率
※銘柄指定の場合のみ。
※銘柄が指定されなかった場合、Noneを返す。"
type: "number"
format: "double"
example: null
WalletFutureSuccess:
type: "object"
properties:
FutureTradeLimit:
description: "新規建玉可能額"
type: "number"
format: "double"
example: null
MarginRequirement:
description: "買い必要証拠金額
※銘柄指定の場合のみ。
※銘柄が指定されなかった場合、空を返す。"
type: "number"
format: "double"
example: null
MarginRequirementSell:
description: "売り必要証拠金額
※銘柄指定の場合のみ。
※銘柄が指定されなかった場合、空を返す。"
type: "number"
format: "double"
example: null
WalletOptionSuccess:
type: "object"
properties:
OptionBuyTradeLimit:
description: "買新規建玉可能額"
type: "number"
format: "double"
example: null
OptionSellTradeLimit:
description: "売新規建玉可能額"
type: "number"
format: "double"
example: null
MarginRequirement:
description: "必要証拠金額
※銘柄指定の場合のみ。
※銘柄が指定されなかった場合、空を返す。"
type: "number"
format: "double"
example: null
BoardSuccess:
description: "下記にあるBIDとASKとは、トレーダー目線から見た場合の値であるため、BidPrice=Sell1のPrice、AskPrice=Buy1のPriceという数値となります。"
type: "object"
properties:
Symbol:
description: "銘柄コード"
type: "string"
SymbolName:
description: "銘柄名"
type: "string"
Exchange:
description: |-
市場コード
※株式・先物・オプション銘柄の場合のみ
定義値 |
説明 |
1 |
東証 |
3 |
名証 |
5 |
福証 |
6 |
札証 |
2 |
日通し |
23 |
日中 |
24 |
夜間 |
type: "integer"
format: "int32"
example: 1
ExchangeName:
description: "市場名称
※株式・先物・オプション銘柄の場合のみ"
type: "string"
CurrentPrice:
description: "現値"
type: "number"
format: "double"
CurrentPriceTime:
description: "現値時刻"
type: "string"
format: "date-time"
CurrentPriceChangeStatus:
description: |-
現値前値比較
定義値 |
説明 |
0000 |
事象なし |
0056 |
変わらず |
0057 |
UP |
0058 |
DOWN |
0059 |
中断板寄り後の初値 |
0060 |
ザラバ引け |
0061 |
板寄り引け |
0062 |
中断引け |
0063 |
ダウン引け |
0064 |
逆転終値 |
0066 |
特別気配引け |
0067 |
一時留保引け |
0068 |
売買停止引け |
0069 |
サーキットブレーカ引け |
0431 |
ダイナミックサーキットブレーカ引け |
type: "string"
CurrentPriceStatus:
description: |-
現値ステータス
定義値 |
説明 |
1 |
現値 |
2 |
不連続歩み |
3 |
板寄せ |
4 |
システム障害 |
5 |
中断 |
6 |
売買停止 |
7 |
売買停止・システム停止解除 |
8 |
終値 |
9 |
システム停止 |
10 |
概算値 |
11 |
参考値 |
12 |
サーキットブレイク実施中 |
13 |
システム障害解除 |
14 |
サーキットブレイク解除 |
15 |
中断解除 |
16 |
一時留保中 |
17 |
一時留保解除 |
18 |
ファイル障害 |
19 |
ファイル障害解除 |
20 |
Spread/Strategy |
21 |
ダイナミックサーキットブレイク発動 |
22 |
ダイナミックサーキットブレイク解除 |
23 |
板寄せ約定 |
type: "integer"
format: "int32"
CalcPrice:
description: "計算用現値"
type: "number"
format: "double"
PreviousClose:
description: "前日終値"
type: "number"
format: "double"
PreviousCloseTime:
description: "前日終値日付"
type: "string"
format: "date-time"
ChangePreviousClose:
description: "前日比"
type: "number"
format: "double"
ChangePreviousClosePer:
description: "騰落率"
type: "number"
format: "double"
OpeningPrice:
description: "始値"
type: "number"
format: "double"
OpeningPriceTime:
description: "始値時刻"
type: "string"
format: "date-time"
HighPrice:
description: "高値"
type: "number"
format: "double"
HighPriceTime:
description: "高値時刻"
type: "string"
format: "date-time"
LowPrice:
description: "安値"
type: "number"
format: "double"
LowPriceTime:
description: "安値時刻"
type: "string"
format: "date-time"
TradingVolume:
description: "売買高
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
TradingVolumeTime:
description: "売買高時刻
※株式・先物・オプション銘柄の場合のみ"
type: "string"
format: "date-time"
VWAP:
description: "売買高加重平均価格(VWAP)
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
TradingValue:
description: "売買代金
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
BidQty:
description: "最良売気配数量 ※①
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
BidPrice:
description: "最良売気配値段 ※①
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
BidTime:
description: "最良売気配時刻 ※①
※株式銘柄の場合のみ"
type: "string"
format: "date-time"
BidSign:
description: |-
最良売気配フラグ ※①
※株式・先物・オプション銘柄の場合のみ
定義値 |
説明 |
0000 |
事象なし |
0101 |
一般気配 |
0102 |
特別気配 |
0103 |
注意気配 |
0107 |
寄前気配 |
0108 |
停止前特別気配 |
0109 |
引け後気配 |
0116 |
寄前気配約定成立ポイントなし |
0117 |
寄前気配約定成立ポイントあり |
0118 |
連続約定気配 |
0119 |
停止前の連続約定気配 |
0120 |
買い上がり売り下がり中 |
type: "string"
MarketOrderSellQty:
description: "売成行数量
※株式銘柄の場合のみ"
type: "number"
format: "double"
Sell1:
description: "売気配数量1本目"
type: "object"
properties:
Time:
description: "時刻
※株式銘柄の場合のみ"
type: "string"
format: "date-time"
Sign:
description: |-
気配フラグ
※株式・先物・オプション銘柄の場合のみ
定義値 |
説明 |
0000 |
事象なし |
0101 |
一般気配 |
0102 |
特別気配 |
0103 |
注意気配 |
0107 |
寄前気配 |
0108 |
停止前特別気配 |
0109 |
引け後気配 |
0116 |
寄前気配約定成立ポイントなし |
0117 |
寄前気配約定成立ポイントあり |
0118 |
連続約定気配 |
0119 |
停止前の連続約定気配 |
0120 |
買い上がり売り下がり中 |
type: "string"
Price:
description: "値段
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Qty:
description: "数量
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Sell2:
description: "売気配数量2本目"
type: "object"
properties:
Price:
description: "値段
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Qty:
description: "数量
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Sell3:
description: "売気配数量3本目"
type: "object"
properties:
Price:
description: "値段
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Qty:
description: "数量
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Sell4:
description: "売気配数量4本目"
type: "object"
properties:
Price:
description: "値段
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Qty:
description: "数量
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Sell5:
description: "売気配数量5本目"
type: "object"
properties:
Price:
description: "値段
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Qty:
description: "数量
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Sell6:
description: "売気配数量6本目"
type: "object"
properties:
Price:
description: "値段
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Qty:
description: "数量
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Sell7:
description: "売気配数量7本目"
type: "object"
properties:
Price:
description: "値段
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Qty:
description: "数量
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Sell8:
description: "売気配数量8本目"
type: "object"
properties:
Price:
description: "値段
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Qty:
description: "数量
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Sell9:
description: "売気配数量9本目"
type: "object"
properties:
Price:
description: "値段
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Qty:
description: "数量
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Sell10:
description: "売気配数量10本目"
type: "object"
properties:
Price:
description: "値段
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Qty:
description: "数量
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
AskQty:
description: "最良買気配数量 ※①
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
AskPrice:
description: "最良買気配値段 ※①
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
AskTime:
description: "最良買気配時刻 ※①
※株式銘柄の場合のみ"
type: "string"
format: "date-time"
AskSign:
description: |-
最良買気配フラグ ※①
※株式・先物・オプション銘柄の場合のみ
定義値 |
説明 |
0000 |
事象なし |
0101 |
一般気配 |
0102 |
特別気配 |
0103 |
注意気配 |
0107 |
寄前気配 |
0108 |
停止前特別気配 |
0109 |
引け後気配 |
0116 |
寄前気配約定成立ポイントなし |
0117 |
寄前気配約定成立ポイントあり |
0118 |
連続約定気配 |
0119 |
停止前の連続約定気配 |
0120 |
買い上がり売り下がり中 |
type: "string"
MarketOrderBuyQty:
description: "買成行数量
※株式銘柄の場合のみ"
type: "number"
format: "double"
Buy1:
description: "買気配数量1本目"
type: "object"
properties:
Time:
description: "時刻
※株式銘柄の場合のみ"
type: "string"
format: "date-time"
Sign:
description: |-
気配フラグ
※株式・先物・オプション銘柄の場合のみ
定義値 |
説明 |
0000 |
事象なし |
0101 |
一般気配 |
0102 |
特別気配 |
0103 |
注意気配 |
0107 |
寄前気配 |
0108 |
停止前特別気配 |
0109 |
引け後気配 |
0116 |
寄前気配約定成立ポイントなし |
0117 |
寄前気配約定成立ポイントあり |
0118 |
連続約定気配 |
0119 |
停止前の連続約定気配 |
0120 |
買い上がり売り下がり中 |
type: "string"
Price:
description: "値段
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Qty:
description: "数量
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Buy2:
description: "買気配数量2本目"
type: "object"
properties:
Price:
description: "値段
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Qty:
description: "数量
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Buy3:
description: "買気配数量3本目"
type: "object"
properties:
Price:
description: "値段
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Qty:
description: "数量
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Buy4:
description: "買気配数量4本目"
type: "object"
properties:
Price:
description: "値段
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Qty:
description: "数量
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Buy5:
description: "買気配数量5本目"
type: "object"
properties:
Price:
description: "値段
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Qty:
description: "数量
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Buy6:
description: "買気配数量6本目"
type: "object"
properties:
Price:
description: "値段
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Qty:
description: "数量
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Buy7:
description: "買気配数量7本目"
type: "object"
properties:
Price:
description: "値段
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Qty:
description: "数量
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Buy8:
description: "買気配数量8本目"
type: "object"
properties:
Price:
description: "値段
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Qty:
description: "数量
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Buy9:
description: "買気配数量9本目"
type: "object"
properties:
Price:
description: "値段
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Qty:
description: "数量
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Buy10:
description: "買気配数量10本目"
type: "object"
properties:
Price:
description: "値段
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Qty:
description: "数量
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
OverSellQty:
description: "OVER気配数量
※株式銘柄の場合のみ"
type: "number"
format: "double"
UnderBuyQty:
description: "UNDER気配数量
※株式銘柄の場合のみ"
type: "number"
format: "double"
TotalMarketValue:
description: "時価総額
※株式銘柄の場合のみ"
type: "number"
format: "double"
ClearingPrice:
description: "清算値
※先物銘柄の場合のみ"
type: "number"
format: "double"
IV:
description: "インプライド・ボラティリティ
※オプション銘柄かつ日通しの場合のみ"
type: "number"
format: "double"
Gamma:
description: "ガンマ
※オプション銘柄かつ日通しの場合のみ"
type: "number"
format: "double"
Theta:
description: "セータ
※オプション銘柄かつ日通しの場合のみ"
type: "number"
format: "double"
Vega:
description: "ベガ
※オプション銘柄かつ日通しの場合のみ"
type: "number"
format: "double"
Delta:
description: "デルタ
※オプション銘柄かつ日通しの場合のみ"
type: "number"
format: "double"
SecurityType:
description: |-
銘柄種別
定義値 |
説明 |
0 |
指数 |
1 |
現物 |
101 |
日経225先物 |
103 |
日経225OP |
107 |
TOPIX先物 |
121 |
JPX400先物 |
144 |
NYダウ |
145 |
日経平均VI |
154 |
グロース250先物 |
155 |
TOPIX_REIT |
171 |
TOPIX CORE30 |
901 |
日経平均225ミニ先物 |
907 |
TOPIXミニ先物 |
type: "integer"
format: "int32"
example:
Symbol: "5401"
SymbolName: "新日鐵住金"
Exchange: 1
ExchangeName: "東証プ"
CurrentPrice: 2408.0
CurrentPriceTime: "2022-04-04T15:00:00+09:00"
CurrentPriceChangeStatus: "0058"
CurrentPriceStatus: 1
CalcPrice: 343.7
PreviousClose: 1048.0000
PreviousCloseTime: "2022-04-01T00:00:00+09:00"
ChangePreviousClose: 1360.0000
ChangePreviousClosePer: 129.77
OpeningPrice: 2380.0
OpeningPriceTime: "2022-04-04T09:00:00+09:00"
HighPrice: 2418.0
HighPriceTime: "2022-04-04T13:25:47+09:00"
LowPrice: 2370.0
LowPriceTime: "2022-04-04T10:00:04+09:00"
TradingVolume: 4571500.0
TradingVolumeTime: "2022-04-04T15:00:00+09:00"
VWAP: 2394.4262
TradingValue: 10946119350.0
BidQty: 100.0
BidPrice: 2408.5000
BidTime: "2022-04-04T14:59:59+09:00"
BidSign: "0101"
MarketOrderSellQty: 0.0
Sell1: {
Time: "2022-04-04T14:59:59+09:00",
Sign: "0101",
Price: 2408.5000,
Qty: 100.0
}
Sell2: {
Price: 2409.0,
Qty: 800.0
}
Sell3: {
Price: 2409.5000,
Qty: 2100.0
}
Sell4: {
Price: 2410.0,
Qty: 800.0
}
Sell5: {
Price: 2410.5000,
Qty: 500
}
Sell6: {
Price: 2411.0,
Qty: 8400.0
}
Sell7: {
Price: 2411.5000,
Qty: 1200.0
}
Sell8: {
Price: 2412.0,
Qty: 27200.0
}
Sell9: {
Price: 2412.5000,
Qty: 400.0
}
Sell10: {
Price: 2413.0,
Qty: 16400.0
}
AskQty: 200.0
AskPrice: 2407.5000
AskTime: "2022-04-04T14:59:59+09:00"
AskSign: "0101"
MarketOrderBuyQty: 0.0
Buy1: {
Time: "2022-04-04T14:59:59+09:00",
Sign: "0101",
Price: 2407.5000,
Qty: 200.0
}
Buy2: {
Price: 2407.0,
Qty: 400.0
}
Buy3: {
Price: 2406.5000,
Qty: 1000.0
}
Buy4: {
Price: 2406.0,
Qty: 5800.0
}
Buy5: {
Price: 2405.5000,
Qty: 7500
}
Buy6: {
Price: 2405.0,
Qty: 2200.0
}
Buy7: {
Price: 2404.5000,
Qty: 16700.0
}
Buy8: {
Price: 2403.0,
Qty: 1300.0
}
Buy9: {
Price: 2403.5000,
Qty: 1300.0
}
Buy10: {
Price: 2403.0,
Qty: 3000.0
}
OverSellQty: 974900
UnderBuyQty: 756000
TotalMarketValue: 3266254659361.4
SecurityType: 1
RegistSuccess:
type: "object"
properties:
RegistList:
description: "現在登録されている銘柄のリスト"
type: "array"
items:
type: "object"
properties:
Symbol:
description: "銘柄コード"
type: "string"
example: "9433"
Exchange:
description: |-
市場コード
定義値 |
説明 |
1 |
東証 |
3 |
名証 |
5 |
福証 |
6 |
札証 |
2 |
日通し |
23 |
日中 |
24 |
夜間 |
type: "integer"
format: "int32"
example: 1
UnregisterAllSuccess:
type: "object"
properties:
RegistList:
description: "現在登録されている銘柄のリスト
※銘柄登録解除が正常に行われれば、空リストを返します。
登録解除でエラー等が発生した場合、現在登録されている銘柄のリストを返します"
type: "object"
example: []
SymbolSuccess:
type: "object"
properties:
Symbol:
description: "銘柄コード"
type: "string"
SymbolName:
description: "銘柄名"
type: "string"
DisplayName:
description: "銘柄略称
※株式・先物・オプション銘柄の場合のみ"
type: "string"
Exchange:
description: |-
市場コード
※株式・先物・オプション銘柄の場合のみ
定義値 |
説明 |
1 |
東証 |
3 |
名証 |
5 |
福証 |
6 |
札証 |
2 |
日通し |
23 |
日中 |
24 |
夜間 |
type: "integer"
format: "int32"
ExchangeName:
description: "市場名称
※株式・先物・オプション銘柄の場合のみ"
type: "string"
BisCategory:
description: |-
業種コード名
※株式銘柄の場合のみ
定義値 |
説明 |
0050 |
水産・農林業 |
1050 |
鉱業 |
2050 |
建設業 |
3050 |
食料品 |
3100 |
繊維製品 |
3150 |
パルプ・紙 |
3200 |
化学 |
3250 |
医薬品 |
3300 |
石油・石炭製品 |
3350 |
ゴム製品 |
3400 |
ガラス・土石製品 |
3450 |
鉄鋼 |
3500 |
非鉄金属 |
3550 |
金属製品 |
3600 |
機械 |
3650 |
電気機器 |
3700 |
輸送用機器 |
3750 |
精密機器 |
3800 |
その他製品 |
4050 |
電気・ガス業 |
5050 |
陸運業 |
5100 |
海運業 |
5150 |
空運業 |
5200 |
倉庫・運輸関連業 |
5250 |
情報・通信業 |
6050 |
卸売業 |
6100 |
小売業 |
7050 |
銀行業 |
7100 |
証券、商品先物取引業 |
7150 |
保険業 |
7200 |
その他金融業 |
8050 |
不動産業 |
9050 |
サービス業 |
9999 |
その他 |
type: "string"
TotalMarketValue:
description: "時価総額
※株式銘柄の場合のみ
追加情報出力フラグ:falseの場合、null"
type: "number"
format: "double"
TotalStocks:
description: "発行済み株式数(千株)
※株式銘柄の場合のみ
追加情報出力フラグ:falseの場合、null"
type: "number"
format: "double"
TradingUnit:
description: "売買単位
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
FiscalYearEndBasic:
description: "決算期日
※株式銘柄の場合のみ
追加情報出力フラグ:falseの場合、null"
type: "integer"
format: "int32"
PriceRangeGroup:
description: |-
呼値グループ
※株式・先物・オプション銘柄の場合のみ
※各呼値コードが対応する商品は以下となります。
株式の呼値の単位の詳細は [JPXページ](https://www.jpx.co.jp/equities/trading/domestic/07.html) をご覧ください。
10000:株式(TOPIX500採用銘柄以外)
10003:株式(TOPIX500採用銘柄)
10118 : 日経平均先物
10119 : 日経225mini
10318 : 日経平均オプション
10706 : ミニTOPIX先物
10718 : TOPIX先物
12122 : JPX日経400指数先物
14473 : NYダウ先物
14515 : 日経平均VI先物
15411 : グロース250先物
15569 : 東証REIT指数先物
17163 : TOPIXCore30指数先物
呼値コード |
値段の水準 |
呼値単位 |
10000 |
3000円以下 |
1 |
10000 |
5000円以下 |
5 |
10000 |
30000円以下 |
10 |
10000 |
50000円以下 |
50 |
10000 |
300000円以下 |
100 |
10000 |
500000円以下 |
500 |
10000 |
3000000円以下 |
1000 |
10000 |
5000000円以下 |
5000 |
10000 |
30000000円以下 |
10000 |
10000 |
50000000円以下 |
50000 |
10000 |
50000000円超 |
100000 |
10003 |
1000円以下 |
0.1 |
10003 |
3000円以下 |
0.5 |
10003 |
10000円以下 |
1 |
10003 |
30000円以下 |
5 |
10003 |
100000円以下 |
10 |
10003 |
300000円以下 |
50 |
10003 |
1000000円以下 |
100 |
10003 |
3000000円以下 |
500 |
10003 |
10000000円以下 |
1000 |
10003 |
30000000円以下 |
5000 |
10003 |
30000000円超 |
10000 |
10118 |
- |
10 |
10119 |
- |
5 |
10318 |
100円以下 |
1 |
10318 |
1000円以下 |
5 |
10318 |
1000円超 |
10 |
10706 |
- |
0.25 |
10718 |
- |
0.5 |
12122 |
- |
5 |
14473 |
- |
1 |
14515 |
- |
0.05 |
15411 |
- |
1 |
15569 |
- |
0.5 |
17163 |
- |
0.5 |
type: "string"
KCMarginBuy:
description: "一般信用買建フラグ
※trueのとき、一般信用(長期)または一般信用(デイトレ)が買建可能
※株式銘柄の場合のみ"
type: "boolean"
format: ""
KCMarginSell:
description: "一般信用売建フラグ
※trueのとき、一般信用(長期)または一般信用(デイトレ)が売建可能
※株式銘柄の場合のみ"
type: "boolean"
format: ""
MarginBuy:
description: "制度信用買建フラグ
※trueのとき制度信用買建可能
※株式銘柄の場合のみ"
type: "boolean"
format: ""
MarginSell:
description: "制度信用売建フラグ
※trueのとき制度信用売建可能
※株式銘柄の場合のみ"
type: "boolean"
format: ""
UpperLimit:
description: "値幅上限
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
LowerLimit:
description: "値幅下限
※株式・先物・オプション銘柄の場合のみ"
type: "number"
format: "double"
Underlyer:
description: |-
原資産コード
※先物・オプション銘柄の場合のみ
定義値 |
説明 |
NK225 |
日経225 |
NK300 |
日経300 |
GROWTH |
グロース250先物 |
JPX400 |
JPX日経400 |
TOPIX |
TOPIX |
NKVI |
日経平均VI |
DJIA |
NYダウ |
TSEREITINDEX |
東証REIT指数 |
TOPIXCORE30 |
TOPIX Core30 |
type: "string"
DerivMonth:
description: "限月-年月
※「限月-年月」は「年(yyyy)/月(MM)」で表示します。
※先物・オプション銘柄の場合のみ"
type: "string"
TradeStart:
description: "取引開始日
※先物・オプション銘柄の場合のみ"
type: "integer"
format: "int32"
TradeEnd:
description: "取引終了日
※先物・オプション銘柄の場合のみ"
type: "integer"
format: "int32"
StrikePrice:
description: "権利行使価格
※オプション銘柄の場合のみ"
type: "number"
format: "double"
PutOrCall:
description: |-
プット/コール区分
※オプション銘柄の場合のみ
type: "integer"
format: "int32"
ClearingPrice:
description: "清算値
※先物銘柄の場合のみ
追加情報出力フラグ:falseの場合、null"
type: "number"
format: "double"
example:
Symbol: "166090018"
SymbolName: "日経平均先物 21/09"
DisplayName: "日経平均先物 09"
Exchange: 23
ExchangeName: "大阪日中"
TradingUnit: 1.0
PriceRangeGroup: "10118"
UpperLimit: 29870.0
LowerLimit: 25290.0
Underlyer: "NK225"
DerivMonth: "2021/09"
TradeEnd: 20210909
TradeStart: 20200313
ClearingPrice: null
OrdersSuccess:
type: "object"
properties:
ID:
description: "注文番号"
type: "string"
State:
description: |-
状態
※OrderStateと同一である
定義値 |
説明 |
1 |
待機(発注待機) |
2 |
処理中(発注送信中) |
3 |
処理済(発注済・訂正済) |
4 |
訂正取消送信中 |
5 |
終了(発注エラー・取消済・全約定・失効・期限切れ) |
type: "integer"
format: "int32"
OrderState:
description: |-
注文状態
※Stateと同一である
定義値 |
説明 |
1 |
待機(発注待機) |
2 |
処理中(発注送信中) |
3 |
処理済(発注済・訂正済) |
4 |
訂正取消送信中 |
5 |
終了(発注エラー・取消済・全約定・失効・期限切れ) |
type: "integer"
format: "int32"
OrdType:
description: |-
執行条件
定義値 |
説明 |
1 |
ザラバ |
2 |
寄り |
3 |
引け |
4 |
不成 |
5 |
対当指値 |
6 |
IOC |
type: "integer"
format: "int32"
RecvTime:
description: "受注日時"
type: "string"
Symbol:
description: "銘柄コード"
type: "string"
SymbolName:
description: "銘柄名"
type: "string"
Exchange:
description: |-
市場コード
定義値 |
説明 |
1 |
東証 |
3 |
名証 |
5 |
福証 |
6 |
札証 |
9 |
SOR |
2 |
日通し |
23 |
日中 |
24 |
夜間 |
type: "integer"
format: "int32"
ExchangeName:
description: "市場名"
type: "string"
TimeInForce:
description: |-
有効期間条件
※先物・オプション銘柄の場合のみ
type: "integer"
format: "int32"
Price:
description: "値段"
type: "number"
format: "double"
OrderQty:
description: |-
発注数量
※注文期限切れと失効の場合、OrderQtyはゼロになりません。
※期限切れと失効の確認方法としては、DetailsのRecType(3: 期限切れ、7: 失効)にてご確認ください。
type: "number"
format: "double"
CumQty:
description: "約定数量"
type: "number"
format: "double"
Side:
description: |-
売買区分
type: "string"
CashMargin:
description: |-
取引区分
type: "integer"
format: "int32"
AccountType:
description: |-
口座種別
type: "integer"
format: "int32"
DelivType:
description: |-
受渡区分
定義値 |
説明 |
2 |
お預り金 |
3 |
auマネーコネクト |
type: "integer"
format: "int32"
ExpireDay:
description: "注文有効期限
yyyyMMdd形式"
type: "integer"
format: "int32"
MarginTradeType:
description: |-
信用取引区分
※信用を注文した際に表示されます。
定義値 |
説明 |
1 |
制度信用 |
2 |
一般信用(長期) |
3 |
一般信用(デイトレ) |
type: "integer"
format: "int32"
MarginPremium:
description: |-
プレミアム料
※(注文中数量+約定済数量)×1株あたりプレミアム料として計算されます。
※信用を注文した際に表示されます。
※制度信用売/買、一般(長期)買、一般(デイトレ)買の場合は、Noneと返されます。
一般(長期)売、一般(デイトレ)売の場合は、プレミアム料=0の場合、0(ゼロ)と返されます。
type: "number"
format: "double"
Details:
description: "注文詳細"
type: "array"
items:
type: "object"
properties:
SeqNum:
description: "※注文明細レコードの生成順序です。
※通番であるとは限りませんが、大小による順序は保たれています。"
type: "integer"
format: "int32"
ID:
description: "注文詳細番号"
type: "string"
RecType:
description: |-
明細種別
定義値 |
説明 |
1 |
受付 |
2 |
繰越 |
3 |
期限切れ |
4 |
発注 |
5 |
訂正 |
6 |
取消 |
7 |
失効 |
8 |
約定 |
type: "integer"
format: "int32"
example: 1
ExchangeID:
description: "取引所番号"
type: "string"
State:
description: |-
状態
定義値 |
説明 |
1 |
待機(発注待機) |
2 |
処理中(発注送信中・訂正送信中・取消送信中) |
3 |
処理済(発注済・訂正済・取消済・全約定・期限切れ) |
4 |
エラー |
5 |
削除済み |
type: "integer"
format: "int32"
TransactTime:
description: "処理時刻"
type: "string"
OrdType:
description: |-
執行条件
定義値 |
説明 |
null |
RecType=[6] 取消 の場合 |
0 |
RecType=[3] 期限切れ, [7] 失効, [8] 約定 の場合 |
1 |
ザラバ |
2 |
寄り |
3 |
引け |
4 |
不成 |
5 |
対当指値 |
6 |
IOC |
type: "integer"
format: "int32"
Price:
description: "値段"
type: "number"
format: "double"
Qty:
description: "数量"
type: "number"
format: "double"
ExecutionID:
description: "約定番号"
type: "string"
ExecutionDay:
description: "約定日時"
type: "string"
format: "date-time"
DelivDay:
description: "受渡日"
type: "integer"
format: "int32"
Commission:
description: "手数料
※注文詳細の明細種別が約定(RecType=8)の場合に設定。"
type: "number"
format: "double"
CommissionTax:
description: "手数料消費税
※明細種別は約定(RecType=8)の場合にのみ表示されます。"
type: "number"
format: "double"
example:
{
ID: "20220404A02N04738436",
State: 5,
OrderState: 5,
OrdType: 1,
RecvTime: "2022-04-04T18:00:51.763683+09:00",
Symbol: "8306",
SymbolName: "三菱UFJフィナンシャル・グループ",
Exchange: 1,
ExchangeName: "東証プ",
TimeInForce: 1,
Price: 704.5,
OrderQty: 1500,
CumQty: 1500,
Side: "1",
CashMargin: 2,
AccountType: 4,
DelivType: 2,
ExpireDay: 20220404,
MarginTradeType: 1,
MarginPremium: null,
Details: [
{
SeqNum: 1,
ID: "20220404A02N04738436",
RecType: 1,
ExchangeID: "00000000-0000-0000-0000-00000000",
State: 3,
TransactTime: "2022-04-04T18:00:51.763683+09:00",
OrdType: 1,
Price: 704.5,
Qty: 1500,
ExecutionID: "" ,
ExecutionDay: "2022-04-04T18:02:00+09:00",
DelivDay: 20220406,
Commission: 0,
CommissionTax: 0
}
]
}
PositionsSuccess:
type: "object"
example:
{
ExecutionID: "E20220404xxxxx",
AccountType: 4,
Symbol: "8306",
SymbolName: "三菱UFJフィナンシャル・グループ",
Exchange: 1,
ExchangeName: "東証プ",
ExecutionDay: 20220404,
Price: 704,
LeavesQty: 500,
HoldQty: 0,
Side: "1",
Expenses: 0,
Commission: 1620,
CommissionTax: 162,
ExpireDay: 20220404,
MarginTradeType: 1,
CurrentPrice: 414.5,
Valuation: 207250,
ProfitLoss: 144750,
ProfitLossRate: 41.12215909090909
}
properties:
ExecutionID:
description: "約定番号
※現物取引では、nullが返ります。"
type: "string"
AccountType:
description: |-
口座種別
type: "integer"
format: "int32"
Symbol:
description: "銘柄コード"
type: "string"
SymbolName:
description: "銘柄名"
type: "string"
Exchange:
description: |-
市場コード
定義値 |
説明 |
1 |
東証 |
3 |
名証 |
5 |
福証 |
6 |
札証 |
2 |
日通し |
23 |
日中 |
24 |
夜間 |
type: "integer"
format: "int32"
ExchangeName:
description: "市場名"
type: "string"
SecurityType:
description: "銘柄種別
※先物・オプション銘柄の場合のみ"
type: "integer"
format: "int32"
ExecutionDay:
description: "約定日(建玉日)
※信用・先物・オプションの場合のみ
※現物取引では、nullが返ります。"
type: "integer"
format: "int32"
Price:
description: "値段"
type: "number"
format: "double"
LeavesQty:
description: "残数量(保有数量)"
type: "number"
format: "double"
HoldQty:
description: "拘束数量(返済のために拘束されている数量)"
type: "number"
format: "double"
Side:
description: |-
売買区分
type: "string"
Expenses:
description: "諸経費
※信用・先物・オプションの場合のみ"
type: "number"
format: "double"
Commission:
description: "手数料
※信用・先物・オプションの場合のみ"
type: "number"
format: "double"
CommissionTax:
description: "手数料消費税
※信用・先物・オプションの場合のみ"
type: "number"
format: "double"
ExpireDay:
description: "返済期日
※信用・先物・オプションの場合のみ"
type: "integer"
format: "int32"
MarginTradeType:
description: |-
信用取引区分
※信用の場合のみ
定義値 |
説明 |
1 |
制度信用 |
2 |
一般信用(長期) |
3 |
一般信用(デイトレ) |
type: "integer"
format: "int32"
CurrentPrice:
description: "現在値
追加情報出力フラグ:falseの場合、null"
type: "number"
format: "double"
Valuation:
description: "評価金額
追加情報出力フラグ:falseの場合、null"
type: "number"
format: "double"
ProfitLoss:
description: "評価損益額
追加情報出力フラグ:falseの場合、null"
type: "number"
format: "double"
ProfitLossRate:
description: "評価損益率
追加情報出力フラグ:falseの場合、null"
type: "number"
format: "double"
SymbolNameSuccess:
type: "object"
properties:
Symbol:
description: "銘柄コード"
type: "string"
example: "136091318"
SymbolName:
description: "銘柄名称"
type: "string"
example: "日経平均オプション 21/09 プット 31375"
#Ranking ランキング
RankingDefaultResponse:
title: 株価情報 (種別:1~4)
type: object
properties:
Type:
description: "種別"
type: string
ExchangeDivision:
description: 市場
type: string
Ranking:
description: ランキング
type: array
items:
type: "object"
properties:
No:
description: 順位
※ランキング内で同じ順位が返却される場合があります(10位が2件など)
type: "integer"
format: "int32"
Trend:
type: "string"
description: |-
トレンド
定義値 |
内容 |
0 |
対象データ無し |
1 |
過去10営業日より20位以上上昇 |
2 |
過去10営業日より1~19位上昇 |
3 |
過去10営業日と変わらず |
4 |
過去10営業日より1~19位下落 |
5 |
過去10営業日より20位以上下落 |
AverageRanking:
type: number
format: double
description: "平均順位
※100位以下は「999」となります"
Symbol:
description: "銘柄コード"
type: "string"
SymbolName:
description: "銘柄名称"
type: "string"
CurrentPrice:
type: number
format: double
description: "現在値"
ChangeRatio:
type: number
format: double
description: "前日比"
ChangePercentage:
type: number
format: double
description: "騰落率(%)"
CurrentPriceTime:
description: "時刻
HH:mm
※日付は返しません"
type: "string"
TradingVolume:
type: number
format: double
description: "売買高
売買高を千株単位で表示する
※百株の位を四捨五入"
Turnover:
type: number
format: double
description: "売買代金
売買代金を百万円単位で表示する
※十万円の位を四捨五入"
ExchangeName:
description: "市場名"
type: "string"
CategoryName:
description: "業種名"
type: "string"
example:
Type: 1
ExchangeDivision: "ALL"
Ranking:
- No: 1
Trend: "1"
AverageRanking: 999
Symbol: "3358"
SymbolName: "ワイエスフード"
CurrentPrice: 297
ChangeRatio: 71
ChangePercentage: 34.41
CurrentPriceTime: 15:00
TradingVolume: 1629.5
Turnover: 458.575
ExchangeName: "東証ス"
CategoryName: "小売業"
- No: 2
Trend: "1"
AverageRanking: 999
Symbol: "7014"
SymbolName: "名村造"
CurrentPrice: 199
ChangeRatio: 43
ChangePercentage: 27.56
CurrentPriceTime: 15:00
TradingVolume: 19720
Turnover: 3797.37
ExchangeName: "東証ス"
CategoryName: "輸送用機器"
RankingByTickCountResponse:
title: 株価情報 (種別:5)
type: object
properties:
Type:
description: "種別"
type: "string"
ExchangeDivision:
description: "市場"
type: "string"
Ranking:
description: ランキング
type: array
items:
type: object
properties:
No:
description: 順位
※ランキング内で同じ順位が返却される場合があります(10位が2件など)
type: "integer"
format: "int32"
Trend:
type: "string"
description: |-
トレンド
定義値 |
内容 |
0 |
対象データ無し |
1 |
過去10営業日より20位以上上昇 |
2 |
過去10営業日より1~19位上昇 |
3 |
過去10営業日と変わらず |
4 |
過去10営業日より1~19位下落 |
5 |
過去10営業日より20位以上下落 |
AverageRanking:
type: "number"
format: "double"
description: "平均順位
※100位以下は「999」となります"
Symbol:
description: "銘柄コード"
type: "string"
SymbolName:
description: "銘柄名称"
type: "string"
CurrentPrice:
type: "number"
format: "double"
description: "現在値"
ChangeRatio:
type: "number"
format: "double"
description: "前日比"
TickCount:
type: integer
format: int32
description: "TICK回数"
UpCount:
type: integer
format: int32
description: "UP"
DownCount:
type: integer
format: int32
description: "DOWN"
ChangePercentage:
type: number
format: double
description: "騰落率(%)"
TradingVolume:
type: number
format: double
description: "売買高
売買高を千株単位で表示する
※百株の位を四捨五入"
Turnover:
type: number
format: double
description: "売買代金
売買代金を百万円単位で表示する
※十万円の位を四捨五入"
ExchangeName:
description: "市場名"
type: "string"
CategoryName:
description: "業種名"
type: "string"
example:
Type: 5
ExchangeDivision: "ALL"
Ranking:
- No: 1
Trend: "2"
AverageRanking: 2
Symbol: "9984"
SymbolName: "ソフトバンクG"
CurrentPrice: 8306
ChangeRatio: 817
TickCount: 132907
UpCount: 41144
DownCount: 40276
ChangePercentage: 10.9
TradingVolume: 68384.4
Turnover: 557485
ExchangeName: "東証プ"
CategoryName: "情報・通信業"
- No: 2
Trend: "1"
AverageRanking: 999
Symbol: "6400"
SymbolName: 不二精機
CurrentPrice: 1357
ChangeRatio: 4
TickCount: 42016
UpCount: 14735
DownCount: 14698
ChangePercentage: 0.29
TradingVolume: 11803.4
Turnover: 17228.4096
ExchangeName: 東証ス
CategoryName: 機械
RankingByTradeVolumeResponse:
title: 株価情報 (種別:6)
type: object
properties:
Type:
description: "種別"
type: "string"
ExchangeDivision:
description: "市場"
type: "string"
Ranking:
description: ランキング
type: array
items:
type: "object"
properties:
No:
description: 順位
※ランキング内で同じ順位が返却される場合があります(10位が2件など)
type: "integer"
format: "int32"
Trend:
type: "string"
description: |-
トレンド
定義値 |
内容 |
0 |
対象データ無し |
1 |
過去10営業日より20位以上上昇 |
2 |
過去10営業日より1~19位上昇 |
3 |
過去10営業日と変わらず |
4 |
過去10営業日より1~19位下落 |
5 |
過去10営業日より20位以上下落 |
AverageRanking:
type: "number"
format: "double"
description: "平均順位
※100位以下は「999」となります"
Symbol:
description: "銘柄コード"
type: "string"
SymbolName:
description: "銘柄名称"
type: "string"
CurrentPrice:
type: "number"
format: "double"
description: "現在値"
ChangeRatio:
type: "number"
format: "double"
description: "前日比"
RapidTradePercentage:
type: number
format: double
description: "売買高急増(%)"
TradingVolume:
type: number
format: double
description: "売買高
売買高を千株単位で表示する
※百株の位を四捨五入"
CurrentPriceTime:
description: "時刻
HH:mm
※日付は返しません"
type: "string"
ChangePercentage:
type: number
format: double
description: "騰落率(%)"
ExchangeName:
description: "市場名"
type: "string"
CategoryName:
description: "業種名"
type: "string"
example:
Type: 6
ExchangeDivision: "ALL"
Ranking:
- No: 1
Trend: "1"
AverageRanking: 999
Symbol: "7462"
SymbolName: CAPITA
CurrentPrice: 2481
ChangeRatio: 11
RapidTradePercentage: 10202.32
TradingVolume: 177.2
CurrentPriceTime: 15:00
ChangePercentage: 0.44
ExchangeName: 東証ス
CategoryName: 小売業
- No: 2
Trend: "1"
AverageRanking: 999
Symbol: "3358"
SymbolName: ワイエスフード
CurrentPrice: 297
ChangeRatio: 71
RapidTradePercentage: 8983.05
TradingVolume: 1629.5
CurrentPriceTime: 15:00
ChangePercentage: 31.41
ExchangeName: 東証ス
CategoryName: 小売業
RankingByTradeValueResponse:
title: 株価情報 (種別:7)
type: "object"
properties:
Type:
description: "種別"
type: "string"
ExchangeDivision:
description: "市場"
type: "string"
Ranking:
description: ランキング
type: array
items:
type: "object"
properties:
No:
description: 順位
※ランキング内で同じ順位が返却される場合があります(10位が2件など)
type: "integer"
format: "int32"
Trend:
type: "string"
description: |-
トレンド
定義値 |
内容 |
0 |
対象データ無し |
1 |
過去10営業日より20位以上上昇 |
2 |
過去10営業日より1~19位上昇 |
3 |
過去10営業日と変わらず |
4 |
過去10営業日より1~19位下落 |
5 |
過去10営業日より20位以上下落 |
AverageRanking:
type: "number"
format: "double"
description: "平均順位
※100位以下は「999」となります"
Symbol:
description: "銘柄コード"
type: "string"
SymbolName:
description: "銘柄名称"
type: "string"
CurrentPrice:
type: "number"
format: "double"
description: "現在値"
ChangeRatio:
type: "number"
format: "double"
description: "前日比"
RapidPaymentPercentage:
type: number
format: double
description: "代金急増(%)"
Turnover:
type: number
format: double
description: "売買代金
売買代金を百万円単位で表示する
※十万円の位を四捨五入"
CurrentPriceTime:
description: "時刻
HH:mm
※日付は返しません"
type: "string"
ChangePercentage:
type: number
format: double
description: "騰落率(%)"
ExchangeName:
description: "市場名"
type: "string"
CategoryName:
description: "業種名"
type: "string"
example:
Type: 7
ExchangeDivision: "ALL"
Ranking:
- No: 1
Trend: "1"
AverageRanking: 999
Symbol: "3358"
SymbolName: ワイエスフード
CurrentPrice: 297
ChangeRatio: 71
RapidPaymentPercentage: 11085.57
Turnover: 458.5749
CurrentPriceTime: 15:00
ChangePercentage: 31.41
ExchangeName: 東証ス
CategoryName: 小売業
- No: 2
Trend: "1"
AverageRanking: 999
Symbol: "7462"
SymbolName: CAPITA
CurrentPrice: 2481
ChangeRatio: 11
RapidPaymentPercentage: 9973.95
Turnover: 429.1906
CurrentPriceTime: 15:00
ChangePercentage: 0.44
ExchangeName: 東証ス
CategoryName: 小売業
RankingByMarginResponse:
title: 信用情報(種別:8~13)
type: "object"
properties:
Type:
description: "種別"
type: "string"
ExchangeDivision:
description: "市場"
type: "string"
Ranking:
description: ランキング
type: array
items:
type: object
properties:
No:
description: 順位
※ランキング内で同じ順位が返却される場合があります(10位が2件など)
type: "integer"
format: "int32"
Symbol:
description: "銘柄コード"
type: "string"
SymbolName:
description: "銘柄名称"
type: "string"
SellRapidPaymentPercentage:
type: number
format: double
description: "売残(千株)"
SellLastWeekRatio:
type: number
format: double
description: "売残前週比"
BuyRapidPaymentPercentage:
type: number
format: double
description: "買残(千株)"
BuyLastWeekRatio:
type: number
format: double
description: "買残前週比"
Ratio:
type: number
format: double
description: "倍率"
ExchangeName:
description: "市場名"
type: "string"
CategoryName:
description: "業種名"
type: "string"
example:
Type: 7
ExchangeDivision: "ALL"
Ranking:
- No: 1
Symbol: "7888"
SymbolName: 三光合成
SellRapidPaymentPercentage: 1410.9
SellLastWeekRatio: 1343.4
BuyRapidPaymentPercentage: 1108.2
BuyLastWeekRatio: 832.7
Ratio: 0.79
ExchangeName: 東証プ
CategoryName: 化学
- No: 2
Symbol: "4564"
SymbolName: OTS
SellRapidPaymentPercentage: 6588
SellLastWeekRatio: 1315.7
BuyRapidPaymentPercentage: 22180.5
BuyLastWeekRatio: -223.4
Ratio: 3.37
ExchangeName: 東証グ
CategoryName: 医薬品
RankingByCategoryResponse:
title: 業種別指数(種別:14~15)
type: object
properties:
Type:
description: "種別
※業種別値上がり率、業種別値下がり率の場合、市場は「null」になります"
type: string
ExchangeDivision:
description: 市場
type: string
Ranking:
description: ランキング
type: array
items:
type: object
properties:
No:
description: 順位
※ランキング内で同じ順位が返却される場合があります(10位が2件など)
type: "integer"
format: "int32"
Trend:
type: "string"
description: |-
トレンド
定義値 |
内容 |
0 |
対象データ無し |
1 |
過去10営業日より20位以上上昇 |
2 |
過去10営業日より1~19位上昇 |
3 |
過去10営業日と変わらず |
4 |
過去10営業日より1~19位下落 |
5 |
過去10営業日より20位以上下落 |
AverageRanking:
type: number
format: double
description: "平均順位
※100位以下は「999」となります"
Category:
description: "業種コード"
type: "string"
CategoryName:
description: "業種名"
type: "string"
CurrentPrice:
type: number
format: double
description: "現在値"
ChangeRatio:
type: number
format: double
description: "前日比"
CurrentPriceTime:
description: "時刻
HH:mm
※日付は返しません"
type: "string"
ChangePercentage:
type: number
format: double
description: "騰落率(%)"
example:
Type: 7
ExchangeDivision: "ALL"
Ranking:
- No: 1
Trend: "2"
AverageRanking: 15
Category: 345
CategoryName: IS 情報・通信
CurrentPrice: 4796.67
ChangeRatio: 130.81
CurrentPriceTime: 15:00
ChangePercentage: 2.8
- No: 2
Trend: 2
AverageRanking: 19
Category: 321
CategoryName: IS 水産
CurrentPrice: 431.45
ChangeRatio: 3.98
CurrentPriceTime: 15:00
ChangePercentage: 0.93
ExchangeResponse:
type: "object"
properties:
Symbol:
description: "通貨"
type: "string"
BidPrice:
description: "BID"
type: "number"
format: "double"
Spread:
description: "SP"
type: "number"
format: "double"
AskPrice:
description: "ASK"
type: "number"
format: "double"
Change:
description: "前日比"
type: "number"
format: "double"
Time:
description: "時刻
※HH:mm:ss形式"
type: "string"
example:
Symbol: "USD/JPY"
BidPrice: 105.502
Spread: 0.200
AskPrice: 105.504
Change: -0.05500
Time: "16:10:45"
RegulationsResponse:
type: "object"
properties:
Symbol:
description: |-
銘柄コード
※対象商品は、株式のみ
type: "string"
RegulationsInfo:
description: "規制情報"
type: "array"
items:
type: "object"
properties:
Exchange:
type: "integer"
format: "int32"
description: |-
規制市場
定義値 |
内容 |
0 |
全対象 |
1 |
東証 |
3 |
名証 |
5 |
福証 |
6 |
札証 |
9 |
SOR |
10 |
CXJ |
21 |
JNX |
Product:
type: "integer"
format: "int32"
description: |-
規制取引区分
※空売り規制の場合、「4:新規」
定義値 |
内容 |
0 |
全対象 |
1 |
現物 |
2 |
信用新規(制度) |
3 |
信用新規(一般) |
4 |
新規 |
5 |
信用返済(制度) |
6 |
信用返済(一般) |
7 |
返済 |
8 |
品受 |
9 |
品渡 |
Side:
type: "string"
description: |-
規制売買
※空売り規制の場合、「1:売」
Reason:
type: "string"
description: "理由
※空売り規制の場合、「空売り規制」"
LimitStartDay:
type: "string"
description: "制限開始日
yyyy/MM/dd HH:mm形式
※空売り規制の場合、null"
LimitEndDay:
type: "string"
description: "制限終了日
yyyy/MM/dd HH:mm形式
※空売り規制の場合、null"
Level:
type: "integer"
format: "int32"
description: |-
コンプライアンスレベル
※空売り規制の場合、null
定義値 |
内容 |
0 |
規制無し |
1 |
ワーニング |
2 |
エラー |
example:
Symbol: "5614"
RegulationsInfo:
- Exchange: 1
Product: 8
Side: '2'
Reason: "品受停止(貸借申込停止銘柄(日証金規制))"
LimitStartDay: "2020/10/01 00:00"
LimitEndDay: "2999/12/31 00:00"
Level: 2
- Exchange: 0
Product: 1
Side: '2'
Reason: "その他(代用不適格銘柄)"
LimitStartDay: "2021/01/27 00:00"
LimitEndDay: "2021/02/17 00:00"
Level: 2
PrimaryExchangeResponse:
type: object
properties:
Symbol:
description: 銘柄コード
※対象商品は、株式のみ
type: string
PrimaryExchange:
description: |-
優先市場
定義値 |
説明 |
1 |
東証 |
3 |
名証 |
5 |
福証 |
6 |
札証 |
type: "integer"
format: "int32"
example:
Symbol: "2928"
Exchange: 6
ApiSoftLimitResponse:
type: object
properties:
Stock:
description: "現物のワンショット上限
※単位は万円"
type: "number"
format: "double"
Margin:
description: 信用のワンショット上限
※単位は万円
type: "number"
format: "double"
Future:
description: 先物のワンショット上限
※単位は枚
type: "number"
format: "double"
FutureMini:
description: ミニ先物のワンショット上限
※単位は枚
type: "number"
format: "double"
FutureMicro:
description: マイクロ先物のワンショット上限
※単位は枚
type: "number"
format: "double"
Option:
description: オプションのワンショット上限
※単位は枚
type: "number"
format: "double"
MiniOption:
description: ミニオプションのワンショット上限
※単位は枚
type: "number"
format: "double"
KabuSVersion:
description: kabuステーションのバージョン
type: "string"
example:
Stock: 200
Margin: 200
Future: 10
FutureMini: 100
FutureMicro: 1000
Option: 20
MiniOption: 200
KabuSVersion: "5.13.1.0"
MarginPremiumResponse:
type: object
properties:
Symbol:
description: "銘柄コード"
type: "string"
GeneralMargin:
description: "一般信用(長期)"
type: "object"
properties:
MarginPremiumType:
description: |-
プレミアム料入力区分
定義値 |
説明 |
null |
一般信用(長期)非対応銘柄 |
0 |
プレミアム料がない銘柄 |
1 |
プレミアム料が固定の銘柄 |
2 |
プレミアム料が入札で決定する銘柄 |
type: "integer"
format: "int32"
MarginPremium:
description: |-
確定プレミアム料
※入札銘柄の場合、入札受付中は随時更新します。受付時間外は、確定したプレミアム料を返します。
※非入札銘柄の場合、常に固定値を返します。
※信用取引不可の場合、nullを返します。
※19:30~翌営業日のプレミアム料になります。
type: "number"
format: "double"
UpperMarginPremium:
description: |-
上限プレミアム料
※プレミアム料がない場合は、nullを返します。
type: "number"
format: "double"
LowerMarginPremium:
description: |-
下限プレミアム料
※プレミアム料がない場合は、nullを返します。
type: "number"
format: "double"
TickMarginPremium:
description: |-
プレミアム料刻値
※入札可能銘柄以外は、nullを返します。
type: "number"
format: "double"
DayTrade:
type: object
description: "一般信用(デイトレ)"
properties:
MarginPremiumType:
description: |-
プレミアム料入力区分
定義値 |
説明 |
null |
一般信用(デイトレ)非対応銘柄 |
0 |
プレミアム料がない銘柄 |
1 |
プレミアム料が固定の銘柄 |
2 |
プレミアム料が入札で決定する銘柄 |
type: "integer"
format: "int32"
MarginPremium:
description: |-
確定プレミアム料
※入札銘柄の場合、入札受付中は随時更新します。受付時間外は、確定したプレミアム料を返します。
※非入札銘柄の場合、常に固定値を返します。
※信用取引不可の場合、nullを返します。
※19:30~翌営業日のプレミアム料になります。
type: "number"
format: "double"
UpperMarginPremium:
description: |-
上限プレミアム料
※プレミアム料がない場合は、nullを返します。
type: "number"
format: "double"
LowerMarginPremium:
description: |-
下限プレミアム料
※プレミアム料がない場合は、nullを返します。
type: "number"
format: "double"
TickMarginPremium:
description: |-
プレミアム料刻値
※入札可能銘柄以外は、nullを返します。
type: "number"
format: "double"
example:
Symbol: "9433"
GeneralMargin:
MarginPremiumType: null
MarginPremium: null
UpperMarginPremium: null
LowerMarginPremium: null
TickMarginPremium: null
DayTrade:
MarginPremiumType: 2
MarginPremium: 0.55
UpperMarginPremium: 1
LowerMarginPremium: 0.3
TickMarginPremium: 0.01
#APIエラー結果
ErrorResponse:
type: "object"
properties:
Code:
description: "エラーコード"
type: "integer"
format: "int32"
example: 4001001
Message:
description: "[エラーメッセージ](../ptal/error.html#message)"
type: "string"
example: "内部エラー"