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.13.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for upbit_client-1.1.6.13-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0c4301311f47b4b89852d43d9073aa87301efcf8ac3e055e6dc6d02593e69bd |
|
MD5 | 71acf664064359655fb8516067df88eb |
|
BLAKE2b-256 | d35653a38510d024b38cb097484e70e0d77752f5b856ce3c0cc10503cffb2909 |