A Python wrapper for the yunbi.com api
Project description
# yunbi
A Python wrapper for the yunbi.com api
![PyPI](https://img.shields.io/pypi/v/yunbi.svg?style=flat-square) ![license](https://img.shields.io/github/license/imlonghao/yunbi.svg?style=flat-square)
## Install
You can install and upgrade this wrapper from pip:
```
$ pip install -U yunbi
```
## Docs
This wrapper is based on the API list on yunbi.com, you can check it out from [YUNBI EXCHANGE API LIST](https://yunbi.com/swagger/#/default).
What you need to know is that,
in `get_trades` and `get_trades_my` functions, the official API use `from` as a key, which is also a reserved words in Python.
To solve this problem, you need to use `from_id` instead of `from`.
For example,
```
get_trades('ethcny', from_id=123456)
```
## Example
```
from yunbi import Yunbi
y = Yunbi() # Access to public API
y.get_tickers_market('ethcny') # Get ETH/CNY market's tickets
y = Yunbi('YOUR API KEY', 'YOUR SECRET KEY') # Access to public and private API
y.get_members_me() # Get your account information
```
## License
[MIT License](https://github.com/imlonghao/yunbi/blob/master/LICENSE)
A Python wrapper for the yunbi.com api
![PyPI](https://img.shields.io/pypi/v/yunbi.svg?style=flat-square) ![license](https://img.shields.io/github/license/imlonghao/yunbi.svg?style=flat-square)
## Install
You can install and upgrade this wrapper from pip:
```
$ pip install -U yunbi
```
## Docs
This wrapper is based on the API list on yunbi.com, you can check it out from [YUNBI EXCHANGE API LIST](https://yunbi.com/swagger/#/default).
What you need to know is that,
in `get_trades` and `get_trades_my` functions, the official API use `from` as a key, which is also a reserved words in Python.
To solve this problem, you need to use `from_id` instead of `from`.
For example,
```
get_trades('ethcny', from_id=123456)
```
## Example
```
from yunbi import Yunbi
y = Yunbi() # Access to public API
y.get_tickers_market('ethcny') # Get ETH/CNY market's tickets
y = Yunbi('YOUR API KEY', 'YOUR SECRET KEY') # Access to public and private API
y.get_members_me() # Get your account information
```
## License
[MIT License](https://github.com/imlonghao/yunbi/blob/master/LICENSE)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
yunbi-0.2.2.tar.gz
(4.3 kB
view details)
File details
Details for the file yunbi-0.2.2.tar.gz
.
File metadata
- Download URL: yunbi-0.2.2.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 306eed80e4a90458b23cbf586237bf2648b19179dd870ff4e0399c55e8f8bfe0 |
|
MD5 | 2cf4ba9530386255faaf6d46f6e4f68f |
|
BLAKE2b-256 | cefb348b4c9da12f08eb2686c9a36e01d7879bbcd0d36ce89979c58cfb3f22ed |