dineshpinto / coinglass-api

RESTful Python client for Coinglass crypto derivatives API
https://pypi.org/project/coinglass-api/
MIT License
37 stars 10 forks source link

how to get liquidation data #3

Open Frank21st opened 6 months ago

Frank21st commented 6 months ago

Hi, thank you for develop this codes.

I want to get the liquidation data, especially the BTC liquidation data, so how to write the code ? the website is this: https://www.coinglass.com/LiquidationData, and I am interest in this part: Real-Time Liquidations

iShot_2024-05-26_09 23 51

Thanks!

Frank21st commented 6 months ago

I mean, how to get the BTC liquidation data according to the value(eg: 1k, 10k, 1M, and so on); I did't find the api to select according to the value. I think it's an import function.

dineshpinto commented 6 months ago

Hi, thanks. The liquidation map data requires a Professional subscription from Coinglass

Screenshot 2024-05-26 at 10 59 30

Support for the liquidation map is there in the API, see https://github.com/dineshpinto/coinglass-api/blob/3d1e6f4cb166ffe77026bbc219acf67289651719/coinglass_api/api.py#L352

Note that this is from the v2 endpoint.