API for accessing Lake crypto market data
Project description
Lake API
API for accessing Lake crypto market data.
Free software: Apache 2.0 license
Documentation: https://lakeapi.readthedocs.io.
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 BTC-USDT depth snapshots for last 2 days from all available exchanges
df = lakeapi.load_data(
table="trades",
start=datetime.datetime.now() - datetime.timedelta(days=2),
end=None,
symbols=["SOL-USDT"],
exchanges=["KUCOIN"],
)
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.1.tar.gz
(27.4 kB
view hashes)
Built Distribution
Close
Hashes for lakeapi-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f15dc53e35f545979d186e9a066803335f81a4cd0ff6ce5d99ea8c5ed42049f |
|
MD5 | 8010eb2aa33aec90cdc0844c7a28387f |
|
BLAKE2b-256 | 7a9aba4238804875195f5f965ebf61dd760b64e854fe060af84eef32b57d0cba |