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

Uploaded Source

Built Distribution

lakeapi-0.1.2-py2.py3-none-any.whl (21.5 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: lakeapi-0.1.2.tar.gz
  • Upload date:
  • Size: 26.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.1.2.tar.gz
Algorithm Hash digest
SHA256 7dc89ebf8069d8dcd7e70d6132efd321d2f09ac59fc6a36beab5bdba8393d94d
MD5 48713c35139fc70dac2fe31daa92c809
BLAKE2b-256 6b3b4095d83f03b79412000bc640d23796b65d5e229f4c5ecce73764251eaf0e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lakeapi-0.1.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 21.5 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.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e530e29c3261a0e1ed5ca4c6a43330f03e25e2d27232523d381fe5c30dd0a906
MD5 129cca9c6c84b8d7998bb6a3713abc6d
BLAKE2b-256 cb0b25bdd5842cfcd0f8982f089eb8864c7bbb53bb04e3ebc7bc696a7cffa59b

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