-
Notifications
You must be signed in to change notification settings - Fork 0
/
swagger.yaml
296 lines (296 loc) · 13.6 KB
/
swagger.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
openapi: 3.0.0
info:
description: User Application API Definition
version: 0.0.1
title: USER API
servers:
- url: http://localhost:8083
paths:
/api/v1/user/orders:
get:
tags:
- Orders
summary: 注文・約定履歴
description: 注文・約定履歴の情報を取得します
parameters:
- in: query
name: keyword
schema:
type: string
required: false
example: 3197
description: 銘柄名・コードなどを入力
- in: query
name: order_status
schema:
type: string
enum: [ORDER_STATUS_ORDER_IN, ORDER_STATUS_INVALID, ORDER_STATUS_EXECUTION_ALREADY, ORDER_STATUS_OTHERS]
required: false
example: ORDER_STATUS_VALID
description: 注文状態(注文中、失効・取り消し、約定、その他・エラー)
- in: query
name: start_time
schema:
type: string
required: false
example: '2019-01-05T14:20:00Z'
description: 期間を指定する:何日から
- in: query
name: end_time
schema:
type: string
required: false
example: '2019-01-05T14:20:00Z'
description: 期間を指定する:何日まで
- in: query
name: order_by
schema:
type: string
required: false
example: 'id'
description: Sort order keyword
- in: query
name: page_token
schema:
type: integer
format: int64
required: false
example: 2
description: Request page number
- in: query
name: page_size
schema:
type: integer
format: int64
required: false
example: 10
description: Default page_size is 10.
responses:
'200':
description: successful operation
content:
application/json:
schema:
type: object
items:
$ref: '#/components/schemas/OrderList'
example:
next_page_token: 2
total: 12345
listData:
- id: 1
order_id: '001'
order_status: ORDER_STATUS_VALID
security_name: S&P500指数(円ヘッジ)
security_code: 3197
market_venue: 東証
order_side_name: SELL
order_condition: 逆指値/359以下
order_quantity: 44
execution_quantity: 333
execution_price: 325
accept_datetime: '2015-06-23T17:32:28Z'
expiration_date: '2015-06-23T17:32:28Z'
- id: 2
order_id: '002'
order_status: ORDER_STATUS_VALID
security_name: 極楽湯HD
security_code: 3195
market_venue: JQ
order_side_name: SELL
order_condition: 成行
order_quantity: 333
execution_quantity: 555
execution_price: 32544
accept_datetime: '2015-06-23T17:32:28Z'
expiration_date: '2015-06-23T17:32:28Z'
- id: 3
order_id: '003'
order_status: ORDER_STATUS_VALID
security_name: 極楽湯HD33
security_code: 3144
market_venue: JQ
order_side_name: BUY
order_condition: 成行
order_quantity: 333
execution_quantity: 555
execution_price: 325
accept_datetime: '2015-06-23T17:32:28Z'
expiration_date: '2015-06-23T17:32:28Z'
- id: 4
order_id: '004'
order_status: ORDER_STATUS_ERROR
security_name: 極楽湯HD33ee
security_code: 3144
market_venue: JQ
order_side_name: BUY
order_condition: 成行
order_quantity: 333
execution_quantity: 555
execution_price: 325
accept_datetime: '2015-06-23T17:32:28Z'
expiration_date: '2015-06-23T17:32:28Z'
- id: 5
order_id: '005'
order_status: ORDER_STATUS_ERROR
security_name: 極楽湯HD33ee
security_code: 3144
market_venue: JQ
order_side_name: ETF_BUY
order_condition: 成行
order_quantity: 333
execution_quantity: 555
execution_price: 325
accept_datetime: '2015-06-23T17:32:28Z'
expiration_date: '2015-06-23T17:32:28Z'
- id: 6
order_id: '006'
order_status: ORDER_STATUS_ERROR
security_name: 極楽湯HD33ee
security_code: 3144
market_venue: JQ
order_side_name: ETF_BUY
order_condition: 成行
order_quantity: 333
execution_quantity: 555
execution_price: 325
accept_datetime: '2015-06-23T17:32:28Z'
expiration_date: '2015-06-23T17:32:28Z'
- id: 7
order_id: '007'
order_status: ORDER_STATUS_ERROR
security_name: 極楽湯HD33ee
security_code: 3144
market_venue: JQ
order_side_name: ETF_BUY
order_condition: 成行
order_quantity: 333
execution_quantity: 555
execution_price: 325
accept_datetime: '2015-06-23T17:32:28Z'
expiration_date: '2015-06-23T17:32:28Z'
- id: 8
order_id: '008'
order_status: ORDER_STATUS_ERROR
security_name: 極楽湯HD33ee
security_code: 3144
market_venue: JQ
order_side_name: SELL
order_condition: 成行
order_quantity: 333
execution_quantity: 555
execution_price: 325
accept_datetime: '2015-06-23T17:32:28Z'
expiration_date: '2015-06-23T17:32:28Z'
- id: 9
order_id: '009'
order_status: ORDER_STATUS_ERROR
security_name: 極楽湯HD33ee
security_code: 3144
market_venue: JQ
order_side_name: SELL
order_condition: 成行
order_quantity: 333
execution_quantity: 555
execution_price: 325
accept_datetime: '2015-06-23T17:32:28Z'
expiration_date: '2015-06-23T17:32:28Z'
- id: 10
order_id: '010'
order_status: ORDER_STATUS_ERROR
security_name: 極楽湯HD33ee
security_code: 3144
market_venue: JQ
order_side_name: BUY
order_condition: 成行
order_quantity: 333
execution_quantity: 555
execution_price: 325
accept_datetime: '2015-06-23T17:32:28Z'
expiration_date: '2015-06-23T17:32:28Z'
components:
schemas:
OrderList:
type: object
properties:
next_page_token:
type: integer
format: int64
example: 2
description: Next page number
total:
type: integer
format: int64
example: 12345
description: Total Items number
list:
type: array
items:
$ref: '#/components/schemas/Order'
Order:
type: object
properties:
id:
type: integer
format: int64
example: 1
description: id
order_id:
type: string
example: '001'
description: 注文番号
order_status:
type: string
example: ORDER_STATUS_VALID
description: 状態(有効、エラー,失効)
enum:
- ORDER_STATUS_VALID
- ORDER_STATUS_ERROR
- ORDER_STATUS_INVALID
security_name:
type: string
example: すかいらーく
description: 銘柄名
security_code:
type: string
example: 3197
description: 銘柄コード
market_venue:
type: string
example: 東証
description: 市場区分
order_side_name:
type: string
example: 現物売り
description: 売買種別(現物売り、現物買い、ETF買い)
enum:
- SELL
- BUY
- ETF_BUY
order_condition:
type: string
description: 注文タイプ/条件
order_quantity:
type: integer
format: int64
example: 100
description: 発注数
execution_quantity:
type: integer
format: int64
example: 50
description: 約定数
execution_price:
type: integer
format: int64
description: 平均約定単価
accept_datetime:
type: string
format: date-time
example: '2019-01-05T14:20:00Z'
description: 受注日時
expiration_date:
type: string
format: date-time
example: '2019-01-05T14:20:00Z'
description: 有効期限