API for accessing Lake crypto market data
Project description
Lake API
API for accessing Lake crypto market data.
Documentation: https://lakeapi.readthedocs.io.
Online example – executable collab notebook: https://colab.research.google.com/drive/1E7MSUT8xqYTMVLiq_rMBLNcZmI_KusK3
Usage
If you don’t have a paid plan with AWS credentials, you can access sample data:
import lakeapi
lakeapi.use_sample_data(anonymous_access = True)
df = lakeapi.load_data(
table="book",
start=None,
end=None,
symbols=["BTC-USDT"],
exchanges=None,
)
With paid access, you can query any data:
import lakeapi
# Downloads SOL-USDT depth snapshots for last 2 days from Kucoin exchange
df = lakeapi.load_data(
table="trades",
start=datetime.datetime.now() - datetime.timedelta(days=2),
end=None,
symbols=["SOL-USDT"],
exchanges=["KUCOIN"],
)
We recommend putting .lake_cache directory into .gitignore, because Lake API stores cache into this directory in the working directory.
History
0.1.0 (2022-10-08)
First release on PyPI.
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
lakeapi-0.1.3.tar.gz
(28.0 kB
view hashes)
Built Distribution
Close
Hashes for lakeapi-0.1.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 203a243cdc65dd7bfd3f25454b6429dfb571782fdfd211b9f0c3a580c3e3084e |
|
MD5 | f504ff1500974c256cf07ebf277c43ab |
|
BLAKE2b-256 | 754446ad6c4ab544a7c894aa341ce44ffa77daeb0ed3bfb2baea191ce78781af |