Documentation
    Preparing search index...
    • Snap a strike in USD to a market's admission grid (MarketSummary.admissionTickSize), the step every new mint boundary must be a whole multiple of. Use it on a form's bound inputs: 'down' for a lower bound and 'up' for an upper bound keep a range from shrinking past what was typed, and 'nearest' (the default) suits a single strike. Exact: it rounds in the 1e9-scaled integers the chain uses, not in floating point.

      Parameters

      • price: number
      • admissionTickSize: number
      • mode: "up" | "down" | "nearest" = 'nearest'

      Returns number