Skip to main content

client to communicate with alphaticks

Project description


A client to fetch data from the alphaticks data base


You can install alpha-data-py using the following command:

pip install alpha-data-py


In order to use the library, you need an API key from alphaticks. Go to, Account -> Licenses -> AlphaData and click on Add credentials.

Now that you have your credentials ready, you can create a client, fetch a security, and fetch the data you need for that security.

import datetime
from adata import Client, FREQ_1M

secs = c.get_securities()
for s in secs:
    if s.symbol == "BTCUSDT" and == "fbinance":
        sec = s

start = datetime.datetime(2022, 1, 1)
end = datetime.datetime(2022, 1, 5)
it = c.get_historical_ohlcv(sec, FREQ_1M, start, end)
    print(it.o, it.h, it.l, it.c, it.v)

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

alpha-data-py-1.0.14.tar.gz (4.1 kB view hashes)

Uploaded source

Built Distribution

alpha_data_py-1.0.14-py3-none-any.whl (4.8 kB view hashes)

Uploaded py3

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