pybl3p
所属分类:加密货币
开发工具:Jupyter Notebook
文件大小:82KB
下载次数:4
上传日期:2020-04-16 11:55:00
上 传 者:
sh-1993
说明: bl3p API
文件列表:
LICENSE (1070, 2020-04-16)
notebooks (0, 2020-04-16)
notebooks\bandwidth_trade.ipynb (3147, 2020-04-16)
notebooks\cancel_all_orders.ipynb (7778, 2020-04-16)
notebooks\orderbook.ipynb (67603, 2020-04-16)
notebooks\stream.ipynb (1909, 2020-04-16)
notebooks\ticker.ipynb (1256, 2020-04-16)
notebooks\tradehistory.ipynb (27127, 2020-04-16)
notebooks\trades.ipynb (1343, 2020-04-16)
pybl3p (0, 2020-04-16)
pybl3p\__init__.py (374, 2020-04-16)
pybl3p\private.py (6045, 2020-04-16)
pybl3p\public.py (3370, 2020-04-16)
pybl3p\py.typed (0, 2020-04-16)
pybl3p\requests.py (3538, 2020-04-16)
pyproject.toml (515, 2020-04-16)
requirements.txt (35, 2020-04-16)
setup.py (768, 2020-04-16)
tests (0, 2020-04-16)
tests\__init__.py (0, 2020-04-16)
tests\test_private.py (610, 2020-04-16)
tests\test_public.py (459, 2020-04-16)
# pybl3p
A Python bl3p API
## installation
```shell script
$ pip install pybl3p
```
## usage
For the public API
```python
from pybl3p.public import orderbook
orderbook()
```
For the private API first set your public and private key as environment variables. This procedure might change in the future, but this way you don't accidentally push your private keys in a notebook or source code:
```shell script
export BL3P_PUB="........-....-....-....-............"
export BL3P_PRIV="(long string with a-z/A-Z/0-9 and =)"
```
Now from python you can access the private API:
```python
from pybl3p.private import depth_full
depth_full()
```
近期下载者:
相关文件:
收藏者: