Skip to main content

API for accessing Lake crypto market data

Project description

Lake API

Pypi package status Documentation status Build status

API for accessing Lake crypto market data.

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.2.0 (2022-10-26)

  • New feature for listing available data.

0.1.3 (2022-10-13)

  • Corrupted cache bugfix

0.1.2 (2022-10-10)

  • Caching and requirements improvements.

0.1.1 (2022-10-09)

  • Python2.7 support and documentation improvements.

0.1.0 (2022-10-08)

  • First release on PyPI.

Project details


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.2.0.tar.gz (27.6 kB view details)

Uploaded Source

Built Distribution

lakeapi-0.2.0-py2.py3-none-any.whl (22.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file lakeapi-0.2.0.tar.gz.

File metadata

  • Download URL: lakeapi-0.2.0.tar.gz
  • Upload date:
  • Size: 27.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for lakeapi-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d8e0360c618f3021efb56406de8229029f4f165e1cd0b8ddcdb3c57332860c14
MD5 a8d69bd67a74580f2046bb3330ce7d04
BLAKE2b-256 151d4c5549ace9ac213086fa707674167026465f86fdfebe19469fbc72869ee2

See more details on using hashes here.

File details

Details for the file lakeapi-0.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: lakeapi-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 22.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for lakeapi-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 da1a0ddc90954655f529e414963957aab937c427f678e6aba1da2ccc43f4e0aa
MD5 fc4ab2306382f681500178cd4ef1c198
BLAKE2b-256 352148d2f4ff3ba66585765c55379110e1aee57ea392563b034ea348cdba01d5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page