Skip to content
All library documents

Hyperliquid Price Precision and Asset Size Decimals

Article Hyperliquid docs

Summary

This documentation explains the precision limits for prices and order sizes on Hyperliquid. Prices may use up to five significant figures, subject to a maximum number of decimal places determined by the market type and the asset’s size precision. Integer prices are accepted regardless of significant-figure limits. The document gives separate rules for perpetual and spot markets, including examples of valid and invalid decimal precision.

Order sizes are rounded to the asset’s configured size decimals, which can be obtained from market metadata. For signing, trailing zeroes should be removed. These rules help prevent invalid order parameters, but the page does not discuss trading strategy, execution quality, or the consequences of rounding on fills and risk. The examples illustrate the constraints; asset-specific settings still need to be checked for each market.

Key ideas

  • Prices are limited by both significant figures and market-specific decimal-place rules.
  • Perpetual and spot markets use different maximum decimal limits.
  • An asset’s size decimal setting determines the precision accepted for order quantities.
  • Trailing zeroes should be removed when preparing values for signing.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.