Skip to content

Commit 318e0d4

Browse files
authored
Merge pull request #33 from uJhin/1.3.4
[Update] Upbit OPEN API Version 1.3.4
2 parents 2733ee3 + cbd74df commit 318e0d4

File tree

6 files changed

+94
-74
lines changed

6 files changed

+94
-74
lines changed

requirements.txt

Lines changed: 30 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,31 @@
1-
astroid==2.5
2-
attrs==20.3.0
3-
bleach==3.3.0
4-
bravado==11.0.2
5-
bravado-core==5.17.0
6-
certifi==2022.12.7
7-
chardet==4.0.0
8-
colorama==0.4.4
9-
docutils==0.16
10-
idna==3.1
11-
isort==5.7.0
12-
jsonpointer==2.0
13-
jsonref==0.2
14-
jsonschema==3.2.0
15-
keyring==22.0.1
16-
lazy-object-proxy==1.5.2
17-
mccabe==0.6.1
18-
monotonic==1.5
19-
msgpack==1.0.2
20-
packaging==20.9
21-
pkginfo==1.7.0
22-
Pygments==2.8.0
23-
PyJWT==2.4.0
24-
pylint==2.13.0
25-
pyparsing==2.4.7
26-
pyrsistent==0.17.3
27-
python-dateutil==2.8.1
28-
pytz==2021.1
29-
pywin32-ctypes==0.2.0
30-
PyYAML==5.4.1
31-
readme-renderer==28.0
32-
requests==2.25.1
33-
requests-toolbelt==0.9.1
34-
rfc3986==1.4.0
1+
arrow==1.2.3
2+
attrs==23.1.0
3+
bravado==11.0.3
4+
bravado-core==5.17.1
5+
certifi==2023.5.7
6+
charset-normalizer==3.1.0
7+
fqdn==1.5.1
8+
idna==3.4
9+
isoduration==20.11.0
10+
jsonpointer==2.3
11+
jsonref==1.1.0
12+
jsonschema==4.17.3
13+
monotonic==1.6
14+
msgpack==1.0.5
15+
PyJWT==2.7.0
16+
pyrsistent==0.19.3
17+
python-dateutil==2.8.2
18+
pytz==2023.3
19+
PyYAML==6.0
20+
requests==2.30.0
21+
rfc3339-validator==0.1.4
3522
rfc3987==1.3.8
36-
simplejson==3.17.2
37-
six==1.15.0
38-
strict-rfc3339==0.7
39-
swagger-spec-validator==2.7.3
40-
toml==0.10.2
41-
tqdm==4.57.0
42-
twine==3.3.0
43-
typing-extensions==3.7.4.3
44-
urllib3==1.26.5
45-
webcolors==1.11.1
46-
webencodings==0.5.1
47-
websockets==10.1
48-
wrapt==1.12.1
23+
simplejson==3.19.1
24+
six==1.16.0
25+
swagger-spec-validator==3.0.3
26+
typing_extensions==4.5.0
27+
upbit-client==1.3.2.0
28+
uri-template==1.2.0
29+
urllib3==2.0.2
30+
webcolors==1.13
31+
websockets==11.0.3

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',

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
1010
- GitHub: https://github.com/uJhin

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
1616
- GitHub: https://github.com/uJhin

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+

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
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)