WebsiteLive demosGuidesSource
  • Preparing search index...
  • The search index is not available
OpenAlgo Charts API - v2.3.2
  • OpenAlgo Charts API
  • trade
  • validatePrice

Function validatePrice

  • validatePrice(price: number, c: OrderConstraints): ValidationResult
  • Validate a price on its own, returning the tick-snapped value. Snapping is unchanged; the only addition is rejecting a non-finite price, which otherwise snaps to NaN and then passes an absent band as if it were a real level.

    Parameters

    • price: number
    • c: OrderConstraints

    Returns ValidationResult

    • Defined in src/trade/validation.ts:115

Settings

Member Visibility
WebsiteLive demosGuidesSource
OpenAlgo Charts API - v2.3.2
  • Loading...

Generated using TypeDoc

Build your next market experience.Explore live demos →API definitions generated from the current source with every website deployment.