Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change liquidations API #499

Closed
StephanAkkerman opened this issue Feb 17, 2024 · 12 comments
Closed

Change liquidations API #499

StephanAkkerman opened this issue Feb 17, 2024 · 12 comments
Labels
Difficulty: Hard 馃槶 This issue is hard to solve, a lot of code needs to be changed Improvement 馃搱 Improvement Priority: High 馃 Assign this label if this issue is VERY important or often used

Comments

@StephanAkkerman
Copy link
Owner

StephanAkkerman commented Feb 17, 2024

Coinglass removed their free API 馃憥
Now we will use Binance instead, because we are not paying 馃捀

@StephanAkkerman StephanAkkerman added Improvement 馃搱 Improvement Priority: High 馃 Assign this label if this issue is VERY important or often used Difficulty: Easy 馃槉 This issue can easily be solved, only a few line changes necessary labels Feb 17, 2024
@StephanAkkerman
Copy link
Owner Author

@StephanAkkerman
Copy link
Owner Author

image
Websocket only it seems

@StephanAkkerman StephanAkkerman added Difficulty: Hard 馃槶 This issue is hard to solve, a lot of code needs to be changed and removed Difficulty: Easy 馃槉 This issue can easily be solved, only a few line changes necessary labels Feb 17, 2024
@StephanAkkerman
Copy link
Owner Author

Example code:

#!/usr/bin/env python3

import websocket

def on_message(ws, msg):
    print(msg)

def on_close():
    print("closed")

socket = "wss://fstream.binance.com/ws/!forceOrder@arr"
ws = websocket.WebSocketApp(socket, on_message=on_message, on_close=on_close)
ws.run_forever()

@StephanAkkerman
Copy link
Owner Author

disabled from config for now

StephanAkkerman added a commit that referenced this issue Feb 21, 2024
@StephanAkkerman
Copy link
Owner Author

Preferably we use a method for getting all the data at once instead of a websocket

@StephanAkkerman StephanAkkerman changed the title remove coinglass API and use Binance for liquidations Change liquidations API Feb 21, 2024
@StephanAkkerman
Copy link
Owner Author

image
image for reference

@StephanAkkerman
Copy link
Owner Author

Could maybe scrape: https://coinalyze.net/bitcoin/liquidations/ but seems hard

@StephanAkkerman
Copy link
Owner Author

StephanAkkerman commented May 26, 2024

Could use https://github.com/aoki-h-jp/binance-bulk-downloader for historical liquidation data of daily bitcoin only and make it a separate repo

@StephanAkkerman
Copy link
Owner Author

@StephanAkkerman
Copy link
Owner Author

image
coinglass uses 6 months of data, not clear if only cm / um data or both

@StephanAkkerman
Copy link
Owner Author

There seems to be something wrong with the liquidation data of BTCUSD_PERP...

@StephanAkkerman
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Difficulty: Hard 馃槶 This issue is hard to solve, a lot of code needs to be changed Improvement 馃搱 Improvement Priority: High 馃 Assign this label if this issue is VERY important or often used
Projects
None yet
Development

No branches or pull requests

1 participant