-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat: Add hyperliquid source for derivatives volume and revenue #4075
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
The hyperliquid-perp adapter exports:
|
This adapter fetches daily volume and fee data for the Hyperliquid perpetuals exchange. It works in three main steps:
|
hi @NotRithik, thanks for the PR. Look like this API data is stale from 2025-07-12 |
The hyperliquid-perp adapter exports:
|
Hi @noateden Yes, unfortunately this method of getting the data, can fetch updated info only when the hyperliquid team processes and updates its archive, which happens about once a month. I'd ideally want to go with a blockchain-first approach, but it's not super feasible through an adapter with hyperliquid because of the sheer volume of trades on it each day. It is possible to get the latest trading volume figures and open interest, but not fee data. I didn't want to return half-complete data, which is why I designed this adapter to throw an error if any of the data points isn't available. Please feel free to provide any pointers on how I can improve this adapter. Do you think going returning just OI, trading volume would be a good approach for now, until we can come up with a better approach for fetching fees? These endpoints are regularly updated and don't go stale for weeks unlike the fee data. |
@NotRithik we can use allium query, as they have hyperliquid core trades data, https://docs.allium.so/historical-data/supported-blockchains/hyperliquid/dex/trades |
ignore this as we don't have access to allium hyperliquid data anymore |
If I can get a cloud instance with the required resources, I will run a hyperliquid node and access trade info in this format: https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/nodes/l1-data-schemas. The reason behind running a new blockchain node is that order history data is stored on the node's disk, and is not exposed with an endpoint that we can just ping an existing node provider for. I will then create an open-source public endpoint that indexes Hyperliquid order info by the hour: Then, I'll create an API endpoint that uses this order info to effectively create a new source for derivatives volume and revenue. This hyperliquid node can also serve as a data source for other deeper custom DefiLlama dashboards. Would DefiLlama be open to this approach and funding the setup? EDIT: Added reasoning behind running a new blockchain node. |
@0xngmi @realdealshaman thoughts? |
thanks but no, we don't want to go this route. don't worry about this, we will find some solution |
Addressing the issue "Find source to refill hyperliquid derivatives volume and revenue(especially holder revenue)" #3793.