Hyperliquid Python SDK
Welcome to the Python SDK for the Hyperliquid API. This SDK provides a convenient and efficient way for developers to interact with the Hyperliquid decentralized exchange, enabling programmatic trading, data retrieval, and account management.
This documentation will guide you through installing the SDK, configuring your account, and using its core features to build your own trading applications.
What is Hyperliquid?
Hyperliquid is a high-performance decentralized exchange for perpetual futures. It offers a fully on-chain order book, fast execution, and low fees, providing a trading experience comparable to centralized exchanges while maintaining the security and transparency of a decentralized platform.
Key Features of the SDK
- Comprehensive API Coverage: The SDK wraps the full functionality of both the information and exchange APIs, allowing you to access all features available on the platform.
- Exchange Functionality: Place, cancel, and modify various order types (limit, market, stop-loss, take-profit), manage leverage, and transfer funds.
- Information Retrieval: Access real-time and historical market data, including order books, trade history, funding rates, user account states, and open orders.
- Real-time Data Streams: Subscribe to WebSocket feeds for live updates on market data (mids, L2 book, trades) and user-specific events (fills, order updates).
- Simplified Signing: The SDK handles the cryptographic signing of all private actions, so you can focus on building your trading logic.
Who is this for?
This SDK is designed for developers, traders, and quantitative analysts who want to build automated trading strategies, create custom trading interfaces, or perform data analysis on the Hyperliquid platform.
Getting Started
Ready to dive in? Head over to the Installation guide to set up the SDK, then follow the Quick Start guide for a hands-on introduction.