Skip to main content

Unofficial Python client for Coinglass API

Project description

Coinglass API

Unofficial Python client for Coinglass API

Wrapper around the Coinglass API to fetch data about the crypto markets. All data is output in pandas DataFrames (single or multi index).

Note: This is work in progress. The API is not stable yet.

Example Plot

Installation

pip install coinglass-api

Usage

Currently only supports the indicator API endpoint.

from coinglass_api import CoinglassAPI

cg = CoinglassAPI(api_key="abcd1234")

# Get average funding for Bitcoin
fr_avg = cg.average_funding(symbol="BTC", interval="h4")

# Get aggregated OI OHLC data for Bitcoin
oi_agg = cg.open_interest_aggregated_ohlc(symbol="BTC", interval="h4")

# Get liquidation data for Bitcoin
liq = cg.liquidation_symbol(symbol="BTC", interval="h4")

# Get long/short ratio data for Bitcoin
lsr = cg.long_short_symbol(symbol="BTC", interval="h4")

Disclaimer

This project is for educational purposes only. You should not construe any such information or other material as legal, tax, investment, financial, or other advice. Nothing contained here constitutes a solicitation, recommendation, endorsement, or offer by me or any third party service provider to buy or sell any securities or other financial instruments in this or in any other jurisdiction in which such solicitation or offer would be unlawful under the securities laws of such jurisdiction.

Under no circumstances will I be held responsible or liable in any way for any claims, damages, losses, expenses, costs, or liabilities whatsoever, including, without limitation, any direct or indirect damages for loss of profits.

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

coinglass_api-0.1.0.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

coinglass_api-0.1.0-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

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