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 details)
Built Distribution
File details
Details for the file lakeapi-0.1.1.tar.gz
.
File metadata
- Download URL: lakeapi-0.1.1.tar.gz
- Upload date:
- Size: 27.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.8.3 requests/2.28.1 setuptools/59.6.0 requests-toolbelt/0.10.0 tqdm/4.64.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc13554d29c61a2cb79eb859b9ab983b3123b8c5fff8310caf3eb3d3c04e8c73 |
|
MD5 | d2e527acf2bc8ededae670bd4564c67e |
|
BLAKE2b-256 | d28a09b2b916ea9a8076ebc15e7d07150d0827c610eeb5133168cd568f4cb768 |
File details
Details for the file lakeapi-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: lakeapi-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 21.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.8.3 requests/2.28.1 setuptools/59.6.0 requests-toolbelt/0.10.0 tqdm/4.64.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f15dc53e35f545979d186e9a066803335f81a4cd0ff6ce5d99ea8c5ed42049f |
|
MD5 | 8010eb2aa33aec90cdc0844c7a28387f |
|
BLAKE2b-256 | 7a9aba4238804875195f5f965ebf61dd760b64e854fe060af84eef32b57d0cba |