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.
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
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
File details
Details for the file coinglass_api-0.1.1.tar.gz
.
File metadata
- Download URL: coinglass_api-0.1.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.10.6 Darwin/22.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd7b9fa5294793819115d035c21d4ba4cc8ad12e2e07c84210938e1d50b409bf |
|
MD5 | 1b2635d6a46bd32c8a45698ed49827a9 |
|
BLAKE2b-256 | c7723b0e05a522ac4530988f1430a188fbbe72eec01925102e1007fcac24f0af |
Provenance
File details
Details for the file coinglass_api-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: coinglass_api-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.1 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36d5af0dae74639e8fb281da34dbfa73b5102a069cebc16e3a56f36b0f12274d |
|
MD5 | 3d288d7f9b2e9cdf1ef3b36906a0a922 |
|
BLAKE2b-256 | 6e178704e1313738b6e030250eb90f9bfe670b6ef72ce2bcf06c8c45a25d5c6d |