Skip to main content

Unofficial Python client for coinalyze.net REST API

Project description

coinalyze

Ruff PyPI Python versions MIT License Badge

This is an unofficial Python client for coinalyze.net REST API.

Features

Installation

pip install coinalyze

Usage

  1. Add your API key from coinalyze.net to your environment variables as COINALYZE_API_KEY.
  2. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coinalyze-0.1.1.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

coinalyze-0.1.1-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

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

Hashes for coinalyze-0.1.1.tar.gz
Algorithm Hash digest
SHA256 95beecd064aed101456652a85cfe4458a278b9d203f37b35275ff93237e9d052
MD5 2059465e5b8c89fd0f4324007c7a0d76
BLAKE2b-256 972cf4f40ce8650c84afc9db4f01b797636a203eed57bba23cd552232ba75962

See more details on using hashes here.

Provenance

The following attestation bundles were made for coinalyze-0.1.1.tar.gz:

Publisher: publish.yml on ivarurdalen/coinalyze

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for coinalyze-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aa90beb5ad34b68acc233c16c7e394e136f94cb0d5b37d757bb1c8d0864c120c
MD5 8186e0af095ae9798aa52ab29b37323f
BLAKE2b-256 25c1b79a005ed3550ea378eaacb0faca7e8e11faae9caabbb80545e50b1851ac

See more details on using hashes here.

Provenance

The following attestation bundles were made for coinalyze-0.1.1-py3-none-any.whl:

Publisher: publish.yml on ivarurdalen/coinalyze

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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