-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Version 1.1.6.13
- Loading branch information
Showing
2 changed files
with
86 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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='[email protected]', | ||
|