Unofficial Python client for coinalyze.net REST API
Project description
coinalyze
This is an unofficial Python client for coinalyze.net REST API.
Features
- Implementation of all endpoints.
- Uses httpx for making HTTP requests
- Uses pyrate-limiter for maintaining 40 API calls per minute.
- Uses httpx-retries for handling retries.
- Provides convenience functions to get results as pandas DataFrames
Installation
pip install coinalyze
Usage
- Add your API key from coinalyze.net to your environment variables as
COINALYZE_API_KEY. - Then use the client as shown in the example below.
See more examples in the coinalyze_client notebook.
import os
from coinalyze import CoinalyzeClient, HistoryEndpoint, Interval, response_to_df
client = CoinalyzeClient(api_key=os.getenv("COINALYZE_API_KEY"))
# Get exchange information as a list of dictionaries
client.get_exchanges()
# Get the supported future markets as a DataFrame
future_markets_df = response_to_df(client.get_future_markets())
# Get the current predicted funding rate
response = client.get_current_predicted_funding_rate("BTCUSDT_PERP.A")
# Get the open interest history as a DataFrame for a symbol
oi_df = client.get_history_df(
endpoint=HistoryEndpoint.OI,
symbols="BTCUSDT_PERP.A",
interval=Interval.H4,
start="2025-06-01",
end="2025-06-20",
)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file coinalyze-0.1.1.tar.gz.
File metadata
- Download URL: coinalyze-0.1.1.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95beecd064aed101456652a85cfe4458a278b9d203f37b35275ff93237e9d052
|
|
| MD5 |
2059465e5b8c89fd0f4324007c7a0d76
|
|
| BLAKE2b-256 |
972cf4f40ce8650c84afc9db4f01b797636a203eed57bba23cd552232ba75962
|
Provenance
The following attestation bundles were made for coinalyze-0.1.1.tar.gz:
Publisher:
publish.yml on ivarurdalen/coinalyze
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coinalyze-0.1.1.tar.gz -
Subject digest:
95beecd064aed101456652a85cfe4458a278b9d203f37b35275ff93237e9d052 - Sigstore transparency entry: 246057157
- Sigstore integration time:
-
Permalink:
ivarurdalen/coinalyze@fee7b138ecb2c58e44f33ab5dd1cc6abd9054ca5 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/ivarurdalen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@fee7b138ecb2c58e44f33ab5dd1cc6abd9054ca5 -
Trigger Event:
release
-
Statement type:
File details
Details for the file coinalyze-0.1.1-py3-none-any.whl.
File metadata
- Download URL: coinalyze-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa90beb5ad34b68acc233c16c7e394e136f94cb0d5b37d757bb1c8d0864c120c
|
|
| MD5 |
8186e0af095ae9798aa52ab29b37323f
|
|
| BLAKE2b-256 |
25c1b79a005ed3550ea378eaacb0faca7e8e11faae9caabbb80545e50b1851ac
|
Provenance
The following attestation bundles were made for coinalyze-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on ivarurdalen/coinalyze
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coinalyze-0.1.1-py3-none-any.whl -
Subject digest:
aa90beb5ad34b68acc233c16c7e394e136f94cb0d5b37d757bb1c8d0864c120c - Sigstore transparency entry: 246057158
- Sigstore integration time:
-
Permalink:
ivarurdalen/coinalyze@fee7b138ecb2c58e44f33ab5dd1cc6abd9054ca5 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/ivarurdalen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@fee7b138ecb2c58e44f33ab5dd1cc6abd9054ca5 -
Trigger Event:
release
-
Statement type: