diff --git a/client/python/README.md b/client/python/README.md new file mode 100644 index 0000000..0743c62 --- /dev/null +++ b/client/python/README.md @@ -0,0 +1,78 @@ +![logo](https://raw.githubusercontent.com/uJhin/upbit-client/main/logo/logo.png) + +[Base Repository](https://github.com/uJhin/upbit-client/) + +# Upbit OPEN API Client +- @Author: [ujhin](https://github.com/uJhin) +- @GitHub: https://github.com/uJhin/upbit-client/ +- @Official Documents: https://ujhin.github.io/upbit-client-docs/ + +## Install +- `pip` command +```console +pip install upbit-client +``` + +- `git` command +```console +git clone https://github.com/uJhin/upbit-client.git +``` + +## Simple Examples + +- Check Your API Keys +```python +# /v1/api_keys + +from upbit.client import Upbit + +access_key = "Your Access Key" +secret_key = "Your Secret Key" + +client = Upbit(access_key, secret_key) +print(client.APIKey.APIKey_info().result()) +``` + +- Buy Currency +```python +# /v1/orders + +from upbit.client import Upbit + +access_key = "Your Access Key" +secret_key = "Your Secret Key" + +client = Upbit(access_key, secret_key) +order = client.Order.Order_new( + market='KRW-BTC', + side='bid', + volume='0.1', + price='3000000', + ord_type='limit' +).result() +print(order) +``` + +- Sell Currency +```python +# /v1/orders + +from upbit.client import Upbit + +access_key = "Your Access Key" +secret_key = "Your Secret Key" + +client = Upbit(access_key, secret_key) +order = client.Order.Order_new( + market='KRW-BTC', + side='ask', + volume='0.1', + price='3000000', + ord_type='limit' +).result() +print(order) +``` + +# Donation +- BTC: 3NVw2seiTQddGQwc1apqudKxuTqebpyL3s +- ETH: 0x60dd373f59862d9df776596889b997e24bee42eb diff --git a/client/python/setup.py b/client/python/setup.py index fb33796..ee6157b 100644 --- a/client/python/setup.py +++ b/client/python/setup.py @@ -1,23 +1,22 @@ from setuptools import setup from setuptools import find_packages -long_description = ''' -Upbit OPEN API Client\n -@Author: ujhin\n -@GitHub: https://github.com/uJhin/upbit-client\n -@Official Documents: https://ujhin.github.io/upbit-client-docs\n -''' + +with open('README.md') as readme: + long_description = readme.read() setup( name='upbit_client', - version='1.1.6.12', + version='1.1.6.13', packages=find_packages(), install_requires=[ 'bravado>=11.0.2', 'PyJWT>=2.0' ], extras_require={ - 'fido': ['fido>=4.2.1'] + 'fido': [ + 'fido>=4.2.1' + ] }, python_requires='>=3.8', keywords=[ @@ -29,6 +28,7 @@ 'upbit' ], url='https://github.com/uJhin/upbit-client', + download_url='https://github.com/uJhin/upbit-client/releases', license='MIT License', author='ujhin', author_email='ujhin942@gmail.com',