Skip to main content
# 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)

Metadata

Release files for yunbi 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yunbi 0.2.2
File Size Uploaded Provenance
yunbi-0.2.2.tar.gz 4.3 kB Without provenance Details

Release files / yunbi-0.2.2.tar.gz

Download URL yunbi-0.2.2.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
306eed80e4a90458b23cbf586237bf2648b19179dd870ff4e0399c55e8f8bfe0
BLAKE2b-256 checksum
How to use checksums
cefb348b4c9da12f08eb2686c9a36e01d7879bbcd0d36ce89979c58cfb3f22ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for yunbi 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page