python wrapper for Upbit
Project description
upbitbox is Python module for Upbit exchange api
Use Python Package (Dependencies)
upbitbox requires:
- requests (>= 2.27.1)
- pandas (>= 1.4.2)
- PyJWT (>= 2.3.0)
- PyYAML (>= 6.0)
Installation
python3 -m venv .venv
pip install -r requirements.txt
Get Started (Example)
import yaml
import pyupbit
def get_config():
with open(r'config.yaml', encoding='UTF-8') as f:
env = yaml.load(f, Loader=yaml.FullLoader)
return env
if __name__ == "__main__":
# get env
config = get_config()
# Quotaion
print(pyupbit.markets().head())
print(pyupbit.candles(1, "KRW-BTC", count=10).head())
print(pyupbit.orderbook("KRW-BTC").head())
# Exchange
upbit = pyupbit.create_upbit(**config['upbit'])
print(upbit.accounts())
python run.py
Source code
You can check the lastest sources with the command:
git clone https://github.com/DK-Lite/upbitbox.git
Testing
pytest upbitbox
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
upbitbox-0.0.1.tar.gz
(9.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file upbitbox-0.0.1.tar.gz.
File metadata
- Download URL: upbitbox-0.0.1.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a6eff489bc9f3852cf30a4a209e77fd84a4c04d23980d1bff0825c69173ee4b
|
|
| MD5 |
2b2aba40ccff833a110eaa9c916bc1cb
|
|
| BLAKE2b-256 |
ff85529e8e46371a284084631946dc5980ebd253f52d6151f311fc242f57810a
|
File details
Details for the file upbitbox-0.0.1-py3-none-any.whl.
File metadata
- Download URL: upbitbox-0.0.1-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1ea4bc864b6fb979690a6c73718a762847cf049dd48c28c6f5861984274629d
|
|
| MD5 |
65ad84b0b4c25917d77b7fab97c34b08
|
|
| BLAKE2b-256 |
72d5b2092eebcef708163246263f6cab31f718012a8c28432fe51524f35e391c
|