Unofficial API for Bitbay cryptocurrency exchange
Simple interface for collection public data.
-e git+https://github.com/dominikheinisch/pybitbay@#egg=pybitbay # HEAD
-e git+https://github.com/dominikheinisch/[email protected]#egg=pybitbay # v0.1.0
pip3 show pybitbay
- Python >=3.8
- Requires Requests, Pandas
Getting single batch for ticker: 'btcpln', since transaction id (tid): 1234. Returns pandas.DataFrame with data from https://bitbay.net/API/Public/btcpln/trades.json?since=1234
from pybitbay import BitBayAPI
df = BitBayAPI().get_trades(ticker='btcpln', since=1234)
Getting batch by batch (generator) of all trades, for ticker: 'btcpln', since transaction id (tid): -1, to the newest trade:
from pybitbay import BitBayAPI
for df in BitBayAPI().get_all_trades(ticker='btcpln', since=-1):
print(df)
pip3 install -r requirements.txt
pip3 install -e .
pytest -vs