ksxt 0.0.8__py3-none-any.whl → 0.0.9__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. ksxt/__init__.py +3 -1
  2. ksxt/__pycache__/__init__.cpython-312.pyc +0 -0
  3. ksxt/__pycache__/bithumb.cpython-312.pyc +0 -0
  4. ksxt/__pycache__/koreainvest.cpython-312.pyc +0 -0
  5. ksxt/__pycache__/upbit.cpython-312.pyc +0 -0
  6. ksxt/api/__init__.py +26 -0
  7. ksxt/api/__pycache__/__init__.cpython-312.pyc +0 -0
  8. ksxt/api/__pycache__/bithumb.cpython-312.pyc +0 -0
  9. ksxt/api/__pycache__/koreainvest.cpython-312.pyc +0 -0
  10. ksxt/api/__pycache__/upbit.cpython-312.pyc +0 -0
  11. ksxt/api/auto/api_generator.py +54 -0
  12. ksxt/api/auto/bithumb.py +35 -0
  13. ksxt/api/auto/koreainvest.py +49 -0
  14. ksxt/api/auto/upbit.py +39 -0
  15. ksxt/api/bithumb.py +42 -0
  16. ksxt/api/koreainvest.py +40 -0
  17. ksxt/api/upbit.py +54 -0
  18. ksxt/async_/__init__.py +4 -0
  19. ksxt/async_/__pycache__/__init__.cpython-312.pyc +0 -0
  20. ksxt/async_/__pycache__/bithumb.cpython-312.pyc +0 -0
  21. ksxt/async_/__pycache__/koreainvest.cpython-312.pyc +0 -0
  22. ksxt/async_/__pycache__/upbit.cpython-312.pyc +0 -0
  23. ksxt/async_/base/__init__.py +0 -0
  24. ksxt/async_/base/__pycache__/__init__.cpython-312.pyc +0 -0
  25. ksxt/async_/base/__pycache__/async_exchange.cpython-312.pyc +0 -0
  26. ksxt/async_/base/__pycache__/throttler.cpython-312.pyc +0 -0
  27. ksxt/async_/base/async_exchange.py +232 -0
  28. ksxt/async_/base/throttler.py +63 -0
  29. ksxt/async_/bithumb.py +455 -0
  30. ksxt/async_/koreainvest.py +849 -0
  31. ksxt/async_/upbit.py +488 -0
  32. ksxt/base/__pycache__/__init__.cpython-312.pyc +0 -0
  33. ksxt/base/__pycache__/errors.cpython-312.pyc +0 -0
  34. ksxt/base/__pycache__/exchange.cpython-312.pyc +0 -0
  35. ksxt/base/__pycache__/rest_exchange.cpython-312.pyc +0 -0
  36. ksxt/base/__pycache__/types.cpython-312.pyc +0 -0
  37. ksxt/base/com_exchange.py +2 -2
  38. ksxt/base/errors.py +10 -0
  39. ksxt/base/exchange.py +188 -497
  40. ksxt/base/rest_exchange.py +297 -113
  41. ksxt/base/types.py +1 -36
  42. ksxt/bithumb.py +504 -0
  43. ksxt/config/__init__.py +2 -1
  44. ksxt/config/__pycache__/__init__.cpython-312.pyc +0 -0
  45. ksxt/config/bithumb.toml +380 -0
  46. ksxt/config/koreainvest.toml +312 -0
  47. ksxt/config/token.toml +7 -0
  48. ksxt/config/upbit.toml +428 -0
  49. ksxt/koreainvest.py +409 -1055
  50. ksxt/market/__pycache__/base.cpython-312.pyc +0 -0
  51. ksxt/market/__pycache__/db.cpython-312.pyc +0 -0
  52. ksxt/market/__pycache__/logging.cpython-312.pyc +0 -0
  53. ksxt/market/__pycache__/manager.cpython-312.pyc +0 -0
  54. ksxt/market/__pycache__/markets.cpython-312.pyc +0 -0
  55. ksxt/market/base.py +50 -50
  56. ksxt/market/db.py +5 -4
  57. ksxt/market/krx/__pycache__/kosdaq.cpython-312.pyc +0 -0
  58. ksxt/market/krx/__pycache__/kospi.cpython-312.pyc +0 -0
  59. ksxt/market/krx/__pycache__/stock.cpython-312.pyc +0 -0
  60. ksxt/market/krx/kosdaq.py +150 -147
  61. ksxt/market/krx/kospi.py +179 -175
  62. ksxt/market/krx/stock.py +136 -134
  63. ksxt/market/logging.py +4 -4
  64. ksxt/market/manager.py +10 -12
  65. ksxt/market/markets.py +1 -1
  66. ksxt/market/us/__pycache__/amex.cpython-312.pyc +0 -0
  67. ksxt/market/us/__pycache__/nasdaq.cpython-312.pyc +0 -0
  68. ksxt/market/us/__pycache__/nyse.cpython-312.pyc +0 -0
  69. ksxt/market/us/__pycache__/stock.cpython-312.pyc +0 -0
  70. ksxt/market/us/amex.py +31 -31
  71. ksxt/market/us/nasdaq.py +31 -31
  72. ksxt/market/us/nyse.py +31 -31
  73. ksxt/market/us/stock.py +20 -28
  74. ksxt/models/__init__.py +16 -0
  75. ksxt/models/__pycache__/__init__.cpython-312.pyc +0 -0
  76. ksxt/models/__pycache__/balance.cpython-312.pyc +0 -0
  77. ksxt/models/__pycache__/cash.cpython-312.pyc +0 -0
  78. ksxt/models/__pycache__/common.cpython-312.pyc +0 -0
  79. ksxt/models/__pycache__/error.cpython-312.pyc +0 -0
  80. ksxt/models/__pycache__/historical.cpython-312.pyc +0 -0
  81. ksxt/models/__pycache__/market.cpython-312.pyc +0 -0
  82. ksxt/models/__pycache__/order.cpython-312.pyc +0 -0
  83. ksxt/models/__pycache__/orderbook.cpython-312.pyc +0 -0
  84. ksxt/models/__pycache__/ticker.cpython-312.pyc +0 -0
  85. ksxt/models/__pycache__/token.cpython-312.pyc +0 -0
  86. ksxt/models/__pycache__/transaction.cpython-312.pyc +0 -0
  87. ksxt/models/balance.py +30 -0
  88. ksxt/models/cash.py +15 -0
  89. ksxt/models/common.py +31 -0
  90. ksxt/models/error.py +13 -0
  91. ksxt/models/historical.py +26 -0
  92. ksxt/models/market.py +81 -0
  93. ksxt/models/order.py +42 -0
  94. ksxt/models/orderbook.py +32 -0
  95. ksxt/models/ticker.py +25 -0
  96. ksxt/models/token.py +14 -0
  97. ksxt/models/transaction.py +79 -0
  98. ksxt/parser/__pycache__/bithumb.cpython-312.pyc +0 -0
  99. ksxt/parser/__pycache__/koreainvest.cpython-312.pyc +0 -0
  100. ksxt/parser/__pycache__/parser.cpython-312.pyc +0 -0
  101. ksxt/parser/__pycache__/upbit.cpython-312.pyc +0 -0
  102. ksxt/parser/bithumb.py +300 -0
  103. ksxt/parser/koreainvest.py +323 -0
  104. ksxt/parser/parser.py +114 -0
  105. ksxt/parser/upbit.py +308 -0
  106. ksxt/upbit.py +499 -0
  107. ksxt/utils/__pycache__/safer.cpython-312.pyc +0 -0
  108. ksxt/utils/__pycache__/sorter.cpython-312.pyc +0 -0
  109. ksxt/utils/__pycache__/timer.cpython-312.pyc +0 -0
  110. ksxt/utils/safer.py +48 -0
  111. ksxt/utils/sorter.py +8 -0
  112. ksxt/utils/timer.py +47 -0
  113. {ksxt-0.0.8.dist-info → ksxt-0.0.9.dist-info}/METADATA +11 -1
  114. ksxt-0.0.9.dist-info/RECORD +119 -0
  115. {ksxt-0.0.8.dist-info → ksxt-0.0.9.dist-info}/WHEEL +1 -1
  116. ksxt/__pycache__/__init__.cpython-39.pyc +0 -0
  117. ksxt/__pycache__/koreainvest.cpython-39.pyc +0 -0
  118. ksxt/base/__pycache__/__init__.cpython-39.pyc +0 -0
  119. ksxt/base/__pycache__/exchange.cpython-39.pyc +0 -0
  120. ksxt/base/__pycache__/rest_exchange.cpython-39.pyc +0 -0
  121. ksxt/base/__pycache__/restexchange.cpython-39.pyc +0 -0
  122. ksxt/base/__pycache__/types.cpython-39.pyc +0 -0
  123. ksxt/base/api_response.py +0 -68
  124. ksxt/config/__pycache__/__init__.cpython-39.pyc +0 -0
  125. ksxt/config/tr_app.json +0 -381
  126. ksxt/config/tr_dev.json +0 -446
  127. ksxt/market/__pycache__/base.cpython-39.pyc +0 -0
  128. ksxt/market/__pycache__/db.cpython-39.pyc +0 -0
  129. ksxt/market/__pycache__/logging.cpython-39.pyc +0 -0
  130. ksxt/market/__pycache__/manager.cpython-39.pyc +0 -0
  131. ksxt/market/__pycache__/markets.cpython-39.pyc +0 -0
  132. ksxt/market/krx/__pycache__/kosdaq.cpython-39.pyc +0 -0
  133. ksxt/market/krx/__pycache__/kospi.cpython-39.pyc +0 -0
  134. ksxt/market/krx/__pycache__/stock.cpython-39.pyc +0 -0
  135. ksxt/market/us/__pycache__/amex.cpython-39.pyc +0 -0
  136. ksxt/market/us/__pycache__/nasdaq.cpython-39.pyc +0 -0
  137. ksxt/market/us/__pycache__/nyse.cpython-39.pyc +0 -0
  138. ksxt/market/us/__pycache__/stock.cpython-39.pyc +0 -0
  139. ksxt-0.0.8.dist-info/RECORD +0 -49
  140. {ksxt-0.0.8.dist-info → ksxt-0.0.9.dist-info}/LICENSE.txt +0 -0
  141. {ksxt-0.0.8.dist-info → ksxt-0.0.9.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,380 @@
1
+ #######################################################
2
+ # Bithumb API
3
+ # Lastested update time : 2024.07.31
4
+ #######################################################
5
+
6
+ id = 'bithumb'
7
+ name = 'Bithumb'
8
+ countries = ['KR']
9
+ rate_limit = 1000
10
+ enableRateLimit = false
11
+ www = 'https://www.bithumb.com'
12
+ doc = 'https://apidocs.bithumb.com/'
13
+
14
+ #######################################################
15
+ # rest api
16
+ #######################################################
17
+ [apis.rest]
18
+ hostname = "https://api.bithumb.com"
19
+ version = "v1"
20
+
21
+ #######################################################
22
+ # rest api
23
+ #######################################################
24
+ [apis.rest.stock]
25
+ url_market = ""
26
+
27
+ #######################################################
28
+ # 시세 종목 조회
29
+ #######################################################
30
+ [apis.rest.stock.fetch_markets]
31
+ url = "market/all"
32
+ method = 'GET'
33
+ api = 'public'
34
+ activate = true
35
+ __comment__ = "마켓 코드 조회"
36
+
37
+ #######################################################
38
+ # 시세 캔들 조회
39
+ #######################################################
40
+ [apis.rest.stock.fetch_security_ohlcv_minute]
41
+ url = "candles/minutes/{unit}"
42
+ method = 'GET'
43
+ api = 'public'
44
+ activate = true
45
+ __comment__ = "분(Minute) 캔들"
46
+
47
+ [apis.rest.stock.fetch_security_ohlcv_day]
48
+ url = "candles/days"
49
+ method = 'GET'
50
+ api = 'public'
51
+ activate = true
52
+ __comment__ = "일(Day) 캔들"
53
+
54
+ [apis.rest.stock.fetch_security_ohlcv_week]
55
+ url = "candles/weeks"
56
+ method = 'GET'
57
+ api = 'public'
58
+ activate = true
59
+ __comment__ = "주(Week) 캔들"
60
+
61
+ [apis.rest.stock.fetch_security_ohlcv_month]
62
+ url = "candles/months"
63
+ method = 'GET'
64
+ api = 'public'
65
+ activate = true
66
+ __comment__ = "월(Month) 캔들"
67
+
68
+ #######################################################
69
+ # 시세 캔들 조회
70
+ #######################################################
71
+ # ksxt 미지원 기능
72
+ [apis.rest.stock.TBD]
73
+ url = "trades/ticks"
74
+ method = 'GET'
75
+ api = 'private'
76
+ activate = false
77
+ __comment__ = "최근 체결 내역"
78
+
79
+ #######################################################
80
+ # 시세 현재가(Ticker) 조회
81
+ #######################################################
82
+ [apis.rest.stock.fetch_ticker_price]
83
+ url = "ticker"
84
+ method = 'GET'
85
+ api = 'public'
86
+ activate = true
87
+ __comment__ = "현재가 정보"
88
+
89
+ [apis.rest.stock.fetch_tickers_price]
90
+ url = "ticker"
91
+ method = 'GET'
92
+ api = 'public'
93
+ activate = true
94
+ __comment__ = "현재가 정보"
95
+
96
+ #######################################################
97
+ # 시세 호가 정보(Orderbook) 조회
98
+ #######################################################
99
+ [apis.rest.stock.fetch_orderbook]
100
+ url = "orderbook"
101
+ method = 'GET'
102
+ api = 'public'
103
+ activate = true
104
+ __comment__ = "호가 정보 조회"
105
+
106
+ [apis.rest.stock.fetch_orderbooks]
107
+ url = "orderbook"
108
+ method = 'GET'
109
+ api = 'public'
110
+ activate = true
111
+ __comment__ = "호가 정보 조회"
112
+
113
+ #######################################################
114
+ # 서비스 정보
115
+ #######################################################
116
+ # TODO : 협의 필요 / 협의 후 activate를 true로 활성화, 작명 필요
117
+ [apis.rest.stock.TBD1]
118
+ url = "orderbook"
119
+ method = 'GET'
120
+ api = 'public'
121
+ activate = false
122
+ __comment__ = "경보제"
123
+
124
+ #######################################################
125
+ # 자산
126
+ #######################################################
127
+ [apis.rest.stock.fetch_balance]
128
+ url = "accounts"
129
+ method = 'GET'
130
+ api = 'private'
131
+ activate = true
132
+ __comment__ = "전체 계좌 조회"
133
+
134
+ [apis.rest.stock.fetch_cash]
135
+ url = "accounts"
136
+ method = 'GET'
137
+ api = 'private'
138
+ activate = true
139
+ __comment__ = "전체 계좌 조회"
140
+
141
+ #######################################################
142
+ # 주문
143
+ #######################################################
144
+ [apis.rest.stock.fetch_security_info]
145
+ url = "orders/chance"
146
+ method = 'GET'
147
+ api = 'private'
148
+ activate = true
149
+ __comment__ = "주문 가능 정보"
150
+
151
+ [apis.rest.stock.fetch_trade_fee]
152
+ url = 'orders/chance'
153
+ method = 'GET'
154
+ api = 'private'
155
+ activate = true
156
+ __comment__ = '주문 가능 정보'
157
+
158
+ [apis.rest.stock.fetch_opened_order]
159
+ url = "orders"
160
+ method = 'GET'
161
+ api = 'private'
162
+ activate = true
163
+ __comment__ = "개별 리스트 조회"
164
+
165
+ [apis.rest.stock.fetch_opened_order_detail]
166
+ url = "order"
167
+ method = 'GET'
168
+ api = 'private'
169
+ activate = true
170
+ __comment__ = "거래 주문 조회"
171
+
172
+ [apis.rest.stock.fetch_closed_order]
173
+ url = "orders"
174
+ method = 'GET'
175
+ api = 'private'
176
+ activate = true
177
+ __comment__ = "개별 리스트 조회"
178
+
179
+ [apis.rest.stock.fetch_closed_order_detail]
180
+ url = "order"
181
+ method = 'GET'
182
+ api = 'private'
183
+ activate = true
184
+ __comment__ = "개별 주문 조회"
185
+
186
+ [apis.rest.stock.send_cancel_order]
187
+ url = "order"
188
+ method = 'DELETE'
189
+ api = 'private'
190
+ activate = true
191
+ __comment__ = "주문 취소 접수"
192
+
193
+ [apis.rest.stock.send_order_entry]
194
+ url = "orders"
195
+ method = 'POST'
196
+ api = 'private'
197
+ activate = true
198
+ __comment__ = "주문하기"
199
+
200
+ [apis.rest.stock.send_order_entry_market]
201
+ url = "orders"
202
+ method = 'POST'
203
+ api = 'private'
204
+ activate = true
205
+ __comment__ = "주문하기"
206
+
207
+ [apis.rest.stock.send_order_exit]
208
+ url = "orders"
209
+ method = 'POST'
210
+ api = 'private'
211
+ activate = true
212
+ __comment__ = "주문하기"
213
+
214
+ [apis.rest.stock.send_order_exit_market]
215
+ url = "orders"
216
+ method = 'POST'
217
+ api = 'private'
218
+ activate = true
219
+ __comment__ = "주문하기"
220
+
221
+ #######################################################
222
+ # 출금
223
+ #######################################################
224
+ # ksxt 미지원 기능
225
+ [apis.rest.stock.TBD2]
226
+ url = "withdraws"
227
+ method = 'GET'
228
+ api = 'private'
229
+ activate = false
230
+ __comment__ = "코인 출금 리스트 조회"
231
+
232
+ [apis.rest.stock.fetch_withdrawal_history]
233
+ url = "withdraws/krw"
234
+ method = 'GET'
235
+ api = 'private'
236
+ activate = true
237
+ __comment__ = "원화 출금 리스트 조회"
238
+
239
+ # ksxt 미지원 기능
240
+ [apis.rest.stock.TBD3]
241
+ url = "withdraw"
242
+ method = 'GET'
243
+ api = 'private'
244
+ activate = false
245
+ __comment__ = "개별 출금 조회"
246
+
247
+ # ksxt 미지원 기능
248
+ [apis.rest.stock.TBD4]
249
+ url = "withdraws/chance"
250
+ method = 'GET'
251
+ api = 'private'
252
+ activate = false
253
+ __comment__ = "출금 가능 정보"
254
+
255
+ # ksxt 미지원 기능
256
+ [apis.rest.stock.TBD5]
257
+ url = "withdraws/coin"
258
+ method = 'POST'
259
+ api = 'private'
260
+ activate = false
261
+ __comment__ = "가상 자산 출금하기"
262
+
263
+ # ksxt 미지원 기능
264
+ [apis.rest.stock.TBD6]
265
+ url = "withdraws/krw"
266
+ method = 'POST'
267
+ api = 'private'
268
+ activate = false
269
+ __comment__ = "원화 출금하기"
270
+
271
+ # ksxt 미지원 기능
272
+ [apis.rest.stock.TBD7]
273
+ url = "withdraws/coin_addresses"
274
+ method = 'POST'
275
+ api = 'private'
276
+ activate = false
277
+ __comment__ = "출금 허용 주소 리스트 조회"
278
+
279
+ #######################################################
280
+ # 입금
281
+ #######################################################
282
+ # ksxt 미지원 기능
283
+ [apis.rest.stock.TBD8]
284
+ url = "deposits"
285
+ method = 'GET'
286
+ api = 'private'
287
+ activate = false
288
+ __comment__ = "코인 입금 리스트 조회"
289
+
290
+ [apis.rest.stock.fetch_deposit_history]
291
+ url = "deposits/krw"
292
+ method = 'GET'
293
+ api = 'private'
294
+ activate = true
295
+ __comment__ = "원화 입금 리스트 조회"
296
+
297
+ # ksxt 미지원 기능
298
+ [apis.rest.stock.TBD9]
299
+ url = "deposit"
300
+ method = 'GET'
301
+ api = 'private'
302
+ activate = false
303
+ __comment__ = "개별 입금 조회"
304
+
305
+ # ksxt 미지원 기능
306
+ [apis.rest.stock.TBD10]
307
+ url = "deposits/generate_coin_address"
308
+ method = 'POST'
309
+ api = 'private'
310
+ activate = false
311
+ __comment__ = "입금 주소 생성 요청"
312
+
313
+ # ksxt 미지원 기능
314
+ [apis.rest.stock.TBD11]
315
+ url = "deposits/coin_addresses"
316
+ method = 'GET'
317
+ api = 'private'
318
+ activate = false
319
+ __comment__ = "전체 입금 주소 조회"
320
+
321
+ # ksxt 미지원 기능
322
+ [apis.rest.stock.TBD12]
323
+ url = "deposits/coin_address"
324
+ method = 'GET'
325
+ api = 'private'
326
+ activate = false
327
+ __comment__ = "개별 입금 주소 조회"
328
+
329
+ # ksxt 미지원 기능
330
+ [apis.rest.stock.TBD13]
331
+ url = "deposits/krw"
332
+ method = 'POST'
333
+ api = 'private'
334
+ activate = false
335
+ __comment__ = "원화 입금하기"
336
+
337
+ #######################################################
338
+ # 서비스 정보
339
+ #######################################################
340
+ # ksxt 미지원 기능
341
+ [apis.rest.stock.TBD14]
342
+ url = "status/wallet"
343
+ method = 'GET'
344
+ api = 'private'
345
+ activate = false
346
+ __comment__ = "입출금 현황"
347
+
348
+ # TODO : 협의 필요 / 협의 후 activate를 true로 활성화, 작명 필요
349
+ [apis.rest.stock.TBD15]
350
+ url = "api_keys"
351
+ method = 'GET'
352
+ api = 'private'
353
+ activate = false
354
+ __comment__ = "API 키 리스트 조회"
355
+
356
+
357
+ #######################################################
358
+ # websocket api
359
+ #######################################################
360
+ [apis.websocket]
361
+ hostname = "pubwss.bithumb.com/pub/ws"
362
+ version = ""
363
+
364
+ [apis.websocket.stock]
365
+ url_market = ""
366
+
367
+ [apis.websocket.stock.subscribe_ticker]
368
+ url = "“ticker”"
369
+ activate = false
370
+ __comment__ = "“type”: “ticker”"
371
+
372
+ [apis.websocket.stock.subscribe_trade]
373
+ url = "“transaction”"
374
+ activate = false
375
+ __comment__ = "“type”: “transaction”"
376
+
377
+ [apis.websocket.stock.subscribe_orderbook]
378
+ url = "orderbooksnapshot"
379
+ activate = false
380
+ __comment__ = "“type”: “orderbooksnapshot”"
@@ -0,0 +1,312 @@
1
+ #######################################################
2
+ # KoreaInvest API
3
+ # Lastested update time : 2024.08.04
4
+ #######################################################
5
+
6
+ id = 'koreainvest'
7
+ name = 'KoreaInvest'
8
+ countries = ['KR']
9
+ rate_limit = 1000
10
+ enableRateLimit = false
11
+ www = 'https://securities.koreainvestment.com/'
12
+ doc = 'https://apiportal.koreainvestment.com/'
13
+
14
+ #######################################################
15
+ # rest api
16
+ #######################################################
17
+ [apis.rest]
18
+ app.hostname = "https://openapi.koreainvestment.com:9443"
19
+ dev.hostname = "https://openapivts.koreainvestment.com:29443"
20
+ version = "v1"
21
+
22
+ #######################################################
23
+ # rest api - token
24
+ #######################################################
25
+ [apis.rest.token]
26
+ [apis.rest.token.generate_token]
27
+ app.tr_id = ''
28
+ dev.tr_id = ''
29
+ url = 'oauth2/tokenP'
30
+ method = 'POST'
31
+ api = 'public'
32
+ activate = true
33
+ __comment__ = '접근토큰발급(P)[인증-001]'
34
+
35
+ [apis.rest.token.revoke_token]
36
+ url = 'oauth2/revokeP'
37
+ method = 'POST'
38
+ api = 'public'
39
+ activate = true
40
+ __comment__ = '접근토큰폐기(P)[인증-002]'
41
+
42
+ #######################################################
43
+ # rest api - stock
44
+ #######################################################
45
+ [apis.rest.stock]
46
+ url_market = ""
47
+ #######################################################
48
+ # [국내주식] 주문/계좌
49
+ #######################################################
50
+ [apis.rest.stock.send_order_entry]
51
+ app.tr_id = 'TTTC0802U'
52
+ dev.tr_id = 'VTTC0802U'
53
+ url = 'uapi/domestic-stock/{version}}/trading/order-cash'
54
+ method = 'POST'
55
+ api = 'private'
56
+ activate = true
57
+ __comment__ = '주식주문(현금)[v1_국내주식-001]'
58
+
59
+ [apis.rest.stock.send_order_exit]
60
+ app.tr_id = 'TTTC0801U'
61
+ dev.tr_id = 'VTTC0801U'
62
+ url = 'uapi/domestic-stock/{version}/trading/order-cash'
63
+ method = 'POST'
64
+ api = 'private'
65
+ activate = true
66
+ __comment__ = '주식주문(현금)[v1_국내주식-001]'
67
+
68
+ [apis.rest.stock.send_order_entry_market]
69
+ app.tr_id = 'TTTC0802U'
70
+ dev.tr_id = 'VTTC0802U'
71
+ url = 'uapi/domestic-stock/{version}/trading/order-cash'
72
+ method = 'POST'
73
+ api = 'private'
74
+ activate = true
75
+ __comment__ = '주식주문(현금)[v1_국내주식-001]'
76
+
77
+ [apis.rest.stock.send_order_exit_market]
78
+ app.tr_id = 'TTTC0801U'
79
+ dev.tr_id = 'VTTC0801U'
80
+ url = 'uapi/domestic-stock/{version}/trading/order-cash'
81
+ method = 'POST'
82
+ api = 'private'
83
+ activate = true
84
+ __comment__ = '주식주문(현금)[v1_국내주식-001]'
85
+
86
+ [apis.rest.stock.send_order_loan_entry]
87
+ app.tr_id = 'TTTC0803U'
88
+ dev.tr_id = ''
89
+ url = 'uapi/domestic-stock/{version}/trading/order-credit'
90
+ method = 'POST'
91
+ api = 'private'
92
+ activate = true
93
+ __comment__ = '주식주문(신용)[v1_국내주식-002]'
94
+
95
+ [apis.rest.stock.send_order_loan_exit]
96
+ app.tr_id = 'TTTC0851U'
97
+ dev.tr_id = ''
98
+ url = 'uapi/domestic-stock/{version}/trading/order-credit'
99
+ method = 'POST'
100
+ api = 'private'
101
+ activate = true
102
+ __comment__ = '주식주문(신용)[v1_국내주식-002]'
103
+
104
+ [apis.rest.stock.send_modify_order]
105
+ app.tr_id = 'TTTC0804U'
106
+ dev.tr_id = 'VTTC0803U'
107
+ url = 'uapi/domestic-stock/{version}/trading/order-rvsecncl'
108
+ method = 'POST'
109
+ api = 'private'
110
+ activate = true
111
+ __comment__ = '주식주문(정정취소)[v1_국내주식-003]'
112
+
113
+ [apis.rest.stock.send_cancel_order]
114
+ app.tr_id = 'TTTC0804U'
115
+ dev.tr_id = 'VTTC0803U'
116
+ url = 'uapi/domestic-stock/{version}/trading/order-rvsecncl'
117
+ method = 'POST'
118
+ api = 'private'
119
+ activate = true
120
+ __comment__ = '주식주문(정정취소)[v1_국내주식-003]'
121
+
122
+ [apis.rest.stock.fetch_opened_order]
123
+ app.tr_id = 'TTTC8036R'
124
+ dev.tr_id = ''
125
+ url = 'uapi/domestic-stock/{version}/trading/inquire-psbl-rvsecncl'
126
+ method = 'GET'
127
+ api = 'private'
128
+ activate = true
129
+ __comment__ = '주식정정취소가능주문조회[v1_국내주식-004]'
130
+
131
+ [apis.rest.stock.fetch_closed_order]
132
+ app.tr_id = 'TTTC8001R'
133
+ dev.tr_id = 'VTTC8001R'
134
+ url = 'uapi/domestic-stock/{version}/trading/inquire-daily-ccld'
135
+ method = 'GET'
136
+ api = 'private'
137
+ activate = true
138
+ __comment__ = '주식일별주문체결조회[v1_국내주식-005]'
139
+
140
+ [apis.rest.stock.fetch_balance]
141
+ app.tr_id = 'TTTC8434R'
142
+ dev.tr_id = 'VTTC8434R'
143
+ url = 'uapi/domestic-stock/{version}/trading/inquire-balance'
144
+ method = 'GET'
145
+ api = 'private'
146
+ activate = true
147
+ __comment__ = '주식잔고조회[v1_국내주식-006]'
148
+
149
+ [apis.rest.stock.fetch_cash]
150
+ app.tr_id = 'TTTC8434R'
151
+ dev.tr_id = 'VTTC8434R'
152
+ url = 'uapi/domestic-stock/{version}/trading/inquire-balance'
153
+ method = 'GET'
154
+ api = 'private'
155
+ activate = true
156
+ __comment__ = '주식잔고조회[v1_국내주식-006]'
157
+
158
+ [apis.rest.stock.fetch_pnl]
159
+ app.tr_id = 'TTTC8708R'
160
+ dev.tr_id = ''
161
+ url = 'uapi/domestic-stock/v1/trading/inquire-period-profit'
162
+ method = 'GET'
163
+ api = 'private'
164
+ activate = true
165
+ __comment__ = '기간별손익일별합산조회[v1_국내주식-052]'
166
+
167
+ #######################################################
168
+ # [국내주식] 기본시세
169
+ #######################################################
170
+ [apis.rest.stock.fetch_ticker_price]
171
+ app.tr_id = 'FHKST01010100'
172
+ dev.tr_id = 'FHKST01010100'
173
+ url = 'uapi/domestic-stock/{version}/quotations/inquire-price'
174
+ method = 'GET'
175
+ api = 'private'
176
+ activate = true
177
+ __comment__ = '주식현재가 시세[v1_국내주식-008]'
178
+
179
+ [apis.rest.stock.fetch_orderbook]
180
+ app.tr_id = 'FHKST01010200'
181
+ dev.tr_id = 'FHKST01010200'
182
+ url = 'uapi/domestic-stock/{version}/quotations/inquire-asking-price-exp-ccn'
183
+ method = 'GET'
184
+ api = 'private'
185
+ activate = true
186
+ __comment__ = '주식현재가 호가/예상체결[v1_국내주식-011]'
187
+
188
+ [apis.rest.stock.fetch_security_ohlcv_minute]
189
+ app.tr_id = 'FHKST03010200'
190
+ dev.tr_id = 'FHKST03010200'
191
+ url = 'uapi/domestic-stock/{version}/quotations/inquire-time-itemchartprice'
192
+ method = 'GET'
193
+ api = 'private'
194
+ activate = true
195
+ __comment__ = '주식당일분봉조회[v1_국내주식-011]'
196
+
197
+ [apis.rest.stock.fetch_security_ohlcv_day]
198
+ app.tr_id = 'FHKST03010100'
199
+ dev.tr_id = 'FHKST03010100'
200
+ url = 'uapi/domestic-stock/{version}/quotations/inquire-daily-itemchartprice'
201
+ method = 'GET'
202
+ api = 'private'
203
+ activate = true
204
+ __comment__ = '국내주식기간별시세(일/주/월/년)[v1_국내주식-016]'
205
+
206
+ [apis.rest.stock.fetch_security_ohlcv_week]
207
+ app.tr_id = 'FHKST03010100'
208
+ dev.tr_id = 'FHKST03010100'
209
+ url = 'uapi/domestic-stock/{version}/quotations/inquire-daily-itemchartprice'
210
+ method = 'GET'
211
+ api = 'private'
212
+ activate = true
213
+ __comment__ = '국내주식기간별시세(일/주/월/년)[v1_국내주식-016]'
214
+
215
+ [apis.rest.stock.fetch_security_ohlcv_month]
216
+ app.tr_id = 'FHKST03010100'
217
+ dev.tr_id = 'FHKST03010100'
218
+ url = 'uapi/domestic-stock/{version}/quotations/inquire-daily-itemchartprice'
219
+ method = 'GET'
220
+ api = 'private'
221
+ activate = true
222
+ __comment__ = '국내주식기간별시세(일/주/월/년)[v1_국내주식-016]'
223
+
224
+ [apis.rest.stock.fetch_security_ohlcv_year]
225
+ app.tr_id = 'FHKST03010100'
226
+ dev.tr_id = 'FHKST03010100'
227
+ url = 'uapi/domestic-stock/{version}/quotations/inquire-daily-itemchartprice'
228
+ method = 'GET'
229
+ api = 'private'
230
+ activate = true
231
+ __comment__ = '국내주식기간별시세(일/주/월/년)[v1_국내주식-016]'
232
+
233
+ #######################################################
234
+ # [국내주식] 업종/기타
235
+ #######################################################
236
+ [apis.rest.stock.fetch_index_ohlcv]
237
+ app.tr_id = 'FHKUP03500100'
238
+ dev.tr_id = 'FHKUP03500100'
239
+ url = 'uapi/domestic-stock/{version}/quotations/inquire-daily-indexchartprice'
240
+ method = 'GET'
241
+ api = 'private'
242
+ activate = true
243
+ __comment__ = '국내주식업종기간별시세(일/주/월/년)[v1_국내주식-021]'
244
+
245
+ [apis.rest.stock.fetch_holiday]
246
+ app.tr_id = 'CTCA0903R'
247
+ dev.tr_id = ''
248
+ url = 'uapi/domestic-stock/{version}/quotations/chk-holiday'
249
+ method = 'GET'
250
+ api = 'private'
251
+ activate = true
252
+ __comment__ = '국내휴장일조회[v1_국내주식-040]'
253
+
254
+ #######################################################
255
+ # [국내주식] 종목정보
256
+ #######################################################
257
+ [apis.rest.stock.fetch_security_info]
258
+ app.tr_id = 'CTPF1002R'
259
+ dev.tr_id = ''
260
+ url = 'uapi/domestic-stock/{version}/quotations/search-stock-info'
261
+ method = 'GET'
262
+ api = 'private'
263
+ activate = true
264
+ __comment__ = '주식기본조회[v1_국내주식-067]'
265
+
266
+ #######################################################
267
+ # [국내주식] 시세분석
268
+ #######################################################
269
+ [apis.rest.stock.fetch_screener_list]
270
+ app.tr_id = 'HHKST03900300'
271
+ dev.tr_id = ''
272
+ url = 'uapi/domestic-stock/{version}/quotations/psearch-title'
273
+ method = 'GET'
274
+ api = 'private'
275
+ activate = true
276
+ __comment__ = '종목조건검색 목록조회[v1_국내주식-038]'
277
+
278
+ [apis.rest.stock.fetch_screener]
279
+ app.tr_id = 'HHKST03900400'
280
+ dev.tr_id = ''
281
+ url = 'uapi/domestic-stock/{version}/quotations/psearch-result'
282
+ method = 'GET'
283
+ api = 'private'
284
+ activate = true
285
+ __comment__ = '종목조건검색조회[v1_국내주식-039]'
286
+
287
+
288
+ #######################################################
289
+ # websocket api
290
+ #######################################################
291
+ [apis.websocket]
292
+ app.hostname = "ops.koreainvestment.com:21000"
293
+ dev.hostname = "ops.koreainvestment.com:31000"
294
+ version = ""
295
+
296
+ [apis.websocket.stock]
297
+ url_market = ""
298
+
299
+ [apis.websocket.stock.subscribe_ticker]
300
+ url = ""
301
+ activate = true
302
+ __comment__ = "“type”: “ticker”"
303
+
304
+ [apis.websocket.stock.subscribe_trade]
305
+ url = ""
306
+ activate = true
307
+ __comment__ = "“type”: “transaction”"
308
+
309
+ [apis.websocket.stock.subscribe_orderbook]
310
+ url = ""
311
+ activate = true
312
+ __comment__ = "“type”: “orderbooksnapshot”"
ksxt/config/token.toml ADDED
@@ -0,0 +1,7 @@
1
+ [PS80UIBxOj1XGF1Dl9eRdJa8mVRtQqvnV2y1]
2
+ token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0b2tlbiIsImF1ZCI6IjJkMWE4MjI0LTVlMjgtNGMwYy1hMTZmLWZmNTFhOGFmMDY2MiIsInByZHRfY2QiOiIiLCJpc3MiOiJ1bm9ndyIsImV4cCI6MTcxNzMxNDQ2MywiaWF0IjoxNzE3MjI4MDYzLCJqdGkiOiJQUzgwVUlCeE9qMVhHRjFEbDllUmRKYThtVlJ0UXF2blYyeTEifQ.8G5fotvUupZonIAsEEGEC0810sqGayj08-recM4smwdRA23-fE2HISzl4HY9wHlPtkYwVMr0svZlo9HIrR-mlw"
3
+ expired = "2024-06-02 16:47:43"
4
+
5
+ [PSCWKArP3T1L4qMgyZ4DXIDlqcaK48jJW1J5]
6
+ token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0b2tlbiIsImF1ZCI6IjVjMWYzMWZhLTViYzEtNGM1OS04OGY1LTk5OTU5NmExMmMzMCIsInByZHRfY2QiOiIiLCJpc3MiOiJ1bm9ndyIsImV4cCI6MTcxODAwNDQ4NywiaWF0IjoxNzE3OTE4MDg3LCJqdGkiOiJQU0NXS0FyUDNUMUw0cU1neVo0RFhJRGxxY2FLNDhqSlcxSjUifQ.D6R4xlYKqZQykIyQUA5SgB6vxIEG33f_m_MzSrB9xGRdVKjcr0CyMleWeenyTZLAu6hQpu-3133uYachjI1zjw"
7
+ expired = "2024-06-10 16:28:07"