You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature: Add function to retrieve user leverage for a specific coin #274
I was looking for a way to retrieve the current leverage configured for a specific coin using the Hyperliquid SDK, but I couldn't find a method that exposes this information.
It might already exist and I missed it, but after checking the SDK I couldn't find a direct function for this.
Why this would be useful
For trading bots and automated systems, it's often necessary to know the current leverage configured for a specific asset before placing or managing orders.
Having this directly available in the SDK would avoid the need to manually query the API.
Current workaround
The alternative I found was to manually call the /info endpoint with the activeAssetData request type.
Activity