Skip to content

Commit 1e6e997

Browse files
committed
[Update] Upbit OPEN API Version 1.3.4
[Update] Upbit OPEN API Version 1.3.4
1 parent 4ae6cd9 commit 1e6e997

File tree

6 files changed

+227
-40
lines changed

6 files changed

+227
-40
lines changed

client/python/setup.py

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
version = pkginfo.CURRENT_VERSION,
1515
packages = find_packages(),
1616
install_requires = [
17-
'bravado>=11.0.2',
18-
'PyJWT>=2.4.0',
19-
'websockets>=10.3'
17+
'bravado>=11.0.2'
18+
, 'PyJWT>=2.4.0'
19+
, 'websockets>=10.3'
2020
],
2121
extras_require = {
2222
'fido': [
@@ -25,20 +25,22 @@
2525
},
2626
python_requires = '>=3.8',
2727
classifiers = [
28-
'Programming Language :: Python :: 3.8',
29-
'Programming Language :: Python :: 3.9',
30-
'Programming Language :: Python :: 3.10',
28+
'Programming Language :: Python :: 3.8'
29+
, 'Programming Language :: Python :: 3.9'
30+
, 'Programming Language :: Python :: 3.10'
31+
, 'Programming Language :: Python :: 3.11'
32+
, 'Programming Language :: Python :: 3.12'
3133
],
3234
keywords = [
33-
'Upbit',
34-
'upbit',
35-
'upbit-client',
36-
'Upbit-Client',
37-
'Upbit_client',
38-
'Upbit-api-connector',
39-
'upbit-api-connector',
40-
'Upbit_api_connector',
41-
'upbit_api_connector'
35+
'Upbit'
36+
, 'upbit'
37+
, 'upbit-client'
38+
, 'Upbit-Client'
39+
, 'Upbit_client'
40+
, 'Upbit-api-connector'
41+
, 'upbit-api-connector'
42+
, 'Upbit_api_connector'
43+
, 'upbit_api_connector'
4244
],
4345
url = 'https://github.com/uJhin/upbit-client',
4446
download_url = 'https://github.com/uJhin/upbit-client/releases',

client/python/upbit/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Please read the official Upbit Client document.
55
Documents: https://ujhin.github.io/upbit-client-docs/
66
7-
- Upbit OPEN API Version: 1.3.2
7+
- Upbit OPEN API Version: 1.3.4
88
- Author: ujhin
99
- Email: ujhin942@gmail.com
1010
- GitHub: https://github.com/uJhin

client/python/upbit/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Upbit:
1010
1111
- Base URL: https://api.upbit.com
1212
- Base Path: /v1
13-
- Upbit OPEN API Version: 1.3.2
13+
- Upbit OPEN API Version: 1.3.4
1414
- Author: ujhin
1515
- Email: ujhin942@gmail.com
1616
- GitHub: https://github.com/uJhin

client/python/upbit/models.py

Lines changed: 43 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,15 @@ def Deposit_coin_address(self, **kwargs) -> dict:
231231
232232
[NOTE] 입금 주소 조회 요청 API 유의사항
233233
234-
입금 주소 생성 요청 이후 아직 발급되지 않은 상태일 경우 deposit_address가 null일 수 있습니다.
234+
입금 주소 생성 요청 이후 아직 발급되지 않은 상태일 경우 `deposit_address` 가 `null` 일 수 있습니다.
235+
* 네트워크가 일치하지 않는 경우 정상 입출금이 진행되지 않을 수 있습니다.
236+
사용하는 주소와 네트워크가 정확히 일치하는지 재확인 후 이용을 부탁드립니다.
235237
236-
:param currency: Currency symbol
238+
:param currency: Currency 코드
237239
:type currency: str
240+
241+
:param net_type: 입금 네트워크
242+
:type net_type: str
238243
"""
239244

240245
future = self.__client.Deposit.Deposit_coin_address(**kwargs)
@@ -247,7 +252,7 @@ def Deposit_coin_addresses(self) -> dict:
247252
## 내가 보유한 자산 리스트를 보여줍니다.
248253
[NOTE] 입금 주소 조회 요청 API 유의사항
249254
250-
입금 주소 생성 요청 이후 아직 발급되지 않은 상태일 경우 deposit_address가 null일 수 있습니다.
255+
입금 주소 생성 요청 이후 아직 발급되지 않은 상태일 경우 `deposit_address` 가 `null` 일 수 있습니다.
251256
"""
252257

253258
future = self.__client.Deposit.Deposit_coin_addresses()
@@ -263,13 +268,15 @@ def Deposit_generate_coin_address(self, **kwargs) -> dict:
263268
264269
입금 주소의 생성은 서버에서 비동기적으로 이뤄집니다.
265270
비동기적 생성 특성상 요청과 동시에 입금 주소가 발급되지 않을 수 있습니다.
266-
주소 발급 요청 시 결과로 Response1이 반환되며 주소 발급 완료 이전까지 계속 Response1이 반환됩니다.
267-
주소가 발급된 이후부터는 새로운 주소가 발급되는 것이 아닌 이전에 발급된 주소가 Response2 형태로 반환됩니다.
271+
주소 발급 요청 시 결과로 `Response1` 이 반환되며 주소 발급 완료 이전까지 계속 `Response1` 이 반환됩니다.
272+
주소가 발급된 이후부터는 새로운 주소가 발급되는 것이 아닌 이전에 발급된 주소가 `Response2` 형태로 반환됩니다.
268273
정상적으로 주소가 생성되지 않는다면 일정 시간 이후 해당 API를 다시 호출해주시길 부탁드립니다.
269274
270-
271275
:param currency: Currency 코드
272276
:type currency: str
277+
278+
:param net_type: 입금 네트워크
279+
:type net_type: str
273280
"""
274281

275282
future = self.__client.Deposit.Deposit_generate_coin_address(**kwargs)
@@ -592,8 +599,11 @@ def Withdraw_chance(self, **kwargs) -> dict:
592599
593600
## 해당 통화의 가능한 출금 정보를 확인한다.
594601
595-
:param currency: Currency Symbol
602+
:param currency: 자산 코드
596603
:type currency: str
604+
605+
:param net_type: 출금 네트워크
606+
:type net_type: str
597607
"""
598608

599609
future = self.__client.Withdraw.Withdraw_chance(**kwargs)
@@ -609,10 +619,15 @@ def Withdraw_coin(self, **kwargs) -> dict:
609619
610620
업비트 회원의 주소가 아닌 주소로 바로출금을 요청하는 경우, 출금이 정상적으로 수행되지 않습니다.
611621
반드시 주소를 확인 후 출금을 진행하시기 바랍니다.
622+
* 네트워크가 일치하지 않는 경우 정상 입출금이 진행되지 않을 수 있습니다.
623+
사용하는 주소와 네트워크가 정확히 일치하는지 재확인 후 이용을 부탁드립니다.
612624
613-
:param currency: Currency 코드
625+
:param currency: 자산 코드
614626
:type currency: str
615627
628+
:param net_type: 출금 네트워크
629+
:type net_type: str
630+
616631
:param amount: 출금 수량
617632
:type amount: str
618633
@@ -703,3 +718,23 @@ def Withdraw_krw(self, **kwargs) -> dict:
703718

704719
future = self.__client.Withdraw.Withdraw_krw(**kwargs)
705720
return HTTPFutureExtractor.future_extraction(future)
721+
722+
def Withdraw_coin_addresses(self, **kwargs) -> dict:
723+
"""
724+
[GET] 출금 허용 주소 리스트 조회
725+
726+
## 등록된 출금 허용 주소 목록을 조회한다.
727+
728+
[NOTE] 출금 기능을 이용하기 위해서는 주소 등록이 필요합니다.
729+
730+
Open API를 통해 디지털 자산을 출금하기 위해서는 출금 허용 주소 등록이 필요합니다.
731+
* 네트워크가 일치하지 않는 경우 정상 입출금이 진행되지 않을 수 있습니다.
732+
사용하는 주소와 네트워크가 정확히 일치하는지 재확인 후 이용을 부탁드립니다.
733+
734+
### 출금 허용 주소 등록 방법
735+
업비트 웹 > [MY] > [Open API 관리] > [디지털 자산 출금주소 관리] 페이지에서 진행하실 수 있습니다.
736+
"""
737+
738+
future = self.__client.Withdraw.Withdraw_coin_addresses(**kwargs)
739+
return HTTPFutureExtractor.future_extraction(future)
740+

client/python/upbit/pkginfo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Please read the official Upbit Client document.
55
Documents: https://ujhin.github.io/upbit-client-docs/
66
7-
- Upbit OPEN API Version: 1.3.2
7+
- Upbit OPEN API Version: 1.3.4
88
- Author: ujhin
99
- Email: ujhin942@gmail.com
1010
- GitHub: https://github.com/uJhin
@@ -28,7 +28,7 @@ def _get_versions(package_name):
2828

2929
PACKAGE_NAME = "upbit-client"
3030

31-
OPEN_API_VERSION = "1.3.2"
31+
OPEN_API_VERSION = "1.3.4"
3232
CURRENT_VERSION = OPEN_API_VERSION+".0"
3333

3434
RELEASED_VERSION = _get_versions(PACKAGE_NAME)

0 commit comments

Comments
 (0)