Skip to content
Request a review

Hyperliquid API & Python SDK · SDK Setup & Authentication · 3/8

Read Market Data Challenge

Test your knowledge of Hyperliquid market data structures and the Info API. These questions cover order book parsing, position data extraction, and funding rate calculations.

1. In Hyperliquid's L2 order book snapshot, how are bids and asks organized in the `levels` array?

2. What is the correct way to calculate spread in basis points from an order book?

3. In the Hyperliquid user state, how do you determine if a position is long or short?

4. How do you convert an hourly funding rate of 0.0001 (0.01%) to an annualized percentage rate (APR)?

5. What fields does each entry in the `assetPositions` array contain for accessing position data?