-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathmodels.py
745 lines (525 loc) · 23.7 KB
/
models.py
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
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
from bravado.requests_client import RequestsClient
from bravado.client import SwaggerClient
from .authentication import APIKeyAuthenticator
from .utils import HTTPFutureExtractor
HOST = "https://api.upbit.com"
SPEC_URI = "https://raw.githubusercontent.com/uJhin/upbit-client/main/mapper/swg_mapper.json"
class ClientModel:
"""
Client Base Model
"""
def __init__(
self,
access_key: str = None,
secret_key: str = None,
**kwargs
):
arg_config = kwargs.get("config")
arg_spec_uri = kwargs.get("spec_uri")
config = {
"also_return_response": False,
"validate_responses" : False,
"use_models" : False,
"host" : HOST
} if not arg_config else arg_config
spec_uri = SPEC_URI if not arg_spec_uri else arg_spec_uri
if access_key and secret_key:
request_client = RequestsClient()
request_client.authenticator = APIKeyAuthenticator(
host=config["host"],
access_key=access_key,
secret_key=secret_key
)
self.__client = SwaggerClient.from_url(
spec_url=spec_uri,
http_client=request_client,
config=config
)
else:
self.__client = SwaggerClient.from_url(
spec_url=spec_uri,
config=config
)
@property
def SWGClient(self) -> SwaggerClient:
return self.__client
class APIKey:
"""
API Key
"""
def __init__(self, client):
self.__client = client
def APIKey_info(self) -> dict:
"""
[GET] API 키 리스트 조회
## API 키 목록 및 만료 일자를 조회합니다.
"""
future = self.__client.APIKey.APIKey_info()
return HTTPFutureExtractor.future_extraction(future)
class Account:
"""
계좌
"""
def __init__(self, client):
self.__client = client
def Account_info(self) -> dict:
"""
[GET] 전체 계좌 조회
## 내가 보유한 자산 리스트를 보여줍니다.
"""
future = self.__client.Account.Account_info()
return HTTPFutureExtractor.future_extraction(future)
def Account_wallet(self) -> dict:
"""
[GET] 입출금 현황
## 입출금 현황 및 블록 상태를 조회합니다.
[NOTE] 입출금 현황 데이터는 실제 서비스 상태와 다를 수 있습니다.
입출금 현황 API에서 제공하는 입출금 상태, 블록 상태 정보는 수 분 정도 지연되어 반영될 수 있습니다.
본 API는 참고용으로만 사용하시길 바라며 실제 입출금을 수행하기 전에는 반드시 업비트 공지사항 및 입출금 현황 페이지를 참고해주시기 바랍니다.
"""
future = self.__client.Account.Account_wallet()
return HTTPFutureExtractor.future_extraction(future)
class Candle:
"""
캔들; 봉
"""
def __init__(self, client):
self.__client = client
def Candle_minutes(self, **kwargs) -> dict:
"""
[GET] 시세 캔들 조회 (분 단위)
## 분(Minute) 캔들
:param unit: 분 단위.
가능한 값: 1, 3, 5, 15, 10, 30, 60, 240
:type unit: int
:param market: 마켓 코드 (ex. KRW-BTC)
:type market: str
:param to: 마지막 캔들 시각 (exclusive).
포맷: `yyyy-MM-dd'T'HH:mm:ssXXX` or `yyyy-MM-dd HH:mm:ss`.
비워서 요청 시 가장 최근 캔들 (optional)
:type to: str
:param count: 캔들 개수 (최대 200개까지 요청 가능) (optional)
:type count: int
"""
future = self.__client.Candle.Candle_minutes(**kwargs)
return HTTPFutureExtractor.future_extraction(future)
def Candle_days(self, **kwargs) -> dict:
"""
[GET] 시세 캔들 조회 (일 단위)
## 일(Day) 캔들
:param market: 마켓 코드 (ex. KRW-BTC)
:type market: str
:param to: 마지막 캔들 시각 (exclusive).
포맷: `yyyy-MM-dd'T'HH:mm:ssXXX` or `yyyy-MM-dd HH:mm:ss`.
비워서 요청 시 가장 최근 캔들 (optional)
:type to: str
:param count: 캔들 개수 (optional)
:type count: int
:param convertingPriceUnit: 종가 환산 화폐 단위 (생략 가능, KRW로 명시할 시 원화 환산 가격을 반환.)
`convertingPriceUnit` 파라미터의 경우, 원화 마켓이 아닌 다른 마켓(ex. BTC, ETH)의 일봉 요청 시
종가를 명시된 파라미터 값으로 환산해 `converted_trade_price` 필드에 추가하여 반환합니다.
현재는 원화(`KRW`) 로 변환하는 기능만 제공하며 추후 기능을 확장할 수 있습니다. (Default: KRW) (optional)
:type convertingPriceUnit: str
"""
future = self.__client.Candle.Candle_days(**kwargs)
return HTTPFutureExtractor.future_extraction(future)
def Candle_weeks(self, **kwargs) -> dict:
"""
[GET] 시세 캔들 조회 (주 단위)
## 주(Week) 캔들
:param market: 마켓 코드 (ex. KRW-BTC)
:type market: str
:param to: 마지막 캔들 시각 (exclusive).
포맷 : `yyyy-MM-dd'T'HH:mm:ssXXX` or `yyyy-MM-dd HH:mm:ss`.
비워서 요청 시 가장 최근 캔들 (optional)
:type to: str
:param count: 캔들 개수 (optional)
:type count: int
"""
future = self.__client.Candle.Candle_weeks(**kwargs)
return HTTPFutureExtractor.future_extraction(future)
def Candle_month(self, **kwargs) -> dict:
"""
[GET] 시세 캔들 조회 (월 단위)
## 월(Month) 캔들
:param market: 마켓 코드 (ex. KRW-BTC)
:type market: str
:param to: 마지막 캔들 시각 (exclusive).
포맷: `yyyy-MM-dd'T'HH:mm:ssXXX` or `yyyy-MM-dd HH:mm:ss`.
비워서 요청 시 가장 최근 캔들 (optional)
:type to: str
:param count: 캔들 개수 (optional)
:type count: int
"""
future = self.__client.Candle.Candle_month(**kwargs)
return HTTPFutureExtractor.future_extraction(future)
class Deposit:
"""
입금
"""
def __init__(self, client):
self.__client = client
def Deposit_coin_address(self, **kwargs) -> dict:
"""
[GET] 개별 입금 주소 조회
## 개별 입금 주소 조회
[NOTE] 입금 주소 조회 요청 API 유의사항
입금 주소 생성 요청 이후 아직 발급되지 않은 상태일 경우 `deposit_address` 가 `null` 일 수 있습니다.
* 네트워크가 일치하지 않는 경우 정상 입출금이 진행되지 않을 수 있습니다.
사용하는 주소와 네트워크가 정확히 일치하는지 재확인 후 이용을 부탁드립니다.
:param currency: Currency 코드
:type currency: str
:param net_type: 입금 네트워크
:type net_type: str
"""
future = self.__client.Deposit.Deposit_coin_address(**kwargs)
return HTTPFutureExtractor.future_extraction(future)
def Deposit_coin_addresses(self) -> dict:
"""
[GET] 전체 입금 주소 조회
## 내가 보유한 자산 리스트를 보여줍니다.
[NOTE] 입금 주소 조회 요청 API 유의사항
입금 주소 생성 요청 이후 아직 발급되지 않은 상태일 경우 `deposit_address` 가 `null` 일 수 있습니다.
"""
future = self.__client.Deposit.Deposit_coin_addresses()
return HTTPFutureExtractor.future_extraction(future)
def Deposit_generate_coin_address(self, **kwargs) -> dict:
"""
[POST] 입금 주소 생성 요청
입금 주소 생성을 요청한다.
[NOTE] 입금 주소 생성 요청 API 유의사항
입금 주소의 생성은 서버에서 비동기적으로 이뤄집니다.
비동기적 생성 특성상 요청과 동시에 입금 주소가 발급되지 않을 수 있습니다.
주소 발급 요청 시 결과로 `Response1` 이 반환되며 주소 발급 완료 이전까지 계속 `Response1` 이 반환됩니다.
주소가 발급된 이후부터는 새로운 주소가 발급되는 것이 아닌 이전에 발급된 주소가 `Response2` 형태로 반환됩니다.
정상적으로 주소가 생성되지 않는다면 일정 시간 이후 해당 API를 다시 호출해주시길 부탁드립니다.
:param currency: Currency 코드
:type currency: str
:param net_type: 입금 네트워크
:type net_type: str
"""
future = self.__client.Deposit.Deposit_generate_coin_address(**kwargs)
return HTTPFutureExtractor.future_extraction(future)
def Deposit_info(self, **kwargs) -> dict:
"""
[GET] 개별 입금 조회
## 개별 입금 조회
:param uuid: 입금 UUID (optional)
:type uuid: str
:param txid: 입금 TXID (optional)
:type txid: str
:param currency: Currency 코드 (optional)
:type currency: str
"""
future = self.__client.Deposit.Deposit_info(**kwargs)
return HTTPFutureExtractor.future_extraction(future)
def Deposit_info_all(self, **kwargs) -> dict:
"""
[GET] 입금 리스트 조회
## 입금 리스트 조회
:param currency: Currency 코드 (optional)
:type currency: str
:param state: 출금 상태 (optional)
- submitting : 처리 중
- submitted : 처리완료
- almost_accepted : 입금 대기 중
- rejected : 거절
- accepted : 승인됨
- processing : 처리 중
:type state: str
:param uuids: 입금 UUID의 목록 (optional)
:type uuids: list
:param txids: 입금 TXID의 목록 (optional)
:type txids: list
:param limit: 개수 제한 (default: 100, max: 100) (optional)
:type limit: int
:param page: 페이지 수, default: 1 (optional)
:type page: int
:param order_by: 정렬 방식 (optional)
- asc : 오름차순
- desc : 내림차순 (default)
:type order_by: str
"""
future = self.__client.Deposit.Deposit_info_all(**kwargs)
return HTTPFutureExtractor.future_extraction(future)
class Market:
"""
마켓(시장)
"""
def __init__(self, client):
self.__client = client
def Market_info_all(self, **kwargs) -> dict:
"""
[GET] 마켓 코드 조회
## 업비트에서 거래 가능한 마켓 목록
:param isDetails: 유의종목 필드과 같은 상세 정보 노출 여부(선택 파라미터)(Default: False) (optional)
:type isDetails: bool
"""
future = self.__client.Market.Market_info_all(**kwargs)
return HTTPFutureExtractor.future_extraction(future)
class Order:
"""
주문
"""
def __init__(self, client):
self.__client = client
def Order_orderbook(self, **kwargs) -> dict:
"""
[GET] 시세 호가 정보(Orderbook) 조회
## 호가 정보 조회
:param markets: 마켓 코드 목록 (ex. [KRW-BTC, KRW-ADA])
"""
future = self.__client.Order.Order_orderbook(**kwargs)
return HTTPFutureExtractor.future_extraction(future)
def Order_chance(self, **kwargs) -> dict:
"""
[GET] 주문 가능 정보
## 마켓별 주문 가능 정보를 확인한다.
:param market: Market ID
"""
future = self.__client.Order.Order_chance(**kwargs)
return HTTPFutureExtractor.future_extraction(future)
def Order_info(self, **kwargs):
"""
[GET] 개별 주문 조회
## 주문 UUID를 통해 개별 주문건을 조회한다.
[NOTE] `uuid` 혹은 `identifier` 둘 중 하나의 값이 반드시 포함되어야 합니다.
:param uuid: 주문 UUID (optional)
:type uuid: str
:param identifier: 조회용 사용자 지정 값 (optional)
:type identifier: str
"""
future = self.__client.Order.Order_info(**kwargs)
return HTTPFutureExtractor.future_extraction(future)
def Order_info_all(self, **kwargs) -> dict:
"""
[GET] 주문 리스트 조회
## 주문 리스트를 조회한다.
[NOTE] states 파라미터 변경 안내 (2021. 03. 22 ~)
2021년 3월 22일부터 미체결 주문(wait, watch)과 완료 주문(done, cancel)을 혼합하여 조회하실 수 없습니다.
예시1) done, cancel 주문을 한 번에 조회 => 가능
예시2) wait, done 주문을 한 번에 조회 => 불가능 (각각 API 호출 필요)
자세한 내용은 개발자 센터 공지사항을 참조 부탁드립니다.
:param market: 마켓 아이디 (optional)
:type market: str
:param state: 주문 상태 (optional)
- wait : 체결 대기 (default)
- done : 전체 체결 완료
- cancel : 주문 취소
:type state: str
:param states: 주문 상태의 목록 (optional)
:type states: list
:param uuids: 주문 UUID의 목록 (optional)
:type uuids: list
:param identifiers: 주문 identifier의 목록 (optional)
:type identifiers: array
:param page: 페이지 수, default: 1 (optional)
:type page: int
:param limit: 요청 개수, default: 100 (optional)
:type limit: int
:param order_by: 정렬 방식 (optional)
- asc : 오름차순
- desc : 내림차순 (default)
:type order_by: str
"""
future = self.__client.Order.Order_info_all(**kwargs)
return HTTPFutureExtractor.future_extraction(future)
def Order_new(self, **kwargs) -> dict:
"""
[POST] 주문하기
## 주문 요청을 한다.
[NOTE] 원화 마켓 가격 단위를 확인하세요.
원화 마켓에서 주문을 요청 할 경우, [원화 마켓 주문 가격 단위](https://docs.upbit.com/docs/market-info-trade-price-detail)를 확인하여 값을 입력해주세요.
[NOTE] identifier 파라미터 사용
`identifier`는 서비스에서 발급하는 `uuid`가 아닌 이용자가 직접 발급하는 키값으로, 주문을 조회하기 위해 할당하는 값입니다.
해당 값은 사용자의 전체 주문 내 유일한 값을 전달해야하며, 비록 주문 요청시 오류가 발생하더라도 같은 값으로 다시 요청을 보낼 수 없습니다.
주문의 성공 / 실패 여부와 관계없이 중복해서 들어온 `identifier` 값에서는 중복 오류가 발생하니, 매 요청시 새로운 값을 생성해주세요.
[NOTE] 시장가 주문
시장가 주문은 `ord_type` 필드를 `price` or `market` 으로 설정해야됩니다.
매수 주문의 경우 `ord_type`을 `price`로 설정하고 `volume`을 `null` 혹은 제외해야됩니다.
매도 주문의 경우 `ord_type`을 `market`로 설정하고 `price`을 `null` 혹은 제외해야됩니다.
:param market: 마켓 ID (필수)
:type market: str
:param side: 주문 종류 (필수)
- bid : 매수
- ask : 매도
:type side: str
:param volume: 주문량 (지정가, 시장가 매도 시 필수) (Default: null) (optional)
:type volume: str
:param price: 주문 가격. (지정가, 시장가 매수 시 필수)
ex) KRW-BTC 마켓에서 1BTC당 1,000 KRW로 거래할 경우, 값은 1000 이 된다.
ex) KRW-BTC 마켓에서 1BTC당 매도 1호가가 500 KRW 인 경우, 시장가 매수 시 값을 1000으로 세팅하면 2BTC가 매수된다. (수수료가 존재하거나 매도 1호가의 수량에 따라 상이할 수 있음) (Default: null) (optional)
:type price: str
:param ord_type: 주문 타입 (필수)
- limit : 지정가 주문
- price : 시장가 주문(매수)
- market : 시장가 주문(매도)
:type ord_type: str
:param identifier: 조회용 사용자 지정값 (선택) (optional)
:type identifier: str
"""
future = self.__client.Order.Order_new(**kwargs)
return HTTPFutureExtractor.future_extraction(future)
def Order_cancel(self, **kwargs) -> dict:
"""
[DELETE] 주문 취소 접수
## 주문 UUID를 통해 해당 주문에 대한 취소 접수를 한다.
[NOTE] `uuid` 혹은 `identifier` 둘 중 하나의 값이 반드시 포함되어야 합니다.
:param uuid: 취소할 주문의 UUID (optional)
:type uuid: str
:param identifier: 조회용 사용자 지정 값 (optional)
:type identifier: str
"""
future = self.__client.Order.Order_cancel(**kwargs)
return HTTPFutureExtractor.future_extraction(future)
class Trade:
"""
거래
"""
def __init__(self, client):
self.__client = client
def Trade_ticker(self, **kwargs) -> dict:
"""
[GET] 시세 Ticker 조회
## 현재가 정보
요청 당시 종목의 스냅샷을 반환한다.
:param markets: 반점으로 구분되는 마켓 코드 (ex. KRW-BTC, BTC-BCC)
:type markets: str
"""
future = self.__client.Trade.Trade_ticker(**kwargs)
return HTTPFutureExtractor.future_extraction(future)
def Trade_ticks(self, **kwargs) -> dict:
"""
[GET] 시세 체결 조회
## 최근 체결 내역
:param market: 마켓 코드 (ex. KRW-BTC, BTC-BCC)
:type market: str
:param to: 마지막 체결 시각.
형식: `[HHmmss 또는 HH:mm:ss]`.
비워서 요청시 가장 최근 데이터 (optional)
:type to: str
:param count: 체결 개수 (optional)
:type count: int
:param cursor: 페이지네이션 커서 (sequentialId)
`sequential_id` 필드는 체결의 유일성 판단을 위한 근거로 쓰일 수 있습니다.
하지만 체결의 순서를 보장하지는 못합니다. (optional)
:type cursor: str
:param daysAgo: 최근 체결 날짜 기준 7일 이내의 이전 데이터 조회 가능.
비워서 요청 시 가장 최근 체결 날짜 반환. (범위: 1 ~ 7) (optional)
:type daysAgo: int
"""
future = self.__client.Trade.Trade_ticks(**kwargs)
return HTTPFutureExtractor.future_extraction(future)
class Withdraw:
"""
출금
"""
def __init__(self, client):
self.__client = client
def Withdraw_chance(self, **kwargs) -> dict:
"""
[GET] 출금 가능 정보
## 해당 통화의 가능한 출금 정보를 확인한다.
:param currency: 자산 코드
:type currency: str
:param net_type: 출금 네트워크
:type net_type: str
"""
future = self.__client.Withdraw.Withdraw_chance(**kwargs)
return HTTPFutureExtractor.future_extraction(future)
def Withdraw_coin(self, **kwargs) -> dict:
"""
[POST] 코인 출금하기
## 코인 출금을 요청한다.
[NOTE] 바로출금 이용 시 유의사항
업비트 회원의 주소가 아닌 주소로 바로출금을 요청하는 경우, 출금이 정상적으로 수행되지 않습니다.
반드시 주소를 확인 후 출금을 진행하시기 바랍니다.
* 네트워크가 일치하지 않는 경우 정상 입출금이 진행되지 않을 수 있습니다.
사용하는 주소와 네트워크가 정확히 일치하는지 재확인 후 이용을 부탁드립니다.
:param currency: 자산 코드
:type currency: str
:param net_type: 출금 네트워크
:type net_type: str
:param amount: 출금 수량
:type amount: str
:param address: 출금 가능 주소에 등록된 출금 주소
:type address: str
:param secondary_address: 2차 출금 주소 (필요한 코인에 한해서) (optional)
:type secondary_address: str
:param transaction_type: 출금 유형 (optional)
- default : 일반출금
- internal : 바로출금
:type transaction_type: str
"""
future = self.__client.Withdraw.Withdraw_coin(**kwargs)
return HTTPFutureExtractor.future_extraction(future)
def Withdraw_info(self, **kwargs) -> dict:
"""
[GET] 개별 출금 조회
## 출금 UUID를 통해 개별 출금 정보를 조회한다.
:param uuid: 출금 UUID (optional)
:type uuid: str
:param txid: 출금 TXID (optional)
:type txid: str
:param currency: Currency 코드 (optional)
:type currency: str
"""
future = self.__client.Withdraw.Withdraw_info(**kwargs)
return HTTPFutureExtractor.future_extraction(future)
def Withdraw_info_all(self, **kwargs) -> dict:
"""
[GET] 출금 리스트 조회
## 출금 리스트를 조회한다.
:param currency: Currency 코드 (optional)
:type currency: str
:param state: 출금 상태 (optional)
- submitting : 처리 중
- submitted : 처리 완료
- almost_accepted : 출금대기중
- rejected : 거부
- accepted : 승인됨
- processing : 처리 중
- done : 완료
- canceled : 취소됨
:type state: str
:param uuids: 출금 UUID의 목록 (optional)
:type uuids: list
:param txids: 출금 TXID의 목록 (optional)
:type txids: list
:param limit: 개수 제한 (default: 100, max: 100) (optional)
:type limit: int
:param page: 페이지 수, default: 1 (optional)
:type page: int
:param order_by: 정렬 방식 (optional)
- asc : 오름차순
- desc : 내림차순 (default)
:type order_by: str
"""
future = self.__client.Withdraw.Withdraw_info_all(**kwargs)
return HTTPFutureExtractor.future_extraction(future)
def Withdraw_krw(self, **kwargs) -> dict:
"""
[POST] 원화 출금하기
## 원화 출금을 요청한다. 등록된 출금 계좌로 출금된다.
:param amount: 출금 원화 수량
:type amount: str
:param two_factor_type: 2차 인증 수단 (optional)
- kakao_pay: 카카오페이 인증 (default)
- naver: 네이버 인증
:type two_factor_type: str
"""
future = self.__client.Withdraw.Withdraw_krw(**kwargs)
return HTTPFutureExtractor.future_extraction(future)
def Withdraw_coin_addresses(self, **kwargs) -> dict:
"""
[GET] 출금 허용 주소 리스트 조회
## 등록된 출금 허용 주소 목록을 조회한다.
[NOTE] 출금 기능을 이용하기 위해서는 주소 등록이 필요합니다.
Open API를 통해 디지털 자산을 출금하기 위해서는 출금 허용 주소 등록이 필요합니다.
* 네트워크가 일치하지 않는 경우 정상 입출금이 진행되지 않을 수 있습니다.
사용하는 주소와 네트워크가 정확히 일치하는지 재확인 후 이용을 부탁드립니다.
### 출금 허용 주소 등록 방법
업비트 웹 > [MY] > [Open API 관리] > [디지털 자산 출금주소 관리] 페이지에서 진행하실 수 있습니다.
"""
future = self.__client.Withdraw.Withdraw_coin_addresses(**kwargs)
return HTTPFutureExtractor.future_extraction(future)