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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file coinglass_api-0.1.0.tar.gz.

File metadata

  • Download URL: coinglass_api-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.10.6 Darwin/22.2.0

File hashes

Hashes for coinglass_api-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c3e5b7a481f91f9a1cf1caf2e859a1331afc0c1f7e6f05f816a944a1f2c0f39f
MD5 2e4206a46f700bbf4c1bfb1bb2c2627a
BLAKE2b-256 c182b1d2f475c54537bde34e976cb8a5898a203bb4c7084cc9e862f51a6e8d2b

See more details on using hashes here.

Provenance

File details

Details for the file coinglass_api-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: coinglass_api-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.10.6 Darwin/22.2.0

File hashes

Hashes for coinglass_api-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fcbc3e37564a72b0a92728275632524dc050ff73a87fafe1a677d9b9bbef7154
MD5 c7c3d1cfa5d129881a0a091f544dd9ee
BLAKE2b-256 17a2fa384946417a59c3bf1d16e174325570f9ad0df10e7aff6a917dae4ef3b6

See more details on using hashes here.

Provenance

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