Skip to content

Commit

Permalink
feat: change 1.3.2 -> 1.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
seunggabi committed May 17, 2023
1 parent 83c330e commit 112c915
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 15 deletions.
2 changes: 1 addition & 1 deletion client/python/upbit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Please read the official Upbit Client document.
Documents: https://ujhin.github.io/upbit-client-docs/
- Upbit OPEN API Version: 1.3.2
- Upbit OPEN API Version: 1.3.4
- Author: ujhin
- Email: [email protected]
- GitHub: https://github.com/uJhin
Expand Down
2 changes: 1 addition & 1 deletion client/python/upbit/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Upbit:
- Base URL: https://api.upbit.com
- Base Path: /v1
- Upbit OPEN API Version: 1.3.2
- Upbit OPEN API Version: 1.3.4
- Author: ujhin
- Email: [email protected]
- GitHub: https://github.com/uJhin
Expand Down
7 changes: 6 additions & 1 deletion client/python/upbit/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


HOST = "https://api.upbit.com"
SPEC_URI = "https://raw.githubusercontent.com/uJhin/upbit-client/main/mapper/swg_mapper.json"
SPEC_URI = "https://raw.githubusercontent.com/seunggabi/upbit-client/main/mapper/swg_mapper.json"


class ClientModel:
Expand Down Expand Up @@ -727,6 +727,11 @@ def Withdraw_krw(self, **kwargs) -> dict:
:param amount: 출금 원화 수량
:type amount: str
:param 2차 인증 수단 (optional)
- kakao_pay : 카카오 페이 (default)
- naver : 네이버
:type two_factor_type: str
"""

future = self.__client.Withdraw.Withdraw_krw(**kwargs)
Expand Down
22 changes: 11 additions & 11 deletions client/python/upbit/pkginfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Please read the official Upbit Client document.
Documents: https://ujhin.github.io/upbit-client-docs/
- Upbit OPEN API Version: 1.3.2
- Upbit OPEN API Version: 1.3.4
- Author: ujhin
- Email: [email protected]
- GitHub: https://github.com/uJhin
Expand All @@ -28,17 +28,17 @@ def _get_versions(package_name):

PACKAGE_NAME = "upbit-client"

OPEN_API_VERSION = "1.3.2"
OPEN_API_VERSION = "1.3.4"
CURRENT_VERSION = OPEN_API_VERSION+".0"

RELEASED_VERSION = _get_versions(PACKAGE_NAME)
LATEST_VERSION = RELEASED_VERSION[0]
# RELEASED_VERSION = _get_versions(PACKAGE_NAME)
# LATEST_VERSION = RELEASED_VERSION[0]


if LATEST_VERSION != CURRENT_VERSION:
logging.basicConfig(format="[%(levelname)s] %(message)s")
logging.warning(
f"{PACKAGE_NAME} is currently a newer version: {LATEST_VERSION}\n"
f"Please update to the latest version using the pip command:"
f"`pip install --upgrade {PACKAGE_NAME}`"
)
# if LATEST_VERSION != CURRENT_VERSION:
# logging.basicConfig(format="[%(levelname)s] %(message)s")
# logging.warning(
# f"{PACKAGE_NAME} is currently a newer version: {LATEST_VERSION}\n"
# f"Please update to the latest version using the pip command:"
# f"`pip install --upgrade {PACKAGE_NAME}`"
# )
9 changes: 8 additions & 1 deletion mapper/swg_mapper.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"swagger": "2.0",
"info": {
"description": "## REST API for Upbit Exchange\n- Base URL: [https://api.upbit.com]\n- Official Upbit API Documents: [https://docs.upbit.com]\n- Official Support email: [[email protected]]\n",
"version": "1.3.2",
"version": "1.3.4",
"title": "Upbit Open API",
"contact": {
"url": "https://github.com/uJhin",
Expand Down Expand Up @@ -815,6 +815,13 @@
"description": "출금 원화 수량\n",
"required": true,
"type": "string"
},
{
"name": "two_factor_type",
"in": "formData",
"description": "2차 인증 수단 (optional)\n",
"required": false,
"type": "string"
}
],
"responses": {
Expand Down

0 comments on commit 112c915

Please sign in to comment.