Upbit OPEN API Client
Project description
Upbit OPEN API Client
@Author: uJhin
@Official Documents: https://ujhin.github.io/upbit-client-docs/
Install
pip command
pip install upbit-client
git command
git clone https://github.com/uJhin/python-upbit-client.git
Simple Examples
Check Your API Keys
# /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
# /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
# /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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
upbit_client-1.1.6.25.tar.gz
(10.6 kB
view details)
Built Distribution
File details
Details for the file upbit_client-1.1.6.25.tar.gz
.
File metadata
- Download URL: upbit_client-1.1.6.25.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e1036e6fec5ad21ca4af922b6ef13f308c487dbb2e9d58f2d8d1b4626e74828 |
|
MD5 | 2fd6710950ab3f16a1fbc3dbfde907c7 |
|
BLAKE2b-256 | 6b33981d72e532373b712ea5c6debc3261909376fac0f8eaf8296ae0e88fec49 |
Provenance
File details
Details for the file upbit_client-1.1.6.25-py2.py3-none-any.whl
.
File metadata
- Download URL: upbit_client-1.1.6.25-py2.py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78ee8e152442716b5e49e8635637b20c28f5100abf0861eefbfd40af3dfab851 |
|
MD5 | fa1725f637bded96e28b047013b2f313 |
|
BLAKE2b-256 | ce36f9584bc79479d7a8fd77c8dff0c16165a3ab74e0b97a8432075cf46e95c4 |