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.23.tar.gz
(10.5 kB
view hashes)
Built Distribution
Close
Hashes for upbit_client-1.1.6.23-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | edc928d6b17d7bd54635e2fec3b83641803398512248f5a9321aa85d2d010cb1 |
|
MD5 | 61bc82a713eeadc028521c5a335ff2cc |
|
BLAKE2b-256 | 972b2b58a84258cf83326931f96685e9dadcca89d98641ad59d1cd086692db2e |