alpha-data-py
A client to fetch data from the alphaticks data base
Installation
You can install alpha-data-py using the following command:
pip install alpha-data-py
Usage
In order to use the library, you need an API key from alphaticks. Go to alphaticks.io, 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
c = Client(API_KEY, API_SECRET)
secs = c.get_securities()
for s in secs:
if s.symbol == "BTCUSDT" and s.exchange == "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)
while it.next():
print(it.o, it.h, it.l, it.c, it.v)
Metadata
Release files for alpha-data-py 1.0.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| alpha-data-py-1.0.14.tar.gz | 4.1 kB | Without provenance | Details for alpha-data-py-1.0.14.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| alpha_data_py-1.0.14-py3-none-any.whl | Python 3 | none | any | Details for alpha_data_py-1.0.14-py3-none-any.whl |
Total release size: 8.9 kB
Release files / alpha-data-py-1.0.14.tar.gz
| Download URL | alpha-data-py-1.0.14.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b07c8d6a33ef9a698af26e143f49e5c8674d6d39d4c1138e348bdf582ed7508
|
|
BLAKE2b-256 checksum How to use checksums |
bf4570a2185b7f4b8f61c28e6812f6926ffef9b3d5871424b9ef4388532aa5c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.5
|
Release files / alpha_data_py-1.0.14-py3-none-any.whl
| Download URL | alpha_data_py-1.0.14-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e21016ffea5f5c01a2bf1a4fbd22f4bb20189ede400e5b105dc5ac50e7d5d341
|
|
BLAKE2b-256 checksum How to use checksums |
8620691888191aa6d0a7700711b95e644ee9d35cce025c517b6e1a21e23c4a54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.5
|
Security for alpha-data-py 1.0.14
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.