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.14.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for upbit_client-1.1.6.14-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f43a6d98b38599788e7f34056ee04dbf8f735b98b48cd99905530be1b93e47ca |
|
MD5 | 8f306de8b6c46d89ead947e7fedceeb6 |
|
BLAKE2b-256 | 1aab6e36327582465aa1e8c28c0bf0e0cf12e5144ca9f477c8133b52ff86ff0c |